summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Ilya Tokar <tokarip@google.com>2023-10-30 12:20:56 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-10-30 12:21:39 -0700
commit6c8338c252116e429307361ff4fdc1fd0532902d (patch)
tree9020b136f5d9ad170527ca7ba09d684100431b85 /CMakeLists.txt
parentdc3ef2950e7ce08b53ead824cc81b3287e2b74ac (diff)
Optimize memcasecmp. Benchmarks shows slight improvement.
We are also avoiding potential cache-misses, by avoiding load. name old speed new speed delta BM_Searchcase 3.09GB/s ±13% 3.20GB/s ±16% +3.69% (p=0.039 n=20+17) BM_SearchcaseMedium 1.08GB/s ± 7% 1.04GB/s ±14% ~ (p=0.814 n=16+20) BM_SearchcasePathological 618kB/s ±13% 652kB/s ± 6% +5.55% (p=0.043 n=20+16) BM_Memcasematch 2.43GB/s ± 3% 2.45GB/s ± 3% ~ (p=0.488 n=17+16) BM_MemcasematchMedium 230MB/s ± 8% 261MB/s ±14% +13.77% (p=0.000 n=16+20) BM_MemcasematchPathological 624kB/s ±14% 619kB/s ±14% ~ (p=0.836 n=20+20) PiperOrigin-RevId: 577919033 Change-Id: I31324e04b6a577c582ad630d171d3b41d826f1e4
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions