simstr/bench/results/001-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:56:30+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.32, 0.33, 0.38
***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 190 ns 190 ns 4
Concat email std::format_median 190 ns 190 ns 4
Concat email std::format_stddev 8.21 ns 8.21 ns 4
Concat email std::format_cv 4.31 % 4.31 % 4
Concat email std::stringstream_mean 324 ns 324 ns 4
Concat email std::stringstream_median 324 ns 324 ns 4
Concat email std::stringstream_stddev 7.31 ns 7.31 ns 4
Concat email std::stringstream_cv 2.26 % 2.26 % 4
Concat email stringzilla append_mean 120 ns 120 ns 4
Concat email stringzilla append_median 119 ns 119 ns 4
Concat email stringzilla append_stddev 8.75 ns 8.75 ns 4
Concat email stringzilla append_cv 7.30 % 7.30 % 4
Concat email stringzilla concat_mean 49.2 ns 49.2 ns 4
Concat email stringzilla concat_median 47.7 ns 47.7 ns 4
Concat email stringzilla concat_stddev 4.30 ns 4.30 ns 4
Concat email stringzilla concat_cv 8.74 % 8.74 % 4
Concat email std::string append_mean 98.9 ns 98.9 ns 4
Concat email std::string append_median 97.9 ns 97.9 ns 4
Concat email std::string append_stddev 2.73 ns 2.73 ns 4
Concat email std::string append_cv 2.76 % 2.76 % 4
Concat email std::string by strexpr_mean 37.6 ns 37.6 ns 4
Concat email std::string by strexpr_median 37.1 ns 37.1 ns 4
Concat email std::string by strexpr_stddev 1.14 ns 1.14 ns 4
Concat email std::string by strexpr_cv 3.04 % 3.04 % 4
Concat email stringa_mean 40.9 ns 40.9 ns 4
Concat email stringa_median 40.6 ns 40.6 ns 4
Concat email stringa_stddev 1.26 ns 1.26 ns 4
Concat email stringa_cv 3.07 % 3.07 % 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 223 ns 223 ns 4
Concat std::string and number by std to std::string_median 223 ns 223 ns 4
Concat std::string and number by std to std::string_stddev 5.80 ns 5.80 ns 4
Concat std::string and number by std to std::string_cv 2.60 % 2.60 % 4
Concat std::string and number by StrExpr to std::string_mean 102 ns 102 ns 4
Concat std::string and number by StrExpr to std::string_median 101 ns 101 ns 4
Concat std::string and number by StrExpr to std::string_stddev 6.47 ns 6.47 ns 4
Concat std::string and number by StrExpr to std::string_cv 6.35 % 6.35 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 73.6 ns 73.6 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 73.4 ns 73.4 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 3.13 ns 3.13 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 4.25 % 4.25 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 78.5 ns 78.5 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 78.9 ns 78.9 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 2.10 ns 2.10 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 2.68 % 2.68 % 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 695 ns 695 ns 4
Concat std::string and format hex number and literal to std::string_median 693 ns 693 ns 4
Concat std::string and format hex number and literal to std::string_stddev 7.88 ns 7.88 ns 4
Concat std::string and format hex number and literal to std::string_cv 1.13 % 1.13 % 4
std::format std::string and hex number by literal to std::string_mean 995 ns 995 ns 4
std::format std::string and hex number by literal to std::string_median 999 ns 999 ns 4
std::format std::string and hex number by literal to std::string_stddev 56.7 ns 56.7 ns 4
std::format std::string and hex number by literal to std::string_cv 5.70 % 5.70 % 4
Concat std::string and std::to_chars and string to std::string_mean 250 ns 250 ns 4
Concat std::string and std::to_chars and string to std::string_median 249 ns 249 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 3.73 ns 3.73 ns 4
Concat std::string and std::to_chars and string to std::string_cv 1.49 % 1.49 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 125 ns 125 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 125 ns 125 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.36 ns 1.36 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.09 % 1.09 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 122 ns 122 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 122 ns 122 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.01 ns 1.01 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.83 % 0.83 % 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 126 ns 126 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.40 ns 3.40 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.65 % 2.65 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 174 ns 174 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 174 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.99 ns 4.99 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.86 % 2.86 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 304 ns 304 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 305 ns 305 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 2.51 ns 2.51 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.82 % 0.82 % 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 264 ns 264 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 265 ns 265 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 10.0 ns 10.0 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.80 % 3.80 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 318 ns 318 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 318 ns 318 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.94 ns 4.94 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.55 % 1.55 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 583 ns 583 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 585 ns 585 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 18.3 ns 18.3 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 3.13 % 3.13 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 809 ns 809 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 810 ns 810 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 17.0 ns 17.0 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.11 % 2.11 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 882 ns 882 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 896 ns 896 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 64.1 ns 64.1 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 7.26 % 7.26 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1261 ns 1261 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1255 ns 1255 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 34.3 ns 34.3 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.72 % 2.72 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1151 ns 1151 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1141 ns 1141 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 41.2 ns 41.2 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 3.58 % 3.58 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2133 ns 2133 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2129 ns 2129 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 47.6 ns 47.6 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.23 % 2.23 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 49.8 ns 49.8 ns 4
Concat std::string by std to std::string_median 49.2 ns 49.2 ns 4
Concat std::string by std to std::string_stddev 1.80 ns 1.80 ns 4
Concat std::string by std to std::string_cv 3.61 % 3.61 % 4
Concat std::string by StrExpr to std::string_mean 32.3 ns 32.3 ns 4
Concat std::string by StrExpr to std::string_median 32.3 ns 32.3 ns 4
Concat std::string by StrExpr to std::string_stddev 0.099 ns 0.099 ns 4
Concat std::string by StrExpr to std::string_cv 0.31 % 0.31 % 4
Concat stringa by StrExpr to stringa_mean 26.4 ns 26.4 ns 4
Concat stringa by StrExpr to stringa_median 26.4 ns 26.4 ns 4
Concat stringa by StrExpr to stringa_stddev 0.273 ns 0.273 ns 4
Concat stringa by StrExpr to stringa_cv 1.03 % 1.03 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 146 ns 146 ns 4
Find concat three std::string_median 144 ns 144 ns 4
Find concat three std::string_stddev 8.05 ns 8.05 ns 4
Find concat three std::string_cv 5.52 % 5.52 % 4
Find concat three strexpr_mean 39.0 ns 39.0 ns 4
Find concat three strexpr_median 38.3 ns 38.3 ns 4
Find concat three strexpr_stddev 1.90 ns 1.90 ns 4
Find concat three strexpr_cv 4.88 % 4.88 % 4
Find concat three simstr_mean 16.4 ns 16.4 ns 4
Find concat three simstr_median 16.4 ns 16.4 ns 4
Find concat three simstr_stddev 0.400 ns 0.400 ns 4
Find concat three simstr_cv 2.44 % 2.44 % 4
Find concat three stringzilla string_mean 139 ns 139 ns 4
Find concat three stringzilla string_median 139 ns 139 ns 4
Find concat three stringzilla string_stddev 1.02 ns 1.02 ns 4
Find concat three stringzilla string_cv 0.74 % 0.74 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 10.8 ns 10.8 ns 4
BuildTypeNameStr 0/0_median 10.7 ns 10.7 ns 4
BuildTypeNameStr 0/0_stddev 0.574 ns 0.574 ns 4
BuildTypeNameStr 0/0_cv 5.33 % 5.33 % 4
BuildTypeNameExp 0/0_mean 8.49 ns 8.49 ns 4
BuildTypeNameExp 0/0_median 8.53 ns 8.53 ns 4
BuildTypeNameExp 0/0_stddev 0.273 ns 0.273 ns 4
BuildTypeNameExp 0/0_cv 3.21 % 3.21 % 4
BuildTypeNameSim 0/0_mean 4.96 ns 4.96 ns 4
BuildTypeNameSim 0/0_median 4.94 ns 4.94 ns 4
BuildTypeNameSim 0/0_stddev 0.130 ns 0.130 ns 4
BuildTypeNameSim 0/0_cv 2.61 % 2.61 % 4
BuildTypeNameStr 10/10_mean 87.2 ns 87.2 ns 4
BuildTypeNameStr 10/10_median 87.6 ns 87.6 ns 4
BuildTypeNameStr 10/10_stddev 2.98 ns 2.98 ns 4
BuildTypeNameStr 10/10_cv 3.42 % 3.42 % 4
BuildTypeNameExp 10/10_mean 26.8 ns 26.8 ns 4
BuildTypeNameExp 10/10_median 26.8 ns 26.8 ns 4
BuildTypeNameExp 10/10_stddev 0.902 ns 0.902 ns 4
BuildTypeNameExp 10/10_cv 3.37 % 3.37 % 4
BuildTypeNameSim 10/10_mean 23.2 ns 23.2 ns 4
BuildTypeNameSim 10/10_median 22.3 ns 22.3 ns 4
BuildTypeNameSim 10/10_stddev 2.03 ns 2.03 ns 4
BuildTypeNameSim 10/10_cv 8.75 % 8.75 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 235 ns 235 ns 4
Concat with replace str_median 233 ns 233 ns 4
Concat with replace str_stddev 13.2 ns 13.2 ns 4
Concat with replace str_cv 5.59 % 5.59 % 4
Concat with replace exp_mean 142 ns 142 ns 4
Concat with replace exp_median 138 ns 138 ns 4
Concat with replace exp_stddev 13.1 ns 13.1 ns 4
Concat with replace exp_cv 9.25 % 9.25 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.14 ns 1.14 ns 4
std::string e;_median 1.13 ns 1.13 ns 4
std::string e;_stddev 0.034 ns 0.034 ns 4
std::string e;_cv 2.97 % 2.97 % 4
std::string_view e;_mean 0.770 ns 0.770 ns 4
std::string_view e;_median 0.771 ns 0.771 ns 4
std::string_view e;_stddev 0.019 ns 0.019 ns 4
std::string_view e;_cv 2.43 % 2.43 % 4
ssa e;_mean 0.188 ns 0.188 ns 4
ssa e;_median 0.188 ns 0.188 ns 4
ssa e;_stddev 0.006 ns 0.006 ns 4
ssa e;_cv 3.09 % 3.09 % 4
stringa e;_mean 0.777 ns 0.777 ns 4
stringa e;_median 0.776 ns 0.776 ns 4
stringa e;_stddev 0.013 ns 0.013 ns 4
stringa e;_cv 1.62 % 1.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.036 ns 0.036 ns 4
lstringa<20> e;_cv 3.11 % 3.11 % 4
lstringa<40> e;_mean 1.18 ns 1.18 ns 4
lstringa<40> e;_median 1.17 ns 1.17 ns 4
lstringa<40> e;_stddev 0.024 ns 0.024 ns 4
lstringa<40> e;_cv 2.03 % 2.03 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.91 ns 1.91 ns 4
std::string e = "Test text";_median 1.91 ns 1.91 ns 4
std::string e = "Test text";_stddev 0.049 ns 0.049 ns 4
std::string e = "Test text";_cv 2.59 % 2.59 % 4
std::string_view e = "Test text";_mean 0.765 ns 0.765 ns 4
std::string_view e = "Test text";_median 0.770 ns 0.770 ns 4
std::string_view e = "Test text";_stddev 0.013 ns 0.013 ns 4
std::string_view e = "Test text";_cv 1.75 % 1.75 % 4
ssa e = "Test text";_mean 0.765 ns 0.765 ns 4
ssa e = "Test text";_median 0.774 ns 0.774 ns 4
ssa e = "Test text";_stddev 0.019 ns 0.019 ns 4
ssa e = "Test text";_cv 2.45 % 2.45 % 4
stringa e = "Test text";_mean 1.13 ns 1.13 ns 4
stringa e = "Test text";_median 1.12 ns 1.12 ns 4
stringa e = "Test text";_stddev 0.016 ns 0.016 ns 4
stringa e = "Test text";_cv 1.38 % 1.38 % 4
lstringa<20> e = "Test text";_mean 1.90 ns 1.90 ns 4
lstringa<20> e = "Test text";_median 1.88 ns 1.88 ns 4
lstringa<20> e = "Test text";_stddev 0.066 ns 0.066 ns 4
lstringa<20> e = "Test text";_cv 3.47 % 3.47 % 4
lstringa<40> e = "Test text";_mean 1.92 ns 1.92 ns 4
lstringa<40> e = "Test text";_median 1.90 ns 1.90 ns 4
lstringa<40> e = "Test text";_stddev 0.072 ns 0.072 ns 4
lstringa<40> e = "Test text";_cv 3.73 % 3.73 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4
std::string e = "123456789012345678901234567890";_median 19.6 ns 19.6 ns 4
std::string e = "123456789012345678901234567890";_stddev 1.46 ns 1.46 ns 4
std::string e = "123456789012345678901234567890";_cv 7.25 % 7.25 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.759 ns 0.759 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.755 ns 0.755 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.014 ns 0.014 ns 4
std::string_view e = "123456789012345678901234567890";_cv 1.90 % 1.90 % 4
ssa e = "123456789012345678901234567890";_mean 0.767 ns 0.767 ns 4
ssa e = "123456789012345678901234567890";_median 0.764 ns 0.764 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.013 ns 0.013 ns 4
ssa e = "123456789012345678901234567890";_cv 1.73 % 1.73 % 4
stringa e = "123456789012345678901234567890";_mean 1.20 ns 1.20 ns 4
stringa e = "123456789012345678901234567890";_median 1.18 ns 1.18 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.067 ns 0.067 ns 4
stringa e = "123456789012345678901234567890";_cv 5.58 % 5.58 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 24.0 ns 24.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 24.1 ns 24.1 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 1.29 ns 1.29 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 5.39 % 5.39 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 1.94 ns 1.94 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 1.90 ns 1.90 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.087 ns 0.087 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 4.50 % 4.50 % 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.67 ns 5.67 ns 4
std::string e = "Test text"; auto c{e};_median 5.65 ns 5.66 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.111 ns 0.111 ns 4
std::string e = "Test text"; auto c{e};_cv 1.95 % 1.95 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.378 ns 0.378 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.377 ns 0.377 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.006 ns 0.006 ns 4
std::string_view e = "Test text"; auto c{e};_cv 1.51 % 1.51 % 4
ssa e = "Test text"; auto c{e};_mean 0.391 ns 0.391 ns 4
ssa e = "Test text"; auto c{e};_median 0.386 ns 0.386 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.019 ns 0.019 ns 4
ssa e = "Test text"; auto c{e};_cv 4.81 % 4.81 % 4
stringa e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4
stringa e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.019 ns 0.019 ns 4
stringa e = "Test text"; auto c{e};_cv 1.68 % 1.68 % 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.14 ns 1.14 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.036 ns 0.036 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 3.15 % 3.15 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.16 ns 1.16 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.015 ns 0.015 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 1.30 % 1.30 % 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.6 ns 24.6 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.620 ns 0.620 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.52 % 2.52 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.775 ns 0.775 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.761 ns 0.761 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.043 ns 0.043 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 5.49 % 5.49 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.747 ns 0.747 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.740 ns 0.740 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.025 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 3.31 % 3.31 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.19 ns 1.19 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.19 ns 1.19 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.042 ns 0.042 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 3.52 % 3.52 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 20.4 ns 20.4 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.1 ns 20.1 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.738 ns 0.738 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.62 % 3.62 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.84 ns 4.84 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.80 ns 4.80 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.111 ns 0.111 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.30 % 2.30 % 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.3 ns 95.3 ns 4
sz::string::find;_median 95.5 ns 95.5 ns 4
sz::string::find;_stddev 0.947 ns 0.947 ns 4
sz::string::find;_cv 0.99 % 0.99 % 4
std::string::find;_mean 6.95 ns 6.95 ns 4
std::string::find;_median 6.92 ns 6.92 ns 4
std::string::find;_stddev 0.228 ns 0.228 ns 4
std::string::find;_cv 3.28 % 3.28 % 4
std::string_view::find;_mean 8.19 ns 8.19 ns 4
std::string_view::find;_median 8.08 ns 8.08 ns 4
std::string_view::find;_stddev 0.369 ns 0.369 ns 4
std::string_view::find;_cv 4.51 % 4.51 % 4
ssa::find;_mean 6.99 ns 6.99 ns 4
ssa::find;_median 6.96 ns 6.96 ns 4
ssa::find;_stddev 0.199 ns 0.199 ns 4
ssa::find;_cv 2.86 % 2.86 % 4
stringa::find;_mean 6.91 ns 6.91 ns 4
stringa::find;_median 6.99 ns 6.99 ns 4
stringa::find;_stddev 0.210 ns 0.210 ns 4
stringa::find;_cv 3.03 % 3.03 % 4
lstringa<20>::find;_mean 6.65 ns 6.65 ns 4
lstringa<20>::find;_median 6.70 ns 6.70 ns 4
lstringa<20>::find;_stddev 0.231 ns 0.231 ns 4
lstringa<20>::find;_cv 3.48 % 3.48 % 4
lstringa<40>::find;_mean 6.58 ns 6.58 ns 4
lstringa<40>::find;_median 6.60 ns 6.60 ns 4
lstringa<40>::find;_stddev 0.313 ns 0.313 ns 4
lstringa<40>::find;_cv 4.76 % 4.76 % 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 9.01 ns 9.01 ns 4
std::string copy{str_with_len_N};/15_median 8.83 ns 8.83 ns 4
std::string copy{str_with_len_N};/15_stddev 0.780 ns 0.780 ns 4
std::string copy{str_with_len_N};/15_cv 8.66 % 8.66 % 4
std::string copy{str_with_len_N};/16_mean 28.5 ns 28.5 ns 4
std::string copy{str_with_len_N};/16_median 28.5 ns 28.5 ns 4
std::string copy{str_with_len_N};/16_stddev 0.092 ns 0.092 ns 4
std::string copy{str_with_len_N};/16_cv 0.32 % 0.32 % 4
std::string copy{str_with_len_N};/23_mean 27.8 ns 27.8 ns 4
std::string copy{str_with_len_N};/23_median 27.6 ns 27.6 ns 4
std::string copy{str_with_len_N};/23_stddev 1.49 ns 1.49 ns 4
std::string copy{str_with_len_N};/23_cv 5.37 % 5.37 % 4
std::string copy{str_with_len_N};/24_mean 28.8 ns 28.8 ns 4
std::string copy{str_with_len_N};/24_median 28.6 ns 28.6 ns 4
std::string copy{str_with_len_N};/24_stddev 0.829 ns 0.829 ns 4
std::string copy{str_with_len_N};/24_cv 2.88 % 2.88 % 4
std::string copy{str_with_len_N};/32_mean 27.3 ns 27.3 ns 4
std::string copy{str_with_len_N};/32_median 27.3 ns 27.3 ns 4
std::string copy{str_with_len_N};/32_stddev 0.527 ns 0.527 ns 4
std::string copy{str_with_len_N};/32_cv 1.93 % 1.93 % 4
std::string copy{str_with_len_N};/64_mean 27.0 ns 27.0 ns 4
std::string copy{str_with_len_N};/64_median 27.4 ns 27.4 ns 4
std::string copy{str_with_len_N};/64_stddev 1.25 ns 1.25 ns 4
std::string copy{str_with_len_N};/64_cv 4.65 % 4.65 % 4
std::string copy{str_with_len_N};/128_mean 29.2 ns 29.2 ns 4
std::string copy{str_with_len_N};/128_median 29.0 ns 29.0 ns 4
std::string copy{str_with_len_N};/128_stddev 0.929 ns 0.929 ns 4
std::string copy{str_with_len_N};/128_cv 3.19 % 3.19 % 4
std::string copy{str_with_len_N};/256_mean 34.2 ns 34.2 ns 4
std::string copy{str_with_len_N};/256_median 33.9 ns 33.9 ns 4
std::string copy{str_with_len_N};/256_stddev 0.867 ns 0.867 ns 4
std::string copy{str_with_len_N};/256_cv 2.54 % 2.54 % 4
std::string copy{str_with_len_N};/512_mean 34.0 ns 34.0 ns 4
std::string copy{str_with_len_N};/512_median 34.3 ns 34.3 ns 4
std::string copy{str_with_len_N};/512_stddev 0.866 ns 0.866 ns 4
std::string copy{str_with_len_N};/512_cv 2.55 % 2.55 % 4
std::string copy{str_with_len_N};/1024_mean 37.7 ns 37.7 ns 4
std::string copy{str_with_len_N};/1024_median 37.5 ns 37.5 ns 4
std::string copy{str_with_len_N};/1024_stddev 0.966 ns 0.966 ns 4
std::string copy{str_with_len_N};/1024_cv 2.56 % 2.56 % 4
std::string copy{str_with_len_N};/2048_mean 81.1 ns 81.1 ns 4
std::string copy{str_with_len_N};/2048_median 79.7 ns 79.7 ns 4
std::string copy{str_with_len_N};/2048_stddev 5.41 ns 5.41 ns 4
std::string copy{str_with_len_N};/2048_cv 6.67 % 6.67 % 4
std::string copy{str_with_len_N};/4096_mean 120 ns 120 ns 4
std::string copy{str_with_len_N};/4096_median 119 ns 119 ns 4
std::string copy{str_with_len_N};/4096_stddev 3.95 ns 3.95 ns 4
std::string copy{str_with_len_N};/4096_cv 3.29 % 3.29 % 4
stringa copy{str_with_len_N};/15_mean 1.35 ns 1.35 ns 4
stringa copy{str_with_len_N};/15_median 1.35 ns 1.35 ns 4
stringa copy{str_with_len_N};/15_stddev 0.024 ns 0.024 ns 4
stringa copy{str_with_len_N};/15_cv 1.80 % 1.80 % 4
stringa copy{str_with_len_N};/16_mean 1.34 ns 1.34 ns 4
stringa copy{str_with_len_N};/16_median 1.32 ns 1.32 ns 4
stringa copy{str_with_len_N};/16_stddev 0.048 ns 0.048 ns 4
stringa copy{str_with_len_N};/16_cv 3.59 % 3.59 % 4
stringa copy{str_with_len_N};/23_mean 1.32 ns 1.32 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.038 ns 0.038 ns 4
stringa copy{str_with_len_N};/23_cv 2.91 % 2.91 % 4
stringa copy{str_with_len_N};/24_mean 16.7 ns 16.7 ns 4
stringa copy{str_with_len_N};/24_median 16.8 ns 16.8 ns 4
stringa copy{str_with_len_N};/24_stddev 0.530 ns 0.530 ns 4
stringa copy{str_with_len_N};/24_cv 3.18 % 3.18 % 4
stringa copy{str_with_len_N};/32_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/32_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/32_stddev 0.241 ns 0.241 ns 4
stringa copy{str_with_len_N};/32_cv 1.46 % 1.46 % 4
stringa copy{str_with_len_N};/64_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/64_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/64_stddev 0.233 ns 0.233 ns 4
stringa copy{str_with_len_N};/64_cv 1.43 % 1.43 % 4
stringa copy{str_with_len_N};/128_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/128_median 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/128_stddev 0.272 ns 0.272 ns 4
stringa copy{str_with_len_N};/128_cv 1.65 % 1.65 % 4
stringa copy{str_with_len_N};/256_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/256_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/256_stddev 0.236 ns 0.236 ns 4
stringa copy{str_with_len_N};/256_cv 1.44 % 1.44 % 4
stringa copy{str_with_len_N};/512_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/512_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/512_stddev 0.120 ns 0.120 ns 4
stringa copy{str_with_len_N};/512_cv 0.73 % 0.73 % 4
stringa copy{str_with_len_N};/1024_mean 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/1024_median 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.473 ns 0.473 ns 4
stringa copy{str_with_len_N};/1024_cv 2.85 % 2.85 % 4
stringa copy{str_with_len_N};/2048_mean 16.7 ns 16.7 ns 4
stringa copy{str_with_len_N};/2048_median 16.7 ns 16.7 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.383 ns 0.383 ns 4
stringa copy{str_with_len_N};/2048_cv 2.30 % 2.30 % 4
stringa copy{str_with_len_N};/4096_mean 16.9 ns 16.9 ns 4
stringa copy{str_with_len_N};/4096_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.818 ns 0.818 ns 4
stringa copy{str_with_len_N};/4096_cv 4.85 % 4.85 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.16 ns 1.16 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.17 ns 1.17 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.043 ns 0.043 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 3.69 % 3.69 % 4
lstringa<16> copy{str_with_len_N};/16_mean 4.98 ns 4.98 ns 4
lstringa<16> copy{str_with_len_N};/16_median 5.00 ns 5.00 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.052 ns 0.052 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 1.04 % 1.04 % 4
lstringa<16> copy{str_with_len_N};/23_mean 5.05 ns 5.05 ns 4
lstringa<16> copy{str_with_len_N};/23_median 5.00 ns 5.00 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.363 ns 0.363 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 7.19 % 7.19 % 4
lstringa<16> copy{str_with_len_N};/24_mean 24.6 ns 24.6 ns 4
lstringa<16> copy{str_with_len_N};/24_median 24.5 ns 24.5 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.497 ns 0.497 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 2.02 % 2.02 % 4
lstringa<16> copy{str_with_len_N};/32_mean 24.4 ns 24.4 ns 4
lstringa<16> copy{str_with_len_N};/32_median 24.5 ns 24.5 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.726 ns 0.726 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 2.97 % 2.97 % 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.463 ns 0.463 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 1.77 % 1.77 % 4
lstringa<16> copy{str_with_len_N};/128_mean 27.6 ns 27.6 ns 4
lstringa<16> copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 1.75 ns 1.75 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 6.33 % 6.33 % 4
lstringa<16> copy{str_with_len_N};/256_mean 27.8 ns 27.8 ns 4
lstringa<16> copy{str_with_len_N};/256_median 27.7 ns 27.7 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.581 ns 0.581 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 2.09 % 2.09 % 4
lstringa<16> copy{str_with_len_N};/512_mean 31.0 ns 31.0 ns 4
lstringa<16> copy{str_with_len_N};/512_median 30.3 ns 30.3 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 1.76 ns 1.76 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 5.67 % 5.67 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 55.0 ns 55.0 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 54.1 ns 54.1 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 2.89 ns 2.89 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 5.24 % 5.24 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 64.4 ns 64.4 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 64.1 ns 64.1 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 2.30 ns 2.30 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 3.57 % 3.57 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 90.0 ns 90.0 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 90.1 ns 90.1 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 2.46 ns 2.46 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 2.73 % 2.73 % 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.025 ns 0.025 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 2.25 % 2.25 % 4
lstringa<512> copy{str_with_len_N};/16_mean 4.48 ns 4.48 ns 4
lstringa<512> copy{str_with_len_N};/16_median 4.44 ns 4.44 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.116 ns 0.116 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 2.58 % 2.58 % 4
lstringa<512> copy{str_with_len_N};/23_mean 4.49 ns 4.49 ns 4
lstringa<512> copy{str_with_len_N};/23_median 4.40 ns 4.40 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.176 ns 0.176 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 3.92 % 3.92 % 4
lstringa<512> copy{str_with_len_N};/24_mean 4.10 ns 4.10 ns 4
lstringa<512> copy{str_with_len_N};/24_median 4.10 ns 4.10 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.044 ns 0.044 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 1.08 % 1.08 % 4
lstringa<512> copy{str_with_len_N};/32_mean 4.40 ns 4.40 ns 4
lstringa<512> copy{str_with_len_N};/32_median 4.20 ns 4.20 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.485 ns 0.485 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 11.01 % 11.01 % 4
lstringa<512> copy{str_with_len_N};/64_mean 5.64 ns 5.64 ns 4
lstringa<512> copy{str_with_len_N};/64_median 5.61 ns 5.61 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.183 ns 0.183 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 3.25 % 3.25 % 4
lstringa<512> copy{str_with_len_N};/128_mean 7.25 ns 7.25 ns 4
lstringa<512> copy{str_with_len_N};/128_median 7.19 ns 7.19 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.239 ns 0.239 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 3.29 % 3.29 % 4
lstringa<512> copy{str_with_len_N};/256_mean 7.90 ns 7.90 ns 4
lstringa<512> copy{str_with_len_N};/256_median 7.90 ns 7.90 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.155 ns 0.155 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 1.96 % 1.96 % 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.2 ns 10.2 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.414 ns 0.414 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 3.99 % 3.99 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 55.7 ns 55.7 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 54.6 ns 54.6 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 2.59 ns 2.59 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 4.65 % 4.65 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 66.5 ns 66.5 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 66.5 ns 66.5 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 1.30 ns 1.30 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 1.96 % 1.96 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 89.3 ns 89.3 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 88.2 ns 88.2 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 3.26 ns 3.26 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 3.65 % 3.65 % 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.1 ns 27.1 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.9 ns 26.9 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.723 ns 0.723 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.67 % 2.67 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.1 ns 12.1 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.1 ns 12.1 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.156 ns 0.156 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.29 % 1.29 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.79 ns 8.79 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.87 ns 8.87 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.231 ns 0.231 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.63 % 2.63 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.08 ns 8.08 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 7.85 ns 7.85 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.508 ns 0.508 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 6.30 % 6.30 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.74 ns 8.74 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.72 ns 8.72 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.063 ns 0.063 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.72 % 0.72 % 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.4 ns 23.4 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.2 ns 23.2 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.835 ns 0.835 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.56 % 3.56 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.70 ns 8.70 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.58 ns 8.58 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.589 ns 0.589 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 6.77 % 6.77 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.52 ns 8.52 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.44 ns 8.44 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.280 ns 0.280 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.29 % 3.29 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 6.64 ns 6.64 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 6.55 ns 6.55 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.215 ns 0.215 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.24 % 3.24 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.72 ns 8.72 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.77 ns 8.77 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.241 ns 0.241 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.77 % 2.77 % 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.0 ns 29.0 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.0 ns 29.0 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.746 ns 0.746 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.57 % 2.57 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 14.6 ns 14.6 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 14.5 ns 14.5 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.307 ns 0.307 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 2.10 % 2.10 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 10.9 ns 10.9 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 10.9 ns 10.9 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.111 ns 0.111 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.02 % 1.02 % 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.1 ns 65.1 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.8 ns 64.8 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.66 ns 1.66 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.55 % 2.55 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 25.0 ns 25.0 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.1 ns 25.1 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.05 ns 1.05 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 4.18 % 4.18 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.4 ns 24.4 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 24.4 ns 24.4 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.470 ns 0.470 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.92 % 1.92 % 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 1375 ns 1375 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1378 ns 1378 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 58.9 ns 58.9 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 4.28 % 4.28 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 350 ns 350 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 334 ns 334 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 46.5 ns 46.5 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 13.28 % 13.28 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 338 ns 338 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 340 ns 340 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 4.68 ns 4.68 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.38 % 1.38 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 245 ns 245 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 247 ns 248 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 12.7 ns 12.7 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.18 % 5.18 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 217 ns 217 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 213 ns 213 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 12.7 ns 12.7 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.86 % 5.86 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 141 ns 141 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 140 ns 140 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 3.67 ns 3.67 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.59 % 2.59 % 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 1373 ns 1373 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 18.0 ns 18.0 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.31 % 1.31 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1238 ns 1238 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1230 ns 1230 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.5 ns 17.4 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.41 % 1.41 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 405 ns 405 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 405 ns 405 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.54 ns 6.54 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.62 % 1.62 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 339 ns 339 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 334 ns 334 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.8 ns 14.8 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.36 % 4.36 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 315 ns 315 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 312 ns 312 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.0 ns 15.0 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.77 % 4.77 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 250 ns 250 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 250 ns 250 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.48 ns 8.48 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.40 % 3.40 % 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 125525 ns 125525 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 124314 ns 124314 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4632 ns 4632 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.69 % 3.69 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73243 ns 73244 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73633 ns 73633 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2612 ns 2612 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.57 % 3.57 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49189 ns 49189 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48478 ns 48479 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3812 ns 3812 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.75 % 7.75 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 26787 ns 26787 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 26832 ns 26832 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1133 ns 1133 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.23 % 4.23 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20894 ns 20894 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21046 ns 21047 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4349 ns 4349 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 20.82 % 20.82 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16956 ns 16956 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16836 ns 16836 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 563 ns 563 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.32 % 3.32 % 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 1440 ns 1440 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 1435 ns 1435 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 26.4 ns 26.4 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.83 % 1.83 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1374 ns 1374 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1365 ns 1365 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 31.3 ns 31.3 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 2.28 % 2.28 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 476 ns 476 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 475 ns 475 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 9.61 ns 9.61 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.02 % 2.02 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 416 ns 416 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 416 ns 416 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 13.9 ns 13.9 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.34 % 3.34 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 368 ns 368 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.9 ns 11.9 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.22 % 3.22 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 316 ns 316 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 316 ns 316 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 7.29 ns 7.29 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.30 % 2.30 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3250 ns 3250 ns 4
std::stringstream str; str << "test = " << k << " times";_median 3258 ns 3258 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 161 ns 161 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 4.96 % 4.96 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 428 ns 428 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 425 ns 425 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 10.1 ns 10.1 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 2.36 % 2.36 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1489 ns 1489 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1487 ns 1487 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 47.5 ns 47.5 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.19 % 3.19 % 4
std::string str = std::format("test = {} times", k);_mean 1458 ns 1458 ns 4
std::string str = std::format("test = {} times", k);_median 1453 ns 1453 ns 4
std::string str = std::format("test = {} times", k);_stddev 31.8 ns 31.8 ns 4
std::string str = std::format("test = {} times", k);_cv 2.18 % 2.18 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 1574 ns 1574 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1549 ns 1549 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 57.9 ns 57.9 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 3.68 % 3.68 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 1098 ns 1098 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 1097 ns 1097 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 10.3 ns 10.3 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 0.94 % 0.94 % 4
lstringa<8> str = "test = " + k + " times";_mean 303 ns 303 ns 4
lstringa<8> str = "test = " + k + " times";_median 300 ns 300 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 7.22 ns 7.22 ns 4
lstringa<8> str = "test = " + k + " times";_cv 2.39 % 2.39 % 4
lstringa<32> str = "test = " + k + " times";_mean 148 ns 148 ns 4
lstringa<32> str = "test = " + k + " times";_median 147 ns 147 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 4.36 ns 4.36 ns 4
lstringa<32> str = "test = " + k + " times";_cv 2.94 % 2.94 % 4
stringa str = "test = " + k + " times";_mean 137 ns 137 ns 4
stringa str = "test = " + k + " times";_median 136 ns 136 ns 4
stringa str = "test = " + k + " times";_stddev 5.87 ns 5.87 ns 4
stringa str = "test = " + k + " times";_cv 4.29 % 4.29 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 279 ns 279 ns 4
std::string::find + substr + std::strtol_median 280 ns 280 ns 4
std::string::find + substr + std::strtol_stddev 6.72 ns 6.72 ns 4
std::string::find + substr + std::strtol_cv 2.41 % 2.41 % 4
ssa::splitter + ssa::as_int_mean 134 ns 134 ns 4
ssa::splitter + ssa::as_int_median 134 ns 134 ns 4
ssa::splitter + ssa::as_int_stddev 1.18 ns 1.18 ns 4
ssa::splitter + ssa::as_int_cv 0.88 % 0.88 % 4
ssa::splitf + functor_mean 139 ns 139 ns 4
ssa::splitf + functor_median 139 ns 139 ns 4
ssa::splitf + functor_stddev 5.32 ns 5.32 ns 4
ssa::splitf + functor_cv 3.82 % 3.82 % 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 1153 ns 1153 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 1153 ns 1153 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 29.0 ns 29.0 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 2.52 % 2.51 % 4
replace symbols with std::string find_first_of + replace_mean 2567 ns 2567 ns 4
replace symbols with std::string find_first_of + replace_median 2564 ns 2564 ns 4
replace symbols with std::string find_first_of + replace_stddev 41.7 ns 41.7 ns 4
replace symbols with std::string find_first_of + replace_cv 1.62 % 1.62 % 4
replace symbols with std::string_view find_first_of + copy_mean 959 ns 959 ns 4
replace symbols with std::string_view find_first_of + copy_median 959 ns 959 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 1.92 ns 1.93 ns 4
replace symbols with std::string_view find_first_of + copy_cv 0.20 % 0.20 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1461 ns 1461 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1458 ns 1458 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 39.7 ns 39.7 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 2.72 % 2.72 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1209 ns 1209 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1217 ns 1217 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 45.7 ns 45.7 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 3.78 % 3.78 % 4
replace const symbols with string expressions and without remembering all search results_mean 1207 ns 1207 ns 4
replace const symbols with string expressions and without remembering all search results_median 1208 ns 1208 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 36.6 ns 36.6 ns 4
replace const symbols with string expressions and without remembering all search results_cv 3.03 % 3.03 % 4
replace const symbols with string expressions and memorization of all search results_mean 854 ns 854 ns 4
replace const symbols with string expressions and memorization of all search results_median 835 ns 835 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 51.7 ns 51.7 ns 4
replace const symbols with string expressions and memorization of all search results_cv 6.05 % 6.05 % 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 159 ns 159 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 9.85 ns 9.85 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 6.07 % 6.07 % 4
Short replace symbols with std::string find_first_of + replace_mean 333 ns 333 ns 4
Short replace symbols with std::string find_first_of + replace_median 331 ns 331 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 6.98 ns 6.98 ns 4
Short replace symbols with std::string find_first_of + replace_cv 2.10 % 2.10 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 168 ns 168 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 170 ns 170 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 5.05 ns 5.05 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 3.01 % 3.01 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 185 ns 185 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 12.4 ns 12.4 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 6.69 % 6.69 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 209 ns 209 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 208 ns 208 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 7.60 ns 7.60 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 3.65 % 3.65 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 147 ns 147 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 148 ns 148 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 3.24 ns 3.24 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 2.20 % 2.20 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 134 ns 134 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 134 ns 134 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 1.13 ns 1.13 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 0.85 % 0.85 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 159 ns 159 ns 4
replace bb to ---- in std::string|64_median 159 ns 159 ns 4
replace bb to ---- in std::string|64_stddev 6.85 ns 6.85 ns 4
replace bb to ---- in std::string|64_cv 4.31 % 4.31 % 4
replace bb to ---- in std::string|256_mean 502 ns 502 ns 4
replace bb to ---- in std::string|256_median 500 ns 500 ns 4
replace bb to ---- in std::string|256_stddev 20.8 ns 20.8 ns 4
replace bb to ---- in std::string|256_cv 4.15 % 4.15 % 4
replace bb to ---- in std::string|512_mean 995 ns 995 ns 4
replace bb to ---- in std::string|512_median 994 ns 994 ns 4
replace bb to ---- in std::string|512_stddev 48.1 ns 48.1 ns 4
replace bb to ---- in std::string|512_cv 4.83 % 4.83 % 4
replace bb to ---- in std::string|1024_mean 2262 ns 2262 ns 4
replace bb to ---- in std::string|1024_median 2275 ns 2275 ns 4
replace bb to ---- in std::string|1024_stddev 138 ns 138 ns 4
replace bb to ---- in std::string|1024_cv 6.12 % 6.12 % 4
replace bb to ---- in std::string|2048_mean 6071 ns 6071 ns 4
replace bb to ---- in std::string|2048_median 5951 ns 5951 ns 4
replace bb to ---- in std::string|2048_stddev 414 ns 414 ns 4
replace bb to ---- in std::string|2048_cv 6.83 % 6.82 % 4
replace bb to ---- in lstringa<8>|64_mean 138 ns 138 ns 4
replace bb to ---- in lstringa<8>|64_median 137 ns 137 ns 4
replace bb to ---- in lstringa<8>|64_stddev 4.27 ns 4.27 ns 4
replace bb to ---- in lstringa<8>|64_cv 3.10 % 3.10 % 4
replace bb to ---- in lstringa<8>|256_mean 475 ns 475 ns 4
replace bb to ---- in lstringa<8>|256_median 475 ns 475 ns 4
replace bb to ---- in lstringa<8>|256_stddev 4.44 ns 4.44 ns 4
replace bb to ---- in lstringa<8>|256_cv 0.93 % 0.93 % 4
replace bb to ---- in lstringa<8>|512_mean 893 ns 893 ns 4
replace bb to ---- in lstringa<8>|512_median 865 ns 865 ns 4
replace bb to ---- in lstringa<8>|512_stddev 84.0 ns 84.0 ns 4
replace bb to ---- in lstringa<8>|512_cv 9.41 % 9.41 % 4
replace bb to ---- in lstringa<8>|1024_mean 1660 ns 1660 ns 4
replace bb to ---- in lstringa<8>|1024_median 1660 ns 1660 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 44.8 ns 44.8 ns 4
replace bb to ---- in lstringa<8>|1024_cv 2.70 % 2.70 % 4
replace bb to ---- in lstringa<8>|2048_mean 3247 ns 3247 ns 4
replace bb to ---- in lstringa<8>|2048_median 3215 ns 3215 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 72.0 ns 72.1 ns 4
replace bb to ---- in lstringa<8>|2048_cv 2.22 % 2.22 % 4
replace bb to ---- by init stringa|64_mean 84.8 ns 84.8 ns 4
replace bb to ---- by init stringa|64_median 84.8 ns 84.8 ns 4
replace bb to ---- by init stringa|64_stddev 1.14 ns 1.14 ns 4
replace bb to ---- by init stringa|64_cv 1.34 % 1.34 % 4
replace bb to ---- by init stringa|256_mean 282 ns 282 ns 4
replace bb to ---- by init stringa|256_median 282 ns 282 ns 4
replace bb to ---- by init stringa|256_stddev 9.03 ns 9.03 ns 4
replace bb to ---- by init stringa|256_cv 3.21 % 3.21 % 4
replace bb to ---- by init stringa|512_mean 674 ns 674 ns 4
replace bb to ---- by init stringa|512_median 673 ns 673 ns 4
replace bb to ---- by init stringa|512_stddev 11.5 ns 11.5 ns 4
replace bb to ---- by init stringa|512_cv 1.71 % 1.71 % 4
replace bb to ---- by init stringa|1024_mean 1535 ns 1535 ns 4
replace bb to ---- by init stringa|1024_median 1538 ns 1538 ns 4
replace bb to ---- by init stringa|1024_stddev 47.4 ns 47.4 ns 4
replace bb to ---- by init stringa|1024_cv 3.09 % 3.09 % 4
replace bb to ---- by init stringa|2048_mean 3000 ns 3000 ns 4
replace bb to ---- by init stringa|2048_median 3003 ns 3003 ns 4
replace bb to ---- by init stringa|2048_stddev 84.7 ns 84.7 ns 4
replace bb to ---- by init stringa|2048_cv 2.82 % 2.82 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 115 ns 115 ns 4
replace bb to -- in std::string|64_median 115 ns 115 ns 4
replace bb to -- in std::string|64_stddev 3.80 ns 3.80 ns 4
replace bb to -- in std::string|64_cv 3.30 % 3.30 % 4
replace bb to -- in std::string|256_mean 408 ns 408 ns 4
replace bb to -- in std::string|256_median 377 ns 377 ns 4
replace bb to -- in std::string|256_stddev 87.3 ns 87.3 ns 4
replace bb to -- in std::string|256_cv 21.43 % 21.43 % 4
replace bb to -- in std::string|512_mean 702 ns 702 ns 4
replace bb to -- in std::string|512_median 699 ns 699 ns 4
replace bb to -- in std::string|512_stddev 16.4 ns 16.4 ns 4
replace bb to -- in std::string|512_cv 2.33 % 2.33 % 4
replace bb to -- in std::string|1024_mean 1454 ns 1454 ns 4
replace bb to -- in std::string|1024_median 1466 ns 1466 ns 4
replace bb to -- in std::string|1024_stddev 94.6 ns 94.6 ns 4
replace bb to -- in std::string|1024_cv 6.51 % 6.51 % 4
replace bb to -- in std::string|2048_mean 2708 ns 2708 ns 4
replace bb to -- in std::string|2048_median 2694 ns 2694 ns 4
replace bb to -- in std::string|2048_stddev 116 ns 116 ns 4
replace bb to -- in std::string|2048_cv 4.28 % 4.28 % 4
replace bb to -- in lstringa<8>|64_mean 92.0 ns 92.0 ns 4
replace bb to -- in lstringa<8>|64_median 90.6 ns 90.6 ns 4
replace bb to -- in lstringa<8>|64_stddev 3.70 ns 3.70 ns 4
replace bb to -- in lstringa<8>|64_cv 4.02 % 4.02 % 4
replace bb to -- in lstringa<8>|256_mean 302 ns 302 ns 4
replace bb to -- in lstringa<8>|256_median 304 ns 304 ns 4
replace bb to -- in lstringa<8>|256_stddev 9.49 ns 9.49 ns 4
replace bb to -- in lstringa<8>|256_cv 3.15 % 3.15 % 4
replace bb to -- in lstringa<8>|512_mean 541 ns 541 ns 4
replace bb to -- in lstringa<8>|512_median 539 ns 539 ns 4
replace bb to -- in lstringa<8>|512_stddev 5.54 ns 5.54 ns 4
replace bb to -- in lstringa<8>|512_cv 1.02 % 1.02 % 4
replace bb to -- in lstringa<8>|1024_mean 1033 ns 1033 ns 4
replace bb to -- in lstringa<8>|1024_median 1031 ns 1031 ns 4
replace bb to -- in lstringa<8>|1024_stddev 17.3 ns 17.3 ns 4
replace bb to -- in lstringa<8>|1024_cv 1.68 % 1.68 % 4
replace bb to -- in lstringa<8>|2048_mean 2000 ns 2000 ns 4
replace bb to -- in lstringa<8>|2048_median 1974 ns 1974 ns 4
replace bb to -- in lstringa<8>|2048_stddev 68.3 ns 68.3 ns 4
replace bb to -- in lstringa<8>|2048_cv 3.41 % 3.41 % 4
replace bb to -- by init stringa|64_mean 82.3 ns 82.3 ns 4
replace bb to -- by init stringa|64_median 82.5 ns 82.5 ns 4
replace bb to -- by init stringa|64_stddev 0.997 ns 0.997 ns 4
replace bb to -- by init stringa|64_cv 1.21 % 1.21 % 4
replace bb to -- by init stringa|256_mean 264 ns 264 ns 4
replace bb to -- by init stringa|256_median 264 ns 264 ns 4
replace bb to -- by init stringa|256_stddev 1.39 ns 1.39 ns 4
replace bb to -- by init stringa|256_cv 0.53 % 0.53 % 4
replace bb to -- by init stringa|512_mean 571 ns 571 ns 4
replace bb to -- by init stringa|512_median 570 ns 570 ns 4
replace bb to -- by init stringa|512_stddev 4.90 ns 4.90 ns 4
replace bb to -- by init stringa|512_cv 0.86 % 0.86 % 4
replace bb to -- by init stringa|1024_mean 1012 ns 1012 ns 4
replace bb to -- by init stringa|1024_median 1014 ns 1014 ns 4
replace bb to -- by init stringa|1024_stddev 16.4 ns 16.4 ns 4
replace bb to -- by init stringa|1024_cv 1.62 % 1.62 % 4
replace bb to -- by init stringa|2048_mean 1962 ns 1962 ns 4
replace bb to -- by init stringa|2048_median 1947 ns 1947 ns 4
replace bb to -- by init stringa|2048_stddev 54.1 ns 54.1 ns 4
replace bb to -- by init stringa|2048_cv 2.76 % 2.76 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3720383 ns 3720398 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3705396 ns 3705413 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 45472 ns 45472 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 1.22 % 1.22 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3743420 ns 3743433 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3712154 ns 3712167 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 195474 ns 195475 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 5.22 % 5.22 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3829722 ns 3829732 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3813470 ns 3813479 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 69576 ns 69575 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 1.82 % 1.82 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3934639 ns 3934657 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3900053 ns 3900073 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 92827 ns 92824 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.36 % 2.36 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 871 ns 871 ns 4
Build func full name std::string;_median 833 ns 833 ns 4
Build func full name std::string;_stddev 78.6 ns 78.6 ns 4
Build func full name std::string;_cv 9.02 % 9.02 % 4
Build func full name std::string 1;_mean 910 ns 910 ns 4
Build func full name std::string 1;_median 897 ns 897 ns 4
Build func full name std::string 1;_stddev 29.9 ns 29.9 ns 4
Build func full name std::string 1;_cv 3.28 % 3.29 % 4
Build func full name std::stream;_mean 2633 ns 2633 ns 4
Build func full name std::stream;_median 2631 ns 2631 ns 4
Build func full name std::stream;_stddev 104 ns 104 ns 4
Build func full name std::stream;_cv 3.97 % 3.97 % 4
Build func full name stringa;_mean 451 ns 451 ns 4
Build func full name stringa;_median 451 ns 451 ns 4
Build func full name stringa;_stddev 0.978 ns 0.978 ns 4
Build func full name stringa;_cv 0.22 % 0.22 % 4
Build func full name stringa 1;_mean 656 ns 656 ns 4
Build func full name stringa 1;_median 649 ns 649 ns 4
Build func full name stringa 1;_stddev 26.2 ns 26.2 ns 4
Build func full name stringa 1;_cv 3.99 % 3.99 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 165 ns 165 ns 4
To upper case std::wstring_median 164 ns 164 ns 4
To upper case std::wstring_stddev 5.42 ns 5.42 ns 4
To upper case std::wstring_cv 3.29 % 3.29 % 4
To upper case lstringw<15>_mean 45.1 ns 45.1 ns 4
To upper case lstringw<15>_median 44.0 ns 44.0 ns 4
To upper case lstringw<15>_stddev 2.62 ns 2.62 ns 4
To upper case lstringw<15>_cv 5.79 % 5.79 % 4