-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstring_to.txt
30 lines (30 loc) · 2.17 KB
/
string_to.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2023-06-16T17:47:39+08:00
Running ./bin/string_to
Run on (16 X 3417.59 MHz CPU s)
CPU Caches:
L1 Data 48 KiB (x16)
L1 Instruction 32 KiB (x16)
L2 Unified 2048 KiB (x16)
L3 Unified 30720 KiB (x1)
Load Average: 4.01, 3.99, 3.04
--------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------
BenchStreamStringTo<std::stringstream, uint64_t> 225 ns 225 ns 3183295
BenchStreamStringTo<std::istringstream, uint64_t> 164 ns 164 ns 4270722
BenchStreamStringToF<std::stringstream, float> 272 ns 272 ns 2578179
BenchStreamStringToF<std::istringstream, float> 230 ns 230 ns 3012314
BenchStdAtol<uint64_t> 17.4 ns 17.4 ns 40078330
BenchStdAtof<float> 27.3 ns 27.3 ns 25547265
BenchStdStol<uint64_t> 20.8 ns 20.8 ns 33681302
BenchStdStoFloat<float> 34.7 ns 34.7 ns 21076105
BenchStdCharConvInt<uint64_t> 8.97 ns 8.97 ns 78376276
BenchStdCharConvFloat<float> 20.8 ns 20.8 ns 33199236
BenchFastFloat<float> 26.6 ns 26.6 ns 25986837
BenchABCharConvIntF<float> 21.4 ns 21.4 ns 32492265
BenchBoostStringTo<uint64_t> 26.6 ns 26.6 ns 25226419
BenchBoostStringTof<float> 182 ns 182 ns 3888830
BenchAbSimpleToInt<uint64_t> 12.7 ns 12.7 ns 53476581
BenchAbSimpleToFloat<float> 26.3 ns 26.3 ns 26152019
BenchPBStrAppend<uint64_t> 14.5 ns 14.5 ns 48290905
BenchPBStrAppendF<float> 15.1 ns 15.1 ns 47502792