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

990 lines
146 KiB
Plaintext

Benchmarks of simstr, version 1.8.1
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
Compiler Clang 22.0.0
2026-03-22T13:18:22+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.20, 0.67, 0.53
***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 167 ns 167 ns 4
Concat email std::format_median 166 ns 166 ns 4
Concat email std::format_stddev 2.04 ns 2.04 ns 4
Concat email std::format_cv 1.22 % 1.22 % 4
Concat email std::stringstream_mean 379 ns 379 ns 4
Concat email std::stringstream_median 379 ns 379 ns 4
Concat email std::stringstream_stddev 2.80 ns 2.80 ns 4
Concat email std::stringstream_cv 0.74 % 0.74 % 4
Concat email stringzilla append_mean 143 ns 143 ns 4
Concat email stringzilla append_median 142 ns 142 ns 4
Concat email stringzilla append_stddev 4.40 ns 4.40 ns 4
Concat email stringzilla append_cv 3.07 % 3.07 % 4
Concat email stringzilla concat_mean 54.6 ns 54.6 ns 4
Concat email stringzilla concat_median 54.3 ns 54.3 ns 4
Concat email stringzilla concat_stddev 1.36 ns 1.36 ns 4
Concat email stringzilla concat_cv 2.50 % 2.50 % 4
Concat email std::string append_mean 73.9 ns 73.9 ns 4
Concat email std::string append_median 74.2 ns 74.2 ns 4
Concat email std::string append_stddev 0.919 ns 0.919 ns 4
Concat email std::string append_cv 1.24 % 1.24 % 4
Concat email std::string by strexpr_mean 46.8 ns 46.8 ns 4
Concat email std::string by strexpr_median 47.4 ns 47.4 ns 4
Concat email std::string by strexpr_stddev 1.39 ns 1.39 ns 4
Concat email std::string by strexpr_cv 2.96 % 2.96 % 4
Concat email stringa_mean 39.1 ns 39.1 ns 4
Concat email stringa_median 38.9 ns 38.9 ns 4
Concat email stringa_stddev 0.543 ns 0.543 ns 4
Concat email stringa_cv 1.39 % 1.39 % 4
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string and number by std to std::string_mean 223 ns 223 ns 4
Concat std::string and number by std to std::string_median 223 ns 223 ns 4
Concat std::string and number by std to std::string_stddev 3.04 ns 3.04 ns 4
Concat std::string and number by std to std::string_cv 1.36 % 1.36 % 4
Concat std::string and number by StrExpr to std::string_mean 105 ns 105 ns 4
Concat std::string and number by StrExpr to std::string_median 106 ns 106 ns 4
Concat std::string and number by StrExpr to std::string_stddev 2.70 ns 2.70 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.56 % 2.56 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 64.9 ns 64.9 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 64.8 ns 64.8 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.353 ns 0.353 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 0.54 % 0.54 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 72.3 ns 72.3 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 71.9 ns 71.9 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 1.59 ns 1.59 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 2.20 % 2.20 % 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 696 ns 696 ns 4
Concat std::string and format hex number and literal to std::string_median 699 ns 699 ns 4
Concat std::string and format hex number and literal to std::string_stddev 9.35 ns 9.34 ns 4
Concat std::string and format hex number and literal to std::string_cv 1.34 % 1.34 % 4
std::format std::string and hex number by literal to std::string_mean 828 ns 828 ns 4
std::format std::string and hex number by literal to std::string_median 827 ns 827 ns 4
std::format std::string and hex number by literal to std::string_stddev 25.8 ns 25.8 ns 4
std::format std::string and hex number by literal to std::string_cv 3.11 % 3.11 % 4
Concat std::string and std::to_chars and string to std::string_mean 210 ns 210 ns 4
Concat std::string and std::to_chars and string to std::string_median 210 ns 210 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 3.35 ns 3.35 ns 4
Concat std::string and std::to_chars and string to std::string_cv 1.60 % 1.60 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 134 ns 134 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 134 ns 134 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.42 ns 1.42 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.06 % 1.06 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 117 ns 117 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 118 ns 118 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.602 ns 0.602 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.51 % 0.51 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 128 ns 128 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 126 ns 126 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 4.95 ns 4.95 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.87 % 3.87 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 193 ns 193 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 187 ns 187 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 13.1 ns 13.1 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 6.78 % 6.78 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 333 ns 333 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 324 ns 324 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 29.5 ns 29.5 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 8.88 % 8.88 % 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 271 ns 271 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 271 ns 271 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 1.20 ns 1.20 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 0.44 % 0.44 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 357 ns 357 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 357 ns 357 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 1.91 ns 1.91 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 0.54 % 0.54 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 621 ns 621 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 607 ns 607 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 47.0 ns 47.0 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 7.56 % 7.56 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 723 ns 723 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 722 ns 722 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 12.0 ns 12.0 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.66 % 1.66 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 842 ns 842 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 840 ns 840 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 27.2 ns 27.2 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.22 % 3.22 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1017 ns 1017 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1011 ns 1011 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 11.7 ns 11.7 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.15 % 1.15 % 4
std::vformat(pattern, std::make_format_args(i))_mean 999 ns 999 ns 4
std::vformat(pattern, std::make_format_args(i))_median 994 ns 994 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 24.6 ns 24.6 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 2.46 % 2.46 % 4
std::format with std::formatted_size_mean 1867 ns 1867 ns 4
std::format with std::formatted_size_median 1881 ns 1881 ns 4
std::format with std::formatted_size_stddev 33.7 ns 33.7 ns 4
std::format with std::formatted_size_cv 1.80 % 1.80 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2074 ns 2074 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2074 ns 2074 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 6.88 ns 6.87 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 0.33 % 0.33 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 51.7 ns 51.7 ns 4
Concat std::string by std to std::string_median 51.6 ns 51.6 ns 4
Concat std::string by std to std::string_stddev 0.623 ns 0.623 ns 4
Concat std::string by std to std::string_cv 1.21 % 1.21 % 4
Concat std::string by StrExpr to std::string_mean 36.9 ns 36.9 ns 4
Concat std::string by StrExpr to std::string_median 36.8 ns 36.8 ns 4
Concat std::string by StrExpr to std::string_stddev 0.272 ns 0.272 ns 4
Concat std::string by StrExpr to std::string_cv 0.74 % 0.74 % 4
Concat stringa by StrExpr to stringa_mean 31.6 ns 31.6 ns 4
Concat stringa by StrExpr to stringa_median 31.8 ns 31.8 ns 4
Concat stringa by StrExpr to stringa_stddev 0.842 ns 0.842 ns 4
Concat stringa by StrExpr to stringa_cv 2.66 % 2.66 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 112 ns 112 ns 4
Find concat three std::string_median 112 ns 112 ns 4
Find concat three std::string_stddev 2.70 ns 2.70 ns 4
Find concat three std::string_cv 2.41 % 2.41 % 4
Find concat three strexpr_mean 52.4 ns 52.4 ns 4
Find concat three strexpr_median 52.6 ns 52.6 ns 4
Find concat three strexpr_stddev 2.35 ns 2.35 ns 4
Find concat three strexpr_cv 4.48 % 4.48 % 4
Find concat three simstr_mean 18.9 ns 18.9 ns 4
Find concat three simstr_median 18.8 ns 18.8 ns 4
Find concat three simstr_stddev 0.278 ns 0.278 ns 4
Find concat three simstr_cv 1.47 % 1.47 % 4
Find concat three stringzilla string_mean 153 ns 153 ns 4
Find concat three stringzilla string_median 153 ns 153 ns 4
Find concat three stringzilla string_stddev 1.37 ns 1.37 ns 4
Find concat three stringzilla string_cv 0.90 % 0.90 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 7.58 ns 7.58 ns 4
BuildTypeNameStr 0/0_median 7.65 ns 7.65 ns 4
BuildTypeNameStr 0/0_stddev 0.170 ns 0.170 ns 4
BuildTypeNameStr 0/0_cv 2.25 % 2.25 % 4
BuildTypeNameExp 0/0_mean 6.94 ns 6.94 ns 4
BuildTypeNameExp 0/0_median 6.94 ns 6.94 ns 4
BuildTypeNameExp 0/0_stddev 0.141 ns 0.141 ns 4
BuildTypeNameExp 0/0_cv 2.03 % 2.03 % 4
BuildTypeNameSim 0/0_mean 5.03 ns 5.03 ns 4
BuildTypeNameSim 0/0_median 5.02 ns 5.02 ns 4
BuildTypeNameSim 0/0_stddev 0.096 ns 0.096 ns 4
BuildTypeNameSim 0/0_cv 1.91 % 1.91 % 4
BuildTypeNameStr 10/10_mean 59.1 ns 59.1 ns 4
BuildTypeNameStr 10/10_median 59.0 ns 59.0 ns 4
BuildTypeNameStr 10/10_stddev 2.58 ns 2.58 ns 4
BuildTypeNameStr 10/10_cv 4.37 % 4.37 % 4
BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4
BuildTypeNameExp 10/10_median 31.1 ns 31.1 ns 4
BuildTypeNameExp 10/10_stddev 0.361 ns 0.361 ns 4
BuildTypeNameExp 10/10_cv 1.16 % 1.16 % 4
BuildTypeNameSim 10/10_mean 23.4 ns 23.4 ns 4
BuildTypeNameSim 10/10_median 23.5 ns 23.5 ns 4
BuildTypeNameSim 10/10_stddev 0.470 ns 0.470 ns 4
BuildTypeNameSim 10/10_cv 2.01 % 2.01 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 210 ns 210 ns 4
Concat with replace str_median 209 ns 209 ns 4
Concat with replace str_stddev 4.51 ns 4.51 ns 4
Concat with replace str_cv 2.14 % 2.14 % 4
Concat with replace exp_mean 154 ns 154 ns 4
Concat with replace exp_median 154 ns 154 ns 4
Concat with replace exp_stddev 1.87 ns 1.87 ns 4
Concat with replace exp_cv 1.22 % 1.22 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.13 ns 1.13 ns 4
std::string e;_median 1.14 ns 1.14 ns 4
std::string e;_stddev 0.019 ns 0.019 ns 4
std::string e;_cv 1.68 % 1.68 % 4
std::string_view e;_mean 0.377 ns 0.377 ns 4
std::string_view e;_median 0.377 ns 0.377 ns 4
std::string_view e;_stddev 0.006 ns 0.006 ns 4
std::string_view e;_cv 1.57 % 1.57 % 4
ssa e;_mean 0.372 ns 0.372 ns 4
ssa e;_median 0.371 ns 0.371 ns 4
ssa e;_stddev 0.005 ns 0.005 ns 4
ssa e;_cv 1.34 % 1.34 % 4
stringa e;_mean 0.763 ns 0.763 ns 4
stringa e;_median 0.759 ns 0.759 ns 4
stringa e;_stddev 0.012 ns 0.012 ns 4
stringa e;_cv 1.61 % 1.61 % 4
lstringa<20> e;_mean 1.14 ns 1.14 ns 4
lstringa<20> e;_median 1.13 ns 1.13 ns 4
lstringa<20> e;_stddev 0.015 ns 0.015 ns 4
lstringa<20> e;_cv 1.36 % 1.36 % 4
lstringa<40> e;_mean 1.14 ns 1.14 ns 4
lstringa<40> e;_median 1.12 ns 1.12 ns 4
lstringa<40> e;_stddev 0.026 ns 0.026 ns 4
lstringa<40> e;_cv 2.27 % 2.27 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.87 ns 1.87 ns 4
std::string e = "Test text";_median 1.87 ns 1.87 ns 4
std::string e = "Test text";_stddev 0.027 ns 0.027 ns 4
std::string e = "Test text";_cv 1.46 % 1.46 % 4
std::string_view e = "Test text";_mean 0.761 ns 0.761 ns 4
std::string_view e = "Test text";_median 0.765 ns 0.765 ns 4
std::string_view e = "Test text";_stddev 0.010 ns 0.010 ns 4
std::string_view e = "Test text";_cv 1.36 % 1.36 % 4
ssa e = "Test text";_mean 0.382 ns 0.382 ns 4
ssa e = "Test text";_median 0.382 ns 0.382 ns 4
ssa e = "Test text";_stddev 0.005 ns 0.005 ns 4
ssa e = "Test text";_cv 1.41 % 1.41 % 4
stringa e = "Test text";_mean 1.15 ns 1.15 ns 4
stringa e = "Test text";_median 1.14 ns 1.14 ns 4
stringa e = "Test text";_stddev 0.029 ns 0.029 ns 4
stringa e = "Test text";_cv 2.50 % 2.50 % 4
lstringa<20> e = "Test text";_mean 1.90 ns 1.90 ns 4
lstringa<20> e = "Test text";_median 1.90 ns 1.90 ns 4
lstringa<20> e = "Test text";_stddev 0.045 ns 0.045 ns 4
lstringa<20> e = "Test text";_cv 2.37 % 2.36 % 4
lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 4
lstringa<40> e = "Test text";_median 1.87 ns 1.87 ns 4
lstringa<40> e = "Test text";_stddev 0.046 ns 0.046 ns 4
lstringa<40> e = "Test text";_cv 2.46 % 2.46 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 19.5 ns 19.5 ns 4
std::string e = "123456789012345678901234567890";_median 19.3 ns 19.3 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.398 ns 0.398 ns 4
std::string e = "123456789012345678901234567890";_cv 2.04 % 2.04 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.763 ns 0.763 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.764 ns 0.764 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.008 ns 0.008 ns 4
std::string_view e = "123456789012345678901234567890";_cv 1.10 % 1.10 % 4
ssa e = "123456789012345678901234567890";_mean 0.375 ns 0.375 ns 4
ssa e = "123456789012345678901234567890";_median 0.374 ns 0.374 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.005 ns 0.005 ns 4
ssa e = "123456789012345678901234567890";_cv 1.45 % 1.45 % 4
stringa e = "123456789012345678901234567890";_mean 1.14 ns 1.14 ns 4
stringa e = "123456789012345678901234567890";_median 1.13 ns 1.13 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.024 ns 0.024 ns 4
stringa e = "123456789012345678901234567890";_cv 2.13 % 2.13 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 18.0 ns 18.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 18.0 ns 18.0 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.581 ns 0.581 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 3.22 % 3.22 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.68 ns 2.68 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.67 ns 2.67 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.020 ns 0.020 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 0.73 % 0.73 % 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.77 ns 5.77 ns 4
std::string e = "Test text"; auto c{e};_median 5.75 ns 5.75 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 1.64 % 1.64 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.388 ns 0.388 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.379 ns 0.379 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.022 ns 0.022 ns 4
std::string_view e = "Test text"; auto c{e};_cv 5.79 % 5.79 % 4
ssa e = "Test text"; auto c{e};_mean 0.380 ns 0.380 ns 4
ssa e = "Test text"; auto c{e};_median 0.382 ns 0.382 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4
ssa e = "Test text"; auto c{e};_cv 1.43 % 1.43 % 4
stringa e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4
stringa e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4
stringa e = "Test text"; auto c{e};_cv 1.46 % 1.46 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.14 ns 1.14 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.024 ns 0.024 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 2.13 % 2.13 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.15 ns 1.15 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 1.19 % 1.19 % 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 20.2 ns 20.2 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 20.2 ns 20.2 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.353 ns 0.353 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.75 % 1.75 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.758 ns 0.758 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.754 ns 0.755 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.19 % 1.19 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.374 ns 0.374 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.374 ns 0.374 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.002 ns 0.002 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.58 % 0.59 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.14 ns 1.14 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.14 ns 1.14 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.014 ns 0.014 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.23 % 1.23 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.1 ns 19.1 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.1 ns 19.1 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.086 ns 0.086 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.45 % 0.45 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.98 ns 4.98 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.03 ns 5.03 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.146 ns 0.146 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.94 % 2.94 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 95.9 ns 95.9 ns 4
sz::string::find;_median 95.8 ns 95.8 ns 4
sz::string::find;_stddev 1.48 ns 1.48 ns 4
sz::string::find;_cv 1.54 % 1.54 % 4
std::string::find;_mean 7.34 ns 7.34 ns 4
std::string::find;_median 7.33 ns 7.33 ns 4
std::string::find;_stddev 0.128 ns 0.128 ns 4
std::string::find;_cv 1.75 % 1.75 % 4
std::string_view::find;_mean 7.81 ns 7.81 ns 4
std::string_view::find;_median 7.78 ns 7.78 ns 4
std::string_view::find;_stddev 0.124 ns 0.124 ns 4
std::string_view::find;_cv 1.59 % 1.59 % 4
ssa::find;_mean 7.37 ns 7.37 ns 4
ssa::find;_median 7.37 ns 7.37 ns 4
ssa::find;_stddev 0.149 ns 0.149 ns 4
ssa::find;_cv 2.02 % 2.02 % 4
stringa::find;_mean 8.14 ns 8.14 ns 4
stringa::find;_median 8.14 ns 8.14 ns 4
stringa::find;_stddev 0.027 ns 0.027 ns 4
stringa::find;_cv 0.33 % 0.33 % 4
lstringa<20>::find;_mean 6.94 ns 6.94 ns 4
lstringa<20>::find;_median 6.90 ns 6.90 ns 4
lstringa<20>::find;_stddev 0.118 ns 0.118 ns 4
lstringa<20>::find;_cv 1.70 % 1.70 % 4
lstringa<40>::find;_mean 6.93 ns 6.93 ns 4
lstringa<40>::find;_median 6.92 ns 6.92 ns 4
lstringa<40>::find;_stddev 0.091 ns 0.091 ns 4
lstringa<40>::find;_cv 1.31 % 1.31 % 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 5.78 ns 5.78 ns 4
std::string copy{str_with_len_N};/15_median 5.78 ns 5.78 ns 4
std::string copy{str_with_len_N};/15_stddev 0.153 ns 0.153 ns 4
std::string copy{str_with_len_N};/15_cv 2.64 % 2.64 % 4
std::string copy{str_with_len_N};/16_mean 24.5 ns 24.5 ns 4
std::string copy{str_with_len_N};/16_median 24.6 ns 24.6 ns 4
std::string copy{str_with_len_N};/16_stddev 1.08 ns 1.08 ns 4
std::string copy{str_with_len_N};/16_cv 4.42 % 4.42 % 4
std::string copy{str_with_len_N};/23_mean 28.5 ns 28.5 ns 4
std::string copy{str_with_len_N};/23_median 28.6 ns 28.6 ns 4
std::string copy{str_with_len_N};/23_stddev 0.346 ns 0.346 ns 4
std::string copy{str_with_len_N};/23_cv 1.21 % 1.21 % 4
std::string copy{str_with_len_N};/24_mean 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/24_median 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/24_stddev 0.222 ns 0.222 ns 4
std::string copy{str_with_len_N};/24_cv 0.95 % 0.95 % 4
std::string copy{str_with_len_N};/32_mean 23.2 ns 23.2 ns 4
std::string copy{str_with_len_N};/32_median 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/32_stddev 0.377 ns 0.377 ns 4
std::string copy{str_with_len_N};/32_cv 1.62 % 1.62 % 4
std::string copy{str_with_len_N};/64_mean 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 4
std::string copy{str_with_len_N};/64_stddev 0.320 ns 0.320 ns 4
std::string copy{str_with_len_N};/64_cv 1.37 % 1.37 % 4
std::string copy{str_with_len_N};/128_mean 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/128_median 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/128_stddev 0.584 ns 0.584 ns 4
std::string copy{str_with_len_N};/128_cv 2.34 % 2.34 % 4
std::string copy{str_with_len_N};/256_mean 26.0 ns 26.0 ns 4
std::string copy{str_with_len_N};/256_median 25.3 ns 25.3 ns 4
std::string copy{str_with_len_N};/256_stddev 1.69 ns 1.69 ns 4
std::string copy{str_with_len_N};/256_cv 6.53 % 6.53 % 4
std::string copy{str_with_len_N};/512_mean 29.4 ns 29.4 ns 4
std::string copy{str_with_len_N};/512_median 29.5 ns 29.5 ns 4
std::string copy{str_with_len_N};/512_stddev 0.683 ns 0.683 ns 4
std::string copy{str_with_len_N};/512_cv 2.32 % 2.32 % 4
std::string copy{str_with_len_N};/1024_mean 47.7 ns 47.7 ns 4
std::string copy{str_with_len_N};/1024_median 47.8 ns 47.8 ns 4
std::string copy{str_with_len_N};/1024_stddev 0.457 ns 0.457 ns 4
std::string copy{str_with_len_N};/1024_cv 0.96 % 0.96 % 4
std::string copy{str_with_len_N};/2048_mean 125 ns 125 ns 4
std::string copy{str_with_len_N};/2048_median 125 ns 125 ns 4
std::string copy{str_with_len_N};/2048_stddev 3.96 ns 3.96 ns 4
std::string copy{str_with_len_N};/2048_cv 3.17 % 3.17 % 4
std::string copy{str_with_len_N};/4096_mean 152 ns 152 ns 4
std::string copy{str_with_len_N};/4096_median 154 ns 154 ns 4
std::string copy{str_with_len_N};/4096_stddev 4.76 ns 4.76 ns 4
std::string copy{str_with_len_N};/4096_cv 3.13 % 3.13 % 4
stringa copy{str_with_len_N};/15_mean 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/15_median 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/15_stddev 0.013 ns 0.013 ns 4
stringa copy{str_with_len_N};/15_cv 1.17 % 1.17 % 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.021 ns 0.021 ns 4
stringa copy{str_with_len_N};/16_cv 1.88 % 1.88 % 4
stringa copy{str_with_len_N};/23_mean 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/23_median 1.12 ns 1.12 ns 4
stringa copy{str_with_len_N};/23_stddev 0.019 ns 0.019 ns 4
stringa copy{str_with_len_N};/23_cv 1.67 % 1.67 % 4
stringa copy{str_with_len_N};/24_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/24_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/24_stddev 0.135 ns 0.135 ns 4
stringa copy{str_with_len_N};/24_cv 0.82 % 0.82 % 4
stringa copy{str_with_len_N};/32_mean 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/32_median 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/32_stddev 0.180 ns 0.180 ns 4
stringa copy{str_with_len_N};/32_cv 1.10 % 1.10 % 4
stringa copy{str_with_len_N};/64_mean 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/64_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/64_stddev 0.113 ns 0.113 ns 4
stringa copy{str_with_len_N};/64_cv 0.69 % 0.69 % 4
stringa copy{str_with_len_N};/128_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/128_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/128_stddev 0.085 ns 0.085 ns 4
stringa copy{str_with_len_N};/128_cv 0.52 % 0.52 % 4
stringa copy{str_with_len_N};/256_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/256_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/256_stddev 0.068 ns 0.068 ns 4
stringa copy{str_with_len_N};/256_cv 0.42 % 0.42 % 4
stringa copy{str_with_len_N};/512_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/512_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/512_stddev 0.072 ns 0.072 ns 4
stringa copy{str_with_len_N};/512_cv 0.44 % 0.44 % 4
stringa copy{str_with_len_N};/1024_mean 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/1024_median 16.3 ns 16.3 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.069 ns 0.069 ns 4
stringa copy{str_with_len_N};/1024_cv 0.42 % 0.42 % 4
stringa copy{str_with_len_N};/2048_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/2048_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.041 ns 0.041 ns 4
stringa copy{str_with_len_N};/2048_cv 0.25 % 0.25 % 4
stringa copy{str_with_len_N};/4096_mean 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/4096_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.080 ns 0.080 ns 4
stringa copy{str_with_len_N};/4096_cv 0.49 % 0.49 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.14 ns 1.14 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.024 ns 0.024 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 2.09 % 2.09 % 4
lstringa<16> copy{str_with_len_N};/16_mean 5.10 ns 5.10 ns 4
lstringa<16> copy{str_with_len_N};/16_median 5.10 ns 5.10 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.076 ns 0.076 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 1.49 % 1.49 % 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.14 ns 5.14 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.062 ns 0.062 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 1.21 % 1.21 % 4
lstringa<16> copy{str_with_len_N};/24_mean 21.9 ns 21.9 ns 4
lstringa<16> copy{str_with_len_N};/24_median 22.0 ns 22.0 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.377 ns 0.377 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 1.72 % 1.72 % 4
lstringa<16> copy{str_with_len_N};/32_mean 22.1 ns 22.1 ns 4
lstringa<16> copy{str_with_len_N};/32_median 22.0 ns 22.0 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.310 ns 0.310 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 1.41 % 1.41 % 4
lstringa<16> copy{str_with_len_N};/64_mean 23.4 ns 23.4 ns 4
lstringa<16> copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.348 ns 0.348 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 1.49 % 1.49 % 4
lstringa<16> copy{str_with_len_N};/128_mean 24.5 ns 24.5 ns 4
lstringa<16> copy{str_with_len_N};/128_median 24.6 ns 24.6 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 0.410 ns 0.410 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 1.67 % 1.67 % 4
lstringa<16> copy{str_with_len_N};/256_mean 25.4 ns 25.4 ns 4
lstringa<16> copy{str_with_len_N};/256_median 25.4 ns 25.4 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.347 ns 0.347 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 1.37 % 1.37 % 4
lstringa<16> copy{str_with_len_N};/512_mean 28.6 ns 28.6 ns 4
lstringa<16> copy{str_with_len_N};/512_median 28.6 ns 28.6 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 0.490 ns 0.490 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 1.71 % 1.71 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 98.9 ns 98.9 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 97.3 ns 97.3 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 5.56 ns 5.56 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 5.62 % 5.62 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 103 ns 103 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 103 ns 103 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 1.53 ns 1.53 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 1.48 % 1.48 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 122 ns 122 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 121 ns 121 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 5.22 ns 5.22 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 4.29 % 4.29 % 4
lstringa<512> copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4
lstringa<512> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.011 ns 0.011 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 0.95 % 0.95 % 4
lstringa<512> copy{str_with_len_N};/16_mean 5.00 ns 5.00 ns 4
lstringa<512> copy{str_with_len_N};/16_median 5.05 ns 5.05 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.126 ns 0.126 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 2.52 % 2.52 % 4
lstringa<512> copy{str_with_len_N};/23_mean 4.92 ns 4.92 ns 4
lstringa<512> copy{str_with_len_N};/23_median 4.87 ns 4.87 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.113 ns 0.113 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 2.30 % 2.30 % 4
lstringa<512> copy{str_with_len_N};/24_mean 29.6 ns 29.6 ns 4
lstringa<512> copy{str_with_len_N};/24_median 29.5 ns 29.5 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.353 ns 0.353 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 1.19 % 1.19 % 4
lstringa<512> copy{str_with_len_N};/32_mean 29.6 ns 29.6 ns 4
lstringa<512> copy{str_with_len_N};/32_median 29.6 ns 29.6 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.133 ns 0.133 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 0.45 % 0.45 % 4
lstringa<512> copy{str_with_len_N};/64_mean 30.2 ns 30.2 ns 4
lstringa<512> copy{str_with_len_N};/64_median 30.2 ns 30.2 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.095 ns 0.095 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 0.31 % 0.31 % 4
lstringa<512> copy{str_with_len_N};/128_mean 30.5 ns 30.5 ns 4
lstringa<512> copy{str_with_len_N};/128_median 30.5 ns 30.5 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.108 ns 0.108 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 0.35 % 0.35 % 4
lstringa<512> copy{str_with_len_N};/256_mean 21.7 ns 21.7 ns 4
lstringa<512> copy{str_with_len_N};/256_median 21.7 ns 21.7 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.257 ns 0.257 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 1.19 % 1.19 % 4
lstringa<512> copy{str_with_len_N};/512_mean 24.7 ns 24.7 ns 4
lstringa<512> copy{str_with_len_N};/512_median 24.6 ns 24.6 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.267 ns 0.267 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 1.08 % 1.08 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 96.9 ns 96.9 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 96.8 ns 96.8 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 1.87 ns 1.87 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 1.93 % 1.93 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 106 ns 106 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 107 ns 107 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 2.33 ns 2.33 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 2.20 % 2.20 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 123 ns 123 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 123 ns 123 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 1.45 ns 1.45 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 1.19 % 1.19 % 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 26.9 ns 26.9 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.215 ns 0.215 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.80 % 0.80 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.9 ns 14.9 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.9 ns 14.9 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.293 ns 0.293 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.97 % 1.97 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.36 ns 9.36 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.36 ns 9.36 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.047 ns 0.047 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.50 % 0.50 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.52 ns 9.52 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.50 ns 9.50 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.079 ns 0.079 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.83 % 0.83 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.61 ns 9.61 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.59 ns 9.59 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.146 ns 0.146 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.52 % 1.52 % 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 24.5 ns 24.5 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.4 ns 24.4 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.615 ns 0.615 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.51 % 2.51 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.59 ns 9.59 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.63 ns 9.63 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.166 ns 0.166 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.73 % 1.73 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.04 ns 8.04 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.04 ns 8.04 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.114 ns 0.114 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.41 % 1.41 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.57 ns 7.57 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.52 ns 7.52 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.139 ns 0.139 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.84 % 1.84 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.82 ns 7.82 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.82 ns 7.82 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.025 ns 0.025 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.32 % 0.32 % 4
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 29.2 ns 29.2 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.1 ns 29.1 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.09 ns 1.09 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.74 % 3.74 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 11.0 ns 11.0 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 11.0 ns 11.0 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.152 ns 0.152 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.39 % 1.39 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 13.3 ns 13.3 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 13.2 ns 13.2 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.137 ns 0.137 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.03 % 1.03 % 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.6 ns 66.6 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.0 ns 66.0 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.62 ns 1.62 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.43 % 2.43 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.5 ns 24.5 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.5 ns 24.5 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.348 ns 0.348 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.42 % 1.42 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 26.8 ns 26.8 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 26.8 ns 26.8 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.384 ns 0.384 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.43 % 1.43 % 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 1424 ns 1424 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1429 ns 1429 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.2 ns 35.2 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.47 % 2.47 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 445 ns 445 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 446 ns 446 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 7.09 ns 7.08 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 1.59 % 1.59 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 388 ns 388 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 388 ns 388 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.37 ns 3.37 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.87 % 0.87 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 276 ns 276 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 278 ns 278 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 7.15 ns 7.15 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.59 % 2.59 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 219 ns 219 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 224 ns 224 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 11.1 ns 11.1 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.04 % 5.04 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 137 ns 137 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 137 ns 137 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.634 ns 0.634 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.46 % 0.46 % 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 1426 ns 1426 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1428 ns 1428 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 39.2 ns 39.2 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.75 % 2.75 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1288 ns 1288 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1289 ns 1289 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.9 ns 12.9 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.01 % 1.01 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 426 ns 426 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 426 ns 426 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.08 ns 5.08 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.19 % 1.19 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 340 ns 340 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 346 ns 346 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.2 ns 14.2 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.17 % 4.17 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 313 ns 313 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 314 ns 314 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.6 ns 11.6 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.71 % 3.71 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 217 ns 217 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 218 ns 218 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.95 ns 6.95 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.21 % 3.21 % 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 75809 ns 75810 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 75636 ns 75637 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1270 ns 1270 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.68 % 1.68 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73098 ns 73098 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73402 ns 73402 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1487 ns 1487 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.03 % 2.03 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19767 ns 19767 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19715 ns 19715 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 326 ns 326 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.65 % 1.65 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17379 ns 17379 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17356 ns 17356 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 164 ns 164 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.94 % 0.94 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16895 ns 16895 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16961 ns 16961 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 186 ns 186 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.10 % 1.10 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17082 ns 17082 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17027 ns 17027 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 244 ns 244 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.43 % 1.43 % 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 1469 ns 1469 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 1481 ns 1481 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 31.4 ns 31.4 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.14 % 2.14 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1415 ns 1415 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1404 ns 1404 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 26.0 ns 26.0 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 1.84 % 1.84 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 527 ns 527 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 525 ns 525 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.07 ns 8.07 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.53 % 1.53 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 465 ns 465 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 469 ns 469 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 22.5 ns 22.5 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.85 % 4.85 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 408 ns 408 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 415 ns 415 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 20.7 ns 20.7 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.06 % 5.06 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 309 ns 309 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 310 ns 310 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 3.18 ns 3.18 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.03 % 1.03 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3067 ns 3067 ns 4
std::stringstream str; str << "test = " << k << " times";_median 3055 ns 3055 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 47.1 ns 47.1 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 1.54 % 1.54 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 457 ns 457 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 457 ns 457 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 4.69 ns 4.69 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 1.03 % 1.03 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1393 ns 1393 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1390 ns 1390 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 25.7 ns 25.6 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.84 % 1.84 % 4
std::string str = std::format("test = {} times", k);_mean 1140 ns 1140 ns 4
std::string str = std::format("test = {} times", k);_median 1150 ns 1150 ns 4
std::string str = std::format("test = {} times", k);_stddev 32.3 ns 32.3 ns 4
std::string str = std::format("test = {} times", k);_cv 2.83 % 2.83 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 1356 ns 1356 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1349 ns 1349 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 39.1 ns 39.1 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 2.88 % 2.88 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 1002 ns 1003 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 1005 ns 1005 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 24.7 ns 24.7 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 2.46 % 2.46 % 4
lstringa<8> str = "test = " + k + " times";_mean 262 ns 262 ns 4
lstringa<8> str = "test = " + k + " times";_median 261 ns 261 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 3.40 ns 3.40 ns 4
lstringa<8> str = "test = " + k + " times";_cv 1.30 % 1.30 % 4
lstringa<32> str = "test = " + k + " times";_mean 126 ns 126 ns 4
lstringa<32> str = "test = " + k + " times";_median 126 ns 126 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 0.511 ns 0.511 ns 4
lstringa<32> str = "test = " + k + " times";_cv 0.40 % 0.40 % 4
stringa str = "test = " + k + " times";_mean 124 ns 124 ns 4
stringa str = "test = " + k + " times";_median 124 ns 124 ns 4
stringa str = "test = " + k + " times";_stddev 3.39 ns 3.39 ns 4
stringa str = "test = " + k + " times";_cv 2.74 % 2.74 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 270 ns 270 ns 4
std::string::find + substr + std::strtol_median 268 ns 268 ns 4
std::string::find + substr + std::strtol_stddev 7.54 ns 7.54 ns 4
std::string::find + substr + std::strtol_cv 2.79 % 2.79 % 4
ssa::splitter + ssa::as_int_mean 156 ns 156 ns 4
ssa::splitter + ssa::as_int_median 156 ns 156 ns 4
ssa::splitter + ssa::as_int_stddev 1.99 ns 1.99 ns 4
ssa::splitter + ssa::as_int_cv 1.28 % 1.28 % 4
ssa::splitf + functor_mean 207 ns 207 ns 4
ssa::splitf + functor_median 207 ns 207 ns 4
ssa::splitf + functor_stddev 2.33 ns 2.33 ns 4
ssa::splitf + functor_cv 1.12 % 1.12 % 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 844 ns 844 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 846 ns 846 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 8.40 ns 8.40 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 1.00 % 1.00 % 4
replace symbols with std::string find_first_of + replace_mean 2647 ns 2647 ns 4
replace symbols with std::string find_first_of + replace_median 2649 ns 2649 ns 4
replace symbols with std::string find_first_of + replace_stddev 41.4 ns 41.4 ns 4
replace symbols with std::string find_first_of + replace_cv 1.56 % 1.56 % 4
replace symbols with std::string_view find_first_of + copy_mean 1123 ns 1123 ns 4
replace symbols with std::string_view find_first_of + copy_median 1119 ns 1119 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 27.0 ns 27.0 ns 4
replace symbols with std::string_view find_first_of + copy_cv 2.40 % 2.40 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1273 ns 1273 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1269 ns 1269 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 42.9 ns 42.9 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 3.37 % 3.37 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1067 ns 1067 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1068 ns 1068 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 9.03 ns 9.03 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 0.85 % 0.85 % 4
replace const symbols with string expressions and without remembering all search results_mean 1029 ns 1029 ns 4
replace const symbols with string expressions and without remembering all search results_median 1021 ns 1021 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 24.0 ns 24.0 ns 4
replace const symbols with string expressions and without remembering all search results_cv 2.33 % 2.33 % 4
replace const symbols with string expressions and memorization of all search results_mean 887 ns 887 ns 4
replace const symbols with string expressions and memorization of all search results_median 884 ns 884 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 19.8 ns 19.8 ns 4
replace const symbols with string expressions and memorization of all search results_cv 2.23 % 2.23 % 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 166 ns 166 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 166 ns 166 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 1.88 ns 1.88 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.13 % 1.13 % 4
Short replace symbols with std::string find_first_of + replace_mean 334 ns 334 ns 4
Short replace symbols with std::string find_first_of + replace_median 334 ns 334 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 5.22 ns 5.23 ns 4
Short replace symbols with std::string find_first_of + replace_cv 1.57 % 1.57 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 154 ns 154 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 152 ns 152 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 4.50 ns 4.50 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 2.92 % 2.92 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 169 ns 169 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 169 ns 169 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.26 ns 2.26 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.34 % 1.34 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 201 ns 201 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 200 ns 200 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 2.87 ns 2.87 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 1.43 % 1.43 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 130 ns 130 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 131 ns 131 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 2.75 ns 2.75 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 2.12 % 2.12 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 145 ns 145 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 145 ns 145 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 1.24 ns 1.24 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 0.85 % 0.85 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 151 ns 151 ns 4
replace bb to ---- in std::string|64_median 150 ns 150 ns 4
replace bb to ---- in std::string|64_stddev 2.03 ns 2.03 ns 4
replace bb to ---- in std::string|64_cv 1.34 % 1.34 % 4
replace bb to ---- in std::string|256_mean 603 ns 603 ns 4
replace bb to ---- in std::string|256_median 600 ns 600 ns 4
replace bb to ---- in std::string|256_stddev 7.38 ns 7.38 ns 4
replace bb to ---- in std::string|256_cv 1.22 % 1.22 % 4
replace bb to ---- in std::string|512_mean 1060 ns 1060 ns 4
replace bb to ---- in std::string|512_median 1058 ns 1058 ns 4
replace bb to ---- in std::string|512_stddev 32.9 ns 32.9 ns 4
replace bb to ---- in std::string|512_cv 3.10 % 3.10 % 4
replace bb to ---- in std::string|1024_mean 2332 ns 2332 ns 4
replace bb to ---- in std::string|1024_median 2323 ns 2323 ns 4
replace bb to ---- in std::string|1024_stddev 156 ns 156 ns 4
replace bb to ---- in std::string|1024_cv 6.71 % 6.71 % 4
replace bb to ---- in std::string|2048_mean 5851 ns 5851 ns 4
replace bb to ---- in std::string|2048_median 5742 ns 5742 ns 4
replace bb to ---- in std::string|2048_stddev 405 ns 405 ns 4
replace bb to ---- in std::string|2048_cv 6.92 % 6.92 % 4
replace bb to ---- in lstringa<8>|64_mean 127 ns 127 ns 4
replace bb to ---- in lstringa<8>|64_median 126 ns 126 ns 4
replace bb to ---- in lstringa<8>|64_stddev 1.74 ns 1.74 ns 4
replace bb to ---- in lstringa<8>|64_cv 1.37 % 1.37 % 4
replace bb to ---- in lstringa<8>|256_mean 442 ns 442 ns 4
replace bb to ---- in lstringa<8>|256_median 439 ns 439 ns 4
replace bb to ---- in lstringa<8>|256_stddev 9.86 ns 9.86 ns 4
replace bb to ---- in lstringa<8>|256_cv 2.23 % 2.23 % 4
replace bb to ---- in lstringa<8>|512_mean 831 ns 831 ns 4
replace bb to ---- in lstringa<8>|512_median 832 ns 832 ns 4
replace bb to ---- in lstringa<8>|512_stddev 13.7 ns 13.7 ns 4
replace bb to ---- in lstringa<8>|512_cv 1.65 % 1.65 % 4
replace bb to ---- in lstringa<8>|1024_mean 1698 ns 1698 ns 4
replace bb to ---- in lstringa<8>|1024_median 1696 ns 1696 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 26.9 ns 26.9 ns 4
replace bb to ---- in lstringa<8>|1024_cv 1.59 % 1.59 % 4
replace bb to ---- in lstringa<8>|2048_mean 3256 ns 3256 ns 4
replace bb to ---- in lstringa<8>|2048_median 3280 ns 3280 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 73.1 ns 73.1 ns 4
replace bb to ---- in lstringa<8>|2048_cv 2.25 % 2.25 % 4
replace bb to ---- by init stringa|64_mean 91.5 ns 91.5 ns 4
replace bb to ---- by init stringa|64_median 91.9 ns 91.9 ns 4
replace bb to ---- by init stringa|64_stddev 3.42 ns 3.42 ns 4
replace bb to ---- by init stringa|64_cv 3.74 % 3.74 % 4
replace bb to ---- by init stringa|256_mean 306 ns 306 ns 4
replace bb to ---- by init stringa|256_median 305 ns 305 ns 4
replace bb to ---- by init stringa|256_stddev 7.25 ns 7.25 ns 4
replace bb to ---- by init stringa|256_cv 2.37 % 2.37 % 4
replace bb to ---- by init stringa|512_mean 718 ns 718 ns 4
replace bb to ---- by init stringa|512_median 719 ns 719 ns 4
replace bb to ---- by init stringa|512_stddev 7.71 ns 7.71 ns 4
replace bb to ---- by init stringa|512_cv 1.07 % 1.07 % 4
replace bb to ---- by init stringa|1024_mean 1629 ns 1629 ns 4
replace bb to ---- by init stringa|1024_median 1626 ns 1626 ns 4
replace bb to ---- by init stringa|1024_stddev 21.1 ns 21.1 ns 4
replace bb to ---- by init stringa|1024_cv 1.30 % 1.30 % 4
replace bb to ---- by init stringa|2048_mean 3400 ns 3400 ns 4
replace bb to ---- by init stringa|2048_median 3411 ns 3411 ns 4
replace bb to ---- by init stringa|2048_stddev 57.0 ns 57.0 ns 4
replace bb to ---- by init stringa|2048_cv 1.68 % 1.68 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 114 ns 114 ns 4
replace bb to -- in std::string|64_median 113 ns 113 ns 4
replace bb to -- in std::string|64_stddev 3.00 ns 3.00 ns 4
replace bb to -- in std::string|64_cv 2.62 % 2.62 % 4
replace bb to -- in std::string|256_mean 390 ns 390 ns 4
replace bb to -- in std::string|256_median 391 ns 391 ns 4
replace bb to -- in std::string|256_stddev 6.46 ns 6.46 ns 4
replace bb to -- in std::string|256_cv 1.66 % 1.66 % 4
replace bb to -- in std::string|512_mean 743 ns 743 ns 4
replace bb to -- in std::string|512_median 741 ns 741 ns 4
replace bb to -- in std::string|512_stddev 7.17 ns 7.17 ns 4
replace bb to -- in std::string|512_cv 0.97 % 0.97 % 4
replace bb to -- in std::string|1024_mean 1477 ns 1477 ns 4
replace bb to -- in std::string|1024_median 1477 ns 1477 ns 4
replace bb to -- in std::string|1024_stddev 22.5 ns 22.5 ns 4
replace bb to -- in std::string|1024_cv 1.52 % 1.52 % 4
replace bb to -- in std::string|2048_mean 2929 ns 2929 ns 4
replace bb to -- in std::string|2048_median 2932 ns 2932 ns 4
replace bb to -- in std::string|2048_stddev 32.1 ns 32.1 ns 4
replace bb to -- in std::string|2048_cv 1.09 % 1.09 % 4
replace bb to -- in lstringa<8>|64_mean 89.2 ns 89.2 ns 4
replace bb to -- in lstringa<8>|64_median 88.6 ns 88.6 ns 4
replace bb to -- in lstringa<8>|64_stddev 1.62 ns 1.62 ns 4
replace bb to -- in lstringa<8>|64_cv 1.82 % 1.82 % 4
replace bb to -- in lstringa<8>|256_mean 295 ns 295 ns 4
replace bb to -- in lstringa<8>|256_median 296 ns 296 ns 4
replace bb to -- in lstringa<8>|256_stddev 5.80 ns 5.80 ns 4
replace bb to -- in lstringa<8>|256_cv 1.97 % 1.97 % 4
replace bb to -- in lstringa<8>|512_mean 553 ns 553 ns 4
replace bb to -- in lstringa<8>|512_median 547 ns 547 ns 4
replace bb to -- in lstringa<8>|512_stddev 15.1 ns 14.9 ns 4
replace bb to -- in lstringa<8>|512_cv 2.72 % 2.69 % 4
replace bb to -- in lstringa<8>|1024_mean 1122 ns 1122 ns 4
replace bb to -- in lstringa<8>|1024_median 1112 ns 1112 ns 4
replace bb to -- in lstringa<8>|1024_stddev 33.2 ns 33.2 ns 4
replace bb to -- in lstringa<8>|1024_cv 2.96 % 2.96 % 4
replace bb to -- in lstringa<8>|2048_mean 2088 ns 2088 ns 4
replace bb to -- in lstringa<8>|2048_median 2076 ns 2076 ns 4
replace bb to -- in lstringa<8>|2048_stddev 33.4 ns 33.4 ns 4
replace bb to -- in lstringa<8>|2048_cv 1.60 % 1.60 % 4
replace bb to -- by init stringa|64_mean 73.9 ns 73.9 ns 4
replace bb to -- by init stringa|64_median 74.1 ns 74.1 ns 4
replace bb to -- by init stringa|64_stddev 1.95 ns 1.95 ns 4
replace bb to -- by init stringa|64_cv 2.63 % 2.63 % 4
replace bb to -- by init stringa|256_mean 240 ns 240 ns 4
replace bb to -- by init stringa|256_median 240 ns 240 ns 4
replace bb to -- by init stringa|256_stddev 3.28 ns 3.28 ns 4
replace bb to -- by init stringa|256_cv 1.37 % 1.37 % 4
replace bb to -- by init stringa|512_mean 434 ns 434 ns 4
replace bb to -- by init stringa|512_median 434 ns 434 ns 4
replace bb to -- by init stringa|512_stddev 4.69 ns 4.69 ns 4
replace bb to -- by init stringa|512_cv 1.08 % 1.08 % 4
replace bb to -- by init stringa|1024_mean 898 ns 898 ns 4
replace bb to -- by init stringa|1024_median 897 ns 897 ns 4
replace bb to -- by init stringa|1024_stddev 22.5 ns 22.5 ns 4
replace bb to -- by init stringa|1024_cv 2.51 % 2.51 % 4
replace bb to -- by init stringa|2048_mean 1709 ns 1709 ns 4
replace bb to -- by init stringa|2048_median 1711 ns 1711 ns 4
replace bb to -- by init stringa|2048_stddev 28.4 ns 28.4 ns 4
replace bb to -- by init stringa|2048_cv 1.66 % 1.66 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3754473 ns 3754484 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3770505 ns 3770516 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 44910 ns 44913 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 1.20 % 1.20 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3584569 ns 3584594 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3584871 ns 3584864 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 54232 ns 54206 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 1.51 % 1.51 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3718652 ns 3718652 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3722300 ns 3722310 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 63421 ns 63405 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 1.71 % 1.71 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4196609 ns 4196628 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4205044 ns 4205067 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 39442 ns 39443 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 0.94 % 0.94 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 673 ns 673 ns 4
Build func full name std::string;_median 673 ns 673 ns 4
Build func full name std::string;_stddev 6.64 ns 6.64 ns 4
Build func full name std::string;_cv 0.99 % 0.99 % 4
Build func full name std::string 1;_mean 768 ns 768 ns 4
Build func full name std::string 1;_median 770 ns 770 ns 4
Build func full name std::string 1;_stddev 19.1 ns 19.1 ns 4
Build func full name std::string 1;_cv 2.49 % 2.49 % 4
Build func full name std::stream;_mean 3165 ns 3165 ns 4
Build func full name std::stream;_median 3169 ns 3169 ns 4
Build func full name std::stream;_stddev 34.1 ns 34.1 ns 4
Build func full name std::stream;_cv 1.08 % 1.08 % 4
Build func full name stringa;_mean 472 ns 472 ns 4
Build func full name stringa;_median 474 ns 474 ns 4
Build func full name stringa;_stddev 10.3 ns 10.3 ns 4
Build func full name stringa;_cv 2.18 % 2.18 % 4
Build func full name stringa 1;_mean 616 ns 616 ns 4
Build func full name stringa 1;_median 600 ns 600 ns 4
Build func full name stringa 1;_stddev 37.3 ns 37.3 ns 4
Build func full name stringa 1;_cv 6.06 % 6.06 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 162 ns 162 ns 4
To upper case std::wstring_median 161 ns 161 ns 4
To upper case std::wstring_stddev 3.72 ns 3.72 ns 4
To upper case std::wstring_cv 2.29 % 2.29 % 4
To upper case lstringw<15>_mean 43.7 ns 43.7 ns 4
To upper case lstringw<15>_median 42.9 ns 42.9 ns 4
To upper case lstringw<15>_stddev 1.64 ns 1.64 ns 4
To upper case lstringw<15>_cv 3.75 % 3.75 % 4