aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/pthread_benchmark.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change name of rwlock benchmark.Yabin Cui2015-03-171-4/+4
| | | | | | rw_lock is not easy for me to remember, so I prefer changing it to rwlock. Change-Id: I0784acaca0c3b46c28184a77eb29ffe696f9ea07
* Refactor the benchmark code.Christopher Ferris2015-02-191-36/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: - Modify the benchmarks to derive from a single Benchmark object. - Rewrite the main iteration code. This includes changing the iteration code to use the actual total time calculated by the benchmark as a basis for determining whether there are enough iterations instead of using the time it takes to run the benchmark. - Allow benchmarks to take no argument, int, or double. - Fix the PrettyInt printer for negative integers. - Modify the max column width name to include the whole name including the arg part. - Reformat property_benchmark.cpp in line with the rest of the code. - Modify a few of the math benchmarks to take an argument instead of separate benchmarks for the same function with different args. - Create a vector of regex_t structs to represent the args all at once instead of when running each benchmark. This change is in preparation for adding new math based benchmarks. Tested by running on a nexus flo running at max using the new code and the old code and comparing. All of the numbers are similar, but some of the iterations are different due to the slightly different algorithm used. Change-Id: I57ad1f3ff083282b9ffeb72e687cab369ce3523a
* Use mmap to create the pthread_internal_tYabin Cui2014-12-191-0/+92
| | | | | | | | | Add name to mmaped regions. Add pthread benchmark code. Allocate pthread_internal_t on regular stack. Bug: 16847284 Change-Id: Id60835163bb0d68092241f1a118015b5a8f85069
* Build our benchmarks against glibc too.Elliott Hughes2014-12-011-2/+2
| | | | | Bug: 18556607 Change-Id: I455ac8b93c0835836180e549486bc52d393ee6a6
* Add benchmarks for pthread_rw_locksCalin Juravle2014-09-161-0/+32
| | | | | | | | Benchmarks for the following sequences: 1) pthread_rwlock_rdlock -> pthread_rwlock_unlock 2) pthread_rwlock_wrlock -> pthread_rwlock_unlock Change-Id: I8d87d4d8afab8637ea7ff5d23a0b3a81d6d40835
* Add __pure2 to a few more functions, most notably gettid and pthread_self.Elliott Hughes2014-06-111-1/+4
| | | | Change-Id: I7eee9f26f45130038af09d8285782b07f70a996f
* Add various benchmarks.Elliott Hughes2014-03-111-0/+104
These are based on ones from system/extras/tests/bionic/. Change-Id: I7b1ae15a2ca5d1031a6a511d97b88125c1770047