simstr/bench/results/005-Xeon E5-2682 v4, WASM C...

983 lines
146 KiB
Plaintext

Benchmarks of simstr, version 1.7.2
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
Compiler Clang 22.0.0, use libc++
Run on (32 X 2513.96 MHz CPU s)
Chrome/143.0.0.0 webasm
--------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat email std::format_mean 994 ns 994 ns 4
Concat email std::format_median 996 ns 996 ns 4
Concat email std::format_stddev 12.4 ns 12.4 ns 4
Concat email std::format_cv 1.25 % 1.25 % 4
Concat email std::stringstream_mean 2551 ns 2551 ns 4
Concat email std::stringstream_median 2584 ns 2584 ns 4
Concat email std::stringstream_stddev 103 ns 103 ns 4
Concat email std::stringstream_cv 4.04 % 4.04 % 4
Concat email stringzilla append_mean 591 ns 591 ns 4
Concat email stringzilla append_median 589 ns 589 ns 4
Concat email stringzilla append_stddev 25.8 ns 25.8 ns 4
Concat email stringzilla append_cv 4.36 % 4.36 % 4
Concat email stringzilla concat_mean 222 ns 222 ns 4
Concat email stringzilla concat_median 222 ns 222 ns 4
Concat email stringzilla concat_stddev 1.11 ns 1.11 ns 4
Concat email stringzilla concat_cv 0.50 % 0.50 % 4
Concat email std::string append_mean 643 ns 643 ns 4
Concat email std::string append_median 645 ns 645 ns 4
Concat email std::string append_stddev 22.7 ns 22.7 ns 4
Concat email std::string append_cv 3.53 % 3.53 % 4
Concat email std::string by strexpr_mean 164 ns 164 ns 4
Concat email std::string by strexpr_median 164 ns 164 ns 4
Concat email std::string by strexpr_stddev 7.39 ns 7.39 ns 4
Concat email std::string by strexpr_cv 4.50 % 4.50 % 4
Concat email stringa_mean 131 ns 131 ns 4
Concat email stringa_median 131 ns 131 ns 4
Concat email stringa_stddev 10.6 ns 10.6 ns 4
Concat email stringa_cv 8.09 % 8.09 % 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 1982 ns 1982 ns 4
Concat std::string and number by std to std::string_median 1962 ns 1962 ns 4
Concat std::string and number by std to std::string_stddev 73.7 ns 73.6 ns 4
Concat std::string and number by std to std::string_cv 3.72 % 3.72 % 4
Concat std::string and number by StrExpr to std::string_mean 980 ns 980 ns 4
Concat std::string and number by StrExpr to std::string_median 978 ns 978 ns 4
Concat std::string and number by StrExpr to std::string_stddev 28.9 ns 28.9 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.95 % 2.95 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 352 ns 352 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 352 ns 352 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.52 ns 2.52 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 0.72 % 0.72 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 377 ns 377 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 378 ns 378 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 11.3 ns 11.3 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 3.01 % 3.01 % 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 3864 ns 3864 ns 4
Concat std::string and format hex number and literal to std::string_median 3839 ns 3839 ns 4
Concat std::string and format hex number and literal to std::string_stddev 123 ns 123 ns 4
Concat std::string and format hex number and literal to std::string_cv 3.19 % 3.18 % 4
std::format std::string and hex number by literal to std::string_mean 5212 ns 5212 ns 4
std::format std::string and hex number by literal to std::string_median 5237 ns 5237 ns 4
std::format std::string and hex number by literal to std::string_stddev 152 ns 152 ns 4
std::format std::string and hex number by literal to std::string_cv 2.91 % 2.91 % 4
Concat std::string and std::to_chars and string to std::string_mean 1159 ns 1159 ns 4
Concat std::string and std::to_chars and string to std::string_median 1134 ns 1134 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 61.1 ns 61.1 ns 4
Concat std::string and std::to_chars and string to std::string_cv 5.27 % 5.27 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 912 ns 912 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 916 ns 916 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 21.4 ns 21.3 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 2.34 % 2.34 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 221 ns 221 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 227 ns 227 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 18.0 ns 18.0 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 8.14 % 8.14 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 221 ns 221 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 221 ns 221 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 6.40 ns 6.40 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.90 % 2.90 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 350 ns 350 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 351 ns 351 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 18.4 ns 18.4 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.25 % 5.25 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 928 ns 928 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 925 ns 925 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 20.4 ns 20.4 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.20 % 2.20 % 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 418 ns 418 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 418 ns 418 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 16.3 ns 16.3 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.91 % 3.91 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 657 ns 657 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 648 ns 648 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 57.5 ns 57.5 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 8.76 % 8.76 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1440 ns 1440 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 1451 ns 1451 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 30.6 ns 30.6 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.13 % 2.13 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2237 ns 2237 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2239 ns 2239 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 79.1 ns 79.1 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.53 % 3.53 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 2986 ns 2986 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 2955 ns 2955 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 105 ns 105 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.53 % 3.53 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 3132 ns 3132 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 3138 ns 3138 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 57.3 ns 57.2 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.83 % 1.83 % 4
std::vformat(pattern, std::make_format_args(i))_mean 3119 ns 3119 ns 4
std::vformat(pattern, std::make_format_args(i))_median 3148 ns 3148 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 76.8 ns 76.8 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 2.46 % 2.46 % 4
std::format with std::formatted_size_mean 5329 ns 5329 ns 4
std::format with std::formatted_size_median 5334 ns 5334 ns 4
std::format with std::formatted_size_stddev 97.5 ns 97.5 ns 4
std::format with std::formatted_size_cv 1.83 % 1.83 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8569 ns 8569 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8575 ns 8575 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 354 ns 354 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 4.13 % 4.13 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 116 ns 116 ns 4
Concat std::string by std to std::string_median 115 ns 115 ns 4
Concat std::string by std to std::string_stddev 5.03 ns 5.03 ns 4
Concat std::string by std to std::string_cv 4.35 % 4.35 % 4
Concat std::string by StrExpr to std::string_mean 131 ns 131 ns 4
Concat std::string by StrExpr to std::string_median 129 ns 129 ns 4
Concat std::string by StrExpr to std::string_stddev 4.40 ns 4.41 ns 4
Concat std::string by StrExpr to std::string_cv 3.37 % 3.37 % 4
Concat stringa by StrExpr to stringa_mean 101 ns 101 ns 4
Concat stringa by StrExpr to stringa_median 99.5 ns 99.5 ns 4
Concat stringa by StrExpr to stringa_stddev 5.02 ns 5.02 ns 4
Concat stringa by StrExpr to stringa_cv 5.00 % 5.00 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 214 ns 214 ns 4
Find concat three std::string_median 214 ns 214 ns 4
Find concat three std::string_stddev 1.77 ns 1.77 ns 4
Find concat three std::string_cv 0.83 % 0.83 % 4
Find concat three strexpr_mean 107 ns 107 ns 4
Find concat three strexpr_median 108 ns 108 ns 4
Find concat three strexpr_stddev 1.66 ns 1.66 ns 4
Find concat three strexpr_cv 1.55 % 1.55 % 4
Find concat three simstr_mean 57.6 ns 57.6 ns 4
Find concat three simstr_median 56.8 ns 56.8 ns 4
Find concat three simstr_stddev 2.37 ns 2.37 ns 4
Find concat three simstr_cv 4.12 % 4.12 % 4
Find concat three stringzilla string_mean 271 ns 271 ns 4
Find concat three stringzilla string_median 273 ns 273 ns 4
Find concat three stringzilla string_stddev 4.34 ns 4.34 ns 4
Find concat three stringzilla string_cv 1.60 % 1.60 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 23.2 ns 23.2 ns 4
BuildTypeNameStr 0/0_median 22.6 ns 22.6 ns 4
BuildTypeNameStr 0/0_stddev 1.32 ns 1.32 ns 4
BuildTypeNameStr 0/0_cv 5.68 % 5.68 % 4
BuildTypeNameExp 0/0_mean 25.8 ns 25.8 ns 4
BuildTypeNameExp 0/0_median 25.8 ns 25.8 ns 4
BuildTypeNameExp 0/0_stddev 0.978 ns 0.978 ns 4
BuildTypeNameExp 0/0_cv 3.79 % 3.79 % 4
BuildTypeNameSim 0/0_mean 21.4 ns 21.4 ns 4
BuildTypeNameSim 0/0_median 21.2 ns 21.2 ns 4
BuildTypeNameSim 0/0_stddev 0.818 ns 0.818 ns 4
BuildTypeNameSim 0/0_cv 3.83 % 3.83 % 4
BuildTypeNameStr 10/10_mean 400 ns 400 ns 4
BuildTypeNameStr 10/10_median 397 ns 397 ns 4
BuildTypeNameStr 10/10_stddev 14.3 ns 14.4 ns 4
BuildTypeNameStr 10/10_cv 3.57 % 3.59 % 4
BuildTypeNameExp 10/10_mean 126 ns 126 ns 4
BuildTypeNameExp 10/10_median 126 ns 126 ns 4
BuildTypeNameExp 10/10_stddev 7.20 ns 7.20 ns 4
BuildTypeNameExp 10/10_cv 5.72 % 5.72 % 4
BuildTypeNameSim 10/10_mean 73.2 ns 73.2 ns 4
BuildTypeNameSim 10/10_median 73.0 ns 73.0 ns 4
BuildTypeNameSim 10/10_stddev 5.76 ns 5.76 ns 4
BuildTypeNameSim 10/10_cv 7.87 % 7.87 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 546 ns 546 ns 4
Concat with replace str_median 546 ns 546 ns 4
Concat with replace str_stddev 8.91 ns 8.91 ns 4
Concat with replace str_cv 1.63 % 1.63 % 4
Concat with replace exp_mean 247 ns 247 ns 4
Concat with replace exp_median 248 ns 248 ns 4
Concat with replace exp_stddev 13.3 ns 13.3 ns 4
Concat with replace exp_cv 5.37 % 5.37 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 2.35 ns 2.35 ns 4
std::string e;_median 2.40 ns 2.40 ns 4
std::string e;_stddev 0.161 ns 0.161 ns 4
std::string e;_cv 6.82 % 6.82 % 4
std::string_view e;_mean 0.772 ns 0.772 ns 4
std::string_view e;_median 0.749 ns 0.749 ns 4
std::string_view e;_stddev 0.058 ns 0.058 ns 4
std::string_view e;_cv 7.48 % 7.48 % 4
ssa e;_mean 0.359 ns 0.359 ns 4
ssa e;_median 0.358 ns 0.358 ns 4
ssa e;_stddev 0.012 ns 0.012 ns 4
ssa e;_cv 3.24 % 3.24 % 4
stringa e;_mean 2.12 ns 2.12 ns 4
stringa e;_median 2.12 ns 2.12 ns 4
stringa e;_stddev 0.037 ns 0.037 ns 4
stringa e;_cv 1.73 % 1.73 % 4
lstringa<20> e;_mean 2.26 ns 2.26 ns 4
lstringa<20> e;_median 2.22 ns 2.22 ns 4
lstringa<20> e;_stddev 0.087 ns 0.087 ns 4
lstringa<20> e;_cv 3.85 % 3.85 % 4
lstringa<40> e;_mean 2.41 ns 2.41 ns 4
lstringa<40> e;_median 2.38 ns 2.38 ns 4
lstringa<40> e;_stddev 0.182 ns 0.182 ns 4
lstringa<40> e;_cv 7.56 % 7.56 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 2.49 ns 2.49 ns 4
std::string e = "Test text";_median 2.38 ns 2.38 ns 4
std::string e = "Test text";_stddev 0.271 ns 0.271 ns 4
std::string e = "Test text";_cv 10.91 % 10.91 % 4
std::string_view e = "Test text";_mean 1.08 ns 1.08 ns 4
std::string_view e = "Test text";_median 1.08 ns 1.08 ns 4
std::string_view e = "Test text";_stddev 0.006 ns 0.006 ns 4
std::string_view e = "Test text";_cv 0.58 % 0.58 % 4
ssa e = "Test text";_mean 0.779 ns 0.779 ns 4
ssa e = "Test text";_median 0.771 ns 0.771 ns 4
ssa e = "Test text";_stddev 0.056 ns 0.056 ns 4
ssa e = "Test text";_cv 7.16 % 7.16 % 4
stringa e = "Test text";_mean 2.17 ns 2.17 ns 4
stringa e = "Test text";_median 2.17 ns 2.17 ns 4
stringa e = "Test text";_stddev 0.008 ns 0.008 ns 4
stringa e = "Test text";_cv 0.38 % 0.38 % 4
lstringa<20> e = "Test text";_mean 2.58 ns 2.58 ns 4
lstringa<20> e = "Test text";_median 2.57 ns 2.57 ns 4
lstringa<20> e = "Test text";_stddev 0.042 ns 0.042 ns 4
lstringa<20> e = "Test text";_cv 1.61 % 1.61 % 4
lstringa<40> e = "Test text";_mean 2.55 ns 2.55 ns 4
lstringa<40> e = "Test text";_median 2.54 ns 2.54 ns 4
lstringa<40> e = "Test text";_stddev 0.040 ns 0.040 ns 4
lstringa<40> e = "Test text";_cv 1.58 % 1.58 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 23.4 ns 23.4 ns 4
std::string e = "123456789012345678901234567890";_median 22.9 ns 22.9 ns 4
std::string e = "123456789012345678901234567890";_stddev 1.77 ns 1.77 ns 4
std::string e = "123456789012345678901234567890";_cv 7.57 % 7.57 % 4
std::string_view e = "123456789012345678901234567890";_mean 1.15 ns 1.15 ns 4
std::string_view e = "123456789012345678901234567890";_median 1.16 ns 1.16 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.043 ns 0.043 ns 4
std::string_view e = "123456789012345678901234567890";_cv 3.78 % 3.78 % 4
ssa e = "123456789012345678901234567890";_mean 0.757 ns 0.757 ns 4
ssa e = "123456789012345678901234567890";_median 0.743 ns 0.743 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.048 ns 0.048 ns 4
ssa e = "123456789012345678901234567890";_cv 6.37 % 6.37 % 4
stringa e = "123456789012345678901234567890";_mean 2.17 ns 2.17 ns 4
stringa e = "123456789012345678901234567890";_median 2.17 ns 2.17 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.030 ns 0.030 ns 4
stringa e = "123456789012345678901234567890";_cv 1.39 % 1.39 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 29.8 ns 29.8 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 30.3 ns 30.3 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 1.22 ns 1.22 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 4.09 % 4.09 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.95 ns 2.95 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.96 ns 2.96 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.039 ns 0.039 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 1.33 % 1.33 % 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.03 ns 4.03 ns 4
std::string e = "Test text"; auto c{e};_median 4.02 ns 4.02 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.372 ns 0.372 ns 4
std::string e = "Test text"; auto c{e};_cv 9.23 % 9.23 % 4
std::string_view e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4
std::string_view e = "Test text"; auto c{e};_median 1.17 ns 1.17 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.053 ns 0.053 ns 4
std::string_view e = "Test text"; auto c{e};_cv 4.61 % 4.61 % 4
ssa e = "Test text"; auto c{e};_mean 1.09 ns 1.09 ns 4
ssa e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.013 ns 0.013 ns 4
ssa e = "Test text"; auto c{e};_cv 1.16 % 1.16 % 4
stringa e = "Test text"; auto c{e};_mean 2.49 ns 2.49 ns 4
stringa e = "Test text"; auto c{e};_median 2.48 ns 2.48 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
stringa e = "Test text"; auto c{e};_cv 0.55 % 0.55 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 4.74 ns 4.74 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 4.73 ns 4.73 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.090 ns 0.090 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 1.89 % 1.89 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 5.17 ns 5.17 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 5.13 ns 5.13 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.405 ns 0.405 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 7.84 % 7.84 % 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 49.0 ns 49.0 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 48.5 ns 48.5 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.70 ns 1.70 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.47 % 3.47 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.07 ns 1.07 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.07 ns 1.07 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.007 ns 0.007 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.62 % 0.62 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.784 ns 0.784 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.765 ns 0.765 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.066 ns 0.066 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 8.43 % 8.43 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.28 ns 2.28 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.21 ns 2.21 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.197 ns 0.197 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 8.62 % 8.62 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 23.8 ns 23.8 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 23.6 ns 23.6 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.64 ns 1.64 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 6.88 % 6.88 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 16.7 ns 16.7 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 16.6 ns 16.6 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.706 ns 0.706 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.22 % 4.22 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 123 ns 123 ns 4
sz::string::find;_median 122 ns 122 ns 4
sz::string::find;_stddev 2.32 ns 2.32 ns 4
sz::string::find;_cv 1.89 % 1.89 % 4
std::string::find;_mean 43.8 ns 43.8 ns 4
std::string::find;_median 43.3 ns 43.3 ns 4
std::string::find;_stddev 2.83 ns 2.83 ns 4
std::string::find;_cv 6.46 % 6.46 % 4
std::string_view::find;_mean 41.6 ns 41.6 ns 4
std::string_view::find;_median 42.1 ns 42.1 ns 4
std::string_view::find;_stddev 1.47 ns 1.47 ns 4
std::string_view::find;_cv 3.54 % 3.54 % 4
ssa::find;_mean 41.1 ns 41.1 ns 4
ssa::find;_median 41.6 ns 41.6 ns 4
ssa::find;_stddev 1.48 ns 1.48 ns 4
ssa::find;_cv 3.59 % 3.59 % 4
stringa::find;_mean 40.6 ns 40.6 ns 4
stringa::find;_median 40.4 ns 40.4 ns 4
stringa::find;_stddev 0.955 ns 0.955 ns 4
stringa::find;_cv 2.35 % 2.35 % 4
lstringa<20>::find;_mean 39.8 ns 39.8 ns 4
lstringa<20>::find;_median 39.8 ns 39.8 ns 4
lstringa<20>::find;_stddev 0.590 ns 0.591 ns 4
lstringa<20>::find;_cv 1.48 % 1.48 % 4
lstringa<40>::find;_mean 39.2 ns 39.2 ns 4
lstringa<40>::find;_median 39.3 ns 39.3 ns 4
lstringa<40>::find;_stddev 0.650 ns 0.650 ns 4
lstringa<40>::find;_cv 1.66 % 1.66 % 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 45.0 ns 45.0 ns 4
std::string copy{str_with_len_N};/15_median 45.2 ns 45.2 ns 4
std::string copy{str_with_len_N};/15_stddev 0.710 ns 0.710 ns 4
std::string copy{str_with_len_N};/15_cv 1.58 % 1.58 % 4
std::string copy{str_with_len_N};/16_mean 51.9 ns 51.9 ns 4
std::string copy{str_with_len_N};/16_median 51.5 ns 51.5 ns 4
std::string copy{str_with_len_N};/16_stddev 4.72 ns 4.71 ns 4
std::string copy{str_with_len_N};/16_cv 9.09 % 9.09 % 4
std::string copy{str_with_len_N};/23_mean 48.6 ns 48.6 ns 4
std::string copy{str_with_len_N};/23_median 48.7 ns 48.7 ns 4
std::string copy{str_with_len_N};/23_stddev 0.687 ns 0.687 ns 4
std::string copy{str_with_len_N};/23_cv 1.41 % 1.41 % 4
std::string copy{str_with_len_N};/24_mean 49.6 ns 49.6 ns 4
std::string copy{str_with_len_N};/24_median 48.4 ns 48.4 ns 4
std::string copy{str_with_len_N};/24_stddev 2.80 ns 2.80 ns 4
std::string copy{str_with_len_N};/24_cv 5.65 % 5.65 % 4
std::string copy{str_with_len_N};/32_mean 53.9 ns 53.9 ns 4
std::string copy{str_with_len_N};/32_median 54.0 ns 54.0 ns 4
std::string copy{str_with_len_N};/32_stddev 1.96 ns 1.96 ns 4
std::string copy{str_with_len_N};/32_cv 3.64 % 3.64 % 4
std::string copy{str_with_len_N};/64_mean 52.8 ns 52.8 ns 4
std::string copy{str_with_len_N};/64_median 53.0 ns 53.0 ns 4
std::string copy{str_with_len_N};/64_stddev 2.28 ns 2.28 ns 4
std::string copy{str_with_len_N};/64_cv 4.32 % 4.32 % 4
std::string copy{str_with_len_N};/128_mean 59.2 ns 59.2 ns 4
std::string copy{str_with_len_N};/128_median 57.4 ns 57.4 ns 4
std::string copy{str_with_len_N};/128_stddev 8.56 ns 8.56 ns 4
std::string copy{str_with_len_N};/128_cv 14.46 % 14.46 % 4
std::string copy{str_with_len_N};/256_mean 77.3 ns 77.3 ns 4
std::string copy{str_with_len_N};/256_median 77.4 ns 77.4 ns 4
std::string copy{str_with_len_N};/256_stddev 11.8 ns 11.8 ns 4
std::string copy{str_with_len_N};/256_cv 15.20 % 15.20 % 4
std::string copy{str_with_len_N};/512_mean 86.0 ns 86.0 ns 4
std::string copy{str_with_len_N};/512_median 89.8 ns 89.8 ns 4
std::string copy{str_with_len_N};/512_stddev 12.4 ns 12.4 ns 4
std::string copy{str_with_len_N};/512_cv 14.38 % 14.38 % 4
std::string copy{str_with_len_N};/1024_mean 106 ns 106 ns 4
std::string copy{str_with_len_N};/1024_median 106 ns 106 ns 4
std::string copy{str_with_len_N};/1024_stddev 9.49 ns 9.49 ns 4
std::string copy{str_with_len_N};/1024_cv 8.92 % 8.92 % 4
std::string copy{str_with_len_N};/2048_mean 119 ns 119 ns 4
std::string copy{str_with_len_N};/2048_median 120 ns 120 ns 4
std::string copy{str_with_len_N};/2048_stddev 4.21 ns 4.21 ns 4
std::string copy{str_with_len_N};/2048_cv 3.55 % 3.55 % 4
std::string copy{str_with_len_N};/4096_mean 165 ns 165 ns 4
std::string copy{str_with_len_N};/4096_median 163 ns 163 ns 4
std::string copy{str_with_len_N};/4096_stddev 9.15 ns 9.15 ns 4
std::string copy{str_with_len_N};/4096_cv 5.54 % 5.54 % 4
stringa copy{str_with_len_N};/15_mean 2.50 ns 2.50 ns 4
stringa copy{str_with_len_N};/15_median 2.50 ns 2.50 ns 4
stringa copy{str_with_len_N};/15_stddev 0.115 ns 0.115 ns 4
stringa copy{str_with_len_N};/15_cv 4.60 % 4.59 % 4
stringa copy{str_with_len_N};/16_mean 4.92 ns 4.92 ns 4
stringa copy{str_with_len_N};/16_median 4.93 ns 4.93 ns 4
stringa copy{str_with_len_N};/16_stddev 0.158 ns 0.158 ns 4
stringa copy{str_with_len_N};/16_cv 3.20 % 3.20 % 4
stringa copy{str_with_len_N};/23_mean 4.77 ns 4.77 ns 4
stringa copy{str_with_len_N};/23_median 4.78 ns 4.78 ns 4
stringa copy{str_with_len_N};/23_stddev 0.025 ns 0.025 ns 4
stringa copy{str_with_len_N};/23_cv 0.52 % 0.52 % 4
stringa copy{str_with_len_N};/24_mean 4.73 ns 4.73 ns 4
stringa copy{str_with_len_N};/24_median 4.72 ns 4.72 ns 4
stringa copy{str_with_len_N};/24_stddev 0.085 ns 0.085 ns 4
stringa copy{str_with_len_N};/24_cv 1.80 % 1.80 % 4
stringa copy{str_with_len_N};/32_mean 4.77 ns 4.77 ns 4
stringa copy{str_with_len_N};/32_median 4.78 ns 4.78 ns 4
stringa copy{str_with_len_N};/32_stddev 0.040 ns 0.040 ns 4
stringa copy{str_with_len_N};/32_cv 0.84 % 0.84 % 4
stringa copy{str_with_len_N};/64_mean 4.76 ns 4.76 ns 4
stringa copy{str_with_len_N};/64_median 4.74 ns 4.74 ns 4
stringa copy{str_with_len_N};/64_stddev 0.090 ns 0.090 ns 4
stringa copy{str_with_len_N};/64_cv 1.88 % 1.88 % 4
stringa copy{str_with_len_N};/128_mean 4.74 ns 4.74 ns 4
stringa copy{str_with_len_N};/128_median 4.73 ns 4.73 ns 4
stringa copy{str_with_len_N};/128_stddev 0.050 ns 0.050 ns 4
stringa copy{str_with_len_N};/128_cv 1.06 % 1.06 % 4
stringa copy{str_with_len_N};/256_mean 4.74 ns 4.74 ns 4
stringa copy{str_with_len_N};/256_median 4.74 ns 4.74 ns 4
stringa copy{str_with_len_N};/256_stddev 0.042 ns 0.042 ns 4
stringa copy{str_with_len_N};/256_cv 0.89 % 0.89 % 4
stringa copy{str_with_len_N};/512_mean 4.75 ns 4.75 ns 4
stringa copy{str_with_len_N};/512_median 4.73 ns 4.73 ns 4
stringa copy{str_with_len_N};/512_stddev 0.051 ns 0.051 ns 4
stringa copy{str_with_len_N};/512_cv 1.07 % 1.07 % 4
stringa copy{str_with_len_N};/1024_mean 4.75 ns 4.75 ns 4
stringa copy{str_with_len_N};/1024_median 4.75 ns 4.75 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.038 ns 0.038 ns 4
stringa copy{str_with_len_N};/1024_cv 0.79 % 0.79 % 4
stringa copy{str_with_len_N};/2048_mean 5.34 ns 5.34 ns 4
stringa copy{str_with_len_N};/2048_median 5.25 ns 5.25 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.520 ns 0.520 ns 4
stringa copy{str_with_len_N};/2048_cv 9.75 % 9.75 % 4
stringa copy{str_with_len_N};/4096_mean 5.09 ns 5.09 ns 4
stringa copy{str_with_len_N};/4096_median 5.19 ns 5.19 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.258 ns 0.258 ns 4
stringa copy{str_with_len_N};/4096_cv 5.07 % 5.07 % 4
lstringa<16> copy{str_with_len_N};/15_mean 4.26 ns 4.26 ns 4
lstringa<16> copy{str_with_len_N};/15_median 4.18 ns 4.18 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.348 ns 0.348 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 8.18 % 8.18 % 4
lstringa<16> copy{str_with_len_N};/16_mean 16.3 ns 16.3 ns 4
lstringa<16> copy{str_with_len_N};/16_median 16.4 ns 16.4 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.595 ns 0.595 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 3.65 % 3.65 % 4
lstringa<16> copy{str_with_len_N};/23_mean 36.5 ns 36.5 ns 4
lstringa<16> copy{str_with_len_N};/23_median 36.5 ns 36.5 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.695 ns 0.695 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 1.90 % 1.90 % 4
lstringa<16> copy{str_with_len_N};/24_mean 37.9 ns 37.9 ns 4
lstringa<16> copy{str_with_len_N};/24_median 37.7 ns 37.7 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 2.17 ns 2.17 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 5.71 % 5.71 % 4
lstringa<16> copy{str_with_len_N};/32_mean 39.6 ns 39.6 ns 4
lstringa<16> copy{str_with_len_N};/32_median 39.1 ns 39.1 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 1.39 ns 1.39 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 3.50 % 3.50 % 4
lstringa<16> copy{str_with_len_N};/64_mean 39.5 ns 39.5 ns 4
lstringa<16> copy{str_with_len_N};/64_median 39.0 ns 39.0 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 1.54 ns 1.54 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 3.91 % 3.91 % 4
lstringa<16> copy{str_with_len_N};/128_mean 39.7 ns 39.7 ns 4
lstringa<16> copy{str_with_len_N};/128_median 39.7 ns 39.7 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 0.644 ns 0.644 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 1.62 % 1.62 % 4
lstringa<16> copy{str_with_len_N};/256_mean 63.9 ns 63.9 ns 4
lstringa<16> copy{str_with_len_N};/256_median 65.9 ns 65.9 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 11.7 ns 11.7 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 18.30 % 18.30 % 4
lstringa<16> copy{str_with_len_N};/512_mean 71.1 ns 71.1 ns 4
lstringa<16> copy{str_with_len_N};/512_median 74.7 ns 74.7 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 13.4 ns 13.4 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 18.81 % 18.81 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 84.9 ns 84.9 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 85.6 ns 85.6 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 4.67 ns 4.67 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 5.50 % 5.50 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 104 ns 104 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 102 ns 102 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 8.34 ns 8.34 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 8.00 % 8.00 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 145 ns 145 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 146 ns 146 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 4.90 ns 4.90 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 3.37 % 3.37 % 4
lstringa<512> copy{str_with_len_N};/15_mean 4.67 ns 4.67 ns 4
lstringa<512> copy{str_with_len_N};/15_median 4.52 ns 4.52 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.443 ns 0.444 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 9.49 % 9.52 % 4
lstringa<512> copy{str_with_len_N};/16_mean 16.9 ns 16.9 ns 4
lstringa<512> copy{str_with_len_N};/16_median 16.8 ns 16.8 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.643 ns 0.644 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 3.81 % 3.81 % 4
lstringa<512> copy{str_with_len_N};/23_mean 16.2 ns 16.2 ns 4
lstringa<512> copy{str_with_len_N};/23_median 15.8 ns 15.8 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.825 ns 0.825 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 5.09 % 5.09 % 4
lstringa<512> copy{str_with_len_N};/24_mean 16.0 ns 16.0 ns 4
lstringa<512> copy{str_with_len_N};/24_median 15.8 ns 15.8 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.895 ns 0.895 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 5.60 % 5.60 % 4
lstringa<512> copy{str_with_len_N};/32_mean 20.1 ns 20.1 ns 4
lstringa<512> copy{str_with_len_N};/32_median 20.1 ns 20.1 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.610 ns 0.610 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 3.04 % 3.03 % 4
lstringa<512> copy{str_with_len_N};/64_mean 20.1 ns 20.1 ns 4
lstringa<512> copy{str_with_len_N};/64_median 19.9 ns 19.9 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 1.18 ns 1.18 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 5.86 % 5.86 % 4
lstringa<512> copy{str_with_len_N};/128_mean 20.3 ns 20.3 ns 4
lstringa<512> copy{str_with_len_N};/128_median 20.1 ns 20.1 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.976 ns 0.976 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 4.82 % 4.82 % 4
lstringa<512> copy{str_with_len_N};/256_mean 21.6 ns 21.6 ns 4
lstringa<512> copy{str_with_len_N};/256_median 21.6 ns 21.6 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.298 ns 0.298 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 1.38 % 1.38 % 4
lstringa<512> copy{str_with_len_N};/512_mean 24.0 ns 24.1 ns 4
lstringa<512> copy{str_with_len_N};/512_median 23.6 ns 23.6 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 1.22 ns 1.22 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 5.09 % 5.09 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 82.6 ns 82.6 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 83.0 ns 83.0 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 2.36 ns 2.36 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 2.85 % 2.85 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 103 ns 103 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 103 ns 103 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 2.46 ns 2.46 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 2.40 % 2.40 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 152 ns 152 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 150 ns 150 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 13.4 ns 13.4 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 8.84 % 8.84 % 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 96.0 ns 96.0 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 92.2 ns 92.2 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 8.34 ns 8.34 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 8.69 % 8.69 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 0.787 ns 0.787 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 0.788 ns 0.788 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.054 ns 0.054 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 6.88 % 6.88 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 19.6 ns 19.6 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 19.3 ns 19.3 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.832 ns 0.832 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.25 % 4.25 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 20.8 ns 20.8 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 20.6 ns 20.6 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.59 ns 1.59 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 7.65 % 7.65 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.6 ns 16.6 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.7 ns 16.7 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.691 ns 0.691 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.16 % 4.16 % 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 69.8 ns 69.8 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 70.2 ns 70.2 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.25 ns 2.25 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.22 % 3.22 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 19.3 ns 19.3 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 19.4 ns 19.4 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 1.50 ns 1.50 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 7.81 % 7.81 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 20.2 ns 20.2 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 20.1 ns 20.1 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.28 ns 1.28 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 6.35 % 6.35 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 20.1 ns 20.1 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 20.0 ns 20.0 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.53 ns 1.53 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 7.63 % 7.63 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 15.9 ns 15.9 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 15.9 ns 15.9 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.170 ns 0.170 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.07 % 1.07 % 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 98.1 ns 98.1 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 97.9 ns 97.9 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 2.13 ns 2.13 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.17 % 2.17 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 13.9 ns 13.9 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 13.9 ns 13.9 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.218 ns 0.218 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.57 % 1.57 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 14.8 ns 14.8 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 14.7 ns 14.7 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.455 ns 0.455 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 3.07 % 3.08 % 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 305 ns 305 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 304 ns 304 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.73 ns 4.73 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.55 % 1.55 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 106 ns 106 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 106 ns 106 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.96 ns 1.97 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.85 % 1.85 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 44.4 ns 44.4 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 44.0 ns 44.0 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 2.74 ns 2.74 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 6.18 % 6.18 % 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 6891 ns 6891 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 6729 ns 6729 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 459 ns 459 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 6.67 % 6.67 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 853 ns 853 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 819 ns 820 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 91.7 ns 91.7 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 10.75 % 10.75 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 805 ns 805 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 779 ns 779 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 60.6 ns 60.6 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 7.53 % 7.53 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 594 ns 594 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 597 ns 597 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 21.6 ns 21.6 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.64 % 3.64 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 462 ns 462 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 458 ns 458 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 15.9 ns 15.9 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.44 % 3.44 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 366 ns 366 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 366 ns 366 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 10.0 ns 10.0 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.74 % 2.74 % 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 7083 ns 7083 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7007 ns 7007 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 222 ns 222 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.13 % 3.13 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2327 ns 2327 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2321 ns 2321 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 47.9 ns 47.9 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.06 % 2.06 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1069 ns 1069 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1056 ns 1056 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 45.5 ns 45.5 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.26 % 4.26 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 895 ns 895 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 894 ns 894 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.24 ns 7.26 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.81 % 0.81 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 800 ns 800 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 803 ns 803 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 38.4 ns 38.4 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.80 % 4.80 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 713 ns 713 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 708 ns 708 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 30.3 ns 30.3 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.25 % 4.25 % 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 345299 ns 345303 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 345382 ns 345387 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4911 ns 4912 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.42 % 1.42 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 127979 ns 127979 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 129225 ns 129225 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3514 ns 3515 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.75 % 2.75 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 52828 ns 52828 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 54171 ns 54171 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2762 ns 2762 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.23 % 5.23 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49507 ns 49507 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48568 ns 48568 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2403 ns 2403 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.85 % 4.85 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 50433 ns 50433 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 50589 ns 50589 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1207 ns 1207 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.39 % 2.39 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47948 ns 47948 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 47586 ns 47587 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1616 ns 1616 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.37 % 3.37 % 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 7228 ns 7228 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 7267 ns 7267 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 84.1 ns 84.1 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.16 % 1.16 % 4
std::string str; ... str += str_var1 + str_var2;_mean 2636 ns 2636 ns 4
std::string str; ... str += str_var1 + str_var2;_median 2644 ns 2644 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 113 ns 113 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 4.29 % 4.29 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1283 ns 1283 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 1296 ns 1296 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 36.8 ns 36.8 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.86 % 2.86 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1173 ns 1173 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 1176 ns 1176 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 48.3 ns 48.3 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.12 % 4.12 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 1019 ns 1019 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 988 ns 988 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 71.4 ns 71.4 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 7.01 % 7.01 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 906 ns 906 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 895 ns 895 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 57.5 ns 57.5 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 6.35 % 6.35 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 11660 ns 11660 ns 4
std::stringstream str; str << "test = " << k << " times";_median 11610 ns 11610 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 189 ns 189 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 1.62 % 1.62 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 1723 ns 1723 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 1708 ns 1708 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 63.9 ns 63.9 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 3.71 % 3.71 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5394 ns 5394 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5367 ns 5367 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 73.9 ns 73.9 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.37 % 1.37 % 4
std::string str = std::format("test = {} times", k);_mean 2892 ns 2892 ns 4
std::string str = std::format("test = {} times", k);_median 2856 ns 2856 ns 4
std::string str = std::format("test = {} times", k);_stddev 89.3 ns 89.3 ns 4
std::string str = std::format("test = {} times", k);_cv 3.09 % 3.09 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 4873 ns 4873 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 4822 ns 4822 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 251 ns 251 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 5.15 % 5.15 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 4141 ns 4141 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 4133 ns 4133 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 49.5 ns 49.5 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 1.19 % 1.19 % 4
lstringa<8> str = "test = " + k + " times";_mean 611 ns 611 ns 4
lstringa<8> str = "test = " + k + " times";_median 616 ns 616 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 20.6 ns 20.6 ns 4
lstringa<8> str = "test = " + k + " times";_cv 3.37 % 3.37 % 4
lstringa<32> str = "test = " + k + " times";_mean 374 ns 374 ns 4
lstringa<32> str = "test = " + k + " times";_median 376 ns 376 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 11.5 ns 11.5 ns 4
lstringa<32> str = "test = " + k + " times";_cv 3.08 % 3.08 % 4
stringa str = "test = " + k + " times";_mean 554 ns 554 ns 4
stringa str = "test = " + k + " times";_median 561 ns 561 ns 4
stringa str = "test = " + k + " times";_stddev 23.4 ns 23.4 ns 4
stringa str = "test = " + k + " times";_cv 4.23 % 4.23 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 684 ns 684 ns 4
std::string::find + substr + std::strtol_median 683 ns 683 ns 4
std::string::find + substr + std::strtol_stddev 7.51 ns 7.52 ns 4
std::string::find + substr + std::strtol_cv 1.10 % 1.10 % 4
ssa::splitter + ssa::as_int_mean 247 ns 247 ns 4
ssa::splitter + ssa::as_int_median 246 ns 246 ns 4
ssa::splitter + ssa::as_int_stddev 14.0 ns 14.0 ns 4
ssa::splitter + ssa::as_int_cv 5.66 % 5.66 % 4
ssa::splitf + functor_mean 284 ns 284 ns 4
ssa::splitf + functor_median 278 ns 278 ns 4
ssa::splitf + functor_stddev 22.7 ns 22.7 ns 4
ssa::splitf + functor_cv 8.00 % 8.00 % 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 2994 ns 2994 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 2942 ns 2942 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 195 ns 195 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 6.51 % 6.51 % 4
replace symbols with std::string find_first_of + replace_mean 5651 ns 5651 ns 4
replace symbols with std::string find_first_of + replace_median 5576 ns 5576 ns 4
replace symbols with std::string find_first_of + replace_stddev 212 ns 212 ns 4
replace symbols with std::string find_first_of + replace_cv 3.75 % 3.75 % 4
replace symbols with std::string_view find_first_of + copy_mean 2910 ns 2910 ns 4
replace symbols with std::string_view find_first_of + copy_median 2848 ns 2848 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 157 ns 157 ns 4
replace symbols with std::string_view find_first_of + copy_cv 5.40 % 5.40 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 2879 ns 2879 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 2856 ns 2856 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 152 ns 152 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 5.28 % 5.28 % 4
replace runtime symbols with simstr and memorization of all search results_mean 2251 ns 2251 ns 4
replace runtime symbols with simstr and memorization of all search results_median 2240 ns 2240 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 67.2 ns 67.3 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 2.99 % 2.99 % 4
replace const symbols with string expressions and without remembering all search results_mean 2457 ns 2457 ns 4
replace const symbols with string expressions and without remembering all search results_median 2444 ns 2444 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 95.4 ns 95.4 ns 4
replace const symbols with string expressions and without remembering all search results_cv 3.88 % 3.88 % 4
replace const symbols with string expressions and memorization of all search results_mean 2073 ns 2073 ns 4
replace const symbols with string expressions and memorization of all search results_median 2090 ns 2090 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 75.2 ns 75.2 ns 4
replace const symbols with string expressions and memorization of all search results_cv 3.63 % 3.63 % 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 498 ns 498 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 500 ns 500 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 14.3 ns 14.3 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.88 % 2.88 % 4
Short replace symbols with std::string find_first_of + replace_mean 751 ns 751 ns 4
Short replace symbols with std::string find_first_of + replace_median 751 ns 751 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 32.5 ns 32.5 ns 4
Short replace symbols with std::string find_first_of + replace_cv 4.32 % 4.32 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 448 ns 448 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 450 ns 450 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 22.2 ns 22.2 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 4.96 % 4.96 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 392 ns 392 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 391 ns 391 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 5.52 ns 5.52 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.41 % 1.41 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 421 ns 421 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 420 ns 420 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 8.44 ns 8.43 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 2.00 % 2.00 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 278 ns 278 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 276 ns 276 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 10.6 ns 10.6 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 3.80 % 3.80 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 317 ns 317 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 318 ns 318 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 13.4 ns 13.4 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 4.22 % 4.22 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 370 ns 370 ns 4
replace bb to ---- in std::string|64_median 368 ns 368 ns 4
replace bb to ---- in std::string|64_stddev 7.79 ns 7.80 ns 4
replace bb to ---- in std::string|64_cv 2.11 % 2.11 % 4
replace bb to ---- in std::string|256_mean 1187 ns 1187 ns 4
replace bb to ---- in std::string|256_median 1192 ns 1192 ns 4
replace bb to ---- in std::string|256_stddev 35.2 ns 35.2 ns 4
replace bb to ---- in std::string|256_cv 2.97 % 2.97 % 4
replace bb to ---- in std::string|512_mean 2268 ns 2268 ns 4
replace bb to ---- in std::string|512_median 2257 ns 2257 ns 4
replace bb to ---- in std::string|512_stddev 88.8 ns 88.8 ns 4
replace bb to ---- in std::string|512_cv 3.92 % 3.92 % 4
replace bb to ---- in std::string|1024_mean 4800 ns 4800 ns 4
replace bb to ---- in std::string|1024_median 4831 ns 4831 ns 4
replace bb to ---- in std::string|1024_stddev 184 ns 184 ns 4
replace bb to ---- in std::string|1024_cv 3.84 % 3.84 % 4
replace bb to ---- in std::string|2048_mean 10945 ns 10945 ns 4
replace bb to ---- in std::string|2048_median 10893 ns 10893 ns 4
replace bb to ---- in std::string|2048_stddev 279 ns 280 ns 4
replace bb to ---- in std::string|2048_cv 2.55 % 2.55 % 4
replace bb to ---- in lstringa<8>|64_mean 285 ns 285 ns 4
replace bb to ---- in lstringa<8>|64_median 285 ns 285 ns 4
replace bb to ---- in lstringa<8>|64_stddev 2.85 ns 2.85 ns 4
replace bb to ---- in lstringa<8>|64_cv 1.00 % 1.00 % 4
replace bb to ---- in lstringa<8>|256_mean 910 ns 910 ns 4
replace bb to ---- in lstringa<8>|256_median 911 ns 911 ns 4
replace bb to ---- in lstringa<8>|256_stddev 15.0 ns 15.0 ns 4
replace bb to ---- in lstringa<8>|256_cv 1.64 % 1.64 % 4
replace bb to ---- in lstringa<8>|512_mean 1712 ns 1712 ns 4
replace bb to ---- in lstringa<8>|512_median 1727 ns 1727 ns 4
replace bb to ---- in lstringa<8>|512_stddev 43.1 ns 43.1 ns 4
replace bb to ---- in lstringa<8>|512_cv 2.52 % 2.52 % 4
replace bb to ---- in lstringa<8>|1024_mean 3116 ns 3116 ns 4
replace bb to ---- in lstringa<8>|1024_median 3161 ns 3161 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 94.6 ns 94.6 ns 4
replace bb to ---- in lstringa<8>|1024_cv 3.04 % 3.04 % 4
replace bb to ---- in lstringa<8>|2048_mean 6042 ns 6042 ns 4
replace bb to ---- in lstringa<8>|2048_median 5971 ns 5971 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 190 ns 190 ns 4
replace bb to ---- in lstringa<8>|2048_cv 3.14 % 3.14 % 4
replace bb to ---- by init stringa|64_mean 170 ns 170 ns 4
replace bb to ---- by init stringa|64_median 169 ns 169 ns 4
replace bb to ---- by init stringa|64_stddev 2.85 ns 2.85 ns 4
replace bb to ---- by init stringa|64_cv 1.68 % 1.68 % 4
replace bb to ---- by init stringa|256_mean 586 ns 586 ns 4
replace bb to ---- by init stringa|256_median 587 ns 587 ns 4
replace bb to ---- by init stringa|256_stddev 24.8 ns 24.8 ns 4
replace bb to ---- by init stringa|256_cv 4.24 % 4.24 % 4
replace bb to ---- by init stringa|512_mean 1275 ns 1275 ns 4
replace bb to ---- by init stringa|512_median 1276 ns 1276 ns 4
replace bb to ---- by init stringa|512_stddev 13.5 ns 13.5 ns 4
replace bb to ---- by init stringa|512_cv 1.06 % 1.06 % 4
replace bb to ---- by init stringa|1024_mean 2632 ns 2632 ns 4
replace bb to ---- by init stringa|1024_median 2623 ns 2623 ns 4
replace bb to ---- by init stringa|1024_stddev 59.9 ns 59.9 ns 4
replace bb to ---- by init stringa|1024_cv 2.28 % 2.28 % 4
replace bb to ---- by init stringa|2048_mean 5701 ns 5701 ns 4
replace bb to ---- by init stringa|2048_median 5605 ns 5605 ns 4
replace bb to ---- by init stringa|2048_stddev 331 ns 331 ns 4
replace bb to ---- by init stringa|2048_cv 5.80 % 5.80 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 264 ns 264 ns 4
replace bb to -- in std::string|64_median 262 ns 262 ns 4
replace bb to -- in std::string|64_stddev 9.29 ns 9.29 ns 4
replace bb to -- in std::string|64_cv 3.52 % 3.52 % 4
replace bb to -- in std::string|256_mean 846 ns 846 ns 4
replace bb to -- in std::string|256_median 843 ns 843 ns 4
replace bb to -- in std::string|256_stddev 55.5 ns 55.5 ns 4
replace bb to -- in std::string|256_cv 6.56 % 6.56 % 4
replace bb to -- in std::string|512_mean 1556 ns 1556 ns 4
replace bb to -- in std::string|512_median 1560 ns 1560 ns 4
replace bb to -- in std::string|512_stddev 62.0 ns 62.0 ns 4
replace bb to -- in std::string|512_cv 3.98 % 3.98 % 4
replace bb to -- in std::string|1024_mean 2961 ns 2961 ns 4
replace bb to -- in std::string|1024_median 2956 ns 2956 ns 4
replace bb to -- in std::string|1024_stddev 126 ns 126 ns 4
replace bb to -- in std::string|1024_cv 4.24 % 4.24 % 4
replace bb to -- in std::string|2048_mean 5794 ns 5794 ns 4
replace bb to -- in std::string|2048_median 5714 ns 5714 ns 4
replace bb to -- in std::string|2048_stddev 260 ns 260 ns 4
replace bb to -- in std::string|2048_cv 4.49 % 4.49 % 4
replace bb to -- in lstringa<8>|64_mean 198 ns 198 ns 4
replace bb to -- in lstringa<8>|64_median 198 ns 198 ns 4
replace bb to -- in lstringa<8>|64_stddev 6.71 ns 6.71 ns 4
replace bb to -- in lstringa<8>|64_cv 3.38 % 3.38 % 4
replace bb to -- in lstringa<8>|256_mean 663 ns 663 ns 4
replace bb to -- in lstringa<8>|256_median 665 ns 665 ns 4
replace bb to -- in lstringa<8>|256_stddev 38.5 ns 38.5 ns 4
replace bb to -- in lstringa<8>|256_cv 5.80 % 5.80 % 4
replace bb to -- in lstringa<8>|512_mean 1186 ns 1186 ns 4
replace bb to -- in lstringa<8>|512_median 1198 ns 1198 ns 4
replace bb to -- in lstringa<8>|512_stddev 39.4 ns 39.4 ns 4
replace bb to -- in lstringa<8>|512_cv 3.32 % 3.32 % 4
replace bb to -- in lstringa<8>|1024_mean 2250 ns 2250 ns 4
replace bb to -- in lstringa<8>|1024_median 2227 ns 2227 ns 4
replace bb to -- in lstringa<8>|1024_stddev 93.7 ns 93.7 ns 4
replace bb to -- in lstringa<8>|1024_cv 4.16 % 4.16 % 4
replace bb to -- in lstringa<8>|2048_mean 4373 ns 4373 ns 4
replace bb to -- in lstringa<8>|2048_median 4365 ns 4366 ns 4
replace bb to -- in lstringa<8>|2048_stddev 135 ns 135 ns 4
replace bb to -- in lstringa<8>|2048_cv 3.08 % 3.08 % 4
replace bb to -- by init stringa|64_mean 144 ns 144 ns 4
replace bb to -- by init stringa|64_median 141 ns 141 ns 4
replace bb to -- by init stringa|64_stddev 6.60 ns 6.60 ns 4
replace bb to -- by init stringa|64_cv 4.59 % 4.59 % 4
replace bb to -- by init stringa|256_mean 472 ns 472 ns 4
replace bb to -- by init stringa|256_median 478 ns 478 ns 4
replace bb to -- by init stringa|256_stddev 13.9 ns 13.9 ns 4
replace bb to -- by init stringa|256_cv 2.94 % 2.94 % 4
replace bb to -- by init stringa|512_mean 894 ns 894 ns 4
replace bb to -- by init stringa|512_median 893 ns 893 ns 4
replace bb to -- by init stringa|512_stddev 18.6 ns 18.6 ns 4
replace bb to -- by init stringa|512_cv 2.08 % 2.08 % 4
replace bb to -- by init stringa|1024_mean 1701 ns 1701 ns 4
replace bb to -- by init stringa|1024_median 1677 ns 1677 ns 4
replace bb to -- by init stringa|1024_stddev 64.1 ns 64.1 ns 4
replace bb to -- by init stringa|1024_cv 3.77 % 3.77 % 4
replace bb to -- by init stringa|2048_mean 2793 ns 2793 ns 4
replace bb to -- by init stringa|2048_median 2785 ns 2785 ns 4
replace bb to -- by init stringa|2048_stddev 40.1 ns 40.1 ns 4
replace bb to -- by init stringa|2048_cv 1.44 % 1.44 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3509082 ns 3509094 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3582855 ns 3582867 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 222607 ns 222618 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 6.34 % 6.34 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3684923 ns 3684936 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3661103 ns 3661115 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 131891 ns 131883 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 3.58 % 3.58 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3369803 ns 3369809 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3329662 ns 3329673 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 147334 ns 147331 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 4.37 % 4.37 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4260216 ns 4260251 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4244727 ns 4244784 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 298387 ns 298376 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 7.00 % 7.00 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 3466 ns 3466 ns 4
Build func full name std::string;_median 3514 ns 3514 ns 4
Build func full name std::string;_stddev 200 ns 200 ns 4
Build func full name std::string;_cv 5.78 % 5.78 % 4
Build func full name std::string 1;_mean 3613 ns 3613 ns 4
Build func full name std::string 1;_median 3604 ns 3604 ns 4
Build func full name std::string 1;_stddev 44.5 ns 44.5 ns 4
Build func full name std::string 1;_cv 1.23 % 1.23 % 4
Build func full name std::stream;_mean 13169 ns 13169 ns 4
Build func full name std::stream;_median 13151 ns 13151 ns 4
Build func full name std::stream;_stddev 822 ns 822 ns 4
Build func full name std::stream;_cv 6.24 % 6.24 % 4
Build func full name stringa;_mean 1567 ns 1567 ns 4
Build func full name stringa;_median 1607 ns 1607 ns 4
Build func full name stringa;_stddev 115 ns 115 ns 4
Build func full name stringa;_cv 7.31 % 7.31 % 4
Build func full name stringa 1;_mean 1808 ns 1808 ns 4
Build func full name stringa 1;_median 1807 ns 1807 ns 4
Build func full name stringa 1;_stddev 61.0 ns 61.0 ns 4
Build func full name stringa 1;_cv 3.37 % 3.37 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 226 ns 226 ns 4
To upper case std::wstring_median 223 ns 223 ns 4
To upper case std::wstring_stddev 17.6 ns 17.6 ns 4
To upper case std::wstring_cv 7.80 % 7.80 % 4
To upper case lstringw<15>_mean 68.2 ns 68.2 ns 4
To upper case lstringw<15>_median 66.9 ns 66.9 ns 4
To upper case lstringw<15>_stddev 4.75 ns 4.75 ns 4
To upper case lstringw<15>_cv 6.97 % 6.97 % 4
Done!