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

986 lines
146 KiB
Plaintext

Benchmarks of simstr, version 1.7.1
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
2026-02-21T16:18:50+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 176 ns 176 ns 4
Concat email std::format_median 176 ns 176 ns 4
Concat email std::format_stddev 3.68 ns 3.68 ns 4
Concat email std::format_cv 2.09 % 2.09 % 4
Concat email std::stringstream_mean 332 ns 332 ns 4
Concat email std::stringstream_median 333 ns 333 ns 4
Concat email std::stringstream_stddev 6.22 ns 6.22 ns 4
Concat email std::stringstream_cv 1.87 % 1.87 % 4
Concat email stringzilla append_mean 115 ns 115 ns 4
Concat email stringzilla append_median 115 ns 115 ns 4
Concat email stringzilla append_stddev 3.89 ns 3.89 ns 4
Concat email stringzilla append_cv 3.38 % 3.38 % 4
Concat email stringzilla concat_mean 46.6 ns 46.6 ns 4
Concat email stringzilla concat_median 46.7 ns 46.7 ns 4
Concat email stringzilla concat_stddev 1.60 ns 1.60 ns 4
Concat email stringzilla concat_cv 3.45 % 3.45 % 4
Concat email std::string append_mean 99.0 ns 99.0 ns 4
Concat email std::string append_median 98.9 ns 98.9 ns 4
Concat email std::string append_stddev 1.47 ns 1.47 ns 4
Concat email std::string append_cv 1.49 % 1.49 % 4
Concat email std::string by strexpr_mean 35.6 ns 35.6 ns 4
Concat email std::string by strexpr_median 35.4 ns 35.4 ns 4
Concat email std::string by strexpr_stddev 0.660 ns 0.660 ns 4
Concat email std::string by strexpr_cv 1.86 % 1.86 % 4
Concat email stringa_mean 40.5 ns 40.5 ns 4
Concat email stringa_median 40.5 ns 40.5 ns 4
Concat email stringa_stddev 0.182 ns 0.182 ns 4
Concat email stringa_cv 0.45 % 0.45 % 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 209 ns 209 ns 4
Concat std::string and number by std to std::string_median 210 ns 210 ns 4
Concat std::string and number by std to std::string_stddev 2.54 ns 2.54 ns 4
Concat std::string and number by std to std::string_cv 1.22 % 1.22 % 4
Concat std::string and number by StrExpr to std::string_mean 98.1 ns 98.1 ns 4
Concat std::string and number by StrExpr to std::string_median 97.5 ns 97.5 ns 4
Concat std::string and number by StrExpr to std::string_stddev 2.89 ns 2.89 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.94 % 2.94 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 73.0 ns 73.0 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 73.2 ns 73.2 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.860 ns 0.860 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 1.18 % 1.18 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 79.7 ns 79.7 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 79.6 ns 79.6 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 0.921 ns 0.921 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 1.16 % 1.16 % 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 746 ns 746 ns 4
Concat std::string and format hex number and literal to std::string_median 742 ns 742 ns 4
Concat std::string and format hex number and literal to std::string_stddev 6.63 ns 6.63 ns 4
Concat std::string and format hex number and literal to std::string_cv 0.89 % 0.89 % 4
std::format std::string and hex number by literal to std::string_mean 970 ns 970 ns 4
std::format std::string and hex number by literal to std::string_median 966 ns 966 ns 4
std::format std::string and hex number by literal to std::string_stddev 25.4 ns 25.4 ns 4
std::format std::string and hex number by literal to std::string_cv 2.62 % 2.62 % 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 253 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 7.07 ns 7.07 ns 4
Concat std::string and std::to_chars and string to std::string_cv 2.79 % 2.79 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 126 ns 126 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 126 ns 126 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.91 ns 1.91 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.52 % 1.52 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 120 ns 120 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 120 ns 120 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.463 ns 0.462 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.38 % 0.38 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 128 ns 128 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 128 ns 128 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.82 ns 1.82 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.42 % 1.42 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 169 ns 169 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 168 ns 168 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.56 ns 1.56 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.93 % 0.93 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 292 ns 292 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 292 ns 292 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.72 ns 5.72 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.96 % 1.96 % 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 261 ns 261 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 259 ns 259 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 6.00 ns 6.00 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.30 % 2.30 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 320 ns 320 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 322 ns 322 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 5.85 ns 5.85 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.83 % 1.83 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 614 ns 614 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 614 ns 614 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 3.62 ns 3.63 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 0.59 % 0.59 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 745 ns 745 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 747 ns 747 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 24.0 ns 24.0 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.23 % 3.23 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 847 ns 847 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 852 ns 852 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 19.9 ns 19.9 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.34 % 2.34 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1276 ns 1276 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1284 ns 1284 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 20.2 ns 20.2 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.58 % 1.58 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1145 ns 1145 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1132 ns 1132 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 43.2 ns 43.2 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 3.77 % 3.77 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2189 ns 2189 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2196 ns 2196 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 66.7 ns 66.7 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.05 % 3.05 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 49.4 ns 49.4 ns 4
Concat std::string by std to std::string_median 49.1 ns 49.1 ns 4
Concat std::string by std to std::string_stddev 0.855 ns 0.855 ns 4
Concat std::string by std to std::string_cv 1.73 % 1.73 % 4
Concat std::string by StrExpr to std::string_mean 31.8 ns 31.8 ns 4
Concat std::string by StrExpr to std::string_median 31.8 ns 31.8 ns 4
Concat std::string by StrExpr to std::string_stddev 0.814 ns 0.814 ns 4
Concat std::string by StrExpr to std::string_cv 2.56 % 2.56 % 4
Concat stringa by StrExpr to stringa_mean 27.9 ns 27.9 ns 4
Concat stringa by StrExpr to stringa_median 28.1 ns 28.1 ns 4
Concat stringa by StrExpr to stringa_stddev 0.888 ns 0.888 ns 4
Concat stringa by StrExpr to stringa_cv 3.18 % 3.18 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 140 ns 140 ns 4
Find concat three std::string_median 141 ns 141 ns 4
Find concat three std::string_stddev 1.85 ns 1.85 ns 4
Find concat three std::string_cv 1.33 % 1.33 % 4
Find concat three strexpr_mean 38.1 ns 38.1 ns 4
Find concat three strexpr_median 37.8 ns 37.8 ns 4
Find concat three strexpr_stddev 0.847 ns 0.847 ns 4
Find concat three strexpr_cv 2.22 % 2.22 % 4
Find concat three simstr_mean 16.1 ns 16.1 ns 4
Find concat three simstr_median 16.2 ns 16.2 ns 4
Find concat three simstr_stddev 0.471 ns 0.471 ns 4
Find concat three simstr_cv 2.91 % 2.91 % 4
Find concat three stringzilla string_mean 130 ns 130 ns 4
Find concat three stringzilla string_median 130 ns 130 ns 4
Find concat three stringzilla string_stddev 1.34 ns 1.34 ns 4
Find concat three stringzilla string_cv 1.03 % 1.03 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 10.0 ns 10.0 ns 4
BuildTypeNameStr 0/0_median 10.0 ns 10.0 ns 4
BuildTypeNameStr 0/0_stddev 0.211 ns 0.211 ns 4
BuildTypeNameStr 0/0_cv 2.10 % 2.10 % 4
BuildTypeNameExp 0/0_mean 8.41 ns 8.41 ns 4
BuildTypeNameExp 0/0_median 8.37 ns 8.37 ns 4
BuildTypeNameExp 0/0_stddev 0.265 ns 0.265 ns 4
BuildTypeNameExp 0/0_cv 3.16 % 3.16 % 4
BuildTypeNameSim 0/0_mean 5.95 ns 5.95 ns 4
BuildTypeNameSim 0/0_median 5.87 ns 5.87 ns 4
BuildTypeNameSim 0/0_stddev 0.792 ns 0.792 ns 4
BuildTypeNameSim 0/0_cv 13.31 % 13.31 % 4
BuildTypeNameStr 10/10_mean 79.6 ns 79.6 ns 4
BuildTypeNameStr 10/10_median 79.5 ns 79.5 ns 4
BuildTypeNameStr 10/10_stddev 1.83 ns 1.83 ns 4
BuildTypeNameStr 10/10_cv 2.30 % 2.30 % 4
BuildTypeNameExp 10/10_mean 26.7 ns 26.7 ns 4
BuildTypeNameExp 10/10_median 26.5 ns 26.5 ns 4
BuildTypeNameExp 10/10_stddev 0.357 ns 0.357 ns 4
BuildTypeNameExp 10/10_cv 1.34 % 1.34 % 4
BuildTypeNameSim 10/10_mean 23.7 ns 23.7 ns 4
BuildTypeNameSim 10/10_median 23.7 ns 23.7 ns 4
BuildTypeNameSim 10/10_stddev 0.500 ns 0.500 ns 4
BuildTypeNameSim 10/10_cv 2.11 % 2.11 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 233 ns 233 ns 4
Concat with replace str_median 233 ns 233 ns 4
Concat with replace str_stddev 4.82 ns 4.82 ns 4
Concat with replace str_cv 2.06 % 2.06 % 4
Concat with replace exp_mean 136 ns 136 ns 4
Concat with replace exp_median 136 ns 136 ns 4
Concat with replace exp_stddev 2.83 ns 2.83 ns 4
Concat with replace exp_cv 2.07 % 2.07 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.10 ns 1.10 ns 4
std::string e;_median 1.11 ns 1.11 ns 4
std::string e;_stddev 0.019 ns 0.019 ns 4
std::string e;_cv 1.74 % 1.74 % 4
std::string_view e;_mean 0.743 ns 0.743 ns 4
std::string_view e;_median 0.742 ns 0.742 ns 4
std::string_view e;_stddev 0.014 ns 0.014 ns 4
std::string_view e;_cv 1.94 % 1.94 % 4
ssa e;_mean 0.185 ns 0.185 ns 4
ssa e;_median 0.185 ns 0.185 ns 4
ssa e;_stddev 0.000 ns 0.000 ns 4
ssa e;_cv 0.26 % 0.26 % 4
stringa e;_mean 0.743 ns 0.743 ns 4
stringa e;_median 0.744 ns 0.744 ns 4
stringa e;_stddev 0.010 ns 0.010 ns 4
stringa e;_cv 1.30 % 1.30 % 4
lstringa<20> e;_mean 1.11 ns 1.11 ns 4
lstringa<20> e;_median 1.10 ns 1.10 ns 4
lstringa<20> e;_stddev 0.024 ns 0.024 ns 4
lstringa<20> e;_cv 2.21 % 2.21 % 4
lstringa<40> e;_mean 1.12 ns 1.12 ns 4
lstringa<40> e;_median 1.12 ns 1.12 ns 4
lstringa<40> e;_stddev 0.029 ns 0.029 ns 4
lstringa<40> e;_cv 2.59 % 2.59 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.87 ns 1.87 ns 4
std::string e = "Test text";_median 1.87 ns 1.87 ns 4
std::string e = "Test text";_stddev 0.023 ns 0.023 ns 4
std::string e = "Test text";_cv 1.21 % 1.21 % 4
std::string_view e = "Test text";_mean 0.758 ns 0.758 ns 4
std::string_view e = "Test text";_median 0.755 ns 0.755 ns 4
std::string_view e = "Test text";_stddev 0.016 ns 0.016 ns 4
std::string_view e = "Test text";_cv 2.06 % 2.06 % 4
ssa e = "Test text";_mean 0.742 ns 0.742 ns 4
ssa e = "Test text";_median 0.744 ns 0.744 ns 4
ssa e = "Test text";_stddev 0.007 ns 0.007 ns 4
ssa e = "Test text";_cv 0.92 % 0.92 % 4
stringa e = "Test text";_mean 1.13 ns 1.13 ns 4
stringa e = "Test text";_median 1.13 ns 1.13 ns 4
stringa e = "Test text";_stddev 0.017 ns 0.017 ns 4
stringa e = "Test text";_cv 1.51 % 1.51 % 4
lstringa<20> e = "Test text";_mean 1.86 ns 1.86 ns 4
lstringa<20> e = "Test text";_median 1.87 ns 1.87 ns 4
lstringa<20> e = "Test text";_stddev 0.013 ns 0.013 ns 4
lstringa<20> e = "Test text";_cv 0.69 % 0.69 % 4
lstringa<40> e = "Test text";_mean 1.87 ns 1.87 ns 4
lstringa<40> e = "Test text";_median 1.84 ns 1.84 ns 4
lstringa<40> e = "Test text";_stddev 0.066 ns 0.066 ns 4
lstringa<40> e = "Test text";_cv 3.53 % 3.53 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 20.8 ns 20.8 ns 4
std::string e = "123456789012345678901234567890";_median 20.7 ns 20.7 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.409 ns 0.409 ns 4
std::string e = "123456789012345678901234567890";_cv 1.97 % 1.97 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.733 ns 0.733 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.732 ns 0.732 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.008 ns 0.008 ns 4
std::string_view e = "123456789012345678901234567890";_cv 1.09 % 1.09 % 4
ssa e = "123456789012345678901234567890";_mean 0.748 ns 0.748 ns 4
ssa e = "123456789012345678901234567890";_median 0.747 ns 0.747 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.004 ns 0.004 ns 4
ssa e = "123456789012345678901234567890";_cv 0.59 % 0.59 % 4
stringa e = "123456789012345678901234567890";_mean 1.13 ns 1.13 ns 4
stringa e = "123456789012345678901234567890";_median 1.13 ns 1.13 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4
stringa e = "123456789012345678901234567890";_cv 0.58 % 0.58 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 20.3 ns 20.3 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.286 ns 0.286 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 1.41 % 1.41 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 1.86 ns 1.86 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 1.86 ns 1.86 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.037 ns 0.037 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 1.98 % 1.98 % 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 4.89 ns 4.89 ns 4
std::string e = "Test text"; auto c{e};_median 4.91 ns 4.91 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.098 ns 0.098 ns 4
std::string e = "Test text"; auto c{e};_cv 2.01 % 2.01 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.382 ns 0.382 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.384 ns 0.384 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4
std::string_view e = "Test text"; auto c{e};_cv 1.01 % 1.01 % 4
ssa e = "Test text"; auto c{e};_mean 0.382 ns 0.382 ns 4
ssa e = "Test text"; auto c{e};_median 0.385 ns 0.385 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.009 ns 0.009 ns 4
ssa e = "Test text"; auto c{e};_cv 2.48 % 2.48 % 4
stringa e = "Test text"; auto c{e};_mean 1.31 ns 1.31 ns 4
stringa e = "Test text"; auto c{e};_median 1.31 ns 1.31 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.035 ns 0.035 ns 4
stringa e = "Test text"; auto c{e};_cv 2.65 % 2.65 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.14 ns 1.14 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 1.24 % 1.24 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.024 ns 0.024 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 2.14 % 2.14 % 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 24.5 ns 24.5 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 24.5 ns 24.5 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.212 ns 0.212 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 0.87 % 0.87 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.748 ns 0.748 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.006 ns 0.006 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.81 % 0.81 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.745 ns 0.745 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.011 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.52 % 1.52 % 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.030 ns 0.030 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.69 % 2.69 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.2 ns 21.2 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.2 ns 21.2 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.254 ns 0.254 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.20 % 1.20 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.20 ns 4.20 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.22 ns 4.22 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.069 ns 0.069 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.63 % 1.63 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 92.9 ns 92.9 ns 4
sz::string::find;_median 92.7 ns 92.7 ns 4
sz::string::find;_stddev 1.18 ns 1.18 ns 4
sz::string::find;_cv 1.27 % 1.27 % 4
std::string::find;_mean 6.97 ns 6.97 ns 4
std::string::find;_median 7.02 ns 7.02 ns 4
std::string::find;_stddev 0.138 ns 0.138 ns 4
std::string::find;_cv 1.97 % 1.97 % 4
std::string_view::find;_mean 7.27 ns 7.27 ns 4
std::string_view::find;_median 7.35 ns 7.35 ns 4
std::string_view::find;_stddev 0.219 ns 0.219 ns 4
std::string_view::find;_cv 3.00 % 3.00 % 4
ssa::find;_mean 6.74 ns 6.74 ns 4
ssa::find;_median 6.76 ns 6.76 ns 4
ssa::find;_stddev 0.089 ns 0.089 ns 4
ssa::find;_cv 1.33 % 1.33 % 4
stringa::find;_mean 6.85 ns 6.85 ns 4
stringa::find;_median 6.87 ns 6.87 ns 4
stringa::find;_stddev 0.165 ns 0.165 ns 4
stringa::find;_cv 2.41 % 2.41 % 4
lstringa<20>::find;_mean 6.45 ns 6.45 ns 4
lstringa<20>::find;_median 6.44 ns 6.44 ns 4
lstringa<20>::find;_stddev 0.175 ns 0.175 ns 4
lstringa<20>::find;_cv 2.71 % 2.71 % 4
lstringa<40>::find;_mean 6.42 ns 6.42 ns 4
lstringa<40>::find;_median 6.42 ns 6.42 ns 4
lstringa<40>::find;_stddev 0.034 ns 0.034 ns 4
lstringa<40>::find;_cv 0.52 % 0.52 % 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 8.62 ns 8.62 ns 4
std::string copy{str_with_len_N};/15_median 8.66 ns 8.66 ns 4
std::string copy{str_with_len_N};/15_stddev 0.207 ns 0.207 ns 4
std::string copy{str_with_len_N};/15_cv 2.40 % 2.40 % 4
std::string copy{str_with_len_N};/16_mean 28.1 ns 28.1 ns 4
std::string copy{str_with_len_N};/16_median 28.1 ns 28.1 ns 4
std::string copy{str_with_len_N};/16_stddev 0.675 ns 0.675 ns 4
std::string copy{str_with_len_N};/16_cv 2.40 % 2.40 % 4
std::string copy{str_with_len_N};/23_mean 27.6 ns 27.6 ns 4
std::string copy{str_with_len_N};/23_median 27.8 ns 27.8 ns 4
std::string copy{str_with_len_N};/23_stddev 0.437 ns 0.437 ns 4
std::string copy{str_with_len_N};/23_cv 1.58 % 1.58 % 4
std::string copy{str_with_len_N};/24_mean 27.9 ns 27.9 ns 4
std::string copy{str_with_len_N};/24_median 27.8 ns 27.8 ns 4
std::string copy{str_with_len_N};/24_stddev 0.444 ns 0.444 ns 4
std::string copy{str_with_len_N};/24_cv 1.59 % 1.59 % 4
std::string copy{str_with_len_N};/32_mean 27.6 ns 27.6 ns 4
std::string copy{str_with_len_N};/32_median 27.5 ns 27.5 ns 4
std::string copy{str_with_len_N};/32_stddev 0.570 ns 0.570 ns 4
std::string copy{str_with_len_N};/32_cv 2.07 % 2.07 % 4
std::string copy{str_with_len_N};/64_mean 26.4 ns 26.4 ns 4
std::string copy{str_with_len_N};/64_median 26.2 ns 26.2 ns 4
std::string copy{str_with_len_N};/64_stddev 0.583 ns 0.583 ns 4
std::string copy{str_with_len_N};/64_cv 2.21 % 2.21 % 4
std::string copy{str_with_len_N};/128_mean 28.2 ns 28.2 ns 4
std::string copy{str_with_len_N};/128_median 28.2 ns 28.2 ns 4
std::string copy{str_with_len_N};/128_stddev 0.649 ns 0.649 ns 4
std::string copy{str_with_len_N};/128_cv 2.30 % 2.30 % 4
std::string copy{str_with_len_N};/256_mean 33.5 ns 33.5 ns 4
std::string copy{str_with_len_N};/256_median 33.3 ns 33.3 ns 4
std::string copy{str_with_len_N};/256_stddev 0.547 ns 0.547 ns 4
std::string copy{str_with_len_N};/256_cv 1.63 % 1.63 % 4
std::string copy{str_with_len_N};/512_mean 33.2 ns 33.2 ns 4
std::string copy{str_with_len_N};/512_median 33.0 ns 33.0 ns 4
std::string copy{str_with_len_N};/512_stddev 0.772 ns 0.772 ns 4
std::string copy{str_with_len_N};/512_cv 2.32 % 2.32 % 4
std::string copy{str_with_len_N};/1024_mean 37.8 ns 37.8 ns 4
std::string copy{str_with_len_N};/1024_median 38.2 ns 38.2 ns 4
std::string copy{str_with_len_N};/1024_stddev 1.22 ns 1.22 ns 4
std::string copy{str_with_len_N};/1024_cv 3.23 % 3.23 % 4
std::string copy{str_with_len_N};/2048_mean 81.0 ns 81.0 ns 4
std::string copy{str_with_len_N};/2048_median 78.8 ns 78.8 ns 4
std::string copy{str_with_len_N};/2048_stddev 5.45 ns 5.45 ns 4
std::string copy{str_with_len_N};/2048_cv 6.72 % 6.72 % 4
std::string copy{str_with_len_N};/4096_mean 121 ns 121 ns 4
std::string copy{str_with_len_N};/4096_median 122 ns 122 ns 4
std::string copy{str_with_len_N};/4096_stddev 1.92 ns 1.92 ns 4
std::string copy{str_with_len_N};/4096_cv 1.58 % 1.58 % 4
stringa copy{str_with_len_N};/15_mean 1.31 ns 1.31 ns 4
stringa copy{str_with_len_N};/15_median 1.31 ns 1.31 ns 4
stringa copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4
stringa copy{str_with_len_N};/15_cv 1.11 % 1.11 % 4
stringa copy{str_with_len_N};/16_mean 1.30 ns 1.30 ns 4
stringa copy{str_with_len_N};/16_median 1.30 ns 1.30 ns 4
stringa copy{str_with_len_N};/16_stddev 0.021 ns 0.021 ns 4
stringa copy{str_with_len_N};/16_cv 1.62 % 1.62 % 4
stringa copy{str_with_len_N};/23_mean 1.30 ns 1.30 ns 4
stringa copy{str_with_len_N};/23_median 1.31 ns 1.31 ns 4
stringa copy{str_with_len_N};/23_stddev 0.029 ns 0.029 ns 4
stringa copy{str_with_len_N};/23_cv 2.22 % 2.22 % 4
stringa copy{str_with_len_N};/24_mean 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/24_median 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/24_stddev 0.140 ns 0.140 ns 4
stringa copy{str_with_len_N};/24_cv 0.86 % 0.86 % 4
stringa copy{str_with_len_N};/32_mean 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/32_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/32_stddev 0.114 ns 0.114 ns 4
stringa copy{str_with_len_N};/32_cv 0.71 % 0.71 % 4
stringa copy{str_with_len_N};/64_mean 16.2 ns 16.2 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.101 ns 0.101 ns 4
stringa copy{str_with_len_N};/64_cv 0.62 % 0.62 % 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.162 ns 0.162 ns 4
stringa copy{str_with_len_N};/128_cv 1.01 % 1.00 % 4
stringa copy{str_with_len_N};/256_mean 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/256_median 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/256_stddev 0.111 ns 0.111 ns 4
stringa copy{str_with_len_N};/256_cv 0.69 % 0.69 % 4
stringa copy{str_with_len_N};/512_mean 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/512_median 16.2 ns 16.2 ns 4
stringa copy{str_with_len_N};/512_stddev 0.211 ns 0.211 ns 4
stringa copy{str_with_len_N};/512_cv 1.30 % 1.30 % 4
stringa copy{str_with_len_N};/1024_mean 16.1 ns 16.1 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.213 ns 0.213 ns 4
stringa copy{str_with_len_N};/1024_cv 1.32 % 1.32 % 4
stringa copy{str_with_len_N};/2048_mean 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/2048_median 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.188 ns 0.188 ns 4
stringa copy{str_with_len_N};/2048_cv 1.16 % 1.16 % 4
stringa copy{str_with_len_N};/4096_mean 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/4096_median 16.1 ns 16.1 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.092 ns 0.092 ns 4
stringa copy{str_with_len_N};/4096_cv 0.57 % 0.57 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.09 ns 1.09 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.017 ns 0.017 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 1.59 % 1.59 % 4
lstringa<16> copy{str_with_len_N};/16_mean 4.54 ns 4.54 ns 4
lstringa<16> copy{str_with_len_N};/16_median 4.55 ns 4.55 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.031 ns 0.031 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 0.69 % 0.69 % 4
lstringa<16> copy{str_with_len_N};/23_mean 4.54 ns 4.54 ns 4
lstringa<16> copy{str_with_len_N};/23_median 4.54 ns 4.54 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.012 ns 0.012 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 0.25 % 0.25 % 4
lstringa<16> copy{str_with_len_N};/24_mean 24.5 ns 24.5 ns 4
lstringa<16> copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.417 ns 0.417 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 1.70 % 1.70 % 4
lstringa<16> copy{str_with_len_N};/32_mean 24.6 ns 24.6 ns 4
lstringa<16> copy{str_with_len_N};/32_median 24.7 ns 24.7 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.483 ns 0.483 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 1.96 % 1.96 % 4
lstringa<16> copy{str_with_len_N};/64_mean 26.2 ns 26.2 ns 4
lstringa<16> copy{str_with_len_N};/64_median 26.2 ns 26.2 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.569 ns 0.569 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 2.18 % 2.18 % 4
lstringa<16> copy{str_with_len_N};/128_mean 26.6 ns 26.6 ns 4
lstringa<16> copy{str_with_len_N};/128_median 26.6 ns 26.6 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 1.17 ns 1.17 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 4.40 % 4.40 % 4
lstringa<16> copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4
lstringa<16> copy{str_with_len_N};/256_median 27.5 ns 27.5 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.764 ns 0.764 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 2.78 % 2.78 % 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.7 ns 30.7 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 0.716 ns 0.716 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 2.33 % 2.33 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 54.1 ns 54.1 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 53.7 ns 53.7 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 1.73 ns 1.73 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 3.19 % 3.19 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 64.5 ns 64.5 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 64.7 ns 64.7 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 0.663 ns 0.663 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 1.03 % 1.03 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 87.1 ns 87.1 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 87.4 ns 87.4 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 1.01 ns 1.01 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 1.16 % 1.16 % 4
lstringa<512> copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4
lstringa<512> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.028 ns 0.028 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 2.51 % 2.51 % 4
lstringa<512> copy{str_with_len_N};/16_mean 4.86 ns 4.86 ns 4
lstringa<512> copy{str_with_len_N};/16_median 4.86 ns 4.86 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.037 ns 0.037 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 0.76 % 0.76 % 4
lstringa<512> copy{str_with_len_N};/23_mean 4.79 ns 4.79 ns 4
lstringa<512> copy{str_with_len_N};/23_median 4.76 ns 4.76 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.071 ns 0.071 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 1.48 % 1.48 % 4
lstringa<512> copy{str_with_len_N};/24_mean 4.73 ns 4.73 ns 4
lstringa<512> copy{str_with_len_N};/24_median 4.59 ns 4.59 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.418 ns 0.418 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 8.82 % 8.82 % 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.58 ns 4.58 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.057 ns 0.057 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 1.25 % 1.25 % 4
lstringa<512> copy{str_with_len_N};/64_mean 5.99 ns 5.99 ns 4
lstringa<512> copy{str_with_len_N};/64_median 6.01 ns 6.01 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.140 ns 0.140 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 2.34 % 2.34 % 4
lstringa<512> copy{str_with_len_N};/128_mean 6.99 ns 6.99 ns 4
lstringa<512> copy{str_with_len_N};/128_median 6.97 ns 6.97 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.081 ns 0.081 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 1.16 % 1.16 % 4
lstringa<512> copy{str_with_len_N};/256_mean 8.23 ns 8.23 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.177 ns 0.177 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 2.16 % 2.16 % 4
lstringa<512> copy{str_with_len_N};/512_mean 10.4 ns 10.4 ns 4
lstringa<512> copy{str_with_len_N};/512_median 10.3 ns 10.3 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.236 ns 0.236 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 2.26 % 2.26 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 55.5 ns 55.5 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 55.3 ns 55.3 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 1.17 ns 1.17 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 2.10 % 2.10 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 66.3 ns 66.3 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 65.6 ns 65.6 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 2.86 ns 2.86 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 4.32 % 4.32 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 90.6 ns 90.6 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 91.4 ns 91.4 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 3.22 ns 3.22 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 3.56 % 3.56 % 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.8 ns 27.8 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.7 ns 27.7 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.779 ns 0.779 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.80 % 2.80 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.3 ns 11.3 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.3 ns 11.3 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.198 ns 0.198 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.76 % 1.76 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 7.94 ns 7.94 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 7.91 ns 7.91 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.193 ns 0.193 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.43 % 2.43 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.54 ns 8.54 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.55 ns 8.55 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.087 ns 0.087 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.02 % 1.02 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 7.90 ns 7.90 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 7.91 ns 7.91 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.169 ns 0.169 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.14 % 2.14 % 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 23.5 ns 23.5 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.6 ns 23.6 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.298 ns 0.298 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.27 % 1.27 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.03 ns 9.03 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.08 ns 9.08 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.154 ns 0.154 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.70 % 1.70 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.93 ns 7.93 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.90 ns 7.90 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.086 ns 0.086 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.08 % 1.08 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.49 ns 7.49 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.50 ns 7.50 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.092 ns 0.092 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.23 % 1.23 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.49 ns 7.49 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.41 ns 7.41 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.218 ns 0.218 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.91 % 2.91 % 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 29.2 ns 29.2 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.9 ns 28.9 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.777 ns 0.777 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.67 % 2.67 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 15.4 ns 15.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 15.4 ns 15.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.219 ns 0.219 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.42 % 1.42 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 13.5 ns 13.5 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 13.5 ns 13.5 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.239 ns 0.239 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.77 % 1.77 % 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 64.3 ns 64.3 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.4 ns 64.4 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.927 ns 0.927 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.44 % 1.44 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 23.8 ns 23.8 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.202 ns 0.202 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.85 % 0.85 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.8 ns 24.8 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 24.7 ns 24.7 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.464 ns 0.464 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.87 % 1.87 % 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 1348 ns 1348 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1345 ns 1345 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 31.9 ns 31.9 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.36 % 2.36 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 326 ns 326 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 322 ns 322 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 10.4 ns 10.4 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 3.18 % 3.18 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 358 ns 358 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 356 ns 356 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 5.60 ns 5.60 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.57 % 1.56 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 236 ns 236 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 230 ns 230 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.2 ns 14.2 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 6.03 % 6.03 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 211 ns 211 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 205 ns 205 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.0 ns 16.0 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.55 % 7.55 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 140 ns 140 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 140 ns 140 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.69 ns 1.69 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.21 % 1.21 % 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 1373 ns 1373 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1371 ns 1371 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 34.8 ns 34.8 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.54 % 2.54 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1249 ns 1249 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1245 ns 1245 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.16 % 1.16 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 401 ns 401 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 399 ns 399 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.67 ns 8.67 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.16 % 2.16 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 355 ns 355 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 354 ns 354 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.47 ns 8.47 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.38 % 2.38 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 300 ns 300 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 295 ns 295 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.8 ns 11.8 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.91 % 3.91 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 249 ns 249 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 250 ns 250 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.18 ns 4.18 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.68 % 1.68 % 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 118986 ns 118986 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 119292 ns 119292 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2656 ns 2656 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.23 % 2.23 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73469 ns 73469 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73088 ns 73088 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1432 ns 1432 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.95 % 1.95 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47566 ns 47566 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48321 ns 48321 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2368 ns 2368 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.98 % 4.98 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 26208 ns 26208 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 26604 ns 26604 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 908 ns 908 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.47 % 3.47 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20362 ns 20362 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20380 ns 20381 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4440 ns 4440 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 21.80 % 21.80 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16214 ns 16214 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16158 ns 16158 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 360 ns 360 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.22 % 2.22 % 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 1401 ns 1401 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 1399 ns 1399 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 28.1 ns 28.1 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.01 % 2.01 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1418 ns 1418 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1394 ns 1394 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 63.8 ns 63.8 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 4.50 % 4.50 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 484 ns 484 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 488 ns 488 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 9.03 ns 9.03 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.87 % 1.87 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 418 ns 418 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 417 ns 417 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 8.05 ns 8.05 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.93 % 1.93 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 371 ns 371 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 373 ns 373 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 2.98 % 2.98 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 320 ns 320 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 321 ns 321 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.97 ns 6.97 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.18 % 2.18 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3267 ns 3267 ns 4
std::stringstream str; str << "test = " << k << " times";_median 3266 ns 3266 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 45.6 ns 45.6 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 1.40 % 1.40 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 434 ns 434 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 439 ns 439 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 15.5 ns 15.5 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 3.56 % 3.56 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1519 ns 1519 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1516 ns 1516 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 13.7 ns 13.7 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.90 % 0.90 % 4
std::string str = std::format("test = {} times", k);_mean 1497 ns 1497 ns 4
std::string str = std::format("test = {} times", k);_median 1481 ns 1481 ns 4
std::string str = std::format("test = {} times", k);_stddev 50.5 ns 50.5 ns 4
std::string str = std::format("test = {} times", k);_cv 3.38 % 3.38 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 1586 ns 1586 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1592 ns 1592 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 27.4 ns 27.5 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 1.73 % 1.73 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 1126 ns 1126 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 1129 ns 1129 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 30.0 ns 30.0 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 2.66 % 2.66 % 4
lstringa<8> str = "test = " + k + " times";_mean 315 ns 315 ns 4
lstringa<8> str = "test = " + k + " times";_median 313 ns 313 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 8.47 ns 8.47 ns 4
lstringa<8> str = "test = " + k + " times";_cv 2.69 % 2.69 % 4
lstringa<32> str = "test = " + k + " times";_mean 154 ns 154 ns 4
lstringa<32> str = "test = " + k + " times";_median 154 ns 154 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 2.74 ns 2.74 ns 4
lstringa<32> str = "test = " + k + " times";_cv 1.78 % 1.78 % 4
stringa str = "test = " + k + " times";_mean 133 ns 133 ns 4
stringa str = "test = " + k + " times";_median 131 ns 131 ns 4
stringa str = "test = " + k + " times";_stddev 5.14 ns 5.14 ns 4
stringa str = "test = " + k + " times";_cv 3.87 % 3.87 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 265 ns 265 ns 4
std::string::find + substr + std::strtol_median 264 ns 264 ns 4
std::string::find + substr + std::strtol_stddev 2.64 ns 2.64 ns 4
std::string::find + substr + std::strtol_cv 1.00 % 1.00 % 4
ssa::splitter + ssa::as_int_mean 143 ns 143 ns 4
ssa::splitter + ssa::as_int_median 144 ns 144 ns 4
ssa::splitter + ssa::as_int_stddev 3.25 ns 3.25 ns 4
ssa::splitter + ssa::as_int_cv 2.26 % 2.26 % 4
ssa::splitf + functor_mean 125 ns 125 ns 4
ssa::splitf + functor_median 124 ns 124 ns 4
ssa::splitf + functor_stddev 4.56 ns 4.56 ns 4
ssa::splitf + functor_cv 3.66 % 3.66 % 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 837 ns 837 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 839 ns 839 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 9.85 ns 9.85 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 1.18 % 1.18 % 4
replace symbols with std::string find_first_of + replace_mean 2361 ns 2361 ns 4
replace symbols with std::string find_first_of + replace_median 2363 ns 2363 ns 4
replace symbols with std::string find_first_of + replace_stddev 63.7 ns 63.7 ns 4
replace symbols with std::string find_first_of + replace_cv 2.70 % 2.70 % 4
replace symbols with std::string_view find_first_of + copy_mean 965 ns 965 ns 4
replace symbols with std::string_view find_first_of + copy_median 969 ns 969 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 22.2 ns 22.2 ns 4
replace symbols with std::string_view find_first_of + copy_cv 2.30 % 2.30 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1436 ns 1436 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1434 ns 1434 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 19.8 ns 19.8 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 1.38 % 1.38 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1067 ns 1067 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1069 ns 1069 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 26.1 ns 26.1 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 2.44 % 2.44 % 4
replace const symbols with string expressions and without remembering all search results_mean 1246 ns 1246 ns 4
replace const symbols with string expressions and without remembering all search results_median 1245 ns 1245 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 15.0 ns 15.0 ns 4
replace const symbols with string expressions and without remembering all search results_cv 1.20 % 1.20 % 4
replace const symbols with string expressions and memorization of all search results_mean 850 ns 850 ns 4
replace const symbols with string expressions and memorization of all search results_median 850 ns 850 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 13.7 ns 13.7 ns 4
replace const symbols with string expressions and memorization of all search results_cv 1.62 % 1.62 % 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 158 ns 158 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 157 ns 157 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.76 ns 5.76 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.65 % 3.65 % 4
Short replace symbols with std::string find_first_of + replace_mean 338 ns 338 ns 4
Short replace symbols with std::string find_first_of + replace_median 338 ns 338 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 12.1 ns 12.1 ns 4
Short replace symbols with std::string find_first_of + replace_cv 3.59 % 3.59 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 160 ns 160 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 160 ns 160 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 2.71 ns 2.71 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 1.69 % 1.69 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 204 ns 204 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 207 ns 207 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 8.34 ns 8.34 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 4.09 % 4.09 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 193 ns 193 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 195 ns 195 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 8.21 ns 8.21 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 4.25 % 4.25 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 150 ns 150 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 150 ns 150 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 1.09 ns 1.09 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 0.73 % 0.73 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 140 ns 140 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 141 ns 141 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 1.52 ns 1.52 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 1.09 % 1.09 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 157 ns 157 ns 4
replace bb to ---- in std::string|64_median 158 ns 158 ns 4
replace bb to ---- in std::string|64_stddev 2.61 ns 2.61 ns 4
replace bb to ---- in std::string|64_cv 1.66 % 1.66 % 4
replace bb to ---- in std::string|256_mean 492 ns 492 ns 4
replace bb to ---- in std::string|256_median 491 ns 491 ns 4
replace bb to ---- in std::string|256_stddev 10.7 ns 10.7 ns 4
replace bb to ---- in std::string|256_cv 2.18 % 2.18 % 4
replace bb to ---- in std::string|512_mean 990 ns 990 ns 4
replace bb to ---- in std::string|512_median 982 ns 982 ns 4
replace bb to ---- in std::string|512_stddev 21.2 ns 21.2 ns 4
replace bb to ---- in std::string|512_cv 2.14 % 2.14 % 4
replace bb to ---- in std::string|1024_mean 2325 ns 2325 ns 4
replace bb to ---- in std::string|1024_median 2350 ns 2350 ns 4
replace bb to ---- in std::string|1024_stddev 278 ns 278 ns 4
replace bb to ---- in std::string|1024_cv 11.96 % 11.96 % 4
replace bb to ---- in std::string|2048_mean 6064 ns 6064 ns 4
replace bb to ---- in std::string|2048_median 6154 ns 6154 ns 4
replace bb to ---- in std::string|2048_stddev 424 ns 424 ns 4
replace bb to ---- in std::string|2048_cv 6.99 % 6.99 % 4
replace bb to ---- in lstringa<8>|64_mean 145 ns 145 ns 4
replace bb to ---- in lstringa<8>|64_median 145 ns 145 ns 4
replace bb to ---- in lstringa<8>|64_stddev 0.675 ns 0.675 ns 4
replace bb to ---- in lstringa<8>|64_cv 0.46 % 0.46 % 4
replace bb to ---- in lstringa<8>|256_mean 475 ns 475 ns 4
replace bb to ---- in lstringa<8>|256_median 474 ns 474 ns 4
replace bb to ---- in lstringa<8>|256_stddev 7.27 ns 7.27 ns 4
replace bb to ---- in lstringa<8>|256_cv 1.53 % 1.53 % 4
replace bb to ---- in lstringa<8>|512_mean 862 ns 862 ns 4
replace bb to ---- in lstringa<8>|512_median 866 ns 866 ns 4
replace bb to ---- in lstringa<8>|512_stddev 10.4 ns 10.4 ns 4
replace bb to ---- in lstringa<8>|512_cv 1.20 % 1.20 % 4
replace bb to ---- in lstringa<8>|1024_mean 1756 ns 1756 ns 4
replace bb to ---- in lstringa<8>|1024_median 1754 ns 1754 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 59.5 ns 59.5 ns 4
replace bb to ---- in lstringa<8>|1024_cv 3.39 % 3.39 % 4
replace bb to ---- in lstringa<8>|2048_mean 3286 ns 3286 ns 4
replace bb to ---- in lstringa<8>|2048_median 3267 ns 3267 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 61.3 ns 61.3 ns 4
replace bb to ---- in lstringa<8>|2048_cv 1.87 % 1.87 % 4
replace bb to ---- by init stringa|64_mean 87.1 ns 87.1 ns 4
replace bb to ---- by init stringa|64_median 87.1 ns 87.1 ns 4
replace bb to ---- by init stringa|64_stddev 0.674 ns 0.673 ns 4
replace bb to ---- by init stringa|64_cv 0.77 % 0.77 % 4
replace bb to ---- by init stringa|256_mean 267 ns 267 ns 4
replace bb to ---- by init stringa|256_median 266 ns 266 ns 4
replace bb to ---- by init stringa|256_stddev 4.85 ns 4.85 ns 4
replace bb to ---- by init stringa|256_cv 1.82 % 1.82 % 4
replace bb to ---- by init stringa|512_mean 651 ns 651 ns 4
replace bb to ---- by init stringa|512_median 652 ns 652 ns 4
replace bb to ---- by init stringa|512_stddev 17.0 ns 17.0 ns 4
replace bb to ---- by init stringa|512_cv 2.62 % 2.62 % 4
replace bb to ---- by init stringa|1024_mean 1455 ns 1455 ns 4
replace bb to ---- by init stringa|1024_median 1460 ns 1460 ns 4
replace bb to ---- by init stringa|1024_stddev 41.1 ns 41.1 ns 4
replace bb to ---- by init stringa|1024_cv 2.83 % 2.83 % 4
replace bb to ---- by init stringa|2048_mean 2933 ns 2933 ns 4
replace bb to ---- by init stringa|2048_median 2943 ns 2943 ns 4
replace bb to ---- by init stringa|2048_stddev 62.8 ns 62.8 ns 4
replace bb to ---- by init stringa|2048_cv 2.14 % 2.14 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 111 ns 111 ns 4
replace bb to -- in std::string|64_median 111 ns 111 ns 4
replace bb to -- in std::string|64_stddev 2.53 ns 2.53 ns 4
replace bb to -- in std::string|64_cv 2.28 % 2.28 % 4
replace bb to -- in std::string|256_mean 366 ns 366 ns 4
replace bb to -- in std::string|256_median 367 ns 367 ns 4
replace bb to -- in std::string|256_stddev 4.66 ns 4.66 ns 4
replace bb to -- in std::string|256_cv 1.27 % 1.27 % 4
replace bb to -- in std::string|512_mean 738 ns 738 ns 4
replace bb to -- in std::string|512_median 739 ns 739 ns 4
replace bb to -- in std::string|512_stddev 27.2 ns 27.2 ns 4
replace bb to -- in std::string|512_cv 3.69 % 3.69 % 4
replace bb to -- in std::string|1024_mean 1431 ns 1431 ns 4
replace bb to -- in std::string|1024_median 1419 ns 1419 ns 4
replace bb to -- in std::string|1024_stddev 30.8 ns 30.8 ns 4
replace bb to -- in std::string|1024_cv 2.16 % 2.16 % 4
replace bb to -- in std::string|2048_mean 2775 ns 2775 ns 4
replace bb to -- in std::string|2048_median 2767 ns 2767 ns 4
replace bb to -- in std::string|2048_stddev 33.0 ns 33.0 ns 4
replace bb to -- in std::string|2048_cv 1.19 % 1.19 % 4
replace bb to -- in lstringa<8>|64_mean 95.4 ns 95.4 ns 4
replace bb to -- in lstringa<8>|64_median 95.2 ns 95.2 ns 4
replace bb to -- in lstringa<8>|64_stddev 2.48 ns 2.48 ns 4
replace bb to -- in lstringa<8>|64_cv 2.60 % 2.60 % 4
replace bb to -- in lstringa<8>|256_mean 282 ns 282 ns 4
replace bb to -- in lstringa<8>|256_median 280 ns 280 ns 4
replace bb to -- in lstringa<8>|256_stddev 7.99 ns 7.99 ns 4
replace bb to -- in lstringa<8>|256_cv 2.83 % 2.83 % 4
replace bb to -- in lstringa<8>|512_mean 531 ns 531 ns 4
replace bb to -- in lstringa<8>|512_median 531 ns 531 ns 4
replace bb to -- in lstringa<8>|512_stddev 11.8 ns 11.8 ns 4
replace bb to -- in lstringa<8>|512_cv 2.22 % 2.22 % 4
replace bb to -- in lstringa<8>|1024_mean 1029 ns 1029 ns 4
replace bb to -- in lstringa<8>|1024_median 1029 ns 1029 ns 4
replace bb to -- in lstringa<8>|1024_stddev 10.9 ns 10.9 ns 4
replace bb to -- in lstringa<8>|1024_cv 1.05 % 1.05 % 4
replace bb to -- in lstringa<8>|2048_mean 2008 ns 2008 ns 4
replace bb to -- in lstringa<8>|2048_median 2012 ns 2012 ns 4
replace bb to -- in lstringa<8>|2048_stddev 45.5 ns 45.5 ns 4
replace bb to -- in lstringa<8>|2048_cv 2.27 % 2.27 % 4
replace bb to -- by init stringa|64_mean 83.6 ns 83.6 ns 4
replace bb to -- by init stringa|64_median 83.2 ns 83.2 ns 4
replace bb to -- by init stringa|64_stddev 1.77 ns 1.77 ns 4
replace bb to -- by init stringa|64_cv 2.12 % 2.12 % 4
replace bb to -- by init stringa|256_mean 265 ns 265 ns 4
replace bb to -- by init stringa|256_median 264 ns 264 ns 4
replace bb to -- by init stringa|256_stddev 3.74 ns 3.74 ns 4
replace bb to -- by init stringa|256_cv 1.41 % 1.41 % 4
replace bb to -- by init stringa|512_mean 501 ns 501 ns 4
replace bb to -- by init stringa|512_median 501 ns 501 ns 4
replace bb to -- by init stringa|512_stddev 8.33 ns 8.33 ns 4
replace bb to -- by init stringa|512_cv 1.66 % 1.66 % 4
replace bb to -- by init stringa|1024_mean 1004 ns 1004 ns 4
replace bb to -- by init stringa|1024_median 996 ns 996 ns 4
replace bb to -- by init stringa|1024_stddev 25.9 ns 25.9 ns 4
replace bb to -- by init stringa|1024_cv 2.58 % 2.58 % 4
replace bb to -- by init stringa|2048_mean 1944 ns 1944 ns 4
replace bb to -- by init stringa|2048_median 1948 ns 1948 ns 4
replace bb to -- by init stringa|2048_stddev 20.1 ns 20.1 ns 4
replace bb to -- by init stringa|2048_cv 1.03 % 1.03 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3698007 ns 3698020 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3717991 ns 3718003 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 81510 ns 81510 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 2.20 % 2.20 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3645916 ns 3645929 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3681250 ns 3681258 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 74522 ns 74517 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.04 % 2.04 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3708079 ns 3708095 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3703166 ns 3703183 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 31211 ns 31212 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 0.84 % 0.84 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4189102 ns 4189095 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4196771 ns 4196783 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 34020 ns 33996 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 0.81 % 0.81 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 853 ns 853 ns 4
Build func full name std::string;_median 853 ns 853 ns 4
Build func full name std::string;_stddev 20.7 ns 20.7 ns 4
Build func full name std::string;_cv 2.43 % 2.43 % 4
Build func full name std::string 1;_mean 912 ns 912 ns 4
Build func full name std::string 1;_median 907 ns 907 ns 4
Build func full name std::string 1;_stddev 18.4 ns 18.4 ns 4
Build func full name std::string 1;_cv 2.02 % 2.02 % 4
Build func full name std::stream;_mean 2502 ns 2502 ns 4
Build func full name std::stream;_median 2476 ns 2476 ns 4
Build func full name std::stream;_stddev 77.4 ns 77.4 ns 4
Build func full name std::stream;_cv 3.09 % 3.09 % 4
Build func full name stringa;_mean 459 ns 459 ns 4
Build func full name stringa;_median 460 ns 460 ns 4
Build func full name stringa;_stddev 9.94 ns 9.94 ns 4
Build func full name stringa;_cv 2.17 % 2.17 % 4
Build func full name stringa 1;_mean 627 ns 627 ns 4
Build func full name stringa 1;_median 625 ns 625 ns 4
Build func full name stringa 1;_stddev 8.45 ns 8.45 ns 4
Build func full name stringa 1;_cv 1.35 % 1.35 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 166 ns 166 ns 4
To upper case std::wstring_median 165 ns 165 ns 4
To upper case std::wstring_stddev 2.97 ns 2.97 ns 4
To upper case std::wstring_cv 1.79 % 1.79 % 4
To upper case lstringw<15>_mean 42.0 ns 42.0 ns 4
To upper case lstringw<15>_median 41.9 ns 41.9 ns 4
To upper case lstringw<15>_stddev 0.987 ns 0.987 ns 4
To upper case lstringw<15>_cv 2.35 % 2.35 % 4