mirror of https://github.com/orefkov/simstr.git
930 lines
137 KiB
Plaintext
930 lines
137 KiB
Plaintext
Benchmarks of simstr, version 1.6.4
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-04T15:58:14+03:00
|
|
Running benchStr.exe
|
|
Run on (32 X 2494 MHz CPU s)
|
|
CPU Caches:
|
|
L1 Data 32 KiB (x16)
|
|
L1 Instruction 32 KiB (x16)
|
|
L2 Unified 256 KiB (x16)
|
|
L3 Unified 40960 KiB (x1)
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 351 ns 350 ns 4
|
|
Concat std::string and number by std to std::string_median 351 ns 352 ns 4
|
|
Concat std::string and number by std to std::string_stddev 17.4 ns 16.2 ns 4
|
|
Concat std::string and number by std to std::string_cv 4.95 % 4.64 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 220 ns 220 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 213 ns 215 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 16.3 ns 17.6 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 7.41 % 7.99 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 116 ns 116 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 115 ns 114 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 6.89 ns 7.59 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 5.94 % 6.55 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 110 ns 110 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 110 ns 110 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 0.514 ns 1.21 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 0.47 % 1.10 % 4
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and format hex number and literal to std::string_mean 1042 ns 1041 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 1052 ns 1057 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 35.4 ns 39.6 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 3.39 % 3.80 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 1850 ns 1832 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 1839 ns 1822 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 29.1 ns 36.7 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 1.57 % 2.01 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 254 ns 254 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 253 ns 254 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 4.97 ns 7.20 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.96 % 2.84 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 116 ns 116 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 116 ns 117 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.84 ns 2.09 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.59 % 1.80 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 99.4 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 100 ns 98.4 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 4.35 ns 3.62 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.32 % 3.65 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 106 ns 106 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 105 ns 106 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.41 ns 3.57 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.22 % 3.37 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 174 ns 174 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 173 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.22 ns 1.92 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.28 % 1.10 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 349 ns 349 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 350 ns 349 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 2.95 ns 7.12 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.84 % 2.04 % 4
|
|
----- format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
"art "_ss + i / 0x8a010_fmt + " end"_mean 125 ns 125 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_median 126 ns 126 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_stddev 2.31 ns 4.19 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_cv 1.84 % 3.35 % 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_mean 206 ns 206 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_median 200 ns 201 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_stddev 11.9 ns 13.4 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_cv 5.79 % 6.50 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 375 ns 374 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 367 ns 364 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 30.9 ns 34.5 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 8.24 % 9.23 % 4
|
|
std::format("art {:#010o} end", i)_mean 1823 ns 1822 ns 4
|
|
std::format("art {:#010o} end", i)_median 1873 ns 1880 ns 4
|
|
std::format("art {:#010o} end", i)_stddev 126 ns 115 ns 4
|
|
std::format("art {:#010o} end", i)_cv 6.93 % 6.32 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1745 ns 1746 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1740 ns 1746 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 76.8 ns 78.5 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 4.40 % 4.50 % 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6869 ns 6871 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6971 ns 6975 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 217 ns 209 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.15 % 3.05 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 58.5 ns 57.0 ns 4
|
|
Concat std::string by std to std::string_median 56.6 ns 56.2 ns 4
|
|
Concat std::string by std to std::string_stddev 4.75 ns 2.71 ns 4
|
|
Concat std::string by std to std::string_cv 8.11 % 4.75 % 4
|
|
Concat std::string by StrExpr to std::string_mean 79.7 ns 79.9 ns 4
|
|
Concat std::string by StrExpr to std::string_median 79.7 ns 79.5 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 1.13 ns 1.76 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.42 % 2.20 % 4
|
|
Concat stringa by StrExpr to stringa_mean 51.1 ns 51.2 ns 4
|
|
Concat stringa by StrExpr to stringa_median 50.9 ns 51.6 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 1.000 ns 0.781 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 1.96 % 1.53 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 232 ns 231 ns 4
|
|
Find concat three std::string_median 236 ns 235 ns 4
|
|
Find concat three std::string_stddev 10.5 ns 7.85 ns 4
|
|
Find concat three std::string_cv 4.52 % 3.39 % 4
|
|
Find concat three strexpr_mean 130 ns 130 ns 4
|
|
Find concat three strexpr_median 129 ns 131 ns 4
|
|
Find concat three strexpr_stddev 11.2 ns 11.2 ns 4
|
|
Find concat three strexpr_cv 8.61 % 8.59 % 4
|
|
Find concat three simstr_mean 27.9 ns 27.9 ns 4
|
|
Find concat three simstr_median 27.4 ns 27.6 ns 4
|
|
Find concat three simstr_stddev 1.11 ns 1.09 ns 4
|
|
Find concat three simstr_cv 3.97 % 3.89 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 18.8 ns 18.7 ns 4
|
|
BuildTypeNameStr 0/0_median 18.6 ns 18.6 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.340 ns 0.401 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.81 % 2.14 % 4
|
|
BuildTypeNameExp 0/0_mean 12.8 ns 12.6 ns 4
|
|
BuildTypeNameExp 0/0_median 12.8 ns 12.7 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.200 ns 0.536 ns 4
|
|
BuildTypeNameExp 0/0_cv 1.57 % 4.24 % 4
|
|
BuildTypeNameSim 0/0_mean 16.7 ns 16.7 ns 4
|
|
BuildTypeNameSim 0/0_median 16.6 ns 16.6 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.505 ns 0.334 ns 4
|
|
BuildTypeNameSim 0/0_cv 3.02 % 2.01 % 4
|
|
BuildTypeNameStr 10/10_mean 84.4 ns 84.1 ns 4
|
|
BuildTypeNameStr 10/10_median 83.1 ns 82.8 ns 4
|
|
BuildTypeNameStr 10/10_stddev 3.15 ns 3.30 ns 4
|
|
BuildTypeNameStr 10/10_cv 3.74 % 3.92 % 4
|
|
BuildTypeNameExp 10/10_mean 40.2 ns 40.1 ns 4
|
|
BuildTypeNameExp 10/10_median 39.4 ns 39.4 ns 4
|
|
BuildTypeNameExp 10/10_stddev 2.14 ns 2.38 ns 4
|
|
BuildTypeNameExp 10/10_cv 5.32 % 5.94 % 4
|
|
BuildTypeNameSim 10/10_mean 38.0 ns 37.7 ns 4
|
|
BuildTypeNameSim 10/10_median 37.5 ns 37.2 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.945 ns 1.18 ns 4
|
|
BuildTypeNameSim 10/10_cv 2.49 % 3.14 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 341 ns 341 ns 4
|
|
Concat with replace str_median 337 ns 337 ns 4
|
|
Concat with replace str_stddev 15.2 ns 15.4 ns 4
|
|
Concat with replace str_cv 4.47 % 4.51 % 4
|
|
Concat with replace exp_mean 225 ns 224 ns 4
|
|
Concat with replace exp_median 225 ns 225 ns 4
|
|
Concat with replace exp_stddev 3.68 ns 2.96 ns 4
|
|
Concat with replace exp_cv 1.64 % 1.32 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.53 ns 2.51 ns 4
|
|
std::string e;_median 2.53 ns 2.51 ns 4
|
|
std::string e;_stddev 0.011 ns 0.046 ns 4
|
|
std::string e;_cv 0.42 % 1.81 % 4
|
|
std::string_view e;_mean 1.83 ns 1.82 ns 4
|
|
std::string_view e;_median 1.81 ns 1.82 ns 4
|
|
std::string_view e;_stddev 0.035 ns 0.022 ns 4
|
|
std::string_view e;_cv 1.93 % 1.22 % 4
|
|
ssa e;_mean 1.90 ns 1.90 ns 4
|
|
ssa e;_median 1.91 ns 1.90 ns 4
|
|
ssa e;_stddev 0.063 ns 0.054 ns 4
|
|
ssa e;_cv 3.33 % 2.84 % 4
|
|
stringa e;_mean 2.36 ns 2.36 ns 4
|
|
stringa e;_median 2.37 ns 2.40 ns 4
|
|
stringa e;_stddev 0.118 ns 0.124 ns 4
|
|
stringa e;_cv 4.99 % 5.25 % 4
|
|
lstringa<20> e;_mean 2.59 ns 2.58 ns 4
|
|
lstringa<20> e;_median 2.59 ns 2.59 ns 4
|
|
lstringa<20> e;_stddev 0.054 ns 0.053 ns 4
|
|
lstringa<20> e;_cv 2.08 % 2.07 % 4
|
|
lstringa<40> e;_mean 2.56 ns 2.55 ns 4
|
|
lstringa<40> e;_median 2.58 ns 2.57 ns 4
|
|
lstringa<40> e;_stddev 0.063 ns 0.070 ns 4
|
|
lstringa<40> e;_cv 2.46 % 2.75 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.59 ns 2.56 ns 4
|
|
std::string e = "Test text";_median 2.59 ns 2.57 ns 4
|
|
std::string e = "Test text";_stddev 0.037 ns 0.031 ns 4
|
|
std::string e = "Test text";_cv 1.43 % 1.23 % 4
|
|
std::string_view e = "Test text";_mean 1.82 ns 1.82 ns 4
|
|
std::string_view e = "Test text";_median 1.82 ns 1.82 ns 4
|
|
std::string_view e = "Test text";_stddev 0.022 ns 0.022 ns 4
|
|
std::string_view e = "Test text";_cv 1.20 % 1.22 % 4
|
|
ssa e = "Test text";_mean 1.82 ns 1.81 ns 4
|
|
ssa e = "Test text";_median 1.82 ns 1.81 ns 4
|
|
ssa e = "Test text";_stddev 0.019 ns 0.000 ns 4
|
|
ssa e = "Test text";_cv 1.04 % 0.00 % 4
|
|
stringa e = "Test text";_mean 3.00 ns 3.00 ns 4
|
|
stringa e = "Test text";_median 2.98 ns 2.98 ns 4
|
|
stringa e = "Test text";_stddev 0.082 ns 0.083 ns 4
|
|
stringa e = "Test text";_cv 2.72 % 2.78 % 4
|
|
lstringa<20> e = "Test text";_mean 2.53 ns 2.53 ns 4
|
|
lstringa<20> e = "Test text";_median 2.51 ns 2.51 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.043 ns 0.028 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.71 % 1.10 % 4
|
|
lstringa<40> e = "Test text";_mean 2.56 ns 2.55 ns 4
|
|
lstringa<40> e = "Test text";_median 2.55 ns 2.54 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.041 ns 0.053 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.59 % 2.09 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 79.5 ns 79.8 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 79.5 ns 79.3 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 1.49 ns 1.67 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.87 % 2.09 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.83 ns 1.82 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 1.82 ns 1.82 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.033 ns 0.022 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.79 % 1.22 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 1.82 ns 1.82 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 1.82 ns 1.84 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.013 ns 0.043 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 0.74 % 2.38 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 2.20 ns 2.18 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 2.22 ns 2.20 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.056 ns 0.079 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 2.55 % 3.63 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 81.8 ns 82.0 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 80.7 ns 81.1 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 3.43 ns 3.77 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 4.19 % 4.60 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.35 ns 3.36 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.35 ns 3.34 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.051 ns 0.073 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 1.52 % 2.19 % 4
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text"; auto c{e};_mean 5.06 ns 5.08 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.06 ns 5.08 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.048 ns 0.090 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 0.95 % 1.78 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 3.80 ns 3.79 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 3.80 ns 3.77 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.024 ns 0.042 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 0.64 % 1.10 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 3.79 ns 3.79 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 3.79 ns 3.79 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.020 ns 0.050 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.54 % 1.33 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 4.17 ns 4.17 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 4.17 ns 4.14 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.185 ns 0.209 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 4.43 % 5.01 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 8.29 ns 8.21 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 8.43 ns 8.37 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.468 ns 0.494 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 5.64 % 6.02 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 8.09 ns 8.07 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 8.10 ns 8.11 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.128 ns 0.167 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.58 % 2.07 % 4
|
|
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 80.2 ns 80.0 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 80.3 ns 80.6 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.29 ns 2.00 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.61 % 2.50 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.49 ns 1.49 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.48 ns 1.48 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.055 ns 0.054 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.71 % 3.65 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.47 ns 1.46 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.46 ns 1.46 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.032 ns 0.018 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.19 % 1.24 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 3.40 ns 3.40 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 3.39 ns 3.38 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.044 ns 0.067 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.29 % 1.96 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 80.1 ns 80.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 79.8 ns 80.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.69 ns 1.42 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.11 % 1.77 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.07 ns 7.06 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.07 ns 7.15 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.177 ns 0.174 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.51 % 2.47 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 41.5 ns 41.7 ns 4
|
|
std::string::find;_median 41.3 ns 41.4 ns 4
|
|
std::string::find;_stddev 1.68 ns 1.41 ns 4
|
|
std::string::find;_cv 4.05 % 3.39 % 4
|
|
std::string_view::find;_mean 39.7 ns 39.8 ns 4
|
|
std::string_view::find;_median 39.5 ns 39.6 ns 4
|
|
std::string_view::find;_stddev 1.08 ns 1.18 ns 4
|
|
std::string_view::find;_cv 2.73 % 2.98 % 4
|
|
ssa::find;_mean 21.7 ns 21.7 ns 4
|
|
ssa::find;_median 21.8 ns 22.0 ns 4
|
|
ssa::find;_stddev 0.407 ns 0.488 ns 4
|
|
ssa::find;_cv 1.87 % 2.25 % 4
|
|
stringa::find;_mean 29.8 ns 29.8 ns 4
|
|
stringa::find;_median 29.7 ns 29.8 ns 4
|
|
stringa::find;_stddev 0.402 ns 0.541 ns 4
|
|
stringa::find;_cv 1.35 % 1.81 % 4
|
|
lstringa<20>::find;_mean 22.1 ns 22.1 ns 4
|
|
lstringa<20>::find;_median 22.1 ns 22.2 ns 4
|
|
lstringa<20>::find;_stddev 0.633 ns 0.893 ns 4
|
|
lstringa<20>::find;_cv 2.87 % 4.04 % 4
|
|
lstringa<40>::find;_mean 20.5 ns 20.5 ns 4
|
|
lstringa<40>::find;_median 20.5 ns 20.4 ns 4
|
|
lstringa<40>::find;_stddev 0.253 ns 0.227 ns 4
|
|
lstringa<40>::find;_cv 1.23 % 1.10 % 4
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string copy{str_with_len_N};/15_mean 4.36 ns 4.36 ns 4
|
|
std::string copy{str_with_len_N};/15_median 4.34 ns 4.33 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.104 ns 0.141 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 2.38 % 3.24 % 4
|
|
std::string copy{str_with_len_N};/16_mean 84.6 ns 84.6 ns 4
|
|
std::string copy{str_with_len_N};/16_median 85.0 ns 85.4 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 1.28 ns 1.74 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 1.51 % 2.06 % 4
|
|
std::string copy{str_with_len_N};/23_mean 83.2 ns 83.3 ns 4
|
|
std::string copy{str_with_len_N};/23_median 82.9 ns 82.8 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 1.83 ns 1.67 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 2.20 % 2.01 % 4
|
|
std::string copy{str_with_len_N};/24_mean 86.1 ns 85.9 ns 4
|
|
std::string copy{str_with_len_N};/24_median 85.8 ns 85.4 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 2.77 ns 2.19 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 3.22 % 2.55 % 4
|
|
std::string copy{str_with_len_N};/32_mean 85.4 ns 85.4 ns 4
|
|
std::string copy{str_with_len_N};/32_median 85.0 ns 85.4 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 3.07 ns 3.18 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 3.60 % 3.73 % 4
|
|
std::string copy{str_with_len_N};/64_mean 81.6 ns 81.6 ns 4
|
|
std::string copy{str_with_len_N};/64_median 81.5 ns 81.6 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 2.90 ns 2.42 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 3.56 % 2.96 % 4
|
|
std::string copy{str_with_len_N};/128_mean 88.6 ns 88.5 ns 4
|
|
std::string copy{str_with_len_N};/128_median 88.7 ns 88.9 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 4.10 ns 3.87 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 4.63 % 4.37 % 4
|
|
std::string copy{str_with_len_N};/256_mean 90.1 ns 90.2 ns 4
|
|
std::string copy{str_with_len_N};/256_median 90.1 ns 89.8 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 7.72 ns 7.98 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 8.57 % 8.84 % 4
|
|
std::string copy{str_with_len_N};/512_mean 89.3 ns 89.4 ns 4
|
|
std::string copy{str_with_len_N};/512_median 89.5 ns 89.8 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 2.37 ns 1.67 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 2.65 % 1.87 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 95.8 ns 95.7 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 96.0 ns 95.2 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 4.07 ns 3.57 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 4.25 % 3.73 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 132 ns 132 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 131 ns 130 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 7.07 ns 7.34 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 5.36 % 5.57 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 180 ns 180 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 179 ns 180 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 3.73 ns 3.42 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 2.07 % 1.90 % 4
|
|
stringa copy{str_with_len_N};/15_mean 3.97 ns 3.97 ns 4
|
|
stringa copy{str_with_len_N};/15_median 3.97 ns 3.99 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.018 ns 0.045 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 0.46 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/16_mean 4.09 ns 4.08 ns 4
|
|
stringa copy{str_with_len_N};/16_median 4.09 ns 4.05 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.143 ns 0.149 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 3.48 % 3.65 % 4
|
|
stringa copy{str_with_len_N};/23_mean 4.04 ns 4.04 ns 4
|
|
stringa copy{str_with_len_N};/23_median 4.07 ns 4.08 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.107 ns 0.091 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 2.66 % 2.25 % 4
|
|
stringa copy{str_with_len_N};/24_mean 18.4 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/24_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.129 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 0.71 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/32_mean 19.0 ns 18.8 ns 4
|
|
stringa copy{str_with_len_N};/32_median 19.0 ns 18.8 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.193 ns 0.342 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 1.02 % 1.81 % 4
|
|
stringa copy{str_with_len_N};/64_mean 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/64_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.159 ns 0.000 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.86 % 0.00 % 4
|
|
stringa copy{str_with_len_N};/128_mean 18.9 ns 18.7 ns 4
|
|
stringa copy{str_with_len_N};/128_median 18.5 ns 18.6 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.698 ns 0.715 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 3.70 % 3.82 % 4
|
|
stringa copy{str_with_len_N};/256_mean 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/256_median 18.2 ns 18.1 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.086 ns 0.227 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.47 % 1.24 % 4
|
|
stringa copy{str_with_len_N};/512_mean 18.5 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/512_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.174 ns 0.313 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.94 % 1.70 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 18.4 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.051 ns 0.419 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.28 % 2.30 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.1 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.0 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.078 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.42 % 1.06 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.123 ns 0.000 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.67 % 0.00 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 8.05 ns 7.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.91 ns 7.85 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.387 ns 0.387 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 4.80 % 4.85 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 8.00 ns 7.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 7.91 ns 7.93 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.457 ns 0.436 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 5.71 % 5.46 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 8.62 ns 8.58 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 8.50 ns 8.48 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.804 ns 0.819 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 9.33 % 9.55 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 86.2 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 86.5 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 6.52 ns 6.12 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 7.56 % 7.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 85.7 ns 85.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 86.0 ns 84.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 3.38 ns 3.57 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 3.94 % 4.19 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 82.9 ns 82.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 83.3 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 1.61 ns 1.74 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 1.95 % 2.11 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 87.2 ns 87.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 87.2 ns 87.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.70 ns 2.01 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 1.95 % 2.31 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 87.6 ns 87.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 87.8 ns 88.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 2.03 ns 2.62 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 2.31 % 2.99 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 92.1 ns 91.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 91.9 ns 90.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 4.32 ns 3.34 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 4.69 % 3.65 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 103 ns 103 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 103 ns 104 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 2.33 ns 2.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 2.27 % 1.94 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 128 ns 129 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 128 ns 128 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 6.91 ns 7.82 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 5.38 % 6.07 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 187 ns 188 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 3.66 ns 2.09 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.94 % 1.12 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 8.52 ns 8.48 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 8.56 ns 8.48 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.186 ns 0.121 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 2.18 % 1.43 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 8.53 ns 8.54 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 8.35 ns 8.46 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.413 ns 0.377 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 4.84 % 4.41 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 8.48 ns 8.50 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 8.41 ns 8.37 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.212 ns 0.262 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 2.50 % 3.08 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 8.74 ns 8.74 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 8.87 ns 8.79 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.384 ns 0.431 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 4.39 % 4.94 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 11.9 ns 11.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 11.9 ns 11.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.248 ns 0.161 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 2.08 % 1.36 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 11.8 ns 11.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 11.8 ns 11.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.204 ns 0.267 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.72 % 2.27 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 12.3 ns 12.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.3 ns 12.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.124 ns 0.161 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 1.01 % 1.33 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 13.0 ns 13.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 13.0 ns 13.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.140 ns 0.161 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.08 % 1.24 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 14.4 ns 14.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 14.5 ns 14.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.255 ns 0.395 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.77 % 2.75 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 101 ns 101 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 97.0 ns 96.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 12.3 ns 11.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 12.20 % 11.69 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 125 ns 125 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 124 ns 124 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 1.39 ns 2.67 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 1.12 % 2.14 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 189 ns 188 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 4.15 ns 5.27 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.20 % 2.81 % 4
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.8 ns 31.5 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.5 ns 31.5 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.552 ns 0.000 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.74 % 0.00 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.0 ns 14.0 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.9 ns 14.0 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.525 ns 0.575 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.75 % 4.10 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 14.9 ns 14.9 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.0 ns 15.0 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.292 ns 0.523 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.95 % 3.51 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.2 ns 15.0 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.1 ns 15.0 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.226 ns 0.285 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.49 % 1.90 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.7 ns 15.6 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.6 ns 15.7 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.833 ns 0.851 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 5.31 % 5.44 % 4
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 36.5 ns 36.3 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 36.5 ns 36.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.35 ns 2.21 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 6.43 % 6.09 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.40 ns 9.40 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.39 ns 9.40 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.146 ns 0.141 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.55 % 1.50 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 14.3 ns 14.2 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 14.1 ns 14.1 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.478 ns 0.395 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.34 % 2.78 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.8 ns 12.7 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.8 ns 12.7 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.257 ns 0.405 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.00 % 3.19 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 14.5 ns 14.5 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 14.4 ns 14.6 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.451 ns 0.536 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.11 % 3.69 % 4
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 45.1 ns 45.0 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.0 ns 45.0 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.725 ns 0.584 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.61 % 1.30 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 22.6 ns 22.7 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 22.4 ns 22.4 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 1.32 ns 1.43 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 5.84 % 6.32 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 16.8 ns 16.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 16.8 ns 16.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.200 ns 0.313 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.19 % 1.86 % 4
|
|
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 99.9 ns 100 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 100.0 ns 100 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.58 ns 3.82 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.59 % 3.80 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 79.1 ns 79.0 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 78.7 ns 78.5 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.40 ns 2.00 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.03 % 2.54 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 35.1 ns 34.9 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 35.0 ns 34.9 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.704 ns 0.463 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.01 % 1.33 % 4
|
|
-- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5721 ns 5720 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5723 ns 5790 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 191 ns 197 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 3.35 % 3.45 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1309 ns 1311 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1308 ns 1311 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 45.6 ns 32.2 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 3.49 % 2.46 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 919 ns 921 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 919 ns 921 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 5.60 ns 17.1 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.61 % 1.86 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 511 ns 512 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 510 ns 516 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 5.05 ns 7.81 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 0.99 % 1.53 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 355 ns 355 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 355 ns 353 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 3.31 ns 3.84 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.93 % 1.08 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 242 ns 242 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 241 ns 241 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.65 ns 6.58 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.92 % 2.72 % 4
|
|
-- Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 5561 ns 5547 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5420 ns 5391 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 413 ns 372 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 7.42 % 6.71 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3842 ns 3854 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3825 ns 3854 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 65.7 ns 52.4 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.71 % 1.36 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 828 ns 828 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 827 ns 828 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.2 ns 22.5 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.80 % 2.72 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 546 ns 547 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 548 ns 547 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 24.9 ns 18.0 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.56 % 3.30 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 384 ns 383 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 384 ns 381 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.2 ns 16.5 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.96 % 4.32 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 267 ns 265 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 267 ns 267 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.88 ns 8.89 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.58 % 3.35 % 4
|
|
-- Append string of 16 bytes and const literal of 16 bytes 2048 times, 65536 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 272552 ns 273338 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 272781 ns 271682 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 3139 ns 3313 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.15 % 1.21 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 193600 ns 193730 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 192019 ns 191812 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4483 ns 3836 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.32 % 1.98 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 25270 ns 25373 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24860 ns 24850 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1048 ns 1245 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.15 % 4.91 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22011 ns 21972 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22123 ns 21972 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 566 ns 427 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.57 % 1.94 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21538 ns 21484 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21613 ns 21484 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 434 ns 399 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 1.86 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21560 ns 21606 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21684 ns 21484 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 686 ns 732 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.18 % 3.39 % 4
|
|
-- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 5486 ns 5508 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5385 ns 5391 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 371 ns 296 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 6.77 % 5.37 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 3948 ns 3955 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 3908 ns 3955 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 106 ns 76.9 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 2.69 % 1.94 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 912 ns 905 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 905 ns 900 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 22.2 ns 10.5 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.43 % 1.16 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 580 ns 582 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 584 ns 586 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 16.0 ns 15.0 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.75 % 2.57 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 446 ns 445 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 446 ns 447 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.7 ns 9.02 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.61 % 2.03 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 353 ns 353 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 354 ns 353 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.83 ns 8.86 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.65 % 2.51 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11655 ns 11536 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 11406 ns 11353 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 658 ns 701 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 5.65 % 6.08 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1230 ns 1228 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1229 ns 1214 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 38.5 ns 39.5 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.13 % 3.21 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2831 ns 2833 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2820 ns 2849 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 24.8 ns 33.1 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.88 % 1.17 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 2410 ns 2407 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 2391 ns 2380 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 91.1 ns 74.0 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 3.78 % 3.07 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2711 ns 2713 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2735 ns 2727 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 66.6 ns 74.6 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.46 % 2.75 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1605 ns 1602 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1570 ns 1573 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 96.7 ns 90.7 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 6.03 % 5.66 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 880 ns 884 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 876 ns 879 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 10.9 ns 10.5 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.24 % 1.18 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 188 ns 186 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 187 ns 186 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 2.22 ns 2.22 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.18 % 1.19 % 4
|
|
stringa str = "test = " + k + " times";_mean 237 ns 235 ns 4
|
|
stringa str = "test = " + k + " times";_median 237 ns 235 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 3.15 ns 6.04 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.33 % 2.57 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 556 ns 555 ns 4
|
|
std::string::find + substr + std::strtol_median 560 ns 558 ns 4
|
|
std::string::find + substr + std::strtol_stddev 17.5 ns 17.6 ns 4
|
|
std::string::find + substr + std::strtol_cv 3.15 % 3.17 % 4
|
|
ssa::splitter + ssa::as_int_mean 297 ns 297 ns 4
|
|
ssa::splitter + ssa::as_int_median 294 ns 295 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 8.22 ns 7.90 ns 4
|
|
ssa::splitter + ssa::as_int_cv 2.77 % 2.66 % 4
|
|
ssa::splitf + functor_mean 214 ns 214 ns 4
|
|
ssa::splitf + functor_median 215 ns 215 ns 4
|
|
ssa::splitf + functor_stddev 1.35 ns 2.44 ns 4
|
|
ssa::splitf + functor_cv 0.63 % 1.14 % 4
|
|
-- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 1277 ns 1271 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1270 ns 1271 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 67.9 ns 65.3 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 5.32 % 5.14 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2209 ns 2210 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2200 ns 2199 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 71.7 ns 77.4 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 3.24 % 3.50 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 2536 ns 2550 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 2519 ns 2550 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 52.7 ns 48.4 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.08 % 1.90 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1563 ns 1563 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1567 ns 1573 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 26.6 ns 19.2 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.70 % 1.23 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1398 ns 1381 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1372 ns 1367 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 62.6 ns 27.9 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 4.47 % 2.02 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1306 ns 1311 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1300 ns 1311 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 20.3 ns 22.8 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.55 % 1.74 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 1348 ns 1350 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 1286 ns 1287 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 129 ns 126 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 9.55 % 9.30 % 4
|
|
-- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_mean 352 ns 352 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 346 ns 344 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 17.5 ns 19.8 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.98 % 5.64 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 428 ns 429 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 421 ns 424 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 16.8 ns 15.6 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 3.93 % 3.65 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 352 ns 353 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 353 ns 353 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 9.76 ns 9.26 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.77 % 2.62 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 303 ns 303 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 303 ns 303 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.52 ns 9.01 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.15 % 2.97 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 402 ns 404 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 400 ns 404 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 11.1 ns 11.7 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.77 % 2.90 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 270 ns 271 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 272 ns 273 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 3.72 ns 2.96 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 1.38 % 1.09 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 345 ns 345 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 345 ns 345 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 9.75 ns 6.55 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.83 % 1.90 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 259 ns 261 ns 4
|
|
replace bb to ---- in std::string|64_median 255 ns 254 ns 4
|
|
replace bb to ---- in std::string|64_stddev 22.0 ns 20.8 ns 4
|
|
replace bb to ---- in std::string|64_cv 8.48 % 7.99 % 4
|
|
replace bb to ---- in std::string|256_mean 848 ns 846 ns 4
|
|
replace bb to ---- in std::string|256_median 848 ns 854 ns 4
|
|
replace bb to ---- in std::string|256_stddev 13.4 ns 17.4 ns 4
|
|
replace bb to ---- in std::string|256_cv 1.58 % 2.06 % 4
|
|
replace bb to ---- in std::string|512_mean 1584 ns 1569 ns 4
|
|
replace bb to ---- in std::string|512_median 1560 ns 1552 ns 4
|
|
replace bb to ---- in std::string|512_stddev 72.4 ns 75.3 ns 4
|
|
replace bb to ---- in std::string|512_cv 4.57 % 4.80 % 4
|
|
replace bb to ---- in std::string|1024_mean 3220 ns 3226 ns 4
|
|
replace bb to ---- in std::string|1024_median 3190 ns 3209 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 89.3 ns 87.8 ns 4
|
|
replace bb to ---- in std::string|1024_cv 2.77 % 2.72 % 4
|
|
replace bb to ---- in std::string|2048_mean 8086 ns 8065 ns 4
|
|
replace bb to ---- in std::string|2048_median 8076 ns 8022 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 42.6 ns 87.2 ns 4
|
|
replace bb to ---- in std::string|2048_cv 0.53 % 1.08 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 244 ns 245 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 239 ns 242 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 15.8 ns 16.6 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 6.47 % 6.77 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 643 ns 642 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 640 ns 635 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 20.3 ns 19.7 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 3.16 % 3.07 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 1112 ns 1111 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 1117 ns 1111 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 15.0 ns 14.1 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 1.35 % 1.27 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 2056 ns 2063 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 2048 ns 2063 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 57.2 ns 58.5 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.78 % 2.84 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3901 ns 3908 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3942 ns 3955 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 99.7 ns 94.2 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.55 % 2.41 % 4
|
|
replace bb to ---- by init stringa|64_mean 206 ns 206 ns 4
|
|
replace bb to ---- by init stringa|64_median 205 ns 208 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.96 ns 4.67 ns 4
|
|
replace bb to ---- by init stringa|64_cv 1.44 % 2.27 % 4
|
|
replace bb to ---- by init stringa|256_mean 503 ns 504 ns 4
|
|
replace bb to ---- by init stringa|256_median 498 ns 500 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 21.8 ns 23.4 ns 4
|
|
replace bb to ---- by init stringa|256_cv 4.34 % 4.65 % 4
|
|
replace bb to ---- by init stringa|512_mean 1130 ns 1130 ns 4
|
|
replace bb to ---- by init stringa|512_median 1065 ns 1074 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 147 ns 141 ns 4
|
|
replace bb to ---- by init stringa|512_cv 12.98 % 12.51 % 4
|
|
replace bb to ---- by init stringa|1024_mean 2172 ns 2173 ns 4
|
|
replace bb to ---- by init stringa|1024_median 2170 ns 2173 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 25.4 ns 28.2 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 1.17 % 1.30 % 4
|
|
replace bb to ---- by init stringa|2048_mean 4441 ns 4443 ns 4
|
|
replace bb to ---- by init stringa|2048_median 4442 ns 4443 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 28.9 ns 56.4 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 0.65 % 1.27 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 206 ns 206 ns 4
|
|
replace bb to -- in std::string|64_median 206 ns 206 ns 4
|
|
replace bb to -- in std::string|64_stddev 5.42 ns 5.85 ns 4
|
|
replace bb to -- in std::string|64_cv 2.63 % 2.84 % 4
|
|
replace bb to -- in std::string|256_mean 542 ns 541 ns 4
|
|
replace bb to -- in std::string|256_median 528 ns 530 ns 4
|
|
replace bb to -- in std::string|256_stddev 31.9 ns 30.9 ns 4
|
|
replace bb to -- in std::string|256_cv 5.88 % 5.72 % 4
|
|
replace bb to -- in std::string|512_mean 968 ns 970 ns 4
|
|
replace bb to -- in std::string|512_median 964 ns 964 ns 4
|
|
replace bb to -- in std::string|512_stddev 19.7 ns 23.4 ns 4
|
|
replace bb to -- in std::string|512_cv 2.04 % 2.41 % 4
|
|
replace bb to -- in std::string|1024_mean 1813 ns 1810 ns 4
|
|
replace bb to -- in std::string|1024_median 1810 ns 1800 ns 4
|
|
replace bb to -- in std::string|1024_stddev 15.0 ns 20.9 ns 4
|
|
replace bb to -- in std::string|1024_cv 0.83 % 1.16 % 4
|
|
replace bb to -- in std::string|2048_mean 3634 ns 3625 ns 4
|
|
replace bb to -- in std::string|2048_median 3591 ns 3568 ns 4
|
|
replace bb to -- in std::string|2048_stddev 136 ns 145 ns 4
|
|
replace bb to -- in std::string|2048_cv 3.75 % 4.01 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 196 ns 196 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 195 ns 195 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 9.94 ns 11.9 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 5.07 % 6.08 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 475 ns 474 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 478 ns 474 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 20.3 ns 25.5 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 4.27 % 5.37 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 802 ns 802 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 804 ns 802 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 11.6 ns 14.2 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 1.45 % 1.77 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1498 ns 1499 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1500 ns 1507 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 21.6 ns 15.7 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 1.44 % 1.05 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 3056 ns 3015 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2949 ns 2883 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 254 ns 289 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 8.31 % 9.58 % 4
|
|
replace bb to -- by init stringa|64_mean 175 ns 176 ns 4
|
|
replace bb to -- by init stringa|64_median 175 ns 175 ns 4
|
|
replace bb to -- by init stringa|64_stddev 2.66 ns 3.67 ns 4
|
|
replace bb to -- by init stringa|64_cv 1.52 % 2.09 % 4
|
|
replace bb to -- by init stringa|256_mean 391 ns 391 ns 4
|
|
replace bb to -- by init stringa|256_median 391 ns 393 ns 4
|
|
replace bb to -- by init stringa|256_stddev 5.49 ns 4.19 ns 4
|
|
replace bb to -- by init stringa|256_cv 1.41 % 1.07 % 4
|
|
replace bb to -- by init stringa|512_mean 648 ns 649 ns 4
|
|
replace bb to -- by init stringa|512_median 656 ns 656 ns 4
|
|
replace bb to -- by init stringa|512_stddev 19.2 ns 14.0 ns 4
|
|
replace bb to -- by init stringa|512_cv 2.97 % 2.15 % 4
|
|
replace bb to -- by init stringa|1024_mean 1152 ns 1151 ns 4
|
|
replace bb to -- by init stringa|1024_median 1158 ns 1158 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 27.7 ns 47.7 ns 4
|
|
replace bb to -- by init stringa|1024_cv 2.40 % 4.14 % 4
|
|
replace bb to -- by init stringa|2048_mean 2207 ns 2210 ns 4
|
|
replace bb to -- by init stringa|2048_median 2210 ns 2223 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 36.5 ns 50.1 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.65 % 2.27 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4313136 ns 4321289 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4295278 ns 4296875 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 128979 ns 146484 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 2.99 % 3.39 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5445614 ns 5440848 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5445550 ns 5440848 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 221795 ns 254707 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 4.07 % 4.68 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3935073 ns 3928073 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3925982 ns 3928073 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 71159 ns 71272 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.81 % 1.81 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6449283 ns 6452288 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6312495 ns 6277902 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 432828 ns 460943 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 6.71 % 7.14 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1734 ns 1737 ns 4
|
|
Build func full name std::string;_median 1735 ns 1716 ns 4
|
|
Build func full name std::string;_stddev 116 ns 111 ns 4
|
|
Build func full name std::string;_cv 6.71 % 6.38 % 4
|
|
Build func full name std::string 1;_mean 1701 ns 1707 ns 4
|
|
Build func full name std::string 1;_median 1705 ns 1707 ns 4
|
|
Build func full name std::string 1;_stddev 53.2 ns 49.5 ns 4
|
|
Build func full name std::string 1;_cv 3.12 % 2.90 % 4
|
|
Build func full name std::stream;_mean 9780 ns 9783 ns 4
|
|
Build func full name std::stream;_median 9731 ns 9731 ns 4
|
|
Build func full name std::stream;_stddev 178 ns 200 ns 4
|
|
Build func full name std::stream;_cv 1.82 % 2.05 % 4
|
|
Build func full name stringa;_mean 868 ns 872 ns 4
|
|
Build func full name stringa;_median 863 ns 863 ns 4
|
|
Build func full name stringa;_stddev 16.7 ns 24.7 ns 4
|
|
Build func full name stringa;_cv 1.93 % 2.83 % 4
|
|
Build func full name stringa 1;_mean 1010 ns 1004 ns 4
|
|
Build func full name stringa 1;_median 1008 ns 1004 ns 4
|
|
Build func full name stringa 1;_stddev 25.1 ns 17.1 ns 4
|
|
Build func full name stringa 1;_cv 2.48 % 1.70 % 4
|