summaryrefslogtreecommitdiffstats
path: root/benchmarks
Commit message (Collapse)AuthorAgeFilesLines
* Switch benchmarks and tests to libc++.Dan Albert2014-09-301-2/+1
| | | | Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d
* Prevent benchmarks from being optimized away.Dan Albert2014-09-251-2/+2
| | | | Change-Id: I2d27b39ecdfc50e78098314567c295a2f113f8d3
* 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
* Start hiding "private/bionic_time.h".Elliott Hughes2014-07-251-20/+0
| | | | | Bug: 15765976 Change-Id: Ibd9cf07067ec8dffe9fda6c3d498d4ab90708220
* Use VDSO for clock_gettime(2) and gettimeofday(2).Elliott Hughes2014-07-162-2/+50
| | | | | Bug: 15387103 Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
* Make sure not to construct illegal property names.Christopher Ferris2014-07-151-6/+28
| | | | Change-Id: I37624e69aec51efd4291f076fb87af3f35d33025
* Added a __system_property_serial benchmark.Brigid Smith2014-07-091-0/+26
| | | | Change-Id: Ifc2116f26acb242f4dcdb6eefe128899a9dc63bb
* Added __system_propery_read benchmark.Brigid Smith2014-07-091-0/+27
| | | | Change-Id: Ic0e9118859a013aa04841de25822a81a7fc74b3c
* Cache getpid.Elliott Hughes2014-06-201-0/+11
| | | | | | | | | | | | | | | | | In practice, with this implementation we never need to make a system call. We get the main thread's tid (which is the same as our pid) back from the set_tid_address system call we have to make during initialization. A new pthread will have the same pid as its parent, and a fork child's main (and only) thread will have a pid equal to its tid, which we get for free from the kernel before clone returns. The only time we'd actually have to make a getpid system call now is if we take a signal during fork and the signal handler calls getpid. (That, or we call getpid in the dynamic linker while it's still dealing with its own relocations and hasn't even set up the main thread yet.) Bug: 15387103 Change-Id: I6d4718ed0a5c912fc75b5f738c49a023dbed5189
* Fix GCC 4.9 complaint about int/size_t mismatch.Elliott Hughes2014-06-121-2/+3
| | | | Change-Id: Ib13857f98658dc8760cff15adb5829e8e140008a
* Size the benchmark name column appropriately.Elliott Hughes2014-06-111-2/+7
| | | | | | Nobody likes misaligned output. Change-Id: Ifbfd7beec755e91e204426a96c054d4ea20d3fae
* Add __pure2 to a few more functions, most notably gettid and pthread_self.Elliott Hughes2014-06-112-2/+8
| | | | Change-Id: I7eee9f26f45130038af09d8285782b07f70a996f
* Add a couple more system call benchmarks.Elliott Hughes2014-06-092-0/+25
| | | | | Bug: 15387103 Change-Id: I13419ddf77d201fdbde4c784259c0cb0dcfb9a77
* AArch64: libm: Fix ARM64 fenv_t and refactor ARM64 libm implementation.Serban Constantinescu2014-06-091-0/+40
| | | | | | | | | | | | | | | | This patch fixes the ARM64 ABI for libm. fenv_t is now split in 32bit status and 32bit control. This mirrors the AArch64 FPU control and status registers (FPCR, FPSR). The patch also refactors the libm implementation for ARM64 into a finer grained control over the FPU registers. Bionic-benchmarks has been expanded with 3 more benchmarks for floating point operations. The new libm implementation for ARM64 performs better over all the math benchmarks available. Change-Id: I2a7f81d6b4e55c91f8a63a4c69614fc8b1bcf2db Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* Turn on -Wunused and fix the mistakes it uncovers.Elliott Hughes2014-06-031-1/+1
| | | | Change-Id: I023d2d8b547fbc21d4124bb7510d42b06a0dc501
* Avoid a system call in 'gettid'.Elliott Hughes2014-06-021-0/+11
| | | | | | | | | | | | | System calls can be pretty slow. This is mako, which has one of our lowest latencies: iterations ns/op BM_unistd_getpid 10000000 209 BM_unistd_gettid 200000000 8 Bug: 15297299 (kernel panic from too many gettid calls) Bug: 15315766 (excessive gettid overhead in liblogd) Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb
* Revert "Removes bionic's dependence on stlport"Dan Albert2014-05-191-1/+2
| | | | | | This reverts commit 4d35da1df8b74c1965b2201f6089e7d7bb352def. Change-Id: Ie9a2620441edb55dbc5949e13a4b913ea4e66797
* Removes bionic's dependence on stlportDan Albert2014-05-191-2/+1
| | | | | | Only affects tests/benchmarks. Confirmed passing on arm. Change-Id: If158e23e8cd06e7597ef6f3c9376f6799b467e62
* Switch to g_ for globals.Elliott Hughes2014-05-141-26/+26
| | | | | | | That's what the Google style guide recommends, and we're starting to get a mix. Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
* Add ability to run on host for x86/x86_64.Christopher Ferris2014-05-011-0/+23
| | | | Change-Id: I063cb71ce0f7247cefacaa653c7b87b7b3e72025
* Modify hard-coded directory.Christopher Ferris2014-05-011-2/+12
| | | | | | | Use the ANDROID_DATA environment variable instead of the hard-coded directory for these benchmarks. Change-Id: I00bae7b4a24e81e77fc8f52e1fe99f4d4918f520
* Build 32/64 bit versions of tests/benchmarks.Christopher Ferris2014-04-221-0/+3
| | | | Change-Id: I4d146377aac6573a214dfaa5cab5cce8b10538b4
* Reimplement isinf/isnan/fpclassify.Elliott Hughes2014-04-141-0/+109
| | | | | | | | | | | | | | | | Also move isinf and isnan into libc like everyone else. Also move fpclassify to libc like the BSDs (but unlike glibc). We need this to be able to upgrade our float/double/long double parsing to gdtoa. Also add some missing aliases. We now have all of: isnan, __isnan, isnanf, __isnanf, isnanl, __isnanl, isinf, __isinf, isinff, __isinff, isinfl, __isinfl, __fpclassify, __fpclassifyd, __fpclassifyf, __fpclassifyl. Bug: 13469877 Change-Id: I407ffbac06c765a6c5fffda8106c37d7db04f27d
* Add various benchmarks.Elliott Hughes2014-03-115-0/+248
| | | | | | These are based on ones from system/extras/tests/bionic/. Change-Id: I7b1ae15a2ca5d1031a6a511d97b88125c1770047
* AArch64: Add fixes to bionic/testsSerban Constantinescu2013-12-162-2/+5
| | | | | | | This patch adds minor fixes to the bionic unit tests. Change-Id: Ie10f33c631ed6c10987923d678711d22931ddb05 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* bionic: move benchmarks out of tests directoryColin Cross2013-12-107-0/+688
Change-Id: I4d054965198af22c9a9c821d1bc53f4e9ea01248