simstr/bench/results/000-Xeon E5-2682 v4, Ubuntu...

986 lines
146 KiB
Plaintext

Benchmarks of simstr, version 1.7.0
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
2026-02-15T21:37:52+03:00
Running ./benchStr
Run on (32 X 2494.22 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)
Load Average: 0.00, 0.00, 0.00
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
--------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat email std::format_mean 170 ns 170 ns 4
Concat email std::format_median 171 ns 171 ns 4
Concat email std::format_stddev 2.43 ns 2.43 ns 4
Concat email std::format_cv 1.43 % 1.43 % 4
Concat email std::stringstream_mean 325 ns 325 ns 4
Concat email std::stringstream_median 325 ns 325 ns 4
Concat email std::stringstream_stddev 4.06 ns 4.06 ns 4
Concat email std::stringstream_cv 1.25 % 1.25 % 4
Concat email stringzilla append_mean 142 ns 142 ns 4
Concat email stringzilla append_median 142 ns 142 ns 4
Concat email stringzilla append_stddev 6.74 ns 6.74 ns 4
Concat email stringzilla append_cv 4.76 % 4.76 % 4
Concat email stringzilla concat_mean 53.1 ns 53.1 ns 4
Concat email stringzilla concat_median 53.3 ns 53.3 ns 4
Concat email stringzilla concat_stddev 0.684 ns 0.684 ns 4
Concat email stringzilla concat_cv 1.29 % 1.29 % 4
Concat email std::string append_mean 72.9 ns 72.9 ns 4
Concat email std::string append_median 72.4 ns 72.4 ns 4
Concat email std::string append_stddev 2.23 ns 2.23 ns 4
Concat email std::string append_cv 3.07 % 3.07 % 4
Concat email std::string by strexpr_mean 43.5 ns 43.5 ns 4
Concat email std::string by strexpr_median 43.5 ns 43.5 ns 4
Concat email std::string by strexpr_stddev 1.05 ns 1.05 ns 4
Concat email std::string by strexpr_cv 2.41 % 2.41 % 4
Concat email stringa_mean 38.9 ns 38.9 ns 4
Concat email stringa_median 38.9 ns 38.9 ns 4
Concat email stringa_stddev 0.465 ns 0.465 ns 4
Concat email stringa_cv 1.20 % 1.20 % 4
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string and number by std to std::string_mean 220 ns 220 ns 4
Concat std::string and number by std to std::string_median 215 ns 215 ns 4
Concat std::string and number by std to std::string_stddev 14.2 ns 14.2 ns 4
Concat std::string and number by std to std::string_cv 6.47 % 6.47 % 4
Concat std::string and number by StrExpr to std::string_mean 104 ns 104 ns 4
Concat std::string and number by StrExpr to std::string_median 103 ns 103 ns 4
Concat std::string and number by StrExpr to std::string_stddev 2.15 ns 2.15 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.06 % 2.06 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 65.3 ns 65.3 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 64.7 ns 64.7 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 1.50 ns 1.50 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 2.29 % 2.29 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 69.7 ns 69.7 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 69.6 ns 69.6 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 0.713 ns 0.713 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 1.02 % 1.02 % 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 692 ns 692 ns 4
Concat std::string and format hex number and literal to std::string_median 684 ns 684 ns 4
Concat std::string and format hex number and literal to std::string_stddev 22.8 ns 22.8 ns 4
Concat std::string and format hex number and literal to std::string_cv 3.29 % 3.29 % 4
std::format std::string and hex number by literal to std::string_mean 922 ns 922 ns 4
std::format std::string and hex number by literal to std::string_median 887 ns 887 ns 4
std::format std::string and hex number by literal to std::string_stddev 91.0 ns 91.0 ns 4
std::format std::string and hex number by literal to std::string_cv 9.87 % 9.87 % 4
Concat std::string and std::to_chars and string to std::string_mean 198 ns 198 ns 4
Concat std::string and std::to_chars and string to std::string_median 197 ns 197 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 4.42 ns 4.42 ns 4
Concat std::string and std::to_chars and string to std::string_cv 2.23 % 2.23 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 132 ns 132 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 132 ns 132 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.79 ns 1.79 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.36 % 1.36 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 116 ns 116 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 116 ns 116 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.221 ns 0.221 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.19 % 0.19 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 124 ns 124 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 123 ns 123 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.66 ns 3.66 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.95 % 2.95 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 181 ns 181 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 181 ns 181 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.81 ns 1.81 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.00 % 1.00 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 312 ns 312 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 312 ns 312 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.57 ns 5.57 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.79 % 1.79 % 4
---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 276 ns 276 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 273 ns 273 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 7.40 ns 7.40 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.69 % 2.69 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 352 ns 352 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 348 ns 348 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 10.2 ns 10.2 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.89 % 2.89 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 616 ns 616 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 615 ns 615 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 18.0 ns 18.0 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.92 % 2.92 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 755 ns 755 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 756 ns 756 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 5.06 ns 5.06 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 0.67 % 0.67 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 894 ns 894 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 914 ns 914 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 64.2 ns 64.2 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 7.18 % 7.18 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 992 ns 992 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 987 ns 987 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 31.3 ns 31.3 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.16 % 3.16 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1000 ns 1000 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1000 ns 1000 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 10.3 ns 10.3 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 1.03 % 1.03 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2055 ns 2055 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2028 ns 2028 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 73.1 ns 73.1 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.56 % 3.56 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 44.3 ns 44.3 ns 4
Concat std::string by std to std::string_median 44.3 ns 44.3 ns 4
Concat std::string by std to std::string_stddev 0.388 ns 0.388 ns 4
Concat std::string by std to std::string_cv 0.87 % 0.87 % 4
Concat std::string by StrExpr to std::string_mean 31.3 ns 31.3 ns 4
Concat std::string by StrExpr to std::string_median 31.0 ns 31.0 ns 4
Concat std::string by StrExpr to std::string_stddev 1.06 ns 1.06 ns 4
Concat std::string by StrExpr to std::string_cv 3.37 % 3.37 % 4
Concat stringa by StrExpr to stringa_mean 28.4 ns 28.4 ns 4
Concat stringa by StrExpr to stringa_median 28.4 ns 28.4 ns 4
Concat stringa by StrExpr to stringa_stddev 0.389 ns 0.389 ns 4
Concat stringa by StrExpr to stringa_cv 1.37 % 1.37 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 114 ns 114 ns 4
Find concat three std::string_median 113 ns 113 ns 4
Find concat three std::string_stddev 3.72 ns 3.72 ns 4
Find concat three std::string_cv 3.27 % 3.27 % 4
Find concat three strexpr_mean 49.3 ns 49.3 ns 4
Find concat three strexpr_median 49.2 ns 49.2 ns 4
Find concat three strexpr_stddev 0.578 ns 0.578 ns 4
Find concat three strexpr_cv 1.17 % 1.17 % 4
Find concat three simstr_mean 19.4 ns 19.4 ns 4
Find concat three simstr_median 19.4 ns 19.4 ns 4
Find concat three simstr_stddev 0.435 ns 0.435 ns 4
Find concat three simstr_cv 2.24 % 2.24 % 4
Find concat three stringzilla string_mean 143 ns 143 ns 4
Find concat three stringzilla string_median 141 ns 141 ns 4
Find concat three stringzilla string_stddev 2.95 ns 2.95 ns 4
Find concat three stringzilla string_cv 2.07 % 2.07 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 7.09 ns 7.09 ns 4
BuildTypeNameStr 0/0_median 7.09 ns 7.09 ns 4
BuildTypeNameStr 0/0_stddev 0.046 ns 0.046 ns 4
BuildTypeNameStr 0/0_cv 0.64 % 0.64 % 4
BuildTypeNameExp 0/0_mean 6.90 ns 6.90 ns 4
BuildTypeNameExp 0/0_median 6.93 ns 6.93 ns 4
BuildTypeNameExp 0/0_stddev 0.265 ns 0.265 ns 4
BuildTypeNameExp 0/0_cv 3.84 % 3.84 % 4
BuildTypeNameSim 0/0_mean 4.95 ns 4.95 ns 4
BuildTypeNameSim 0/0_median 4.85 ns 4.85 ns 4
BuildTypeNameSim 0/0_stddev 0.235 ns 0.235 ns 4
BuildTypeNameSim 0/0_cv 4.74 % 4.74 % 4
BuildTypeNameStr 10/10_mean 56.3 ns 56.3 ns 4
BuildTypeNameStr 10/10_median 56.2 ns 56.2 ns 4
BuildTypeNameStr 10/10_stddev 1.48 ns 1.48 ns 4
BuildTypeNameStr 10/10_cv 2.63 % 2.63 % 4
BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4
BuildTypeNameExp 10/10_median 30.2 ns 30.2 ns 4
BuildTypeNameExp 10/10_stddev 1.76 ns 1.76 ns 4
BuildTypeNameExp 10/10_cv 5.69 % 5.69 % 4
BuildTypeNameSim 10/10_mean 22.8 ns 22.8 ns 4
BuildTypeNameSim 10/10_median 22.6 ns 22.6 ns 4
BuildTypeNameSim 10/10_stddev 0.761 ns 0.761 ns 4
BuildTypeNameSim 10/10_cv 3.33 % 3.33 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 213 ns 213 ns 4
Concat with replace str_median 215 ns 215 ns 4
Concat with replace str_stddev 7.88 ns 7.88 ns 4
Concat with replace str_cv 3.70 % 3.70 % 4
Concat with replace exp_mean 147 ns 147 ns 4
Concat with replace exp_median 146 ns 146 ns 4
Concat with replace exp_stddev 5.02 ns 5.02 ns 4
Concat with replace exp_cv 3.40 % 3.40 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.11 ns 1.11 ns 4
std::string e;_median 1.11 ns 1.11 ns 4
std::string e;_stddev 0.032 ns 0.032 ns 4
std::string e;_cv 2.83 % 2.83 % 4
std::string_view e;_mean 0.369 ns 0.369 ns 4
std::string_view e;_median 0.368 ns 0.368 ns 4
std::string_view e;_stddev 0.003 ns 0.003 ns 4
std::string_view e;_cv 0.71 % 0.71 % 4
ssa e;_mean 0.371 ns 0.371 ns 4
ssa e;_median 0.371 ns 0.371 ns 4
ssa e;_stddev 0.008 ns 0.008 ns 4
ssa e;_cv 2.20 % 2.20 % 4
stringa e;_mean 0.758 ns 0.758 ns 4
stringa e;_median 0.741 ns 0.741 ns 4
stringa e;_stddev 0.043 ns 0.043 ns 4
stringa e;_cv 5.62 % 5.62 % 4
lstringa<20> e;_mean 1.14 ns 1.14 ns 4
lstringa<20> e;_median 1.13 ns 1.13 ns 4
lstringa<20> e;_stddev 0.029 ns 0.029 ns 4
lstringa<20> e;_cv 2.55 % 2.55 % 4
lstringa<40> e;_mean 1.15 ns 1.15 ns 4
lstringa<40> e;_median 1.15 ns 1.15 ns 4
lstringa<40> e;_stddev 0.043 ns 0.043 ns 4
lstringa<40> e;_cv 3.70 % 3.70 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.85 ns 1.85 ns 4
std::string e = "Test text";_median 1.83 ns 1.83 ns 4
std::string e = "Test text";_stddev 0.060 ns 0.060 ns 4
std::string e = "Test text";_cv 3.26 % 3.26 % 4
std::string_view e = "Test text";_mean 0.760 ns 0.760 ns 4
std::string_view e = "Test text";_median 0.762 ns 0.762 ns 4
std::string_view e = "Test text";_stddev 0.018 ns 0.018 ns 4
std::string_view e = "Test text";_cv 2.33 % 2.33 % 4
ssa e = "Test text";_mean 0.380 ns 0.380 ns 4
ssa e = "Test text";_median 0.377 ns 0.377 ns 4
ssa e = "Test text";_stddev 0.014 ns 0.014 ns 4
ssa e = "Test text";_cv 3.74 % 3.74 % 4
stringa e = "Test text";_mean 1.13 ns 1.13 ns 4
stringa e = "Test text";_median 1.11 ns 1.11 ns 4
stringa e = "Test text";_stddev 0.044 ns 0.044 ns 4
stringa e = "Test text";_cv 3.87 % 3.87 % 4
lstringa<20> e = "Test text";_mean 1.91 ns 1.91 ns 4
lstringa<20> e = "Test text";_median 1.86 ns 1.86 ns 4
lstringa<20> e = "Test text";_stddev 0.110 ns 0.110 ns 4
lstringa<20> e = "Test text";_cv 5.77 % 5.77 % 4
lstringa<40> e = "Test text";_mean 1.83 ns 1.83 ns 4
lstringa<40> e = "Test text";_median 1.81 ns 1.81 ns 4
lstringa<40> e = "Test text";_stddev 0.037 ns 0.037 ns 4
lstringa<40> e = "Test text";_cv 2.04 % 2.04 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 21.7 ns 21.7 ns 4
std::string e = "123456789012345678901234567890";_median 21.4 ns 21.4 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.673 ns 0.673 ns 4
std::string e = "123456789012345678901234567890";_cv 3.10 % 3.10 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.735 ns 0.735 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.735 ns 0.735 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.009 ns 0.009 ns 4
std::string_view e = "123456789012345678901234567890";_cv 1.26 % 1.26 % 4
ssa e = "123456789012345678901234567890";_mean 0.383 ns 0.383 ns 4
ssa e = "123456789012345678901234567890";_median 0.386 ns 0.386 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 4
ssa e = "123456789012345678901234567890";_cv 3.80 % 3.80 % 4
stringa e = "123456789012345678901234567890";_mean 1.10 ns 1.10 ns 4
stringa e = "123456789012345678901234567890";_median 1.11 ns 1.11 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.014 ns 0.014 ns 4
stringa e = "123456789012345678901234567890";_cv 1.29 % 1.29 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 21.0 ns 21.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 21.0 ns 21.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.446 ns 0.446 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 2.13 % 2.13 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.59 ns 2.59 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.58 ns 2.58 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.055 ns 0.055 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 2.14 % 2.14 % 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.27 ns 5.27 ns 4
std::string e = "Test text"; auto c{e};_median 5.24 ns 5.24 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.167 ns 0.167 ns 4
std::string e = "Test text"; auto c{e};_cv 3.16 % 3.16 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.383 ns 0.383 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.382 ns 0.382 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
std::string_view e = "Test text"; auto c{e};_cv 3.62 % 3.62 % 4
ssa e = "Test text"; auto c{e};_mean 0.376 ns 0.376 ns 4
ssa e = "Test text"; auto c{e};_median 0.376 ns 0.376 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 4
ssa e = "Test text"; auto c{e};_cv 2.02 % 2.02 % 4
stringa e = "Test text"; auto c{e};_mean 1.11 ns 1.11 ns 4
stringa e = "Test text"; auto c{e};_median 1.10 ns 1.10 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.015 ns 0.015 ns 4
stringa e = "Test text"; auto c{e};_cv 1.36 % 1.36 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.50 ns 1.50 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.48 ns 1.48 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.050 ns 0.050 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 3.37 % 3.37 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.52 ns 1.52 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.53 ns 1.53 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.029 ns 0.029 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 1.89 % 1.89 % 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 19.1 ns 19.1 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 19.1 ns 19.1 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.224 ns 0.224 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.17 % 1.17 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.752 ns 0.752 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.752 ns 0.752 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.012 ns 0.012 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.63 % 1.63 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.375 ns 0.375 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.371 ns 0.371 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.010 ns 0.010 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.54 % 2.54 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.11 ns 1.11 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.018 ns 0.018 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.62 % 1.62 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.5 ns 21.5 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.8 ns 21.8 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.961 ns 0.961 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 4.47 % 4.47 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.61 ns 4.61 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.61 ns 4.61 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.145 ns 0.145 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 3.15 % 3.15 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 95.0 ns 95.0 ns 4
sz::string::find;_median 94.5 ns 94.5 ns 4
sz::string::find;_stddev 1.76 ns 1.76 ns 4
sz::string::find;_cv 1.85 % 1.85 % 4
std::string::find;_mean 7.29 ns 7.29 ns 4
std::string::find;_median 7.30 ns 7.30 ns 4
std::string::find;_stddev 0.180 ns 0.180 ns 4
std::string::find;_cv 2.47 % 2.47 % 4
std::string_view::find;_mean 7.54 ns 7.54 ns 4
std::string_view::find;_median 7.52 ns 7.52 ns 4
std::string_view::find;_stddev 0.298 ns 0.298 ns 4
std::string_view::find;_cv 3.95 % 3.95 % 4
ssa::find;_mean 7.60 ns 7.60 ns 4
ssa::find;_median 7.44 ns 7.44 ns 4
ssa::find;_stddev 0.754 ns 0.754 ns 4
ssa::find;_cv 9.92 % 9.92 % 4
stringa::find;_mean 8.42 ns 8.42 ns 4
stringa::find;_median 8.08 ns 8.08 ns 4
stringa::find;_stddev 0.844 ns 0.844 ns 4
stringa::find;_cv 10.03 % 10.03 % 4
lstringa<20>::find;_mean 6.84 ns 6.84 ns 4
lstringa<20>::find;_median 6.79 ns 6.79 ns 4
lstringa<20>::find;_stddev 0.205 ns 0.205 ns 4
lstringa<20>::find;_cv 2.99 % 2.99 % 4
lstringa<40>::find;_mean 6.91 ns 6.91 ns 4
lstringa<40>::find;_median 6.81 ns 6.81 ns 4
lstringa<40>::find;_stddev 0.241 ns 0.241 ns 4
lstringa<40>::find;_cv 3.49 % 3.49 % 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 5.95 ns 5.95 ns 4
std::string copy{str_with_len_N};/15_median 5.81 ns 5.81 ns 4
std::string copy{str_with_len_N};/15_stddev 0.415 ns 0.415 ns 4
std::string copy{str_with_len_N};/15_cv 6.98 % 6.98 % 4
std::string copy{str_with_len_N};/16_mean 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/16_median 23.2 ns 23.2 ns 4
std::string copy{str_with_len_N};/16_stddev 0.626 ns 0.626 ns 4
std::string copy{str_with_len_N};/16_cv 2.69 % 2.69 % 4
std::string copy{str_with_len_N};/23_mean 23.8 ns 23.8 ns 4
std::string copy{str_with_len_N};/23_median 24.0 ns 24.0 ns 4
std::string copy{str_with_len_N};/23_stddev 0.431 ns 0.431 ns 4
std::string copy{str_with_len_N};/23_cv 1.81 % 1.81 % 4
std::string copy{str_with_len_N};/24_mean 23.5 ns 23.5 ns 4
std::string copy{str_with_len_N};/24_median 23.5 ns 23.5 ns 4
std::string copy{str_with_len_N};/24_stddev 0.728 ns 0.728 ns 4
std::string copy{str_with_len_N};/24_cv 3.10 % 3.10 % 4
std::string copy{str_with_len_N};/32_mean 24.0 ns 24.0 ns 4
std::string copy{str_with_len_N};/32_median 23.9 ns 23.9 ns 4
std::string copy{str_with_len_N};/32_stddev 1.25 ns 1.25 ns 4
std::string copy{str_with_len_N};/32_cv 5.20 % 5.20 % 4
std::string copy{str_with_len_N};/64_mean 23.1 ns 23.1 ns 4
std::string copy{str_with_len_N};/64_median 23.2 ns 23.2 ns 4
std::string copy{str_with_len_N};/64_stddev 0.747 ns 0.747 ns 4
std::string copy{str_with_len_N};/64_cv 3.23 % 3.23 % 4
std::string copy{str_with_len_N};/128_mean 25.3 ns 25.3 ns 4
std::string copy{str_with_len_N};/128_median 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/128_stddev 0.946 ns 0.946 ns 4
std::string copy{str_with_len_N};/128_cv 3.74 % 3.74 % 4
std::string copy{str_with_len_N};/256_mean 31.4 ns 31.4 ns 4
std::string copy{str_with_len_N};/256_median 31.3 ns 31.3 ns 4
std::string copy{str_with_len_N};/256_stddev 0.707 ns 0.707 ns 4
std::string copy{str_with_len_N};/256_cv 2.25 % 2.25 % 4
std::string copy{str_with_len_N};/512_mean 28.8 ns 28.8 ns 4
std::string copy{str_with_len_N};/512_median 28.7 ns 28.7 ns 4
std::string copy{str_with_len_N};/512_stddev 0.303 ns 0.303 ns 4
std::string copy{str_with_len_N};/512_cv 1.05 % 1.05 % 4
std::string copy{str_with_len_N};/1024_mean 34.9 ns 34.9 ns 4
std::string copy{str_with_len_N};/1024_median 34.5 ns 34.5 ns 4
std::string copy{str_with_len_N};/1024_stddev 2.42 ns 2.42 ns 4
std::string copy{str_with_len_N};/1024_cv 6.94 % 6.94 % 4
std::string copy{str_with_len_N};/2048_mean 81.2 ns 81.2 ns 4
std::string copy{str_with_len_N};/2048_median 76.7 ns 76.7 ns 4
std::string copy{str_with_len_N};/2048_stddev 9.70 ns 9.70 ns 4
std::string copy{str_with_len_N};/2048_cv 11.95 % 11.95 % 4
std::string copy{str_with_len_N};/4096_mean 120 ns 120 ns 4
std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 4
std::string copy{str_with_len_N};/4096_stddev 5.41 ns 5.41 ns 4
std::string copy{str_with_len_N};/4096_cv 4.52 % 4.52 % 4
stringa copy{str_with_len_N};/15_mean 1.09 ns 1.09 ns 4
stringa copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4
stringa copy{str_with_len_N};/15_stddev 0.008 ns 0.008 ns 4
stringa copy{str_with_len_N};/15_cv 0.71 % 0.71 % 4
stringa copy{str_with_len_N};/16_mean 1.10 ns 1.10 ns 4
stringa copy{str_with_len_N};/16_median 1.10 ns 1.10 ns 4
stringa copy{str_with_len_N};/16_stddev 0.007 ns 0.007 ns 4
stringa copy{str_with_len_N};/16_cv 0.65 % 0.65 % 4
stringa copy{str_with_len_N};/23_mean 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/23_median 1.10 ns 1.10 ns 4
stringa copy{str_with_len_N};/23_stddev 0.045 ns 0.045 ns 4
stringa copy{str_with_len_N};/23_cv 3.97 % 3.97 % 4
stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/24_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/24_stddev 0.187 ns 0.187 ns 4
stringa copy{str_with_len_N};/24_cv 1.16 % 1.16 % 4
stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/32_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/32_stddev 0.062 ns 0.062 ns 4
stringa copy{str_with_len_N};/32_cv 0.39 % 0.39 % 4
stringa copy{str_with_len_N};/64_mean 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/64_median 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/64_stddev 0.232 ns 0.232 ns 4
stringa copy{str_with_len_N};/64_cv 1.43 % 1.43 % 4
stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/128_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/128_stddev 0.092 ns 0.092 ns 4
stringa copy{str_with_len_N};/128_cv 0.57 % 0.57 % 4
stringa copy{str_with_len_N};/256_mean 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/256_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/256_stddev 0.032 ns 0.032 ns 4
stringa copy{str_with_len_N};/256_cv 0.20 % 0.20 % 4
stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/512_stddev 0.066 ns 0.066 ns 4
stringa copy{str_with_len_N};/512_cv 0.41 % 0.41 % 4
stringa copy{str_with_len_N};/1024_mean 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/1024_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.226 ns 0.226 ns 4
stringa copy{str_with_len_N};/1024_cv 1.40 % 1.40 % 4
stringa copy{str_with_len_N};/2048_mean 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/2048_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.216 ns 0.216 ns 4
stringa copy{str_with_len_N};/2048_cv 1.34 % 1.34 % 4
stringa copy{str_with_len_N};/4096_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/4096_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.013 ns 0.013 ns 4
stringa copy{str_with_len_N};/4096_cv 0.08 % 0.08 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.52 ns 1.52 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.52 ns 1.52 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.053 ns 0.053 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 3.52 % 3.52 % 4
lstringa<16> copy{str_with_len_N};/16_mean 4.83 ns 4.83 ns 4
lstringa<16> copy{str_with_len_N};/16_median 4.82 ns 4.82 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.097 ns 0.097 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 2.02 % 2.02 % 4
lstringa<16> copy{str_with_len_N};/23_mean 4.81 ns 4.81 ns 4
lstringa<16> copy{str_with_len_N};/23_median 4.82 ns 4.82 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.084 ns 0.084 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 1.75 % 1.75 % 4
lstringa<16> copy{str_with_len_N};/24_mean 25.0 ns 25.0 ns 4
lstringa<16> copy{str_with_len_N};/24_median 25.0 ns 25.0 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.224 ns 0.224 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 0.90 % 0.90 % 4
lstringa<16> copy{str_with_len_N};/32_mean 25.1 ns 25.1 ns 4
lstringa<16> copy{str_with_len_N};/32_median 24.9 ns 24.9 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.667 ns 0.667 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 2.66 % 2.66 % 4
lstringa<16> copy{str_with_len_N};/64_mean 27.4 ns 27.4 ns 4
lstringa<16> copy{str_with_len_N};/64_median 27.6 ns 27.6 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.726 ns 0.726 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 2.65 % 2.65 % 4
lstringa<16> copy{str_with_len_N};/128_mean 27.1 ns 27.1 ns 4
lstringa<16> copy{str_with_len_N};/128_median 27.1 ns 27.1 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 0.262 ns 0.262 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 0.97 % 0.97 % 4
lstringa<16> copy{str_with_len_N};/256_mean 28.1 ns 28.1 ns 4
lstringa<16> copy{str_with_len_N};/256_median 27.8 ns 27.8 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.652 ns 0.652 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 2.32 % 2.32 % 4
lstringa<16> copy{str_with_len_N};/512_mean 30.7 ns 30.7 ns 4
lstringa<16> copy{str_with_len_N};/512_median 30.8 ns 30.8 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 0.352 ns 0.352 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 1.15 % 1.15 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 52.9 ns 52.9 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 52.8 ns 52.8 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 0.866 ns 0.866 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 1.64 % 1.64 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 67.6 ns 67.6 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 66.7 ns 66.7 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 4.85 ns 4.85 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 7.17 % 7.17 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 87.8 ns 87.8 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 88.1 ns 88.1 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 1.92 ns 1.92 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 2.18 % 2.18 % 4
lstringa<512> copy{str_with_len_N};/15_mean 1.58 ns 1.58 ns 4
lstringa<512> copy{str_with_len_N};/15_median 1.51 ns 1.51 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.169 ns 0.169 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 10.70 % 10.70 % 4
lstringa<512> copy{str_with_len_N};/16_mean 4.90 ns 4.90 ns 4
lstringa<512> copy{str_with_len_N};/16_median 4.88 ns 4.88 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.099 ns 0.099 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 2.03 % 2.03 % 4
lstringa<512> copy{str_with_len_N};/23_mean 4.83 ns 4.83 ns 4
lstringa<512> copy{str_with_len_N};/23_median 4.84 ns 4.84 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.022 ns 0.022 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 0.45 % 0.45 % 4
lstringa<512> copy{str_with_len_N};/24_mean 4.78 ns 4.78 ns 4
lstringa<512> copy{str_with_len_N};/24_median 4.81 ns 4.81 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.301 ns 0.301 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 6.30 % 6.30 % 4
lstringa<512> copy{str_with_len_N};/32_mean 4.59 ns 4.59 ns 4
lstringa<512> copy{str_with_len_N};/32_median 4.55 ns 4.55 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.096 ns 0.096 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 2.09 % 2.09 % 4
lstringa<512> copy{str_with_len_N};/64_mean 6.15 ns 6.15 ns 4
lstringa<512> copy{str_with_len_N};/64_median 6.15 ns 6.15 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.197 ns 0.197 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 3.20 % 3.20 % 4
lstringa<512> copy{str_with_len_N};/128_mean 7.02 ns 7.02 ns 4
lstringa<512> copy{str_with_len_N};/128_median 7.05 ns 7.05 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.188 ns 0.188 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 2.68 % 2.68 % 4
lstringa<512> copy{str_with_len_N};/256_mean 8.43 ns 8.43 ns 4
lstringa<512> copy{str_with_len_N};/256_median 8.19 ns 8.19 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.790 ns 0.790 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 9.37 % 9.37 % 4
lstringa<512> copy{str_with_len_N};/512_mean 11.5 ns 11.5 ns 4
lstringa<512> copy{str_with_len_N};/512_median 11.4 ns 11.4 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.333 ns 0.333 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 2.89 % 2.89 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 57.0 ns 57.0 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 55.7 ns 55.7 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 3.83 ns 3.83 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 6.72 % 6.72 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 65.8 ns 65.8 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 65.7 ns 65.7 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 0.865 ns 0.865 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 1.31 % 1.31 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 92.2 ns 92.2 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 93.6 ns 93.6 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 4.12 ns 4.12 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 4.47 % 4.47 % 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 27.2 ns 27.2 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.1 ns 27.1 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.449 ns 0.449 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.65 % 1.65 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.5 ns 13.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.5 ns 13.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.528 ns 0.528 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.91 % 3.91 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.58 ns 9.58 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.52 ns 9.52 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.263 ns 0.263 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.75 % 2.75 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.54 ns 9.54 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.59 ns 9.59 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.236 ns 0.236 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.48 % 2.48 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.49 ns 9.49 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.31 ns 9.31 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.465 ns 0.465 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.90 % 4.90 % 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 24.8 ns 24.8 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.8 ns 24.8 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.824 ns 0.824 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.32 % 3.32 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.45 ns 9.45 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.38 ns 9.38 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.239 ns 0.239 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.53 % 2.53 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.81 ns 7.81 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.78 ns 7.78 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.330 ns 0.330 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.23 % 4.23 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.67 ns 7.67 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.78 ns 7.78 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.286 ns 0.286 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.72 % 3.72 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.71 ns 7.71 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.69 ns 7.69 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.328 ns 0.328 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.25 % 4.25 % 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 30.3 ns 30.3 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 30.1 ns 30.1 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.851 ns 0.851 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.81 % 2.81 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 11.3 ns 11.3 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 11.3 ns 11.3 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.208 ns 0.208 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.84 % 1.84 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 13.1 ns 13.1 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 13.2 ns 13.2 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.259 ns 0.259 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.97 % 1.97 % 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 65.5 ns 65.5 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 65.0 ns 65.0 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.42 ns 1.42 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.17 % 2.17 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.2 ns 24.2 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 23.9 ns 23.9 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.612 ns 0.612 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.53 % 2.53 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 26.4 ns 26.4 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 26.1 ns 26.1 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.723 ns 0.723 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.74 % 2.74 % 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 1396 ns 1396 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1384 ns 1384 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 37.7 ns 37.7 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.70 % 2.70 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 375 ns 375 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 375 ns 375 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 2.98 ns 2.98 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 0.79 % 0.79 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 369 ns 369 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 368 ns 368 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 7.58 ns 7.58 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.06 % 2.06 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 233 ns 233 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 227 ns 227 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.6 ns 14.6 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 6.29 % 6.29 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 238 ns 238 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 232 ns 232 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.08 % 6.08 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 163 ns 163 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 163 ns 163 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 3.37 ns 3.37 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.06 % 2.06 % 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 1370 ns 1370 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1365 ns 1365 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.06 % 1.06 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1302 ns 1302 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1290 ns 1290 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 50.8 ns 50.8 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.90 % 3.90 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 415 ns 415 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 411 ns 411 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.4 ns 17.4 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.19 % 4.19 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 339 ns 339 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 337 ns 337 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.9 ns 13.9 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.11 % 4.11 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 265 ns 265 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 262 ns 262 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.11 ns 8.11 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.06 % 3.06 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 205 ns 205 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 203 ns 203 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.77 ns 8.77 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.28 % 4.28 % 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 123086 ns 123086 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 121925 ns 121925 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4582 ns 4582 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.72 % 3.72 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73997 ns 73997 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 74090 ns 74090 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3231 ns 3231 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.37 % 4.37 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 46351 ns 46351 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 45726 ns 45726 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3473 ns 3473 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.49 % 7.49 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 27970 ns 27970 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 27572 ns 27572 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1937 ns 1937 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.92 % 6.92 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19316 ns 19316 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19419 ns 19419 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3163 ns 3163 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 16.37 % 16.37 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15641 ns 15641 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15531 ns 15531 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 399 ns 399 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.55 % 2.55 % 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 1388 ns 1388 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 1395 ns 1395 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 43.1 ns 43.1 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 3.11 % 3.11 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1441 ns 1441 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1446 ns 1446 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 39.6 ns 39.6 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 2.75 % 2.75 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 500 ns 500 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 502 ns 502 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 17.1 ns 17.1 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.42 % 3.42 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 401 ns 401 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 398 ns 398 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 15.8 ns 15.8 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.93 % 3.93 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 370 ns 370 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 365 ns 365 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.1 ns 11.1 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.01 % 3.01 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 302 ns 302 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 295 ns 295 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 18.1 ns 18.1 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 6.00 % 6.00 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3023 ns 3023 ns 4
std::stringstream str; str << "test = " << k << " times";_median 2970 ns 2970 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 134 ns 134 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 4.44 % 4.44 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 443 ns 443 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 437 ns 437 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 15.0 ns 15.0 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 3.39 % 3.39 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1337 ns 1337 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1329 ns 1329 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 17.5 ns 17.5 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.31 % 1.31 % 4
std::string str = std::format("test = {} times", k);_mean 1174 ns 1174 ns 4
std::string str = std::format("test = {} times", k);_median 1122 ns 1122 ns 4
std::string str = std::format("test = {} times", k);_stddev 127 ns 127 ns 4
std::string str = std::format("test = {} times", k);_cv 10.83 % 10.84 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 1348 ns 1348 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1347 ns 1347 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 17.7 ns 17.7 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 1.31 % 1.31 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 984 ns 984 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 982 ns 982 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 21.0 ns 21.0 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 2.14 % 2.14 % 4
lstringa<8> str = "test = " + k + " times";_mean 286 ns 286 ns 4
lstringa<8> str = "test = " + k + " times";_median 281 ns 281 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 11.9 ns 11.9 ns 4
lstringa<8> str = "test = " + k + " times";_cv 4.16 % 4.16 % 4
lstringa<32> str = "test = " + k + " times";_mean 129 ns 129 ns 4
lstringa<32> str = "test = " + k + " times";_median 129 ns 129 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 3.83 ns 3.83 ns 4
lstringa<32> str = "test = " + k + " times";_cv 2.97 % 2.97 % 4
stringa str = "test = " + k + " times";_mean 133 ns 133 ns 4
stringa str = "test = " + k + " times";_median 134 ns 134 ns 4
stringa str = "test = " + k + " times";_stddev 7.19 ns 7.19 ns 4
stringa str = "test = " + k + " times";_cv 5.41 % 5.41 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 259 ns 259 ns 4
std::string::find + substr + std::strtol_median 258 ns 258 ns 4
std::string::find + substr + std::strtol_stddev 4.42 ns 4.42 ns 4
std::string::find + substr + std::strtol_cv 1.70 % 1.70 % 4
ssa::splitter + ssa::as_int_mean 157 ns 157 ns 4
ssa::splitter + ssa::as_int_median 158 ns 158 ns 4
ssa::splitter + ssa::as_int_stddev 5.14 ns 5.14 ns 4
ssa::splitter + ssa::as_int_cv 3.27 % 3.27 % 4
ssa::splitf + functor_mean 210 ns 210 ns 4
ssa::splitf + functor_median 210 ns 210 ns 4
ssa::splitf + functor_stddev 2.75 ns 2.75 ns 4
ssa::splitf + functor_cv 1.31 % 1.31 % 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 881 ns 881 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 888 ns 888 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 55.0 ns 55.0 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 6.24 % 6.24 % 4
replace symbols with std::string find_first_of + replace_mean 2480 ns 2480 ns 4
replace symbols with std::string find_first_of + replace_median 2434 ns 2434 ns 4
replace symbols with std::string find_first_of + replace_stddev 110 ns 110 ns 4
replace symbols with std::string find_first_of + replace_cv 4.43 % 4.43 % 4
replace symbols with std::string_view find_first_of + copy_mean 1093 ns 1093 ns 4
replace symbols with std::string_view find_first_of + copy_median 1085 ns 1085 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 48.4 ns 48.4 ns 4
replace symbols with std::string_view find_first_of + copy_cv 4.42 % 4.42 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1265 ns 1265 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1260 ns 1260 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 12.5 ns 12.5 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 0.99 % 0.99 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1114 ns 1114 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1091 ns 1091 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 52.6 ns 52.6 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 4.72 % 4.72 % 4
replace const symbols with string expressions and without remembering all search results_mean 1098 ns 1098 ns 4
replace const symbols with string expressions and without remembering all search results_median 1098 ns 1098 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 14.2 ns 14.2 ns 4
replace const symbols with string expressions and without remembering all search results_cv 1.29 % 1.29 % 4
replace const symbols with string expressions and memorization of all search results_mean 837 ns 837 ns 4
replace const symbols with string expressions and memorization of all search results_median 840 ns 840 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 21.4 ns 21.4 ns 4
replace const symbols with string expressions and memorization of all search results_cv 2.56 % 2.56 % 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 162 ns 162 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 160 ns 160 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 7.14 ns 7.14 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.41 % 4.41 % 4
Short replace symbols with std::string find_first_of + replace_mean 321 ns 321 ns 4
Short replace symbols with std::string find_first_of + replace_median 320 ns 320 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 3.17 ns 3.17 ns 4
Short replace symbols with std::string find_first_of + replace_cv 0.99 % 0.99 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 159 ns 159 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 159 ns 159 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 2.16 ns 2.16 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 1.36 % 1.36 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 181 ns 181 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 181 ns 181 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.62 ns 4.62 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.56 % 2.56 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 293 ns 293 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 289 ns 289 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 11.2 ns 11.2 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 3.83 % 3.83 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 130 ns 130 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 130 ns 130 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 3.15 ns 3.15 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 2.42 % 2.42 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 139 ns 139 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 139 ns 139 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 1.23 ns 1.23 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 0.88 % 0.88 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 153 ns 153 ns 4
replace bb to ---- in std::string|64_median 153 ns 153 ns 4
replace bb to ---- in std::string|64_stddev 1.39 ns 1.39 ns 4
replace bb to ---- in std::string|64_cv 0.91 % 0.91 % 4
replace bb to ---- in std::string|256_mean 553 ns 553 ns 4
replace bb to ---- in std::string|256_median 553 ns 553 ns 4
replace bb to ---- in std::string|256_stddev 4.38 ns 4.38 ns 4
replace bb to ---- in std::string|256_cv 0.79 % 0.79 % 4
replace bb to ---- in std::string|512_mean 1093 ns 1093 ns 4
replace bb to ---- in std::string|512_median 1092 ns 1092 ns 4
replace bb to ---- in std::string|512_stddev 37.2 ns 37.2 ns 4
replace bb to ---- in std::string|512_cv 3.40 % 3.40 % 4
replace bb to ---- in std::string|1024_mean 2427 ns 2427 ns 4
replace bb to ---- in std::string|1024_median 2419 ns 2419 ns 4
replace bb to ---- in std::string|1024_stddev 161 ns 161 ns 4
replace bb to ---- in std::string|1024_cv 6.64 % 6.64 % 4
replace bb to ---- in std::string|2048_mean 5988 ns 5988 ns 4
replace bb to ---- in std::string|2048_median 6061 ns 6061 ns 4
replace bb to ---- in std::string|2048_stddev 314 ns 314 ns 4
replace bb to ---- in std::string|2048_cv 5.24 % 5.24 % 4
replace bb to ---- in lstringa<8>|64_mean 129 ns 129 ns 4
replace bb to ---- in lstringa<8>|64_median 130 ns 130 ns 4
replace bb to ---- in lstringa<8>|64_stddev 4.86 ns 4.86 ns 4
replace bb to ---- in lstringa<8>|64_cv 3.76 % 3.76 % 4
replace bb to ---- in lstringa<8>|256_mean 433 ns 433 ns 4
replace bb to ---- in lstringa<8>|256_median 423 ns 423 ns 4
replace bb to ---- in lstringa<8>|256_stddev 20.6 ns 20.6 ns 4
replace bb to ---- in lstringa<8>|256_cv 4.75 % 4.75 % 4
replace bb to ---- in lstringa<8>|512_mean 786 ns 786 ns 4
replace bb to ---- in lstringa<8>|512_median 786 ns 786 ns 4
replace bb to ---- in lstringa<8>|512_stddev 4.40 ns 4.40 ns 4
replace bb to ---- in lstringa<8>|512_cv 0.56 % 0.56 % 4
replace bb to ---- in lstringa<8>|1024_mean 1611 ns 1611 ns 4
replace bb to ---- in lstringa<8>|1024_median 1566 ns 1566 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 110 ns 110 ns 4
replace bb to ---- in lstringa<8>|1024_cv 6.83 % 6.84 % 4
replace bb to ---- in lstringa<8>|2048_mean 3063 ns 3063 ns 4
replace bb to ---- in lstringa<8>|2048_median 3044 ns 3044 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 50.7 ns 50.7 ns 4
replace bb to ---- in lstringa<8>|2048_cv 1.65 % 1.65 % 4
replace bb to ---- by init stringa|64_mean 91.6 ns 91.6 ns 4
replace bb to ---- by init stringa|64_median 90.3 ns 90.3 ns 4
replace bb to ---- by init stringa|64_stddev 3.02 ns 3.02 ns 4
replace bb to ---- by init stringa|64_cv 3.29 % 3.29 % 4
replace bb to ---- by init stringa|256_mean 309 ns 309 ns 4
replace bb to ---- by init stringa|256_median 308 ns 308 ns 4
replace bb to ---- by init stringa|256_stddev 4.47 ns 4.46 ns 4
replace bb to ---- by init stringa|256_cv 1.45 % 1.45 % 4
replace bb to ---- by init stringa|512_mean 700 ns 700 ns 4
replace bb to ---- by init stringa|512_median 699 ns 699 ns 4
replace bb to ---- by init stringa|512_stddev 8.78 ns 8.78 ns 4
replace bb to ---- by init stringa|512_cv 1.25 % 1.25 % 4
replace bb to ---- by init stringa|1024_mean 1592 ns 1592 ns 4
replace bb to ---- by init stringa|1024_median 1578 ns 1578 ns 4
replace bb to ---- by init stringa|1024_stddev 64.9 ns 64.9 ns 4
replace bb to ---- by init stringa|1024_cv 4.07 % 4.07 % 4
replace bb to ---- by init stringa|2048_mean 3230 ns 3230 ns 4
replace bb to ---- by init stringa|2048_median 3224 ns 3224 ns 4
replace bb to ---- by init stringa|2048_stddev 85.7 ns 85.7 ns 4
replace bb to ---- by init stringa|2048_cv 2.65 % 2.65 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 107 ns 107 ns 4
replace bb to -- in std::string|64_median 107 ns 107 ns 4
replace bb to -- in std::string|64_stddev 1.62 ns 1.62 ns 4
replace bb to -- in std::string|64_cv 1.51 % 1.51 % 4
replace bb to -- in std::string|256_mean 376 ns 376 ns 4
replace bb to -- in std::string|256_median 373 ns 373 ns 4
replace bb to -- in std::string|256_stddev 5.84 ns 5.84 ns 4
replace bb to -- in std::string|256_cv 1.56 % 1.56 % 4
replace bb to -- in std::string|512_mean 745 ns 745 ns 4
replace bb to -- in std::string|512_median 748 ns 748 ns 4
replace bb to -- in std::string|512_stddev 28.9 ns 28.9 ns 4
replace bb to -- in std::string|512_cv 3.88 % 3.88 % 4
replace bb to -- in std::string|1024_mean 1481 ns 1481 ns 4
replace bb to -- in std::string|1024_median 1458 ns 1458 ns 4
replace bb to -- in std::string|1024_stddev 84.5 ns 84.5 ns 4
replace bb to -- in std::string|1024_cv 5.71 % 5.71 % 4
replace bb to -- in std::string|2048_mean 2855 ns 2855 ns 4
replace bb to -- in std::string|2048_median 2832 ns 2832 ns 4
replace bb to -- in std::string|2048_stddev 60.9 ns 60.9 ns 4
replace bb to -- in std::string|2048_cv 2.13 % 2.13 % 4
replace bb to -- in lstringa<8>|64_mean 94.5 ns 94.5 ns 4
replace bb to -- in lstringa<8>|64_median 93.6 ns 93.6 ns 4
replace bb to -- in lstringa<8>|64_stddev 2.81 ns 2.81 ns 4
replace bb to -- in lstringa<8>|64_cv 2.97 % 2.97 % 4
replace bb to -- in lstringa<8>|256_mean 290 ns 290 ns 4
replace bb to -- in lstringa<8>|256_median 288 ns 288 ns 4
replace bb to -- in lstringa<8>|256_stddev 6.24 ns 6.24 ns 4
replace bb to -- in lstringa<8>|256_cv 2.15 % 2.15 % 4
replace bb to -- in lstringa<8>|512_mean 554 ns 554 ns 4
replace bb to -- in lstringa<8>|512_median 544 ns 544 ns 4
replace bb to -- in lstringa<8>|512_stddev 26.7 ns 26.7 ns 4
replace bb to -- in lstringa<8>|512_cv 4.81 % 4.81 % 4
replace bb to -- in lstringa<8>|1024_mean 1047 ns 1047 ns 4
replace bb to -- in lstringa<8>|1024_median 1045 ns 1045 ns 4
replace bb to -- in lstringa<8>|1024_stddev 11.3 ns 11.3 ns 4
replace bb to -- in lstringa<8>|1024_cv 1.08 % 1.08 % 4
replace bb to -- in lstringa<8>|2048_mean 2056 ns 2056 ns 4
replace bb to -- in lstringa<8>|2048_median 2069 ns 2069 ns 4
replace bb to -- in lstringa<8>|2048_stddev 61.2 ns 61.2 ns 4
replace bb to -- in lstringa<8>|2048_cv 2.98 % 2.98 % 4
replace bb to -- by init stringa|64_mean 76.9 ns 76.9 ns 4
replace bb to -- by init stringa|64_median 76.2 ns 76.2 ns 4
replace bb to -- by init stringa|64_stddev 3.78 ns 3.78 ns 4
replace bb to -- by init stringa|64_cv 4.92 % 4.92 % 4
replace bb to -- by init stringa|256_mean 238 ns 238 ns 4
replace bb to -- by init stringa|256_median 238 ns 238 ns 4
replace bb to -- by init stringa|256_stddev 4.83 ns 4.83 ns 4
replace bb to -- by init stringa|256_cv 2.03 % 2.03 % 4
replace bb to -- by init stringa|512_mean 428 ns 428 ns 4
replace bb to -- by init stringa|512_median 426 ns 426 ns 4
replace bb to -- by init stringa|512_stddev 8.94 ns 8.94 ns 4
replace bb to -- by init stringa|512_cv 2.09 % 2.09 % 4
replace bb to -- by init stringa|1024_mean 858 ns 858 ns 4
replace bb to -- by init stringa|1024_median 861 ns 861 ns 4
replace bb to -- by init stringa|1024_stddev 22.4 ns 22.4 ns 4
replace bb to -- by init stringa|1024_cv 2.61 % 2.61 % 4
replace bb to -- by init stringa|2048_mean 1634 ns 1635 ns 4
replace bb to -- by init stringa|2048_median 1627 ns 1627 ns 4
replace bb to -- by init stringa|2048_stddev 36.2 ns 36.2 ns 4
replace bb to -- by init stringa|2048_cv 2.22 % 2.22 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3603351 ns 3603366 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3610108 ns 3610124 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 22831 ns 22833 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 0.63 % 0.63 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3597828 ns 3597841 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3542774 ns 3542788 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 239979 ns 239977 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 6.67 % 6.67 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3647053 ns 3647047 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3660410 ns 3660384 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 41508 ns 41506 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 1.14 % 1.14 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4111005 ns 4111018 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4142060 ns 4142073 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 92244 ns 92245 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.24 % 2.24 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 674 ns 674 ns 4
Build func full name std::string;_median 674 ns 674 ns 4
Build func full name std::string;_stddev 10.2 ns 10.2 ns 4
Build func full name std::string;_cv 1.51 % 1.51 % 4
Build func full name std::string 1;_mean 795 ns 795 ns 4
Build func full name std::string 1;_median 795 ns 795 ns 4
Build func full name std::string 1;_stddev 40.7 ns 40.7 ns 4
Build func full name std::string 1;_cv 5.12 % 5.12 % 4
Build func full name std::stream;_mean 2574 ns 2574 ns 4
Build func full name std::stream;_median 2553 ns 2553 ns 4
Build func full name std::stream;_stddev 47.4 ns 47.4 ns 4
Build func full name std::stream;_cv 1.84 % 1.84 % 4
Build func full name stringa;_mean 485 ns 485 ns 4
Build func full name stringa;_median 477 ns 477 ns 4
Build func full name stringa;_stddev 21.3 ns 21.3 ns 4
Build func full name stringa;_cv 4.40 % 4.40 % 4
Build func full name stringa 1;_mean 608 ns 608 ns 4
Build func full name stringa 1;_median 610 ns 610 ns 4
Build func full name stringa 1;_stddev 9.58 ns 9.58 ns 4
Build func full name stringa 1;_cv 1.58 % 1.58 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 151 ns 151 ns 4
To upper case std::wstring_median 151 ns 151 ns 4
To upper case std::wstring_stddev 1.97 ns 1.97 ns 4
To upper case std::wstring_cv 1.30 % 1.30 % 4
To upper case lstringw<15>_mean 42.7 ns 42.7 ns 4
To upper case lstringw<15>_median 42.7 ns 42.7 ns 4
To upper case lstringw<15>_stddev 0.306 ns 0.306 ns 4
To upper case lstringw<15>_cv 0.72 % 0.72 % 4