Skip to content

Instantly share code, notes, and snippets.

@Neal-liu
Neal-liu / malloc benchmarks for AOSP 6.0
Created October 21, 2015 15:28
get each time with standard diviation
iterations ns/op
BM_malloc_single/512 499k 1747
BM_malloc_single/1024 499k 1745
BM_malloc_single/2048 499k 1747
BM_malloc_single/4Ki 499k 1747
BM_malloc_single/8Ki 499k 1783
BM_malloc_single/16Ki 499k 1813
BM_malloc_single/32Ki 499k 1807
BM_malloc_single/64Ki 499k 1845
BM_malloc_single/128Ki 199k 11607
iterations ns/op
BM_malloc_single/512 500k 3361
BM_malloc_single/1024 500k 3362
BM_malloc_single/2048 500k 3357
BM_malloc_single/4Ki 500k 3360
BM_malloc_single/8Ki 500k 3390
BM_malloc_single/16Ki 500k 3416
BM_malloc_single/32Ki 500k 3419
BM_malloc_single/64Ki 500k 3416
BM_malloc_single/128Ki 200k 13023
iterations ns/op
BM_malloc_single/512 10M 204
BM_malloc_single/1024 10M 204
BM_malloc_single/2048 10M 204
BM_malloc_single/4Ki 10M 204
BM_malloc_single/8Ki 10M 224
BM_malloc_single/16Ki 10M 256
BM_malloc_single/32Ki 10M 256
BM_malloc_single/64Ki 10M 256
BM_malloc_single/128Ki 200k 9814
iterations ns/op
BM_malloc_multi/512 4992275 657
BM_malloc_multi/1K 4992427 657
BM_malloc_multi/2K 4993167 657
BM_malloc_multi/4K 4992954 675
BM_malloc_multi/8K 4993044 668
BM_malloc_multi/16K 4992158 675
BM_malloc_multi/32K 4992234 676
BM_malloc_multi/64K 49199 30561
BM_malloc_multi/128K 48968 39686
@Neal-liu
Neal-liu / benchmarks with Standard Diviation with clz patch
Last active August 26, 2015 09:18
All bionic benchmarks with standard diviation (including malloc)
iterations ns/op
BM_malloc_multi/512 4991405 659
BM_malloc_multi/1K 4991720 659
BM_malloc_multi/2K 4992590 660
BM_malloc_multi/4K 4991663 682
BM_malloc_multi/8K 4991799 672
BM_malloc_multi/16K 4991636 678
BM_malloc_multi/32K 4991498 690
BM_malloc_multi/64K 49197 30868
BM_malloc_multi/128K 48960 39878
@Neal-liu
Neal-liu / benchmarks with Standard Diviation
Last active August 29, 2015 14:27
All bionic benchmarks with standard diviation (including malloc)
iterations ns/op
BM_malloc_multi/512 4992786 673
BM_malloc_multi/1K 4992831 673
BM_malloc_multi/2K 4991901 677
BM_malloc_multi/4K 4991764 681
BM_malloc_multi/8K 4991729 685
BM_malloc_multi/16K 4991797 688
BM_malloc_multi/32K 4991812 681
BM_malloc_multi/64K 49192 31098
BM_malloc_multi/128K 48940 40821
iterations ns/op
BM_malloc_test/512 499779 1227
BM_malloc_test/1K 999531 1212
BM_malloc_test/2K 999561 1212
BM_malloc_test/4K 999522 1213
BM_malloc_test/8K 999581 1214
BM_malloc_test/16K 999556 1212
BM_malloc_test/32K 999566 1212
BM_malloc_test/64K 99828 22200
BM_malloc_test/128K 99851 22531
iterations ns/op
BM_malloc_test/512 499791 2100
BM_malloc_test/1K 499778 2099
BM_malloc_test/2K 499784 2101
BM_malloc_test/4K 499746 2098
BM_malloc_test/8K 499794 2101
BM_malloc_test/16K 499800 2099
BM_malloc_test/32K 499768 2102
BM_malloc_test/64K 49864 50584
BM_malloc_test/128K 49864 51598
618 KB/s (25960 bytes in 0.040s)
iterations ns/op
BM_malloc_test/512 5000000 453
BM_malloc_test/1K 5000000 453
BM_malloc_test/2K 5000000 454
BM_malloc_test/4K 5000000 453
BM_malloc_test/8K 5000000 453
BM_malloc_test/16K 5000000 452
BM_malloc_test/32K 5000000 452
BM_malloc_test/64K 50000 46696
@Neal-liu
Neal-liu / bionic.benchmarks32.results
Created August 12, 2015 13:53
run bionic benchmarks results on manta.
iterations ns/op
BM_math_fpclassify_INFINITE 500000000 6
BM_math_fpclassify_NAN 500000000 6
BM_math_fpclassify_NORMAL 500000000 6
BM_math_fpclassify_ZERO 500000000 6
BM_math_isinf_INFINITE 500000000 6
BM_math_isinf_NAN 500000000 6
BM_math_isinf_NORMAL 500000000 6
BM_math_isinf_ZERO 500000000 6
BM_math_log10 10000000 164