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

977 lines
145 KiB
Plaintext

Benchmarks of simstr, version 1.7.1
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
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 529 ns 529 ns 4
Concat email std::format_median 517 ns 517 ns 4
Concat email std::format_stddev 26.1 ns 26.1 ns 4
Concat email std::format_cv 4.94 % 4.94 % 4
Concat email std::stringstream_mean 1155 ns 1155 ns 4
Concat email std::stringstream_median 1154 ns 1154 ns 4
Concat email std::stringstream_stddev 13.1 ns 13.1 ns 4
Concat email std::stringstream_cv 1.13 % 1.13 % 4
Concat email stringzilla append_mean 249 ns 249 ns 4
Concat email stringzilla append_median 249 ns 249 ns 4
Concat email stringzilla append_stddev 4.04 ns 4.04 ns 4
Concat email stringzilla append_cv 1.62 % 1.62 % 4
Concat email stringzilla concat_mean 95.2 ns 95.2 ns 4
Concat email stringzilla concat_median 95.3 ns 95.3 ns 4
Concat email stringzilla concat_stddev 0.859 ns 0.859 ns 4
Concat email stringzilla concat_cv 0.90 % 0.90 % 4
Concat email std::string append_mean 324 ns 324 ns 4
Concat email std::string append_median 325 ns 325 ns 4
Concat email std::string append_stddev 10.9 ns 10.9 ns 4
Concat email std::string append_cv 3.36 % 3.36 % 4
Concat email std::string by strexpr_mean 92.7 ns 92.7 ns 4
Concat email std::string by strexpr_median 92.5 ns 92.5 ns 4
Concat email std::string by strexpr_stddev 2.55 ns 2.55 ns 4
Concat email std::string by strexpr_cv 2.75 % 2.75 % 4
Concat email stringa_mean 71.3 ns 71.3 ns 4
Concat email stringa_median 71.6 ns 71.6 ns 4
Concat email stringa_stddev 2.17 ns 2.17 ns 4
Concat email stringa_cv 3.04 % 3.04 % 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 1115 ns 1115 ns 4
Concat std::string and number by std to std::string_median 1126 ns 1126 ns 4
Concat std::string and number by std to std::string_stddev 39.9 ns 39.9 ns 4
Concat std::string and number by std to std::string_cv 3.58 % 3.58 % 4
Concat std::string and number by StrExpr to std::string_mean 530 ns 530 ns 4
Concat std::string and number by StrExpr to std::string_median 530 ns 530 ns 4
Concat std::string and number by StrExpr to std::string_stddev 9.27 ns 9.27 ns 4
Concat std::string and number by StrExpr to std::string_cv 1.75 % 1.75 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 227 ns 227 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 227 ns 227 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 5.35 ns 5.35 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 2.36 % 2.36 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 258 ns 258 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 249 ns 249 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 30.2 ns 30.2 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 11.74 % 11.74 % 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 2114 ns 2114 ns 4
Concat std::string and format hex number and literal to std::string_median 2116 ns 2116 ns 4
Concat std::string and format hex number and literal to std::string_stddev 54.3 ns 54.3 ns 4
Concat std::string and format hex number and literal to std::string_cv 2.57 % 2.57 % 4
std::format std::string and hex number by literal to std::string_mean 2763 ns 2763 ns 4
std::format std::string and hex number by literal to std::string_median 2754 ns 2754 ns 4
std::format std::string and hex number by literal to std::string_stddev 52.0 ns 52.0 ns 4
std::format std::string and hex number by literal to std::string_cv 1.88 % 1.88 % 4
Concat std::string and std::to_chars and string to std::string_mean 743 ns 743 ns 4
Concat std::string and std::to_chars and string to std::string_median 739 ns 739 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 24.9 ns 24.9 ns 4
Concat std::string and std::to_chars and string to std::string_cv 3.35 % 3.35 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 547 ns 547 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 549 ns 549 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 18.6 ns 18.6 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.39 % 3.39 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 220 ns 220 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 220 ns 220 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.46 ns 2.46 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.12 % 1.12 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 211 ns 211 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 211 ns 211 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 5.79 ns 5.79 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.74 % 2.74 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 354 ns 354 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 348 ns 348 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 28.1 ns 28.1 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 7.94 % 7.94 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 936 ns 936 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 939 ns 939 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.59 ns 8.59 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.92 % 0.92 % 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 434 ns 434 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 438 ns 438 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 26.6 ns 26.6 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 6.14 % 6.14 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 634 ns 634 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 637 ns 637 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 15.2 ns 15.2 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.40 % 2.40 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1530 ns 1530 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 1509 ns 1509 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 72.4 ns 72.4 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 4.73 % 4.73 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2320 ns 2320 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2321 ns 2321 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 11.2 ns 11.2 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 0.48 % 0.48 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 3086 ns 3086 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 3100 ns 3100 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 73.0 ns 73.0 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.37 % 2.37 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 3154 ns 3154 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 3158 ns 3158 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 39.5 ns 39.5 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.25 % 1.25 % 4
std::vformat(pattern, std::make_format_args(i))_mean 3173 ns 3173 ns 4
std::vformat(pattern, std::make_format_args(i))_median 3174 ns 3174 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 7.12 ns 7.13 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 0.22 % 0.22 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8797 ns 8797 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8857 ns 8857 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 285 ns 285 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.24 % 3.24 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 115 ns 115 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.26 ns 5.26 ns 4
Concat std::string by std to std::string_cv 4.56 % 4.56 % 4
Concat std::string by StrExpr to std::string_mean 128 ns 128 ns 4
Concat std::string by StrExpr to std::string_median 127 ns 127 ns 4
Concat std::string by StrExpr to std::string_stddev 6.71 ns 6.71 ns 4
Concat std::string by StrExpr to std::string_cv 5.23 % 5.23 % 4
Concat stringa by StrExpr to stringa_mean 110 ns 110 ns 4
Concat stringa by StrExpr to stringa_median 110 ns 110 ns 4
Concat stringa by StrExpr to stringa_stddev 5.78 ns 5.78 ns 4
Concat stringa by StrExpr to stringa_cv 5.27 % 5.27 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 226 ns 226 ns 4
Find concat three std::string_median 226 ns 226 ns 4
Find concat three std::string_stddev 1.94 ns 1.94 ns 4
Find concat three std::string_cv 0.86 % 0.86 % 4
Find concat three strexpr_mean 117 ns 117 ns 4
Find concat three strexpr_median 117 ns 117 ns 4
Find concat three strexpr_stddev 2.79 ns 2.79 ns 4
Find concat three strexpr_cv 2.38 % 2.38 % 4
Find concat three simstr_mean 71.5 ns 71.5 ns 4
Find concat three simstr_median 71.2 ns 71.2 ns 4
Find concat three simstr_stddev 0.844 ns 0.843 ns 4
Find concat three simstr_cv 1.18 % 1.18 % 4
Find concat three stringzilla string_mean 288 ns 288 ns 4
Find concat three stringzilla string_median 288 ns 288 ns 4
Find concat three stringzilla string_stddev 4.41 ns 4.41 ns 4
Find concat three stringzilla string_cv 1.53 % 1.53 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 23.4 ns 23.4 ns 4
BuildTypeNameStr 0/0_median 23.4 ns 23.4 ns 4
BuildTypeNameStr 0/0_stddev 0.561 ns 0.561 ns 4
BuildTypeNameStr 0/0_cv 2.40 % 2.40 % 4
BuildTypeNameExp 0/0_mean 27.3 ns 27.3 ns 4
BuildTypeNameExp 0/0_median 27.3 ns 27.3 ns 4
BuildTypeNameExp 0/0_stddev 0.510 ns 0.510 ns 4
BuildTypeNameExp 0/0_cv 1.87 % 1.87 % 4
BuildTypeNameSim 0/0_mean 20.9 ns 20.9 ns 4
BuildTypeNameSim 0/0_median 20.6 ns 20.6 ns 4
BuildTypeNameSim 0/0_stddev 0.834 ns 0.834 ns 4
BuildTypeNameSim 0/0_cv 3.98 % 3.98 % 4
BuildTypeNameStr 10/10_mean 403 ns 403 ns 4
BuildTypeNameStr 10/10_median 403 ns 403 ns 4
BuildTypeNameStr 10/10_stddev 23.1 ns 23.1 ns 4
BuildTypeNameStr 10/10_cv 5.73 % 5.73 % 4
BuildTypeNameExp 10/10_mean 122 ns 122 ns 4
BuildTypeNameExp 10/10_median 122 ns 122 ns 4
BuildTypeNameExp 10/10_stddev 3.95 ns 3.95 ns 4
BuildTypeNameExp 10/10_cv 3.24 % 3.24 % 4
BuildTypeNameSim 10/10_mean 75.6 ns 75.6 ns 4
BuildTypeNameSim 10/10_median 77.4 ns 77.4 ns 4
BuildTypeNameSim 10/10_stddev 4.32 ns 4.32 ns 4
BuildTypeNameSim 10/10_cv 5.71 % 5.71 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 544 ns 544 ns 4
Concat with replace str_median 546 ns 546 ns 4
Concat with replace str_stddev 18.8 ns 18.8 ns 4
Concat with replace str_cv 3.45 % 3.45 % 4
Concat with replace exp_mean 258 ns 258 ns 4
Concat with replace exp_median 256 ns 256 ns 4
Concat with replace exp_stddev 16.4 ns 16.4 ns 4
Concat with replace exp_cv 6.36 % 6.36 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 2.28 ns 2.28 ns 4
std::string e;_median 2.29 ns 2.29 ns 4
std::string e;_stddev 0.139 ns 0.139 ns 4
std::string e;_cv 6.09 % 6.09 % 4
std::string_view e;_mean 0.732 ns 0.732 ns 4
std::string_view e;_median 0.731 ns 0.731 ns 4
std::string_view e;_stddev 0.008 ns 0.008 ns 4
std::string_view e;_cv 1.12 % 1.12 % 4
ssa e;_mean 0.368 ns 0.368 ns 4
ssa e;_median 0.368 ns 0.368 ns 4
ssa e;_stddev 0.010 ns 0.010 ns 4
ssa e;_cv 2.60 % 2.60 % 4
stringa e;_mean 2.14 ns 2.14 ns 4
stringa e;_median 2.14 ns 2.14 ns 4
stringa e;_stddev 0.006 ns 0.006 ns 4
stringa e;_cv 0.28 % 0.28 % 4
lstringa<20> e;_mean 2.17 ns 2.17 ns 4
lstringa<20> e;_median 2.17 ns 2.17 ns 4
lstringa<20> e;_stddev 0.017 ns 0.017 ns 4
lstringa<20> e;_cv 0.77 % 0.77 % 4
lstringa<40> e;_mean 2.48 ns 2.48 ns 4
lstringa<40> e;_median 2.43 ns 2.43 ns 4
lstringa<40> e;_stddev 0.131 ns 0.131 ns 4
lstringa<40> e;_cv 5.29 % 5.29 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 2.43 ns 2.43 ns 4
std::string e = "Test text";_median 2.43 ns 2.43 ns 4
std::string e = "Test text";_stddev 0.028 ns 0.028 ns 4
std::string e = "Test text";_cv 1.15 % 1.15 % 4
std::string_view e = "Test text";_mean 1.09 ns 1.09 ns 4
std::string_view e = "Test text";_median 1.09 ns 1.09 ns 4
std::string_view e = "Test text";_stddev 0.016 ns 0.016 ns 4
std::string_view e = "Test text";_cv 1.48 % 1.48 % 4
ssa e = "Test text";_mean 0.726 ns 0.726 ns 4
ssa e = "Test text";_median 0.726 ns 0.726 ns 4
ssa e = "Test text";_stddev 0.011 ns 0.011 ns 4
ssa e = "Test text";_cv 1.53 % 1.53 % 4
stringa e = "Test text";_mean 2.19 ns 2.19 ns 4
stringa e = "Test text";_median 2.18 ns 2.18 ns 4
stringa e = "Test text";_stddev 0.044 ns 0.044 ns 4
stringa e = "Test text";_cv 2.03 % 2.03 % 4
lstringa<20> e = "Test text";_mean 2.62 ns 2.62 ns 4
lstringa<20> e = "Test text";_median 2.63 ns 2.63 ns 4
lstringa<20> e = "Test text";_stddev 0.030 ns 0.030 ns 4
lstringa<20> e = "Test text";_cv 1.13 % 1.13 % 4
lstringa<40> e = "Test text";_mean 2.59 ns 2.59 ns 4
lstringa<40> e = "Test text";_median 2.61 ns 2.61 ns 4
lstringa<40> e = "Test text";_stddev 0.074 ns 0.074 ns 4
lstringa<40> e = "Test text";_cv 2.86 % 2.86 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 26.1 ns 26.1 ns 4
std::string e = "123456789012345678901234567890";_median 25.6 ns 25.6 ns 4
std::string e = "123456789012345678901234567890";_stddev 1.19 ns 1.19 ns 4
std::string e = "123456789012345678901234567890";_cv 4.56 % 4.56 % 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.055 ns 0.055 ns 4
std::string_view e = "123456789012345678901234567890";_cv 4.75 % 4.75 % 4
ssa e = "123456789012345678901234567890";_mean 0.737 ns 0.737 ns 4
ssa e = "123456789012345678901234567890";_median 0.737 ns 0.737 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4
ssa e = "123456789012345678901234567890";_cv 0.82 % 0.82 % 4
stringa e = "123456789012345678901234567890";_mean 2.21 ns 2.21 ns 4
stringa e = "123456789012345678901234567890";_median 2.22 ns 2.22 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.031 ns 0.031 ns 4
stringa e = "123456789012345678901234567890";_cv 1.41 % 1.41 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 24.2 ns 24.2 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 24.2 ns 24.2 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.162 ns 0.162 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 0.67 % 0.67 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.92 ns 2.92 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.91 ns 2.91 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.054 ns 0.054 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 1.84 % 1.84 % 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 3.78 ns 3.78 ns 4
std::string e = "Test text"; auto c{e};_median 3.77 ns 3.77 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.095 ns 0.095 ns 4
std::string e = "Test text"; auto c{e};_cv 2.51 % 2.51 % 4
std::string_view e = "Test text"; auto c{e};_mean 1.08 ns 1.08 ns 4
std::string_view e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
std::string_view e = "Test text"; auto c{e};_cv 1.25 % 1.25 % 4
ssa e = "Test text"; auto c{e};_mean 1.21 ns 1.21 ns 4
ssa e = "Test text"; auto c{e};_median 1.19 ns 1.19 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.057 ns 0.057 ns 4
ssa e = "Test text"; auto c{e};_cv 4.76 % 4.76 % 4
stringa e = "Test text"; auto c{e};_mean 2.70 ns 2.70 ns 4
stringa e = "Test text"; auto c{e};_median 2.73 ns 2.73 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.109 ns 0.109 ns 4
stringa e = "Test text"; auto c{e};_cv 4.04 % 4.04 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 4.86 ns 4.86 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 4.89 ns 4.89 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.86 % 1.86 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 4.84 ns 4.84 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 4.84 ns 4.84 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.091 ns 0.091 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 1.88 % 1.88 % 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 53.4 ns 53.4 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 53.2 ns 53.2 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.16 ns 2.16 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.05 % 4.05 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.015 ns 0.015 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.36 % 1.36 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.747 ns 0.747 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.54 % 2.54 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.18 ns 2.18 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.18 ns 2.18 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.025 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.15 % 1.15 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 22.5 ns 22.5 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 22.5 ns 22.5 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.194 ns 0.194 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.87 % 0.86 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 17.0 ns 17.0 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 17.2 ns 17.2 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.674 ns 0.674 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 3.97 % 3.98 % 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 123 ns 123 ns 4
sz::string::find;_stddev 0.690 ns 0.689 ns 4
sz::string::find;_cv 0.56 % 0.56 % 4
std::string::find;_mean 40.4 ns 40.4 ns 4
std::string::find;_median 40.4 ns 40.4 ns 4
std::string::find;_stddev 0.622 ns 0.622 ns 4
std::string::find;_cv 1.54 % 1.54 % 4
std::string_view::find;_mean 43.8 ns 43.8 ns 4
std::string_view::find;_median 41.7 ns 41.7 ns 4
std::string_view::find;_stddev 5.19 ns 5.18 ns 4
std::string_view::find;_cv 11.84 % 11.84 % 4
ssa::find;_mean 41.7 ns 41.7 ns 4
ssa::find;_median 42.1 ns 42.1 ns 4
ssa::find;_stddev 1.51 ns 1.51 ns 4
ssa::find;_cv 3.61 % 3.61 % 4
stringa::find;_mean 41.7 ns 41.7 ns 4
stringa::find;_median 41.1 ns 41.1 ns 4
stringa::find;_stddev 2.28 ns 2.28 ns 4
stringa::find;_cv 5.47 % 5.47 % 4
lstringa<20>::find;_mean 39.4 ns 39.4 ns 4
lstringa<20>::find;_median 39.6 ns 39.6 ns 4
lstringa<20>::find;_stddev 0.913 ns 0.913 ns 4
lstringa<20>::find;_cv 2.32 % 2.31 % 4
lstringa<40>::find;_mean 39.6 ns 39.6 ns 4
lstringa<40>::find;_median 39.4 ns 39.4 ns 4
lstringa<40>::find;_stddev 0.856 ns 0.856 ns 4
lstringa<40>::find;_cv 2.16 % 2.16 % 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 54.0 ns 54.0 ns 4
std::string copy{str_with_len_N};/15_median 53.2 ns 53.2 ns 4
std::string copy{str_with_len_N};/15_stddev 2.26 ns 2.26 ns 4
std::string copy{str_with_len_N};/15_cv 4.18 % 4.18 % 4
std::string copy{str_with_len_N};/16_mean 50.8 ns 50.8 ns 4
std::string copy{str_with_len_N};/16_median 50.4 ns 50.4 ns 4
std::string copy{str_with_len_N};/16_stddev 1.26 ns 1.26 ns 4
std::string copy{str_with_len_N};/16_cv 2.47 % 2.47 % 4
std::string copy{str_with_len_N};/23_mean 50.7 ns 50.7 ns 4
std::string copy{str_with_len_N};/23_median 50.5 ns 50.5 ns 4
std::string copy{str_with_len_N};/23_stddev 1.72 ns 1.72 ns 4
std::string copy{str_with_len_N};/23_cv 3.40 % 3.40 % 4
std::string copy{str_with_len_N};/24_mean 51.0 ns 51.0 ns 4
std::string copy{str_with_len_N};/24_median 51.3 ns 51.3 ns 4
std::string copy{str_with_len_N};/24_stddev 1.31 ns 1.31 ns 4
std::string copy{str_with_len_N};/24_cv 2.56 % 2.56 % 4
std::string copy{str_with_len_N};/32_mean 57.8 ns 57.8 ns 4
std::string copy{str_with_len_N};/32_median 56.2 ns 56.2 ns 4
std::string copy{str_with_len_N};/32_stddev 4.71 ns 4.71 ns 4
std::string copy{str_with_len_N};/32_cv 8.14 % 8.14 % 4
std::string copy{str_with_len_N};/64_mean 57.0 ns 57.0 ns 4
std::string copy{str_with_len_N};/64_median 56.7 ns 56.7 ns 4
std::string copy{str_with_len_N};/64_stddev 0.770 ns 0.770 ns 4
std::string copy{str_with_len_N};/64_cv 1.35 % 1.35 % 4
std::string copy{str_with_len_N};/128_mean 57.2 ns 57.2 ns 4
std::string copy{str_with_len_N};/128_median 56.5 ns 56.5 ns 4
std::string copy{str_with_len_N};/128_stddev 2.79 ns 2.79 ns 4
std::string copy{str_with_len_N};/128_cv 4.87 % 4.87 % 4
std::string copy{str_with_len_N};/256_mean 68.5 ns 68.5 ns 4
std::string copy{str_with_len_N};/256_median 62.9 ns 62.9 ns 4
std::string copy{str_with_len_N};/256_stddev 12.2 ns 12.2 ns 4
std::string copy{str_with_len_N};/256_cv 17.80 % 17.80 % 4
std::string copy{str_with_len_N};/512_mean 65.9 ns 65.9 ns 4
std::string copy{str_with_len_N};/512_median 65.2 ns 65.2 ns 4
std::string copy{str_with_len_N};/512_stddev 2.55 ns 2.55 ns 4
std::string copy{str_with_len_N};/512_cv 3.87 % 3.87 % 4
std::string copy{str_with_len_N};/1024_mean 88.6 ns 88.6 ns 4
std::string copy{str_with_len_N};/1024_median 89.4 ns 89.4 ns 4
std::string copy{str_with_len_N};/1024_stddev 9.38 ns 9.38 ns 4
std::string copy{str_with_len_N};/1024_cv 10.58 % 10.58 % 4
std::string copy{str_with_len_N};/2048_mean 113 ns 113 ns 4
std::string copy{str_with_len_N};/2048_median 113 ns 113 ns 4
std::string copy{str_with_len_N};/2048_stddev 9.63 ns 9.63 ns 4
std::string copy{str_with_len_N};/2048_cv 8.55 % 8.55 % 4
std::string copy{str_with_len_N};/4096_mean 159 ns 159 ns 4
std::string copy{str_with_len_N};/4096_median 166 ns 166 ns 4
std::string copy{str_with_len_N};/4096_stddev 16.4 ns 16.4 ns 4
std::string copy{str_with_len_N};/4096_cv 10.32 % 10.32 % 4
stringa copy{str_with_len_N};/15_mean 2.40 ns 2.40 ns 4
stringa copy{str_with_len_N};/15_median 2.41 ns 2.41 ns 4
stringa copy{str_with_len_N};/15_stddev 0.033 ns 0.033 ns 4
stringa copy{str_with_len_N};/15_cv 1.38 % 1.38 % 4
stringa copy{str_with_len_N};/16_mean 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/16_median 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/16_stddev 0.007 ns 0.007 ns 4
stringa copy{str_with_len_N};/16_cv 0.16 % 0.16 % 4
stringa copy{str_with_len_N};/23_mean 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/23_median 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/23_stddev 0.077 ns 0.077 ns 4
stringa copy{str_with_len_N};/23_cv 1.59 % 1.59 % 4
stringa copy{str_with_len_N};/24_mean 4.86 ns 4.86 ns 4
stringa copy{str_with_len_N};/24_median 4.89 ns 4.89 ns 4
stringa copy{str_with_len_N};/24_stddev 0.079 ns 0.079 ns 4
stringa copy{str_with_len_N};/24_cv 1.62 % 1.62 % 4
stringa copy{str_with_len_N};/32_mean 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/32_median 4.81 ns 4.81 ns 4
stringa copy{str_with_len_N};/32_stddev 0.009 ns 0.009 ns 4
stringa copy{str_with_len_N};/32_cv 0.20 % 0.20 % 4
stringa copy{str_with_len_N};/64_mean 5.13 ns 5.13 ns 4
stringa copy{str_with_len_N};/64_median 5.05 ns 5.05 ns 4
stringa copy{str_with_len_N};/64_stddev 0.362 ns 0.362 ns 4
stringa copy{str_with_len_N};/64_cv 7.05 % 7.05 % 4
stringa copy{str_with_len_N};/128_mean 5.28 ns 5.28 ns 4
stringa copy{str_with_len_N};/128_median 5.30 ns 5.30 ns 4
stringa copy{str_with_len_N};/128_stddev 0.060 ns 0.060 ns 4
stringa copy{str_with_len_N};/128_cv 1.13 % 1.13 % 4
stringa copy{str_with_len_N};/256_mean 5.19 ns 5.19 ns 4
stringa copy{str_with_len_N};/256_median 5.26 ns 5.26 ns 4
stringa copy{str_with_len_N};/256_stddev 0.183 ns 0.183 ns 4
stringa copy{str_with_len_N};/256_cv 3.54 % 3.54 % 4
stringa copy{str_with_len_N};/512_mean 4.80 ns 4.80 ns 4
stringa copy{str_with_len_N};/512_median 4.82 ns 4.82 ns 4
stringa copy{str_with_len_N};/512_stddev 0.100 ns 0.100 ns 4
stringa copy{str_with_len_N};/512_cv 2.08 % 2.08 % 4
stringa copy{str_with_len_N};/1024_mean 4.86 ns 4.86 ns 4
stringa copy{str_with_len_N};/1024_median 4.87 ns 4.87 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.138 ns 0.138 ns 4
stringa copy{str_with_len_N};/1024_cv 2.85 % 2.85 % 4
stringa copy{str_with_len_N};/2048_mean 4.82 ns 4.82 ns 4
stringa copy{str_with_len_N};/2048_median 4.82 ns 4.82 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.027 ns 0.027 ns 4
stringa copy{str_with_len_N};/2048_cv 0.56 % 0.56 % 4
stringa copy{str_with_len_N};/4096_mean 4.82 ns 4.82 ns 4
stringa copy{str_with_len_N};/4096_median 4.82 ns 4.82 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.028 ns 0.028 ns 4
stringa copy{str_with_len_N};/4096_cv 0.57 % 0.57 % 4
lstringa<16> copy{str_with_len_N};/15_mean 4.09 ns 4.09 ns 4
lstringa<16> copy{str_with_len_N};/15_median 4.06 ns 4.06 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.084 ns 0.084 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 2.05 % 2.05 % 4
lstringa<16> copy{str_with_len_N};/16_mean 16.1 ns 16.1 ns 4
lstringa<16> copy{str_with_len_N};/16_median 16.3 ns 16.3 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.925 ns 0.925 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 5.75 % 5.75 % 4
lstringa<16> copy{str_with_len_N};/23_mean 38.4 ns 38.4 ns 4
lstringa<16> copy{str_with_len_N};/23_median 38.4 ns 38.4 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.327 ns 0.327 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 0.85 % 0.85 % 4
lstringa<16> copy{str_with_len_N};/24_mean 39.6 ns 39.6 ns 4
lstringa<16> copy{str_with_len_N};/24_median 39.8 ns 39.8 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.772 ns 0.771 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 1.95 % 1.95 % 4
lstringa<16> copy{str_with_len_N};/32_mean 41.7 ns 41.7 ns 4
lstringa<16> copy{str_with_len_N};/32_median 41.4 ns 41.4 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.916 ns 0.915 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 2.20 % 2.20 % 4
lstringa<16> copy{str_with_len_N};/64_mean 42.5 ns 42.5 ns 4
lstringa<16> copy{str_with_len_N};/64_median 42.3 ns 42.3 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.740 ns 0.740 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 1.74 % 1.74 % 4
lstringa<16> copy{str_with_len_N};/128_mean 46.0 ns 46.0 ns 4
lstringa<16> copy{str_with_len_N};/128_median 45.4 ns 45.4 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 2.64 ns 2.64 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 5.74 % 5.74 % 4
lstringa<16> copy{str_with_len_N};/256_mean 56.1 ns 56.1 ns 4
lstringa<16> copy{str_with_len_N};/256_median 51.9 ns 51.9 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 10.2 ns 10.2 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 18.21 % 18.21 % 4
lstringa<16> copy{str_with_len_N};/512_mean 54.9 ns 54.9 ns 4
lstringa<16> copy{str_with_len_N};/512_median 54.4 ns 54.4 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 2.45 ns 2.45 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 4.45 % 4.45 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 68.5 ns 68.5 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 66.1 ns 66.1 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 9.58 ns 9.58 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 14.00 % 14.00 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 97.6 ns 97.6 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 96.2 ns 96.2 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 11.3 ns 11.3 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 11.62 % 11.62 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 143 ns 143 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 149 ns 149 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 14.2 ns 14.2 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 9.95 % 9.95 % 4
lstringa<512> copy{str_with_len_N};/15_mean 4.74 ns 4.74 ns 4
lstringa<512> copy{str_with_len_N};/15_median 4.68 ns 4.68 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.360 ns 0.360 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 7.60 % 7.60 % 4
lstringa<512> copy{str_with_len_N};/16_mean 16.3 ns 16.3 ns 4
lstringa<512> copy{str_with_len_N};/16_median 16.1 ns 16.1 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.688 ns 0.688 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 4.21 % 4.21 % 4
lstringa<512> copy{str_with_len_N};/23_mean 16.0 ns 16.0 ns 4
lstringa<512> copy{str_with_len_N};/23_median 16.0 ns 16.0 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.048 ns 0.048 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 0.30 % 0.30 % 4
lstringa<512> copy{str_with_len_N};/24_mean 16.2 ns 16.2 ns 4
lstringa<512> copy{str_with_len_N};/24_median 16.2 ns 16.2 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.529 ns 0.529 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 3.27 % 3.27 % 4
lstringa<512> copy{str_with_len_N};/32_mean 19.5 ns 19.5 ns 4
lstringa<512> copy{str_with_len_N};/32_median 19.4 ns 19.4 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.290 ns 0.290 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 1.49 % 1.49 % 4
lstringa<512> copy{str_with_len_N};/64_mean 19.3 ns 19.3 ns 4
lstringa<512> copy{str_with_len_N};/64_median 19.3 ns 19.3 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.297 ns 0.297 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 1.53 % 1.53 % 4
lstringa<512> copy{str_with_len_N};/128_mean 19.5 ns 19.5 ns 4
lstringa<512> copy{str_with_len_N};/128_median 19.5 ns 19.5 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.795 ns 0.795 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 4.07 % 4.07 % 4
lstringa<512> copy{str_with_len_N};/256_mean 22.1 ns 22.1 ns 4
lstringa<512> copy{str_with_len_N};/256_median 22.2 ns 22.2 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.640 ns 0.639 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 2.89 % 2.89 % 4
lstringa<512> copy{str_with_len_N};/512_mean 23.7 ns 23.7 ns 4
lstringa<512> copy{str_with_len_N};/512_median 23.8 ns 23.8 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.448 ns 0.448 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 1.89 % 1.89 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 73.4 ns 73.4 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 71.1 ns 71.1 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 8.73 ns 8.73 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 11.90 % 11.90 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 102 ns 102 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 102 ns 102 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 11.7 ns 11.7 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 11.42 % 11.42 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 150 ns 150 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 154 ns 154 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 17.8 ns 17.8 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 11.84 % 11.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 91.8 ns 91.8 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 91.5 ns 91.5 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 2.57 ns 2.57 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.80 % 2.80 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 0.732 ns 0.732 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 0.734 ns 0.734 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.010 ns 0.010 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.39 % 1.39 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 18.7 ns 18.7 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 18.6 ns 18.6 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.06 ns 1.06 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 5.68 % 5.68 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.2 ns 17.2 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 17.2 ns 17.2 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.329 ns 0.329 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.92 % 1.92 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.0 ns 17.0 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 17.1 ns 17.1 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.390 ns 0.390 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.30 % 2.30 % 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 66.6 ns 66.6 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 65.4 ns 65.4 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 3.08 ns 3.08 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.63 % 4.63 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 18.0 ns 18.0 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 18.1 ns 18.1 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.551 ns 0.551 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.06 % 3.06 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 17.9 ns 17.9 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 17.2 ns 17.2 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.48 ns 1.48 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 8.28 % 8.28 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.3 ns 16.3 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.3 ns 16.3 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.453 ns 0.453 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.78 % 2.78 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.2 ns 16.2 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.2 ns 16.2 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.149 ns 0.149 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.92 % 0.92 % 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 106 ns 106 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 103 ns 103 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 7.30 ns 7.30 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 6.90 % 6.90 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 14.7 ns 14.7 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 14.7 ns 14.7 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.083 ns 0.083 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 0.56 % 0.56 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 15.5 ns 15.5 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 15.6 ns 15.6 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.480 ns 0.480 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 3.11 % 3.11 % 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 301 ns 301 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 301 ns 301 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 6.60 ns 6.60 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.20 % 2.20 % 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.35 ns 1.35 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.27 % 1.27 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 41.1 ns 41.1 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 41.1 ns 41.1 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.733 ns 0.733 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.78 % 1.78 % 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 6596 ns 6596 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 6609 ns 6609 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 129 ns 129 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.95 % 1.95 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 858 ns 858 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 846 ns 846 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 46.4 ns 46.4 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 5.41 % 5.41 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 782 ns 782 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 783 ns 783 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 31.6 ns 31.6 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 4.05 % 4.05 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 591 ns 591 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 597 ns 597 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 17.7 ns 17.7 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.99 % 3.00 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 461 ns 461 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 462 ns 462 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 11.2 ns 11.2 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.43 % 2.43 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 372 ns 372 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 372 ns 372 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 8.55 ns 8.55 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.30 % 2.30 % 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 7324 ns 7324 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7352 ns 7352 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 211 ns 211 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.88 % 2.88 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2429 ns 2429 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2381 ns 2381 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 176 ns 176 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 7.25 % 7.25 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1035 ns 1035 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1026 ns 1026 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 48.4 ns 48.4 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.68 % 4.68 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 886 ns 886 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 889 ns 889 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.4 ns 17.4 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.96 % 1.96 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 745 ns 745 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 746 ns 746 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.82 ns 4.82 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.65 % 0.65 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 685 ns 685 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 685 ns 685 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.14 ns 8.14 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.19 % 1.19 % 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 367555 ns 367556 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 368128 ns 368130 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1873 ns 1871 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 0.51 % 0.51 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 128555 ns 128557 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 128910 ns 128914 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1399 ns 1400 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.09 % 1.09 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 51145 ns 51145 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 51140 ns 51140 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 135 ns 135 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.26 % 0.26 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 48871 ns 48871 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48254 ns 48254 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1574 ns 1574 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.22 % 3.22 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49022 ns 49022 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48139 ns 48139 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3277 ns 3277 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.69 % 6.69 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47869 ns 47869 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 47499 ns 47499 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 960 ns 960 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 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 7371 ns 7371 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 7393 ns 7393 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 121 ns 121 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.64 % 1.64 % 4
std::string str; ... str += str_var1 + str_var2;_mean 2705 ns 2705 ns 4
std::string str; ... str += str_var1 + str_var2;_median 2712 ns 2712 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 57.0 ns 57.0 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 2.11 % 2.11 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1272 ns 1272 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 1277 ns 1277 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 49.9 ns 49.9 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.92 % 3.92 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1198 ns 1198 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 1191 ns 1191 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 15.8 ns 15.8 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.32 % 1.32 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 1033 ns 1033 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 1029 ns 1029 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 14.7 ns 14.6 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.42 % 1.42 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 960 ns 960 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 956 ns 956 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 47.8 ns 47.8 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 4.98 % 4.98 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 11807 ns 11807 ns 4
std::stringstream str; str << "test = " << k << " times";_median 11757 ns 11757 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 255 ns 255 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 2.16 % 2.16 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 1850 ns 1850 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 1862 ns 1862 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 62.3 ns 62.3 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 3.36 % 3.37 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5459 ns 5459 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5484 ns 5484 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 129 ns 129 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.36 % 2.36 % 4
std::string str = std::format("test = {} times", k);_mean 2886 ns 2886 ns 4
std::string str = std::format("test = {} times", k);_median 2897 ns 2897 ns 4
std::string str = std::format("test = {} times", k);_stddev 38.2 ns 38.2 ns 4
std::string str = std::format("test = {} times", k);_cv 1.32 % 1.32 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 4975 ns 4975 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 4991 ns 4991 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 186 ns 186 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 3.73 % 3.73 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 4261 ns 4261 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 4253 ns 4253 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 79.6 ns 79.6 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 1.87 % 1.87 % 4
lstringa<8> str = "test = " + k + " times";_mean 592 ns 592 ns 4
lstringa<8> str = "test = " + k + " times";_median 590 ns 590 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 16.1 ns 16.1 ns 4
lstringa<8> str = "test = " + k + " times";_cv 2.72 % 2.72 % 4
lstringa<32> str = "test = " + k + " times";_mean 376 ns 376 ns 4
lstringa<32> str = "test = " + k + " times";_median 379 ns 379 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 16.3 ns 16.3 ns 4
lstringa<32> str = "test = " + k + " times";_cv 4.33 % 4.33 % 4
stringa str = "test = " + k + " times";_mean 573 ns 573 ns 4
stringa str = "test = " + k + " times";_median 571 ns 571 ns 4
stringa str = "test = " + k + " times";_stddev 7.80 ns 7.80 ns 4
stringa str = "test = " + k + " times";_cv 1.36 % 1.36 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 693 ns 693 ns 4
std::string::find + substr + std::strtol_median 693 ns 693 ns 4
std::string::find + substr + std::strtol_stddev 9.62 ns 9.63 ns 4
std::string::find + substr + std::strtol_cv 1.39 % 1.39 % 4
ssa::splitter + ssa::as_int_mean 240 ns 240 ns 4
ssa::splitter + ssa::as_int_median 237 ns 237 ns 4
ssa::splitter + ssa::as_int_stddev 8.00 ns 8.00 ns 4
ssa::splitter + ssa::as_int_cv 3.33 % 3.33 % 4
ssa::splitf + functor_mean 281 ns 281 ns 4
ssa::splitf + functor_median 281 ns 281 ns 4
ssa::splitf + functor_stddev 8.99 ns 8.99 ns 4
ssa::splitf + functor_cv 3.20 % 3.20 % 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 2875 ns 2875 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 2883 ns 2883 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 42.7 ns 42.7 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 1.49 % 1.49 % 4
replace symbols with std::string find_first_of + replace_mean 5461 ns 5461 ns 4
replace symbols with std::string find_first_of + replace_median 5451 ns 5451 ns 4
replace symbols with std::string find_first_of + replace_stddev 112 ns 112 ns 4
replace symbols with std::string find_first_of + replace_cv 2.06 % 2.06 % 4
replace symbols with std::string_view find_first_of + copy_mean 3004 ns 3004 ns 4
replace symbols with std::string_view find_first_of + copy_median 3026 ns 3027 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 59.0 ns 59.0 ns 4
replace symbols with std::string_view find_first_of + copy_cv 1.96 % 1.96 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 2942 ns 2942 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 2959 ns 2959 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 177 ns 177 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 6.03 % 6.03 % 4
replace runtime symbols with simstr and memorization of all search results_mean 2367 ns 2367 ns 4
replace runtime symbols with simstr and memorization of all search results_median 2362 ns 2362 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 49.7 ns 49.7 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 2.10 % 2.10 % 4
replace const symbols with string expressions and without remembering all search results_mean 2442 ns 2442 ns 4
replace const symbols with string expressions and without remembering all search results_median 2411 ns 2411 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 96.3 ns 96.3 ns 4
replace const symbols with string expressions and without remembering all search results_cv 3.94 % 3.94 % 4
replace const symbols with string expressions and memorization of all search results_mean 2031 ns 2031 ns 4
replace const symbols with string expressions and memorization of all search results_median 2029 ns 2029 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 30.1 ns 30.1 ns 4
replace const symbols with string expressions and memorization of all search results_cv 1.48 % 1.48 % 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 516 ns 516 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 515 ns 515 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 24.6 ns 24.6 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.77 % 4.77 % 4
Short replace symbols with std::string find_first_of + replace_mean 774 ns 774 ns 4
Short replace symbols with std::string find_first_of + replace_median 775 ns 775 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 9.92 ns 9.91 ns 4
Short replace symbols with std::string find_first_of + replace_cv 1.28 % 1.28 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 439 ns 439 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 439 ns 439 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 2.88 ns 2.88 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 0.66 % 0.66 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 389 ns 389 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 389 ns 389 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.32 ns 2.32 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 0.60 % 0.60 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 439 ns 439 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 439 ns 439 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 8.89 ns 8.89 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 2.03 % 2.03 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 292 ns 292 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 290 ns 290 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 17.5 ns 17.5 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 5.98 % 5.98 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 320 ns 320 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 320 ns 320 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 2.56 ns 2.56 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 0.80 % 0.80 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 394 ns 394 ns 4
replace bb to ---- in std::string|64_median 378 ns 378 ns 4
replace bb to ---- in std::string|64_stddev 32.9 ns 32.9 ns 4
replace bb to ---- in std::string|64_cv 8.33 % 8.33 % 4
replace bb to ---- in std::string|256_mean 1197 ns 1197 ns 4
replace bb to ---- in std::string|256_median 1181 ns 1181 ns 4
replace bb to ---- in std::string|256_stddev 44.4 ns 44.4 ns 4
replace bb to ---- in std::string|256_cv 3.71 % 3.71 % 4
replace bb to ---- in std::string|512_mean 2361 ns 2361 ns 4
replace bb to ---- in std::string|512_median 2360 ns 2361 ns 4
replace bb to ---- in std::string|512_stddev 34.7 ns 34.5 ns 4
replace bb to ---- in std::string|512_cv 1.47 % 1.46 % 4
replace bb to ---- in std::string|1024_mean 4872 ns 4872 ns 4
replace bb to ---- in std::string|1024_median 4719 ns 4719 ns 4
replace bb to ---- in std::string|1024_stddev 344 ns 344 ns 4
replace bb to ---- in std::string|1024_cv 7.07 % 7.07 % 4
replace bb to ---- in std::string|2048_mean 11862 ns 11862 ns 4
replace bb to ---- in std::string|2048_median 11883 ns 11883 ns 4
replace bb to ---- in std::string|2048_stddev 409 ns 409 ns 4
replace bb to ---- in std::string|2048_cv 3.45 % 3.45 % 4
replace bb to ---- in lstringa<8>|64_mean 306 ns 306 ns 4
replace bb to ---- in lstringa<8>|64_median 298 ns 298 ns 4
replace bb to ---- in lstringa<8>|64_stddev 17.8 ns 17.8 ns 4
replace bb to ---- in lstringa<8>|64_cv 5.83 % 5.83 % 4
replace bb to ---- in lstringa<8>|256_mean 953 ns 953 ns 4
replace bb to ---- in lstringa<8>|256_median 938 ns 938 ns 4
replace bb to ---- in lstringa<8>|256_stddev 50.2 ns 50.2 ns 4
replace bb to ---- in lstringa<8>|256_cv 5.27 % 5.27 % 4
replace bb to ---- in lstringa<8>|512_mean 1732 ns 1732 ns 4
replace bb to ---- in lstringa<8>|512_median 1728 ns 1728 ns 4
replace bb to ---- in lstringa<8>|512_stddev 36.7 ns 36.7 ns 4
replace bb to ---- in lstringa<8>|512_cv 2.12 % 2.12 % 4
replace bb to ---- in lstringa<8>|1024_mean 3256 ns 3256 ns 4
replace bb to ---- in lstringa<8>|1024_median 3267 ns 3267 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 90.1 ns 90.1 ns 4
replace bb to ---- in lstringa<8>|1024_cv 2.77 % 2.77 % 4
replace bb to ---- in lstringa<8>|2048_mean 6323 ns 6323 ns 4
replace bb to ---- in lstringa<8>|2048_median 6272 ns 6272 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 132 ns 132 ns 4
replace bb to ---- in lstringa<8>|2048_cv 2.09 % 2.09 % 4
replace bb to ---- by init stringa|64_mean 162 ns 162 ns 4
replace bb to ---- by init stringa|64_median 156 ns 156 ns 4
replace bb to ---- by init stringa|64_stddev 14.5 ns 14.5 ns 4
replace bb to ---- by init stringa|64_cv 8.97 % 8.97 % 4
replace bb to ---- by init stringa|256_mean 527 ns 527 ns 4
replace bb to ---- by init stringa|256_median 537 ns 537 ns 4
replace bb to ---- by init stringa|256_stddev 28.6 ns 28.6 ns 4
replace bb to ---- by init stringa|256_cv 5.42 % 5.42 % 4
replace bb to ---- by init stringa|512_mean 1213 ns 1214 ns 4
replace bb to ---- by init stringa|512_median 1205 ns 1205 ns 4
replace bb to ---- by init stringa|512_stddev 59.2 ns 59.2 ns 4
replace bb to ---- by init stringa|512_cv 4.88 % 4.88 % 4
replace bb to ---- by init stringa|1024_mean 2565 ns 2565 ns 4
replace bb to ---- by init stringa|1024_median 2523 ns 2523 ns 4
replace bb to ---- by init stringa|1024_stddev 131 ns 131 ns 4
replace bb to ---- by init stringa|1024_cv 5.12 % 5.12 % 4
replace bb to ---- by init stringa|2048_mean 5315 ns 5315 ns 4
replace bb to ---- by init stringa|2048_median 5285 ns 5285 ns 4
replace bb to ---- by init stringa|2048_stddev 260 ns 260 ns 4
replace bb to ---- by init stringa|2048_cv 4.90 % 4.90 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 256 ns 256 ns 4
replace bb to -- in std::string|64_median 258 ns 258 ns 4
replace bb to -- in std::string|64_stddev 6.17 ns 6.17 ns 4
replace bb to -- in std::string|64_cv 2.40 % 2.40 % 4
replace bb to -- in std::string|256_mean 819 ns 819 ns 4
replace bb to -- in std::string|256_median 823 ns 823 ns 4
replace bb to -- in std::string|256_stddev 32.6 ns 32.6 ns 4
replace bb to -- in std::string|256_cv 3.98 % 3.98 % 4
replace bb to -- in std::string|512_mean 1546 ns 1546 ns 4
replace bb to -- in std::string|512_median 1541 ns 1541 ns 4
replace bb to -- in std::string|512_stddev 34.5 ns 34.5 ns 4
replace bb to -- in std::string|512_cv 2.23 % 2.23 % 4
replace bb to -- in std::string|1024_mean 2954 ns 2954 ns 4
replace bb to -- in std::string|1024_median 2945 ns 2945 ns 4
replace bb to -- in std::string|1024_stddev 84.8 ns 84.8 ns 4
replace bb to -- in std::string|1024_cv 2.87 % 2.87 % 4
replace bb to -- in std::string|2048_mean 5749 ns 5749 ns 4
replace bb to -- in std::string|2048_median 5756 ns 5756 ns 4
replace bb to -- in std::string|2048_stddev 103 ns 103 ns 4
replace bb to -- in std::string|2048_cv 1.79 % 1.79 % 4
replace bb to -- in lstringa<8>|64_mean 206 ns 206 ns 4
replace bb to -- in lstringa<8>|64_median 203 ns 203 ns 4
replace bb to -- in lstringa<8>|64_stddev 7.19 ns 7.19 ns 4
replace bb to -- in lstringa<8>|64_cv 3.50 % 3.50 % 4
replace bb to -- in lstringa<8>|256_mean 650 ns 650 ns 4
replace bb to -- in lstringa<8>|256_median 652 ns 652 ns 4
replace bb to -- in lstringa<8>|256_stddev 22.8 ns 22.8 ns 4
replace bb to -- in lstringa<8>|256_cv 3.51 % 3.51 % 4
replace bb to -- in lstringa<8>|512_mean 1202 ns 1202 ns 4
replace bb to -- in lstringa<8>|512_median 1190 ns 1190 ns 4
replace bb to -- in lstringa<8>|512_stddev 32.8 ns 32.8 ns 4
replace bb to -- in lstringa<8>|512_cv 2.73 % 2.73 % 4
replace bb to -- in lstringa<8>|1024_mean 2364 ns 2364 ns 4
replace bb to -- in lstringa<8>|1024_median 2338 ns 2338 ns 4
replace bb to -- in lstringa<8>|1024_stddev 123 ns 123 ns 4
replace bb to -- in lstringa<8>|1024_cv 5.19 % 5.19 % 4
replace bb to -- in lstringa<8>|2048_mean 4378 ns 4378 ns 4
replace bb to -- in lstringa<8>|2048_median 4391 ns 4391 ns 4
replace bb to -- in lstringa<8>|2048_stddev 54.5 ns 54.5 ns 4
replace bb to -- in lstringa<8>|2048_cv 1.24 % 1.25 % 4
replace bb to -- by init stringa|64_mean 147 ns 147 ns 4
replace bb to -- by init stringa|64_median 146 ns 146 ns 4
replace bb to -- by init stringa|64_stddev 4.16 ns 4.16 ns 4
replace bb to -- by init stringa|64_cv 2.83 % 2.83 % 4
replace bb to -- by init stringa|256_mean 472 ns 472 ns 4
replace bb to -- by init stringa|256_median 474 ns 474 ns 4
replace bb to -- by init stringa|256_stddev 14.4 ns 14.4 ns 4
replace bb to -- by init stringa|256_cv 3.05 % 3.05 % 4
replace bb to -- by init stringa|512_mean 912 ns 912 ns 4
replace bb to -- by init stringa|512_median 903 ns 903 ns 4
replace bb to -- by init stringa|512_stddev 35.7 ns 35.7 ns 4
replace bb to -- by init stringa|512_cv 3.92 % 3.92 % 4
replace bb to -- by init stringa|1024_mean 1712 ns 1712 ns 4
replace bb to -- by init stringa|1024_median 1688 ns 1688 ns 4
replace bb to -- by init stringa|1024_stddev 57.4 ns 57.4 ns 4
replace bb to -- by init stringa|1024_cv 3.35 % 3.35 % 4
replace bb to -- by init stringa|2048_mean 2832 ns 2832 ns 4
replace bb to -- by init stringa|2048_median 2848 ns 2848 ns 4
replace bb to -- by init stringa|2048_stddev 50.2 ns 50.2 ns 4
replace bb to -- by init stringa|2048_cv 1.77 % 1.77 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3227313 ns 3227301 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3231739 ns 3231727 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 13467 ns 13477 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 0.42 % 0.42 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3640106 ns 3640118 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3618259 ns 3618259 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 92723 ns 92726 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.55 % 2.55 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3237505 ns 3237495 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3246561 ns 3246539 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 21057 ns 21051 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 0.65 % 0.65 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4135414 ns 4135414 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4133486 ns 4133471 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 39953 ns 39951 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 0.97 % 0.97 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 3605 ns 3605 ns 4
Build func full name std::string;_median 3662 ns 3662 ns 4
Build func full name std::string;_stddev 166 ns 166 ns 4
Build func full name std::string;_cv 4.61 % 4.61 % 4
Build func full name std::string 1;_mean 3610 ns 3610 ns 4
Build func full name std::string 1;_median 3614 ns 3614 ns 4
Build func full name std::string 1;_stddev 119 ns 119 ns 4
Build func full name std::string 1;_cv 3.31 % 3.31 % 4
Build func full name std::stream;_mean 12391 ns 12391 ns 4
Build func full name std::stream;_median 12391 ns 12391 ns 4
Build func full name std::stream;_stddev 112 ns 112 ns 4
Build func full name std::stream;_cv 0.91 % 0.91 % 4
Build func full name stringa;_mean 1610 ns 1610 ns 4
Build func full name stringa;_median 1566 ns 1566 ns 4
Build func full name stringa;_stddev 114 ns 114 ns 4
Build func full name stringa;_cv 7.10 % 7.10 % 4
Build func full name stringa 1;_mean 1874 ns 1874 ns 4
Build func full name stringa 1;_median 1867 ns 1867 ns 4
Build func full name stringa 1;_stddev 59.5 ns 59.5 ns 4
Build func full name stringa 1;_cv 3.17 % 3.17 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 203 ns 203 ns 4
To upper case std::wstring_median 204 ns 204 ns 4
To upper case std::wstring_stddev 4.67 ns 4.67 ns 4
To upper case std::wstring_cv 2.30 % 2.30 % 4
To upper case lstringw<15>_mean 63.5 ns 63.5 ns 4
To upper case lstringw<15>_median 63.8 ns 63.8 ns 4
To upper case lstringw<15>_stddev 0.601 ns 0.601 ns 4
To upper case lstringw<15>_cv 0.95 % 0.95 % 4