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

977 lines
144 KiB
Plaintext

Benchmarks of simstr, version 1.6.7
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
2026-02-14T12:00:49+03:00
Running ./benchStr
Run on (32 X 2494.22 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x16)
L1 Instruction 32 KiB (x16)
L2 Unified 256 KiB (x16)
L3 Unified 40960 KiB (x1)
Load Average: 0.43, 0.77, 0.52
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
--------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat email std::format_mean 163 ns 163 ns 4
Concat email std::format_median 164 ns 164 ns 4
Concat email std::format_stddev 4.45 ns 4.45 ns 4
Concat email std::format_cv 2.73 % 2.73 % 4
Concat email std::stringstream_mean 322 ns 322 ns 4
Concat email std::stringstream_median 322 ns 322 ns 4
Concat email std::stringstream_stddev 4.22 ns 4.22 ns 4
Concat email std::stringstream_cv 1.31 % 1.31 % 4
Concat email stringzilla append_mean 133 ns 133 ns 4
Concat email stringzilla append_median 131 ns 131 ns 4
Concat email stringzilla append_stddev 5.72 ns 5.72 ns 4
Concat email stringzilla append_cv 4.31 % 4.31 % 4
Concat email stringzilla concat_mean 54.9 ns 54.9 ns 4
Concat email stringzilla concat_median 54.2 ns 54.2 ns 4
Concat email stringzilla concat_stddev 3.02 ns 3.02 ns 4
Concat email stringzilla concat_cv 5.50 % 5.50 % 4
Concat email std::string append_mean 72.1 ns 72.1 ns 4
Concat email std::string append_median 71.4 ns 71.4 ns 4
Concat email std::string append_stddev 3.01 ns 3.01 ns 4
Concat email std::string append_cv 4.18 % 4.18 % 4
Concat email std::string by strexpr_mean 44.3 ns 44.3 ns 4
Concat email std::string by strexpr_median 44.4 ns 44.4 ns 4
Concat email std::string by strexpr_stddev 2.96 ns 2.96 ns 4
Concat email std::string by strexpr_cv 6.67 % 6.67 % 4
Concat email stringa_mean 39.9 ns 39.9 ns 4
Concat email stringa_median 39.3 ns 39.3 ns 4
Concat email stringa_stddev 2.33 ns 2.33 ns 4
Concat email stringa_cv 5.85 % 5.85 % 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 214 ns 214 ns 4
Concat std::string and number by std to std::string_median 214 ns 214 ns 4
Concat std::string and number by std to std::string_stddev 3.43 ns 3.43 ns 4
Concat std::string and number by std to std::string_cv 1.60 % 1.60 % 4
Concat std::string and number by StrExpr to std::string_mean 103 ns 103 ns 4
Concat std::string and number by StrExpr to std::string_median 103 ns 103 ns 4
Concat std::string and number by StrExpr to std::string_stddev 2.19 ns 2.19 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.13 % 2.13 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 63.0 ns 63.0 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 63.1 ns 63.1 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 1.13 ns 1.13 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 1.80 % 1.80 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 67.4 ns 67.4 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 67.4 ns 67.4 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 0.707 ns 0.707 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 1.05 % 1.05 % 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 654 ns 654 ns 4
Concat std::string and format hex number and literal to std::string_median 649 ns 649 ns 4
Concat std::string and format hex number and literal to std::string_stddev 22.0 ns 22.0 ns 4
Concat std::string and format hex number and literal to std::string_cv 3.36 % 3.36 % 4
std::format std::string and hex number by literal to std::string_mean 874 ns 874 ns 4
std::format std::string and hex number by literal to std::string_median 878 ns 878 ns 4
std::format std::string and hex number by literal to std::string_stddev 18.7 ns 18.7 ns 4
std::format std::string and hex number by literal to std::string_cv 2.14 % 2.14 % 4
Concat std::string and std::to_chars and string to std::string_mean 196 ns 196 ns 4
Concat std::string and std::to_chars and string to std::string_median 196 ns 196 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 1.22 ns 1.22 ns 4
Concat std::string and std::to_chars and string to std::string_cv 0.62 % 0.62 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 131 ns 131 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 130 ns 130 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.93 ns 2.93 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 2.24 % 2.24 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 115 ns 115 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 115 ns 115 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.413 ns 0.413 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.36 % 0.36 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 122 ns 122 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 121 ns 121 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.88 ns 1.88 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.54 % 1.54 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 180 ns 180 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 180 ns 180 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.33 ns 1.33 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.74 % 0.74 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 313 ns 313 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 313 ns 313 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 2.04 ns 2.04 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.65 % 0.65 % 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 280 ns 280 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 279 ns 279 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 11.1 ns 11.1 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.96 % 3.96 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 341 ns 341 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 337 ns 337 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 9.29 ns 9.29 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.72 % 2.72 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 599 ns 599 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 595 ns 595 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 15.5 ns 15.5 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.60 % 2.60 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 676 ns 676 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 681 ns 681 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 19.9 ns 19.9 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.94 % 2.94 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 832 ns 832 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 835 ns 835 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 6.79 ns 6.79 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.82 % 0.82 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1007 ns 1007 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1003 ns 1003 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 28.1 ns 28.1 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.79 % 2.79 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1001 ns 1001 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1006 ns 1006 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 19.3 ns 19.3 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 1.93 % 1.93 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2029 ns 2029 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2021 ns 2021 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 31.4 ns 31.4 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.55 % 1.55 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 49.0 ns 49.0 ns 4
Concat std::string by std to std::string_median 48.8 ns 48.8 ns 4
Concat std::string by std to std::string_stddev 0.989 ns 0.989 ns 4
Concat std::string by std to std::string_cv 2.02 % 2.02 % 4
Concat std::string by StrExpr to std::string_mean 39.9 ns 39.9 ns 4
Concat std::string by StrExpr to std::string_median 40.2 ns 40.2 ns 4
Concat std::string by StrExpr to std::string_stddev 0.729 ns 0.729 ns 4
Concat std::string by StrExpr to std::string_cv 1.83 % 1.83 % 4
Concat stringa by StrExpr to stringa_mean 27.1 ns 27.1 ns 4
Concat stringa by StrExpr to stringa_median 27.2 ns 27.2 ns 4
Concat stringa by StrExpr to stringa_stddev 0.317 ns 0.317 ns 4
Concat stringa by StrExpr to stringa_cv 1.17 % 1.17 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 110 ns 110 ns 4
Find concat three std::string_median 109 ns 109 ns 4
Find concat three std::string_stddev 2.79 ns 2.79 ns 4
Find concat three std::string_cv 2.55 % 2.55 % 4
Find concat three strexpr_mean 51.5 ns 51.5 ns 4
Find concat three strexpr_median 49.3 ns 49.3 ns 4
Find concat three strexpr_stddev 5.16 ns 5.16 ns 4
Find concat three strexpr_cv 10.03 % 10.03 % 4
Find concat three simstr_mean 19.4 ns 19.4 ns 4
Find concat three simstr_median 19.3 ns 19.3 ns 4
Find concat three simstr_stddev 0.414 ns 0.414 ns 4
Find concat three simstr_cv 2.13 % 2.13 % 4
Find concat three stringzilla string_mean 146 ns 146 ns 4
Find concat three stringzilla string_median 147 ns 147 ns 4
Find concat three stringzilla string_stddev 6.23 ns 6.23 ns 4
Find concat three stringzilla string_cv 4.27 % 4.27 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 7.65 ns 7.65 ns 4
BuildTypeNameStr 0/0_median 7.68 ns 7.68 ns 4
BuildTypeNameStr 0/0_stddev 0.164 ns 0.164 ns 4
BuildTypeNameStr 0/0_cv 2.15 % 2.15 % 4
BuildTypeNameExp 0/0_mean 6.50 ns 6.50 ns 4
BuildTypeNameExp 0/0_median 6.52 ns 6.52 ns 4
BuildTypeNameExp 0/0_stddev 0.124 ns 0.124 ns 4
BuildTypeNameExp 0/0_cv 1.90 % 1.90 % 4
BuildTypeNameSim 0/0_mean 4.14 ns 4.14 ns 4
BuildTypeNameSim 0/0_median 4.15 ns 4.15 ns 4
BuildTypeNameSim 0/0_stddev 0.063 ns 0.063 ns 4
BuildTypeNameSim 0/0_cv 1.53 % 1.53 % 4
BuildTypeNameStr 10/10_mean 56.9 ns 56.9 ns 4
BuildTypeNameStr 10/10_median 56.6 ns 56.6 ns 4
BuildTypeNameStr 10/10_stddev 1.71 ns 1.71 ns 4
BuildTypeNameStr 10/10_cv 3.01 % 3.01 % 4
BuildTypeNameExp 10/10_mean 29.9 ns 29.9 ns 4
BuildTypeNameExp 10/10_median 30.1 ns 30.1 ns 4
BuildTypeNameExp 10/10_stddev 0.479 ns 0.479 ns 4
BuildTypeNameExp 10/10_cv 1.60 % 1.60 % 4
BuildTypeNameSim 10/10_mean 22.9 ns 22.9 ns 4
BuildTypeNameSim 10/10_median 22.9 ns 22.9 ns 4
BuildTypeNameSim 10/10_stddev 0.483 ns 0.483 ns 4
BuildTypeNameSim 10/10_cv 2.11 % 2.11 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 200 ns 200 ns 4
Concat with replace str_median 201 ns 201 ns 4
Concat with replace str_stddev 5.79 ns 5.79 ns 4
Concat with replace str_cv 2.90 % 2.90 % 4
Concat with replace exp_mean 147 ns 147 ns 4
Concat with replace exp_median 147 ns 147 ns 4
Concat with replace exp_stddev 2.55 ns 2.55 ns 4
Concat with replace exp_cv 1.73 % 1.73 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.11 ns 1.11 ns 4
std::string e;_median 1.11 ns 1.11 ns 4
std::string e;_stddev 0.017 ns 0.017 ns 4
std::string e;_cv 1.55 % 1.55 % 4
std::string_view e;_mean 0.375 ns 0.375 ns 4
std::string_view e;_median 0.373 ns 0.373 ns 4
std::string_view e;_stddev 0.007 ns 0.007 ns 4
std::string_view e;_cv 1.80 % 1.80 % 4
ssa e;_mean 0.361 ns 0.361 ns 4
ssa e;_median 0.361 ns 0.361 ns 4
ssa e;_stddev 0.005 ns 0.005 ns 4
ssa e;_cv 1.32 % 1.32 % 4
stringa e;_mean 0.753 ns 0.753 ns 4
stringa e;_median 0.750 ns 0.750 ns 4
stringa e;_stddev 0.011 ns 0.011 ns 4
stringa e;_cv 1.46 % 1.46 % 4
lstringa<20> e;_mean 1.20 ns 1.20 ns 4
lstringa<20> e;_median 1.18 ns 1.18 ns 4
lstringa<20> e;_stddev 0.062 ns 0.062 ns 4
lstringa<20> e;_cv 5.22 % 5.22 % 4
lstringa<40> e;_mean 1.13 ns 1.13 ns 4
lstringa<40> e;_median 1.13 ns 1.13 ns 4
lstringa<40> e;_stddev 0.007 ns 0.007 ns 4
lstringa<40> e;_cv 0.65 % 0.65 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.81 ns 1.81 ns 4
std::string e = "Test text";_median 1.82 ns 1.82 ns 4
std::string e = "Test text";_stddev 0.020 ns 0.020 ns 4
std::string e = "Test text";_cv 1.13 % 1.13 % 4
std::string_view e = "Test text";_mean 0.731 ns 0.731 ns 4
std::string_view e = "Test text";_median 0.731 ns 0.731 ns 4
std::string_view e = "Test text";_stddev 0.018 ns 0.018 ns 4
std::string_view e = "Test text";_cv 2.49 % 2.49 % 4
ssa e = "Test text";_mean 0.367 ns 0.367 ns 4
ssa e = "Test text";_median 0.367 ns 0.367 ns 4
ssa e = "Test text";_stddev 0.007 ns 0.007 ns 4
ssa e = "Test text";_cv 1.93 % 1.93 % 4
stringa e = "Test text";_mean 1.11 ns 1.11 ns 4
stringa e = "Test text";_median 1.12 ns 1.12 ns 4
stringa e = "Test text";_stddev 0.022 ns 0.022 ns 4
stringa e = "Test text";_cv 1.99 % 1.99 % 4
lstringa<20> e = "Test text";_mean 1.85 ns 1.85 ns 4
lstringa<20> e = "Test text";_median 1.85 ns 1.85 ns 4
lstringa<20> e = "Test text";_stddev 0.032 ns 0.032 ns 4
lstringa<20> e = "Test text";_cv 1.74 % 1.74 % 4
lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 4
lstringa<40> e = "Test text";_median 1.85 ns 1.85 ns 4
lstringa<40> e = "Test text";_stddev 0.073 ns 0.073 ns 4
lstringa<40> e = "Test text";_cv 3.86 % 3.86 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 19.1 ns 19.1 ns 4
std::string e = "123456789012345678901234567890";_median 19.2 ns 19.2 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.242 ns 0.242 ns 4
std::string e = "123456789012345678901234567890";_cv 1.26 % 1.26 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.762 ns 0.762 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.748 ns 0.748 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.053 ns 0.053 ns 4
std::string_view e = "123456789012345678901234567890";_cv 6.97 % 6.97 % 4
ssa e = "123456789012345678901234567890";_mean 0.369 ns 0.369 ns 4
ssa e = "123456789012345678901234567890";_median 0.366 ns 0.366 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.012 ns 0.012 ns 4
ssa e = "123456789012345678901234567890";_cv 3.15 % 3.15 % 4
stringa e = "123456789012345678901234567890";_mean 1.09 ns 1.09 ns 4
stringa e = "123456789012345678901234567890";_median 1.09 ns 1.09 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4
stringa e = "123456789012345678901234567890";_cv 0.64 % 0.64 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 21.0 ns 21.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 20.6 ns 20.6 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 1.49 ns 1.49 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 7.10 % 7.10 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.54 ns 2.54 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.53 ns 2.53 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.024 ns 0.024 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 0.96 % 0.96 % 4
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text"; auto c{e};_mean 5.58 ns 5.58 ns 4
std::string e = "Test text"; auto c{e};_median 5.57 ns 5.57 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.112 ns 0.112 ns 4
std::string e = "Test text"; auto c{e};_cv 2.00 % 2.00 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.370 ns 0.370 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.366 ns 0.366 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4
std::string_view e = "Test text"; auto c{e};_cv 4.44 % 4.44 % 4
ssa e = "Test text"; auto c{e};_mean 0.372 ns 0.372 ns 4
ssa e = "Test text"; auto c{e};_median 0.371 ns 0.371 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.001 ns 0.001 ns 4
ssa e = "Test text"; auto c{e};_cv 0.29 % 0.29 % 4
stringa e = "Test text"; auto c{e};_mean 1.11 ns 1.11 ns 4
stringa e = "Test text"; auto c{e};_median 1.10 ns 1.10 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.012 ns 0.012 ns 4
stringa e = "Test text"; auto c{e};_cv 1.07 % 1.07 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.49 ns 1.49 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.48 ns 1.48 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.031 ns 0.031 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 2.07 % 2.07 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.48 ns 1.48 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.48 ns 1.48 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.040 ns 0.040 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 2.73 % 2.73 % 4
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890"; auto c{e};_mean 19.0 ns 19.0 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 18.8 ns 18.8 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.822 ns 0.822 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.32 % 4.32 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.761 ns 0.762 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.739 ns 0.739 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.055 ns 0.055 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 7.17 % 7.17 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.366 ns 0.366 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.365 ns 0.365 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.005 ns 0.005 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.44 % 1.44 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.11 ns 1.11 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.10 ns 1.10 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.020 ns 0.020 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.84 % 1.84 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.0 ns 21.0 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.4 ns 20.4 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.41 ns 1.41 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 6.74 % 6.74 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.83 ns 4.83 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.81 ns 4.81 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.060 ns 0.060 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.25 % 1.25 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 93.4 ns 93.4 ns 4
sz::string::find;_median 93.2 ns 93.2 ns 4
sz::string::find;_stddev 1.53 ns 1.53 ns 4
sz::string::find;_cv 1.64 % 1.64 % 4
std::string::find;_mean 7.54 ns 7.54 ns 4
std::string::find;_median 7.54 ns 7.54 ns 4
std::string::find;_stddev 0.060 ns 0.060 ns 4
std::string::find;_cv 0.79 % 0.79 % 4
std::string_view::find;_mean 6.70 ns 6.70 ns 4
std::string_view::find;_median 6.67 ns 6.67 ns 4
std::string_view::find;_stddev 0.222 ns 0.222 ns 4
std::string_view::find;_cv 3.31 % 3.31 % 4
ssa::find;_mean 7.49 ns 7.49 ns 4
ssa::find;_median 7.47 ns 7.47 ns 4
ssa::find;_stddev 0.278 ns 0.278 ns 4
ssa::find;_cv 3.71 % 3.71 % 4
stringa::find;_mean 7.84 ns 7.84 ns 4
stringa::find;_median 7.83 ns 7.83 ns 4
stringa::find;_stddev 0.024 ns 0.024 ns 4
stringa::find;_cv 0.31 % 0.31 % 4
lstringa<20>::find;_mean 7.38 ns 7.38 ns 4
lstringa<20>::find;_median 7.27 ns 7.27 ns 4
lstringa<20>::find;_stddev 0.240 ns 0.240 ns 4
lstringa<20>::find;_cv 3.25 % 3.25 % 4
lstringa<40>::find;_mean 7.02 ns 7.02 ns 4
lstringa<40>::find;_median 7.02 ns 7.02 ns 4
lstringa<40>::find;_stddev 0.062 ns 0.062 ns 4
lstringa<40>::find;_cv 0.89 % 0.89 % 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 4.87 ns 4.87 ns 4
std::string copy{str_with_len_N};/15_median 4.88 ns 4.88 ns 4
std::string copy{str_with_len_N};/15_stddev 0.072 ns 0.072 ns 4
std::string copy{str_with_len_N};/15_cv 1.48 % 1.48 % 4
std::string copy{str_with_len_N};/16_mean 23.2 ns 23.2 ns 4
std::string copy{str_with_len_N};/16_median 23.2 ns 23.2 ns 4
std::string copy{str_with_len_N};/16_stddev 0.490 ns 0.490 ns 4
std::string copy{str_with_len_N};/16_cv 2.11 % 2.11 % 4
std::string copy{str_with_len_N};/23_mean 23.5 ns 23.5 ns 4
std::string copy{str_with_len_N};/23_median 22.8 ns 22.8 ns 4
std::string copy{str_with_len_N};/23_stddev 1.53 ns 1.53 ns 4
std::string copy{str_with_len_N};/23_cv 6.52 % 6.52 % 4
std::string copy{str_with_len_N};/24_mean 22.6 ns 22.6 ns 4
std::string copy{str_with_len_N};/24_median 22.6 ns 22.6 ns 4
std::string copy{str_with_len_N};/24_stddev 0.340 ns 0.340 ns 4
std::string copy{str_with_len_N};/24_cv 1.51 % 1.51 % 4
std::string copy{str_with_len_N};/32_mean 22.6 ns 22.6 ns 4
std::string copy{str_with_len_N};/32_median 22.6 ns 22.6 ns 4
std::string copy{str_with_len_N};/32_stddev 0.901 ns 0.901 ns 4
std::string copy{str_with_len_N};/32_cv 3.99 % 3.99 % 4
std::string copy{str_with_len_N};/64_mean 22.3 ns 22.3 ns 4
std::string copy{str_with_len_N};/64_median 22.3 ns 22.3 ns 4
std::string copy{str_with_len_N};/64_stddev 0.426 ns 0.426 ns 4
std::string copy{str_with_len_N};/64_cv 1.91 % 1.91 % 4
std::string copy{str_with_len_N};/128_mean 23.7 ns 23.7 ns 4
std::string copy{str_with_len_N};/128_median 23.6 ns 23.6 ns 4
std::string copy{str_with_len_N};/128_stddev 0.580 ns 0.580 ns 4
std::string copy{str_with_len_N};/128_cv 2.45 % 2.45 % 4
std::string copy{str_with_len_N};/256_mean 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/256_median 24.8 ns 24.8 ns 4
std::string copy{str_with_len_N};/256_stddev 1.05 ns 1.05 ns 4
std::string copy{str_with_len_N};/256_cv 4.24 % 4.24 % 4
std::string copy{str_with_len_N};/512_mean 28.5 ns 28.5 ns 4
std::string copy{str_with_len_N};/512_median 28.6 ns 28.6 ns 4
std::string copy{str_with_len_N};/512_stddev 0.369 ns 0.369 ns 4
std::string copy{str_with_len_N};/512_cv 1.29 % 1.29 % 4
std::string copy{str_with_len_N};/1024_mean 34.8 ns 34.8 ns 4
std::string copy{str_with_len_N};/1024_median 34.9 ns 34.9 ns 4
std::string copy{str_with_len_N};/1024_stddev 1.77 ns 1.77 ns 4
std::string copy{str_with_len_N};/1024_cv 5.10 % 5.10 % 4
std::string copy{str_with_len_N};/2048_mean 79.1 ns 79.1 ns 4
std::string copy{str_with_len_N};/2048_median 78.6 ns 78.6 ns 4
std::string copy{str_with_len_N};/2048_stddev 5.40 ns 5.40 ns 4
std::string copy{str_with_len_N};/2048_cv 6.83 % 6.83 % 4
std::string copy{str_with_len_N};/4096_mean 111 ns 111 ns 4
std::string copy{str_with_len_N};/4096_median 111 ns 111 ns 4
std::string copy{str_with_len_N};/4096_stddev 2.30 ns 2.30 ns 4
std::string copy{str_with_len_N};/4096_cv 2.08 % 2.08 % 4
stringa copy{str_with_len_N};/15_mean 1.09 ns 1.09 ns 4
stringa copy{str_with_len_N};/15_median 1.09 ns 1.09 ns 4
stringa copy{str_with_len_N};/15_stddev 0.011 ns 0.011 ns 4
stringa copy{str_with_len_N};/15_cv 1.02 % 1.02 % 4
stringa copy{str_with_len_N};/16_mean 1.13 ns 1.13 ns 4
stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/16_stddev 0.032 ns 0.032 ns 4
stringa copy{str_with_len_N};/16_cv 2.84 % 2.84 % 4
stringa copy{str_with_len_N};/23_mean 1.11 ns 1.11 ns 4
stringa copy{str_with_len_N};/23_median 1.11 ns 1.11 ns 4
stringa copy{str_with_len_N};/23_stddev 0.010 ns 0.010 ns 4
stringa copy{str_with_len_N};/23_cv 0.88 % 0.88 % 4
stringa copy{str_with_len_N};/24_mean 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/24_median 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/24_stddev 0.091 ns 0.091 ns 4
stringa copy{str_with_len_N};/24_cv 0.57 % 0.57 % 4
stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/32_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/32_stddev 0.111 ns 0.111 ns 4
stringa copy{str_with_len_N};/32_cv 0.69 % 0.69 % 4
stringa copy{str_with_len_N};/64_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/64_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/64_stddev 0.199 ns 0.199 ns 4
stringa copy{str_with_len_N};/64_cv 1.24 % 1.24 % 4
stringa copy{str_with_len_N};/128_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/128_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/128_stddev 0.049 ns 0.049 ns 4
stringa copy{str_with_len_N};/128_cv 0.30 % 0.30 % 4
stringa copy{str_with_len_N};/256_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/256_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/256_stddev 0.138 ns 0.138 ns 4
stringa copy{str_with_len_N};/256_cv 0.86 % 0.86 % 4
stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/512_stddev 0.148 ns 0.148 ns 4
stringa copy{str_with_len_N};/512_cv 0.92 % 0.92 % 4
stringa copy{str_with_len_N};/1024_mean 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/1024_median 16.0 ns 16.0 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.230 ns 0.230 ns 4
stringa copy{str_with_len_N};/1024_cv 1.43 % 1.43 % 4
stringa copy{str_with_len_N};/2048_mean 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/2048_median 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.049 ns 0.049 ns 4
stringa copy{str_with_len_N};/2048_cv 0.31 % 0.31 % 4
stringa copy{str_with_len_N};/4096_mean 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/4096_median 15.9 ns 15.9 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.125 ns 0.125 ns 4
stringa copy{str_with_len_N};/4096_cv 0.79 % 0.79 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.47 ns 1.47 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.47 ns 1.47 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.014 ns 0.014 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 0.94 % 0.94 % 4
lstringa<16> copy{str_with_len_N};/16_mean 5.22 ns 5.22 ns 4
lstringa<16> copy{str_with_len_N};/16_median 5.17 ns 5.17 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.148 ns 0.148 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 2.83 % 2.83 % 4
lstringa<16> copy{str_with_len_N};/23_mean 5.16 ns 5.16 ns 4
lstringa<16> copy{str_with_len_N};/23_median 5.16 ns 5.16 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.039 ns 0.039 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 0.77 % 0.77 % 4
lstringa<16> copy{str_with_len_N};/24_mean 22.6 ns 22.6 ns 4
lstringa<16> copy{str_with_len_N};/24_median 22.7 ns 22.7 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.414 ns 0.414 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 1.83 % 1.83 % 4
lstringa<16> copy{str_with_len_N};/32_mean 23.0 ns 23.0 ns 4
lstringa<16> copy{str_with_len_N};/32_median 23.1 ns 23.1 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.697 ns 0.697 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 3.03 % 3.03 % 4
lstringa<16> copy{str_with_len_N};/64_mean 25.5 ns 25.5 ns 4
lstringa<16> copy{str_with_len_N};/64_median 25.4 ns 25.4 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.760 ns 0.760 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 2.98 % 2.98 % 4
lstringa<16> copy{str_with_len_N};/128_mean 25.7 ns 25.7 ns 4
lstringa<16> copy{str_with_len_N};/128_median 25.7 ns 25.7 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 0.191 ns 0.191 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 0.75 % 0.75 % 4
lstringa<16> copy{str_with_len_N};/256_mean 27.1 ns 27.1 ns 4
lstringa<16> copy{str_with_len_N};/256_median 27.1 ns 27.1 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.468 ns 0.468 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 1.73 % 1.73 % 4
lstringa<16> copy{str_with_len_N};/512_mean 29.8 ns 29.8 ns 4
lstringa<16> copy{str_with_len_N};/512_median 30.0 ns 30.0 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 0.759 ns 0.759 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 2.55 % 2.55 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 51.8 ns 51.8 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 51.4 ns 51.4 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 1.13 ns 1.13 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 2.19 % 2.19 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 65.7 ns 65.7 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 64.0 ns 64.0 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 5.00 ns 5.00 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 7.62 % 7.62 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 86.4 ns 86.4 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 87.3 ns 87.3 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 3.27 ns 3.27 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 3.79 % 3.79 % 4
lstringa<512> copy{str_with_len_N};/15_mean 1.49 ns 1.49 ns 4
lstringa<512> copy{str_with_len_N};/15_median 1.49 ns 1.49 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.028 ns 0.028 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 1.91 % 1.91 % 4
lstringa<512> copy{str_with_len_N};/16_mean 5.15 ns 5.15 ns 4
lstringa<512> copy{str_with_len_N};/16_median 5.14 ns 5.14 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.079 ns 0.079 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 1.54 % 1.54 % 4
lstringa<512> copy{str_with_len_N};/23_mean 5.25 ns 5.25 ns 4
lstringa<512> copy{str_with_len_N};/23_median 5.28 ns 5.28 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.171 ns 0.171 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 3.26 % 3.26 % 4
lstringa<512> copy{str_with_len_N};/24_mean 5.09 ns 5.09 ns 4
lstringa<512> copy{str_with_len_N};/24_median 5.07 ns 5.07 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.220 ns 0.220 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 4.32 % 4.32 % 4
lstringa<512> copy{str_with_len_N};/32_mean 5.26 ns 5.26 ns 4
lstringa<512> copy{str_with_len_N};/32_median 4.97 ns 4.97 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.674 ns 0.674 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 12.81 % 12.81 % 4
lstringa<512> copy{str_with_len_N};/64_mean 6.39 ns 6.39 ns 4
lstringa<512> copy{str_with_len_N};/64_median 6.41 ns 6.41 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.158 ns 0.158 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 2.47 % 2.47 % 4
lstringa<512> copy{str_with_len_N};/128_mean 6.59 ns 6.59 ns 4
lstringa<512> copy{str_with_len_N};/128_median 6.60 ns 6.60 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.100 ns 0.100 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 1.52 % 1.52 % 4
lstringa<512> copy{str_with_len_N};/256_mean 7.99 ns 7.99 ns 4
lstringa<512> copy{str_with_len_N};/256_median 7.99 ns 7.99 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.072 ns 0.072 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 0.91 % 0.91 % 4
lstringa<512> copy{str_with_len_N};/512_mean 10.5 ns 10.5 ns 4
lstringa<512> copy{str_with_len_N};/512_median 10.5 ns 10.5 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.236 ns 0.236 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 2.23 % 2.23 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 52.1 ns 52.1 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 51.8 ns 51.8 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 0.882 ns 0.882 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 1.69 % 1.69 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 64.9 ns 64.9 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 62.7 ns 62.7 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 5.84 ns 5.84 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 9.00 % 9.00 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 87.6 ns 87.6 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 87.2 ns 87.2 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 3.98 ns 3.98 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 4.54 % 4.54 % 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 26.9 ns 26.9 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.0 ns 27.0 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.443 ns 0.443 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.65 % 1.65 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.5 ns 14.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.5 ns 14.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.296 ns 0.296 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.05 % 2.05 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.62 ns 9.62 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.59 ns 9.59 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.185 ns 0.185 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.93 % 1.93 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.84 ns 9.84 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.86 ns 9.86 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.137 ns 0.137 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.39 % 1.39 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.22 ns 9.22 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.21 ns 9.21 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.165 ns 0.165 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.79 % 1.79 % 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 22.8 ns 22.8 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 22.9 ns 22.9 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.461 ns 0.461 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.02 % 2.02 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.22 ns 9.22 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.19 ns 9.19 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.133 ns 0.133 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.44 % 1.44 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.55 ns 7.55 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.55 ns 7.55 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.120 ns 0.120 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.59 % 1.59 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.55 ns 7.55 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.56 ns 7.56 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.092 ns 0.092 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.22 % 1.22 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.45 ns 7.45 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.44 ns 7.44 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.140 ns 0.140 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.88 % 1.88 % 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 28.8 ns 28.8 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.3 ns 28.3 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.38 ns 1.38 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 4.81 % 4.81 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 11.4 ns 11.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 11.4 ns 11.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.762 ns 0.762 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 6.67 % 6.67 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 12.9 ns 12.9 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 12.9 ns 12.9 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.105 ns 0.104 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 0.81 % 0.81 % 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 66.2 ns 66.2 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.9 ns 64.9 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 5.02 ns 5.02 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 7.59 % 7.59 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 23.6 ns 23.6 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 23.7 ns 23.7 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.374 ns 0.374 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.58 % 1.58 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.8 ns 24.8 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 24.7 ns 24.7 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.446 ns 0.446 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.80 % 1.80 % 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 1336 ns 1336 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1342 ns 1342 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 28.7 ns 28.7 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.15 % 2.15 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 407 ns 407 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 404 ns 404 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 16.5 ns 16.5 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 4.04 % 4.04 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 376 ns 376 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 377 ns 377 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.32 ns 3.32 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.88 % 0.88 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 236 ns 236 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 230 ns 230 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 13.5 ns 13.5 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.72 % 5.72 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 206 ns 206 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 201 ns 201 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 12.4 ns 12.4 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.00 % 6.00 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 136 ns 136 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 136 ns 136 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.37 ns 1.37 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.01 % 1.01 % 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 1362 ns 1362 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1350 ns 1350 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 59.5 ns 59.5 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.37 % 4.37 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1221 ns 1221 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1224 ns 1224 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.0 ns 15.0 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.23 % 1.23 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 385 ns 385 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 382 ns 382 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.2 ns 17.2 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.48 % 4.48 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 301 ns 301 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 296 ns 296 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.1 ns 13.1 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.34 % 4.34 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 293 ns 293 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 287 ns 287 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.1 ns 18.1 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.18 % 6.18 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 235 ns 235 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 233 ns 233 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.46 ns 6.46 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.75 % 2.75 % 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 111021 ns 111022 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 111439 ns 111439 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1127 ns 1127 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.02 % 1.02 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 69967 ns 69967 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 70178 ns 70178 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 865 ns 866 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.24 % 1.24 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 45414 ns 45414 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 44421 ns 44421 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3132 ns 3132 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.90 % 6.90 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23033 ns 23033 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23360 ns 23360 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 677 ns 677 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.94 % 2.94 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19267 ns 19267 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17701 ns 17701 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3296 ns 3296 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 17.11 % 17.11 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17475 ns 17475 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17460 ns 17460 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 118 ns 118 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.67 % 0.67 % 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 1361 ns 1361 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 1358 ns 1358 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 20.0 ns 20.0 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.47 % 1.47 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1397 ns 1397 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1381 ns 1381 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 41.0 ns 41.0 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 2.94 % 2.94 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 452 ns 452 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 453 ns 453 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 11.6 ns 11.6 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.56 % 2.56 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 407 ns 407 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 407 ns 407 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 5.34 ns 5.34 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.31 % 1.31 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 351 ns 351 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 349 ns 349 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.7 ns 11.7 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.33 % 3.33 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 300 ns 300 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 300 ns 300 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.91 ns 5.91 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.97 % 1.97 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3011 ns 3011 ns 4
std::stringstream str; str << "test = " << k << " times";_median 2989 ns 2989 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 61.4 ns 61.4 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 2.04 % 2.04 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 434 ns 434 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 436 ns 436 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 8.83 ns 8.83 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 2.04 % 2.04 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1391 ns 1391 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1388 ns 1388 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 18.3 ns 18.3 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.31 % 1.31 % 4
std::string str = std::format("test = {} times", k);_mean 1154 ns 1154 ns 4
std::string str = std::format("test = {} times", k);_median 1155 ns 1155 ns 4
std::string str = std::format("test = {} times", k);_stddev 28.0 ns 28.0 ns 4
std::string str = std::format("test = {} times", k);_cv 2.43 % 2.43 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 1374 ns 1374 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1360 ns 1360 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 39.2 ns 39.2 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 2.85 % 2.85 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 997 ns 997 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 990 ns 990 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 15.3 ns 15.3 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 1.53 % 1.53 % 4
lstringa<8> str = "test = " + k + " times";_mean 272 ns 272 ns 4
lstringa<8> str = "test = " + k + " times";_median 270 ns 270 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 12.4 ns 12.4 ns 4
lstringa<8> str = "test = " + k + " times";_cv 4.54 % 4.54 % 4
lstringa<32> str = "test = " + k + " times";_mean 124 ns 124 ns 4
lstringa<32> str = "test = " + k + " times";_median 125 ns 125 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 2.19 ns 2.19 ns 4
lstringa<32> str = "test = " + k + " times";_cv 1.76 % 1.76 % 4
stringa str = "test = " + k + " times";_mean 117 ns 117 ns 4
stringa str = "test = " + k + " times";_median 117 ns 117 ns 4
stringa str = "test = " + k + " times";_stddev 2.04 ns 2.04 ns 4
stringa str = "test = " + k + " times";_cv 1.75 % 1.75 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 266 ns 266 ns 4
std::string::find + substr + std::strtol_median 262 ns 262 ns 4
std::string::find + substr + std::strtol_stddev 12.0 ns 12.0 ns 4
std::string::find + substr + std::strtol_cv 4.51 % 4.51 % 4
ssa::splitter + ssa::as_int_mean 156 ns 156 ns 4
ssa::splitter + ssa::as_int_median 151 ns 151 ns 4
ssa::splitter + ssa::as_int_stddev 11.0 ns 11.0 ns 4
ssa::splitter + ssa::as_int_cv 7.06 % 7.06 % 4
ssa::splitf + functor_mean 208 ns 208 ns 4
ssa::splitf + functor_median 207 ns 207 ns 4
ssa::splitf + functor_stddev 3.53 ns 3.53 ns 4
ssa::splitf + functor_cv 1.70 % 1.70 % 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 835 ns 835 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 833 ns 833 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 15.8 ns 15.8 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 1.89 % 1.89 % 4
replace symbols with std::string find_first_of + replace_mean 2459 ns 2459 ns 4
replace symbols with std::string find_first_of + replace_median 2443 ns 2443 ns 4
replace symbols with std::string find_first_of + replace_stddev 57.5 ns 57.5 ns 4
replace symbols with std::string find_first_of + replace_cv 2.34 % 2.34 % 4
replace symbols with std::string_view find_first_of + copy_mean 1128 ns 1128 ns 4
replace symbols with std::string_view find_first_of + copy_median 1136 ns 1136 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 26.7 ns 26.7 ns 4
replace symbols with std::string_view find_first_of + copy_cv 2.37 % 2.37 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1268 ns 1268 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1266 ns 1266 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 34.1 ns 34.1 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 2.69 % 2.69 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1010 ns 1010 ns 4
replace runtime symbols with simstr and memorization of all search results_median 972 ns 972 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 81.6 ns 81.6 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 8.08 % 8.08 % 4
replace const symbols with string expressions and without remembering all search results_mean 1061 ns 1061 ns 4
replace const symbols with string expressions and without remembering all search results_median 1057 ns 1057 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 16.4 ns 16.4 ns 4
replace const symbols with string expressions and without remembering all search results_cv 1.55 % 1.55 % 4
replace const symbols with string expressions and memorization of all search results_mean 840 ns 840 ns 4
replace const symbols with string expressions and memorization of all search results_median 837 ns 837 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 28.9 ns 28.9 ns 4
replace const symbols with string expressions and memorization of all search results_cv 3.44 % 3.44 % 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 150 ns 150 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 149 ns 149 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 4.70 ns 4.70 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.14 % 3.14 % 4
Short replace symbols with std::string find_first_of + replace_mean 313 ns 313 ns 4
Short replace symbols with std::string find_first_of + replace_median 312 ns 312 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 6.70 ns 6.70 ns 4
Short replace symbols with std::string find_first_of + replace_cv 2.14 % 2.14 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 153 ns 153 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 153 ns 153 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 3.76 ns 3.76 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 2.46 % 2.46 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 172 ns 172 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 171 ns 171 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.58 ns 4.58 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.66 % 2.66 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 173 ns 173 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 173 ns 173 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 0.959 ns 0.959 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 0.55 % 0.55 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 138 ns 138 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 136 ns 136 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 9.47 ns 9.47 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 6.84 % 6.84 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 141 ns 141 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 141 ns 141 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 2.25 ns 2.25 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 1.60 % 1.60 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 157 ns 157 ns 4
replace bb to ---- in std::string|64_median 155 ns 155 ns 4
replace bb to ---- in std::string|64_stddev 4.12 ns 4.12 ns 4
replace bb to ---- in std::string|64_cv 2.63 % 2.63 % 4
replace bb to ---- in std::string|256_mean 527 ns 527 ns 4
replace bb to ---- in std::string|256_median 528 ns 528 ns 4
replace bb to ---- in std::string|256_stddev 8.98 ns 8.98 ns 4
replace bb to ---- in std::string|256_cv 1.70 % 1.70 % 4
replace bb to ---- in std::string|512_mean 1332 ns 1332 ns 4
replace bb to ---- in std::string|512_median 1329 ns 1329 ns 4
replace bb to ---- in std::string|512_stddev 8.67 ns 8.67 ns 4
replace bb to ---- in std::string|512_cv 0.65 % 0.65 % 4
replace bb to ---- in std::string|1024_mean 2359 ns 2359 ns 4
replace bb to ---- in std::string|1024_median 2389 ns 2389 ns 4
replace bb to ---- in std::string|1024_stddev 212 ns 212 ns 4
replace bb to ---- in std::string|1024_cv 8.98 % 8.98 % 4
replace bb to ---- in std::string|2048_mean 5479 ns 5479 ns 4
replace bb to ---- in std::string|2048_median 5398 ns 5398 ns 4
replace bb to ---- in std::string|2048_stddev 332 ns 332 ns 4
replace bb to ---- in std::string|2048_cv 6.06 % 6.06 % 4
replace bb to ---- in lstringa<8>|64_mean 137 ns 137 ns 4
replace bb to ---- in lstringa<8>|64_median 136 ns 136 ns 4
replace bb to ---- in lstringa<8>|64_stddev 2.34 ns 2.34 ns 4
replace bb to ---- in lstringa<8>|64_cv 1.70 % 1.70 % 4
replace bb to ---- in lstringa<8>|256_mean 426 ns 426 ns 4
replace bb to ---- in lstringa<8>|256_median 427 ns 427 ns 4
replace bb to ---- in lstringa<8>|256_stddev 9.27 ns 9.27 ns 4
replace bb to ---- in lstringa<8>|256_cv 2.18 % 2.18 % 4
replace bb to ---- in lstringa<8>|512_mean 781 ns 781 ns 4
replace bb to ---- in lstringa<8>|512_median 785 ns 785 ns 4
replace bb to ---- in lstringa<8>|512_stddev 20.5 ns 20.5 ns 4
replace bb to ---- in lstringa<8>|512_cv 2.63 % 2.63 % 4
replace bb to ---- in lstringa<8>|1024_mean 1574 ns 1574 ns 4
replace bb to ---- in lstringa<8>|1024_median 1565 ns 1565 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 44.2 ns 44.2 ns 4
replace bb to ---- in lstringa<8>|1024_cv 2.81 % 2.81 % 4
replace bb to ---- in lstringa<8>|2048_mean 3024 ns 3024 ns 4
replace bb to ---- in lstringa<8>|2048_median 3024 ns 3024 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 57.1 ns 57.1 ns 4
replace bb to ---- in lstringa<8>|2048_cv 1.89 % 1.89 % 4
replace bb to ---- by init stringa|64_mean 91.9 ns 91.9 ns 4
replace bb to ---- by init stringa|64_median 91.4 ns 91.4 ns 4
replace bb to ---- by init stringa|64_stddev 1.30 ns 1.30 ns 4
replace bb to ---- by init stringa|64_cv 1.42 % 1.42 % 4
replace bb to ---- by init stringa|256_mean 305 ns 305 ns 4
replace bb to ---- by init stringa|256_median 303 ns 303 ns 4
replace bb to ---- by init stringa|256_stddev 6.13 ns 6.13 ns 4
replace bb to ---- by init stringa|256_cv 2.01 % 2.01 % 4
replace bb to ---- by init stringa|512_mean 700 ns 700 ns 4
replace bb to ---- by init stringa|512_median 701 ns 701 ns 4
replace bb to ---- by init stringa|512_stddev 6.78 ns 6.78 ns 4
replace bb to ---- by init stringa|512_cv 0.97 % 0.97 % 4
replace bb to ---- by init stringa|1024_mean 1564 ns 1564 ns 4
replace bb to ---- by init stringa|1024_median 1564 ns 1564 ns 4
replace bb to ---- by init stringa|1024_stddev 2.18 ns 2.18 ns 4
replace bb to ---- by init stringa|1024_cv 0.14 % 0.14 % 4
replace bb to ---- by init stringa|2048_mean 3148 ns 3148 ns 4
replace bb to ---- by init stringa|2048_median 3152 ns 3152 ns 4
replace bb to ---- by init stringa|2048_stddev 20.7 ns 20.7 ns 4
replace bb to ---- by init stringa|2048_cv 0.66 % 0.66 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 131 ns 131 ns 4
replace bb to -- in std::string|64_median 131 ns 131 ns 4
replace bb to -- in std::string|64_stddev 3.33 ns 3.33 ns 4
replace bb to -- in std::string|64_cv 2.53 % 2.53 % 4
replace bb to -- in std::string|256_mean 367 ns 367 ns 4
replace bb to -- in std::string|256_median 369 ns 369 ns 4
replace bb to -- in std::string|256_stddev 8.59 ns 8.59 ns 4
replace bb to -- in std::string|256_cv 2.34 % 2.34 % 4
replace bb to -- in std::string|512_mean 722 ns 722 ns 4
replace bb to -- in std::string|512_median 719 ns 719 ns 4
replace bb to -- in std::string|512_stddev 9.53 ns 9.53 ns 4
replace bb to -- in std::string|512_cv 1.32 % 1.32 % 4
replace bb to -- in std::string|1024_mean 1429 ns 1429 ns 4
replace bb to -- in std::string|1024_median 1432 ns 1432 ns 4
replace bb to -- in std::string|1024_stddev 20.3 ns 20.3 ns 4
replace bb to -- in std::string|1024_cv 1.42 % 1.42 % 4
replace bb to -- in std::string|2048_mean 2801 ns 2801 ns 4
replace bb to -- in std::string|2048_median 2800 ns 2800 ns 4
replace bb to -- in std::string|2048_stddev 11.5 ns 11.5 ns 4
replace bb to -- in std::string|2048_cv 0.41 % 0.41 % 4
replace bb to -- in lstringa<8>|64_mean 99.6 ns 99.6 ns 4
replace bb to -- in lstringa<8>|64_median 95.2 ns 95.2 ns 4
replace bb to -- in lstringa<8>|64_stddev 12.2 ns 12.2 ns 4
replace bb to -- in lstringa<8>|64_cv 12.27 % 12.27 % 4
replace bb to -- in lstringa<8>|256_mean 289 ns 289 ns 4
replace bb to -- in lstringa<8>|256_median 289 ns 289 ns 4
replace bb to -- in lstringa<8>|256_stddev 3.67 ns 3.67 ns 4
replace bb to -- in lstringa<8>|256_cv 1.27 % 1.27 % 4
replace bb to -- in lstringa<8>|512_mean 523 ns 523 ns 4
replace bb to -- in lstringa<8>|512_median 518 ns 518 ns 4
replace bb to -- in lstringa<8>|512_stddev 20.1 ns 20.1 ns 4
replace bb to -- in lstringa<8>|512_cv 3.84 % 3.84 % 4
replace bb to -- in lstringa<8>|1024_mean 1058 ns 1058 ns 4
replace bb to -- in lstringa<8>|1024_median 1060 ns 1060 ns 4
replace bb to -- in lstringa<8>|1024_stddev 18.3 ns 18.3 ns 4
replace bb to -- in lstringa<8>|1024_cv 1.73 % 1.73 % 4
replace bb to -- in lstringa<8>|2048_mean 2093 ns 2093 ns 4
replace bb to -- in lstringa<8>|2048_median 2097 ns 2097 ns 4
replace bb to -- in lstringa<8>|2048_stddev 104 ns 104 ns 4
replace bb to -- in lstringa<8>|2048_cv 4.97 % 4.97 % 4
replace bb to -- by init stringa|64_mean 74.4 ns 74.4 ns 4
replace bb to -- by init stringa|64_median 74.0 ns 74.0 ns 4
replace bb to -- by init stringa|64_stddev 1.67 ns 1.67 ns 4
replace bb to -- by init stringa|64_cv 2.24 % 2.24 % 4
replace bb to -- by init stringa|256_mean 238 ns 238 ns 4
replace bb to -- by init stringa|256_median 230 ns 230 ns 4
replace bb to -- by init stringa|256_stddev 17.1 ns 17.1 ns 4
replace bb to -- by init stringa|256_cv 7.17 % 7.17 % 4
replace bb to -- by init stringa|512_mean 420 ns 420 ns 4
replace bb to -- by init stringa|512_median 420 ns 420 ns 4
replace bb to -- by init stringa|512_stddev 4.50 ns 4.50 ns 4
replace bb to -- by init stringa|512_cv 1.07 % 1.07 % 4
replace bb to -- by init stringa|1024_mean 869 ns 869 ns 4
replace bb to -- by init stringa|1024_median 872 ns 872 ns 4
replace bb to -- by init stringa|1024_stddev 21.6 ns 21.6 ns 4
replace bb to -- by init stringa|1024_cv 2.48 % 2.48 % 4
replace bb to -- by init stringa|2048_mean 1707 ns 1707 ns 4
replace bb to -- by init stringa|2048_median 1668 ns 1668 ns 4
replace bb to -- by init stringa|2048_stddev 99.1 ns 99.1 ns 4
replace bb to -- by init stringa|2048_cv 5.81 % 5.81 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3519614 ns 3519627 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3513825 ns 3513839 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 45672 ns 45672 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 1.30 % 1.30 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3429563 ns 3429501 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3448425 ns 3448440 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 93486 ns 93625 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.73 % 2.73 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3526598 ns 3526615 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3533238 ns 3533255 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 53366 ns 53367 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 1.51 % 1.51 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4067399 ns 4067414 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4067333 ns 4067348 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 56632 ns 56637 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.39 % 1.39 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 660 ns 660 ns 4
Build func full name std::string;_median 665 ns 665 ns 4
Build func full name std::string;_stddev 21.8 ns 21.8 ns 4
Build func full name std::string;_cv 3.30 % 3.30 % 4
Build func full name std::string 1;_mean 758 ns 758 ns 4
Build func full name std::string 1;_median 761 ns 761 ns 4
Build func full name std::string 1;_stddev 15.9 ns 15.9 ns 4
Build func full name std::string 1;_cv 2.10 % 2.10 % 4
Build func full name std::stream;_mean 2557 ns 2557 ns 4
Build func full name std::stream;_median 2568 ns 2568 ns 4
Build func full name std::stream;_stddev 53.3 ns 53.3 ns 4
Build func full name std::stream;_cv 2.08 % 2.08 % 4
Build func full name stringa;_mean 494 ns 494 ns 4
Build func full name stringa;_median 493 ns 493 ns 4
Build func full name stringa;_stddev 4.59 ns 4.60 ns 4
Build func full name stringa;_cv 0.93 % 0.93 % 4
Build func full name stringa 1;_mean 607 ns 607 ns 4
Build func full name stringa 1;_median 590 ns 590 ns 4
Build func full name stringa 1;_stddev 41.2 ns 41.2 ns 4
Build func full name stringa 1;_cv 6.78 % 6.78 % 4