summaryrefslogtreecommitdiff
path: root/micro_bench
AgeCommit message (Collapse)Author
2016-05-18Fix misc-macro-parentheses warnings in micro_bench.Chih-Hung Hsieh
Bug: 28705665 Change-Id: I04d393ae608a7b803001f763c544fc13e8f2e9e6
2016-02-02Fix/suppress potential memory leaks warnings.Chih-Hung Hsieh
* One simple problem fixed by calling free. * Others are suppressed since we don't care memory leaks in this soon-to-be-obsolete test program. BUG: 26910807 Change-Id: I5ac10115db9644b53e9e8b5fd40a5dc87b2019dc
2016-01-12Remove cpu benchmark.Christopher Ferris
This benchmark is completely misnamed. All it does is this in a hard loop: - Read from memory and store in a register. - Add one to the memory value. - Store that value back to memory. Since this is completely useless, I'm going to remove it. Bug: 26210850 Change-Id: If3e0af0a1faa7875d3d106cccab1ed8205847b62
2015-10-02Add NOTICE filesSami Tolvanen
Bug: 24571219 Change-Id: Ib7a4374974c2d0d9225caa1e43d0b78251a36bd2
2015-04-08Add memmove benchmarking.Christopher Ferris
Change-Id: I75bb907f5633d155cd411941ea6d9d39b9787983
2015-01-28Add missing <string.h> include.Elliott Hughes
Change-Id: Iffdfed00ac49a7920844fa5f9e1a3ffc6a77e641
2014-07-24Rename micro bench 32 bitEric Rowe
Rename micro_bench32 to micro_bench for backwards compatibility. Change-Id: I130f281967cffc3e337d27e84c4caa66d39d1385
2014-06-24Create 32 bit and 64 bit versions of exes.Christopher Ferris
Change-Id: Ifc639b7ed97c75faf0ce52475e7c3ec0dc2dd9b9
2014-03-20micro_bench: 64 bit compile issuesMark Salyzyn
- use %zu for size_t operands - suppress unused argument warning messages Change-Id: Ib39b8763414320d9e3a29408bc1b396ddb376293
2013-07-30Add cold versions of benchmarks.android-cts-4.4_r4android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8kitkat-releasekitkat-cts-releaseChristopher Ferris
- Created macros for one and two buffer benchmarks to simplify addition of new benchmarks. - Created cold versions of all benchmarks that work on buffer benchmarks. This means that the benchmark is given buffers that are not in the cache. - Verified the cold versions are working as intended by changing it so that the same buffer is written in each loop instead of the strided buffer. Using this method, the cold and normal benchmark run at the same speed. Change-Id: Ie5d1b015dd70d3935cfa2830a82955429a2f5b3c
2013-07-10Adding strlen, strcat, strcpy benchmarks.Christopher Ferris
Change-Id: I31542ecdec95c2d1d3fb9b2795581ad4d5e13c5c
2013-06-26Add a benchmark of strcpy.Christopher Ferris
List of all changes: - Add a strcpy benchmark. - Create a macro that is used to create all of the code for the main loop of the benchmark. - Fix the strcmp benchmark to use two buffers. The single buffer was an experiment that should not have been committed. It also crashes when a large alignment is used because it hard-coded an extra 2048 allocation regardless of the alignment chosen. - Modify the libc benchmarks to take the function to bench as a parameter. This will allow us to benchmark new potential libc optimizations by adding a single line to the function table list. Change-Id: Id7129667669318acbd001c1bfa3db82764a39029
2013-04-03am 409e8950: Merge "Add strcmp benchmarking."Christopher Ferris
* commit '409e8950ee2fc9802c4382cd7d2fb10f5e0b9d74': Add strcmp benchmarking.
2013-04-02Add strcmp benchmarking.Christopher Ferris
NOTE: After this change memcpy results will be significantly lower for larger sized copies. Changes: - Addition of strcmp benchmarking. - Fix memcpy to initialize memory before copy. If this is not done, the results of memcpy are artificially higher. - Add a min and max when printing averages. - Add two new options --dst_or_mask and --src_or_mask to allow more flexibility when testing different alignments. Change-Id: Ia2859d5569ab5ffa35e5ac0f6d5d1f248fef6533
2013-02-27Fix build.Ben Murdoch
Change-Id: I8027e9cb455ac396189b2b8e58588aa1959bb8c0
2013-02-27am cf9a4f67: Merge "Update micro_bench."Ben Cheng
* commit 'cf9a4f670144efdb2d335f1e6ed36795136b7716': Update micro_bench.
2013-02-15Update micro_bench.Christopher Ferris
Moving the code to cpp to access the cpuset CPU* macros (these macros are defined in sched.h inside of __USE_GNU which is not defined for the thumb C compiler). The C++ code is also slightly easier to read. Add code to set the priority of the process to the highest value. Add code to lock the process to a single cpu. Add the ability to compute average and standard deviation over a number of iterations. Change the timing code to use nanosecond resolution timing. Add options to allow modification of the alignment of the src/dst pointers for memcpy and the dst pointer for memset. Add an option to change the size of the data being copied in each iteration. Change-Id: Ib7c50ed4463f94e638eb81690fe8fe0d0bc3ea80
2013-01-15Add a static variant for micro_bench.Ben Cheng
So that it will be easier to test target-dependent bionic implementations across devices. Change-Id: Ie74dc37d5632b1a270f0d2e9013d504a810640e2
2011-12-08Add iteration option to micro_benchEric Rowe
Change-Id: Ie7ab13a58dd4585e1c489cb407e59a76bed8955b Bug-Id: http://b/issue?id=5734427
2010-11-16Add missing include headers for compilation on Intel SDK for Google TV.Olivier Bailly
Change-Id: I172667643e13e2e1c278fd4c0156d5a2445d79f7
2010-08-26Add a couple of performance debug utilities.Nick Pelly
micro_bench provides very simple tests for o sleep accuracy o cpu o memcpy o memset sane_schedstat is a front-end for /proc/schedstat to diff and format the counters. Change-Id: I6e178fe37fcfc9bf0a83ec17852e31146a91e7a4 Signed-off-by: Nick Pelly <npelly@google.com>