diff options
author | babenko <babenko@yandex-team.com> | 2023-03-10 15:58:08 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2023-03-10 15:58:08 +0300 |
commit | a22464af67422add223a24051527992cf49777a6 (patch) | |
tree | b2482b85766c8083d9fbff512fe3f910951f9154 /library/cpp/svnversion/svnversion.h | |
parent | 3c4e50751cbe95a6e55c69ce26159de97fdc9a74 (diff) | |
download | ydb-a22464af67422add223a24051527992cf49777a6.tar.gz |
Optimize varints
Before:
%%
Run on (56 X 3200 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x28)
L1 Instruction 32 KiB (x28)
L2 Unified 256 KiB (x28)
L3 Unified 35840 KiB (x2)
Load Average: 1.29, 2.30, 2.18
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
-----------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------
BM_SmallVarUint 275 ns 275 ns 1843898
BM_MediumVarUint 825 ns 824 ns 843158
BM_LargeVarUint 1200 ns 1200 ns 585964
%%
After:
%%
Run on (56 X 3200 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x28)
L1 Instruction 32 KiB (x28)
L2 Unified 256 KiB (x28)
L3 Unified 35840 KiB (x2)
Load Average: 1.67, 1.73, 1.74
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
-----------------------------------------------------------
Benchmark Time CPU Iterations
-----------------------------------------------------------
BM_SmallVarUint 131 ns 130 ns 5345527
BM_MediumVarUint 505 ns 505 ns 1000000
BM_LargeVarUint 793 ns 793 ns 871621
%%
Diffstat (limited to 'library/cpp/svnversion/svnversion.h')
0 files changed, 0 insertions, 0 deletions