simstr/bench/results/001-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, use libc++
2026-03-22T13:31:21+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.28, 0.77, 0.74
***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 170 ns 170 ns 4
Concat email std::format_median 170 ns 170 ns 4
Concat email std::format_stddev 3.56 ns 3.56 ns 4
Concat email std::format_cv 2.09 % 2.09 % 4
Concat email std::stringstream_mean 279 ns 279 ns 4
Concat email std::stringstream_median 277 ns 277 ns 4
Concat email std::stringstream_stddev 4.82 ns 4.82 ns 4
Concat email std::stringstream_cv 1.73 % 1.73 % 4
Concat email stringzilla append_mean 141 ns 141 ns 4
Concat email stringzilla append_median 141 ns 141 ns 4
Concat email stringzilla append_stddev 1.31 ns 1.31 ns 4
Concat email stringzilla append_cv 0.93 % 0.93 % 4
Concat email stringzilla concat_mean 55.0 ns 55.0 ns 4
Concat email stringzilla concat_median 55.5 ns 55.5 ns 4
Concat email stringzilla concat_stddev 1.41 ns 1.41 ns 4
Concat email stringzilla concat_cv 2.57 % 2.57 % 4
Concat email std::string append_mean 91.0 ns 91.0 ns 4
Concat email std::string append_median 91.0 ns 91.0 ns 4
Concat email std::string append_stddev 0.590 ns 0.591 ns 4
Concat email std::string append_cv 0.65 % 0.65 % 4
Concat email std::string by strexpr_mean 46.8 ns 46.8 ns 4
Concat email std::string by strexpr_median 46.7 ns 46.7 ns 4
Concat email std::string by strexpr_stddev 1.12 ns 1.13 ns 4
Concat email std::string by strexpr_cv 2.40 % 2.40 % 4
Concat email stringa_mean 38.7 ns 38.7 ns 4
Concat email stringa_median 38.6 ns 38.6 ns 4
Concat email stringa_stddev 0.446 ns 0.446 ns 4
Concat email stringa_cv 1.15 % 1.15 % 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 242 ns 242 ns 4
Concat std::string and number by std to std::string_median 242 ns 242 ns 4
Concat std::string and number by std to std::string_stddev 4.41 ns 4.41 ns 4
Concat std::string and number by std to std::string_cv 1.82 % 1.82 % 4
Concat std::string and number by StrExpr to std::string_mean 102 ns 102 ns 4
Concat std::string and number by StrExpr to std::string_median 102 ns 102 ns 4
Concat std::string and number by StrExpr to std::string_stddev 2.17 ns 2.17 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 64.3 ns 64.3 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 64.5 ns 64.5 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.626 ns 0.626 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 0.97 % 0.97 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 72.1 ns 72.1 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 72.6 ns 72.6 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 1.16 ns 1.16 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 1.61 % 1.61 % 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 724 ns 724 ns 4
Concat std::string and format hex number and literal to std::string_median 719 ns 719 ns 4
Concat std::string and format hex number and literal to std::string_stddev 20.0 ns 20.0 ns 4
Concat std::string and format hex number and literal to std::string_cv 2.76 % 2.77 % 4
std::format std::string and hex number by literal to std::string_mean 783 ns 783 ns 4
std::format std::string and hex number by literal to std::string_median 784 ns 784 ns 4
std::format std::string and hex number by literal to std::string_stddev 20.1 ns 20.1 ns 4
std::format std::string and hex number by literal to std::string_cv 2.56 % 2.56 % 4
Concat std::string and std::to_chars and string to std::string_mean 221 ns 221 ns 4
Concat std::string and std::to_chars and string to std::string_median 222 ns 222 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 3.44 ns 3.44 ns 4
Concat std::string and std::to_chars and string to std::string_cv 1.56 % 1.56 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 150 ns 150 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 151 ns 151 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.94 ns 2.94 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.96 % 1.96 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 120 ns 120 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 119 ns 119 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.85 ns 1.85 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.54 % 1.54 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 124 ns 124 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 124 ns 124 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.45 ns 2.45 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.97 % 1.97 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 187 ns 187 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 186 ns 186 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.21 ns 4.21 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.25 % 2.25 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 332 ns 332 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 334 ns 334 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.45 ns 5.45 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.64 % 1.64 % 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 278 ns 278 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 277 ns 277 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 3.23 ns 3.23 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.16 % 1.16 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 358 ns 358 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 358 ns 358 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.17 ns 4.17 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.16 % 1.16 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 608 ns 608 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 607 ns 607 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 8.27 ns 8.26 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.36 % 1.36 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 697 ns 697 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 695 ns 695 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 8.91 ns 8.91 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.28 % 1.28 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 814 ns 814 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 810 ns 810 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 23.1 ns 23.1 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.84 % 2.84 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1268 ns 1268 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1255 ns 1255 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.3 ns 30.3 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.39 % 2.39 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1228 ns 1228 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1227 ns 1227 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 9.77 ns 9.77 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 0.80 % 0.80 % 4
std::format with std::formatted_size_mean 2175 ns 2175 ns 4
std::format with std::formatted_size_median 2181 ns 2180 ns 4
std::format with std::formatted_size_stddev 13.9 ns 13.9 ns 4
std::format with std::formatted_size_cv 0.64 % 0.64 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2608 ns 2608 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2609 ns 2609 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 18.4 ns 18.4 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 0.71 % 0.70 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 34.1 ns 34.1 ns 4
Concat std::string by std to std::string_median 33.7 ns 33.7 ns 4
Concat std::string by std to std::string_stddev 0.874 ns 0.874 ns 4
Concat std::string by std to std::string_cv 2.56 % 2.56 % 4
Concat std::string by StrExpr to std::string_mean 37.3 ns 37.3 ns 4
Concat std::string by StrExpr to std::string_median 37.2 ns 37.2 ns 4
Concat std::string by StrExpr to std::string_stddev 0.340 ns 0.340 ns 4
Concat std::string by StrExpr to std::string_cv 0.91 % 0.91 % 4
Concat stringa by StrExpr to stringa_mean 28.3 ns 28.3 ns 4
Concat stringa by StrExpr to stringa_median 28.0 ns 28.0 ns 4
Concat stringa by StrExpr to stringa_stddev 0.716 ns 0.716 ns 4
Concat stringa by StrExpr to stringa_cv 2.53 % 2.53 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 92.4 ns 92.4 ns 4
Find concat three std::string_median 92.1 ns 92.1 ns 4
Find concat three std::string_stddev 1.44 ns 1.44 ns 4
Find concat three std::string_cv 1.56 % 1.56 % 4
Find concat three strexpr_mean 46.5 ns 46.5 ns 4
Find concat three strexpr_median 45.9 ns 45.9 ns 4
Find concat three strexpr_stddev 1.25 ns 1.25 ns 4
Find concat three strexpr_cv 2.68 % 2.68 % 4
Find concat three simstr_mean 17.0 ns 17.0 ns 4
Find concat three simstr_median 16.9 ns 16.9 ns 4
Find concat three simstr_stddev 0.649 ns 0.649 ns 4
Find concat three simstr_cv 3.81 % 3.81 % 4
Find concat three stringzilla string_mean 176 ns 176 ns 4
Find concat three stringzilla string_median 177 ns 177 ns 4
Find concat three stringzilla string_stddev 4.56 ns 4.56 ns 4
Find concat three stringzilla string_cv 2.59 % 2.59 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 6.45 ns 6.44 ns 4
BuildTypeNameStr 0/0_median 6.46 ns 6.46 ns 4
BuildTypeNameStr 0/0_stddev 0.192 ns 0.192 ns 4
BuildTypeNameStr 0/0_cv 2.97 % 2.97 % 4
BuildTypeNameExp 0/0_mean 6.41 ns 6.41 ns 4
BuildTypeNameExp 0/0_median 6.39 ns 6.39 ns 4
BuildTypeNameExp 0/0_stddev 0.052 ns 0.052 ns 4
BuildTypeNameExp 0/0_cv 0.81 % 0.81 % 4
BuildTypeNameSim 0/0_mean 4.99 ns 4.99 ns 4
BuildTypeNameSim 0/0_median 4.98 ns 4.98 ns 4
BuildTypeNameSim 0/0_stddev 0.092 ns 0.092 ns 4
BuildTypeNameSim 0/0_cv 1.84 % 1.84 % 4
BuildTypeNameStr 10/10_mean 90.0 ns 90.0 ns 4
BuildTypeNameStr 10/10_median 89.9 ns 89.9 ns 4
BuildTypeNameStr 10/10_stddev 0.738 ns 0.739 ns 4
BuildTypeNameStr 10/10_cv 0.82 % 0.82 % 4
BuildTypeNameExp 10/10_mean 39.0 ns 39.0 ns 4
BuildTypeNameExp 10/10_median 39.2 ns 39.2 ns 4
BuildTypeNameExp 10/10_stddev 1.05 ns 1.05 ns 4
BuildTypeNameExp 10/10_cv 2.70 % 2.70 % 4
BuildTypeNameSim 10/10_mean 23.6 ns 23.6 ns 4
BuildTypeNameSim 10/10_median 23.6 ns 23.6 ns 4
BuildTypeNameSim 10/10_stddev 0.539 ns 0.539 ns 4
BuildTypeNameSim 10/10_cv 2.28 % 2.28 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 243 ns 243 ns 4
Concat with replace str_median 243 ns 243 ns 4
Concat with replace str_stddev 5.58 ns 5.58 ns 4
Concat with replace str_cv 2.29 % 2.29 % 4
Concat with replace exp_mean 151 ns 151 ns 4
Concat with replace exp_median 151 ns 151 ns 4
Concat with replace exp_stddev 1.04 ns 1.03 ns 4
Concat with replace exp_cv 0.69 % 0.69 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 0.758 ns 0.758 ns 4
std::string e;_median 0.756 ns 0.756 ns 4
std::string e;_stddev 0.006 ns 0.006 ns 4
std::string e;_cv 0.74 % 0.74 % 4
std::string_view e;_mean 0.380 ns 0.380 ns 4
std::string_view e;_median 0.380 ns 0.380 ns 4
std::string_view e;_stddev 0.002 ns 0.002 ns 4
std::string_view e;_cv 0.49 % 0.49 % 4
ssa e;_mean 0.375 ns 0.375 ns 4
ssa e;_median 0.375 ns 0.375 ns 4
ssa e;_stddev 0.006 ns 0.006 ns 4
ssa e;_cv 1.57 % 1.57 % 4
stringa e;_mean 0.754 ns 0.754 ns 4
stringa e;_median 0.754 ns 0.754 ns 4
stringa e;_stddev 0.005 ns 0.005 ns 4
stringa e;_cv 0.66 % 0.66 % 4
lstringa<20> e;_mean 1.13 ns 1.13 ns 4
lstringa<20> e;_median 1.12 ns 1.12 ns 4
lstringa<20> e;_stddev 0.026 ns 0.026 ns 4
lstringa<20> e;_cv 2.28 % 2.28 % 4
lstringa<40> e;_mean 1.14 ns 1.14 ns 4
lstringa<40> e;_median 1.15 ns 1.15 ns 4
lstringa<40> e;_stddev 0.027 ns 0.027 ns 4
lstringa<40> e;_cv 2.39 % 2.39 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.51 ns 1.51 ns 4
std::string e = "Test text";_median 1.51 ns 1.51 ns 4
std::string e = "Test text";_stddev 0.020 ns 0.020 ns 4
std::string e = "Test text";_cv 1.30 % 1.30 % 4
std::string_view e = "Test text";_mean 0.767 ns 0.767 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.33 % 1.33 % 4
ssa e = "Test text";_mean 0.381 ns 0.381 ns 4
ssa e = "Test text";_median 0.382 ns 0.382 ns 4
ssa e = "Test text";_stddev 0.006 ns 0.006 ns 4
ssa e = "Test text";_cv 1.64 % 1.64 % 4
stringa e = "Test text";_mean 1.13 ns 1.13 ns 4
stringa e = "Test text";_median 1.13 ns 1.13 ns 4
stringa e = "Test text";_stddev 0.014 ns 0.014 ns 4
stringa e = "Test text";_cv 1.24 % 1.24 % 4
lstringa<20> e = "Test text";_mean 1.89 ns 1.89 ns 4
lstringa<20> e = "Test text";_median 1.89 ns 1.89 ns 4
lstringa<20> e = "Test text";_stddev 0.038 ns 0.038 ns 4
lstringa<20> e = "Test text";_cv 2.03 % 2.03 % 4
lstringa<40> e = "Test text";_mean 1.86 ns 1.86 ns 4
lstringa<40> e = "Test text";_median 1.86 ns 1.86 ns 4
lstringa<40> e = "Test text";_stddev 0.017 ns 0.017 ns 4
lstringa<40> e = "Test text";_cv 0.92 % 0.92 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 19.3 ns 19.3 ns 4
std::string e = "123456789012345678901234567890";_median 19.3 ns 19.2 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.214 ns 0.214 ns 4
std::string e = "123456789012345678901234567890";_cv 1.11 % 1.11 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.745 ns 0.745 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.745 ns 0.745 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.016 ns 0.016 ns 4
std::string_view e = "123456789012345678901234567890";_cv 2.09 % 2.09 % 4
ssa e = "123456789012345678901234567890";_mean 0.374 ns 0.374 ns 4
ssa e = "123456789012345678901234567890";_median 0.373 ns 0.373 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.004 ns 0.004 ns 4
ssa e = "123456789012345678901234567890";_cv 1.01 % 1.01 % 4
stringa e = "123456789012345678901234567890";_mean 1.12 ns 1.12 ns 4
stringa e = "123456789012345678901234567890";_median 1.12 ns 1.12 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.017 ns 0.017 ns 4
stringa e = "123456789012345678901234567890";_cv 1.53 % 1.53 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 18.9 ns 18.9 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 18.9 ns 18.9 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.143 ns 0.143 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 0.75 % 0.75 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 1.89 ns 1.89 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 1.89 ns 1.89 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.023 ns 0.023 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 1.21 % 1.22 % 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 1.18 ns 1.18 ns 4
std::string e = "Test text"; auto c{e};_median 1.18 ns 1.18 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.010 ns 0.010 ns 4
std::string e = "Test text"; auto c{e};_cv 0.82 % 0.82 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.377 ns 0.377 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.375 ns 0.375 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4
std::string_view e = "Test text"; auto c{e};_cv 1.03 % 1.03 % 4
ssa e = "Test text"; auto c{e};_mean 0.378 ns 0.378 ns 4
ssa e = "Test text"; auto c{e};_median 0.378 ns 0.378 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.003 ns 0.003 ns 4
ssa e = "Test text"; auto c{e};_cv 0.80 % 0.80 % 4
stringa e = "Test text"; auto c{e};_mean 1.13 ns 1.13 ns 4
stringa e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.020 ns 0.020 ns 4
stringa e = "Test text"; auto c{e};_cv 1.76 % 1.76 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.012 ns 0.012 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 1.04 % 1.04 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.85 ns 1.85 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.85 ns 1.85 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.023 ns 0.023 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 1.27 % 1.27 % 4
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890"; auto c{e};_mean 24.9 ns 24.9 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 24.8 ns 24.8 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.277 ns 0.277 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.11 % 1.11 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.757 ns 0.757 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.754 ns 0.754 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.013 ns 0.013 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.67 % 1.67 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.381 ns 0.381 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.382 ns 0.382 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.004 ns 0.004 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.01 % 1.01 % 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.019 ns 0.019 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.66 % 1.66 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 18.0 ns 18.0 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 18.1 ns 18.1 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.454 ns 0.454 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.52 % 2.52 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.53 ns 5.53 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.52 ns 5.52 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.080 ns 0.080 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.45 % 1.45 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 96.5 ns 96.5 ns 4
sz::string::find;_median 96.3 ns 96.3 ns 4
sz::string::find;_stddev 1.47 ns 1.47 ns 4
sz::string::find;_cv 1.53 % 1.53 % 4
std::string::find;_mean 7.76 ns 7.76 ns 4
std::string::find;_median 7.84 ns 7.84 ns 4
std::string::find;_stddev 0.180 ns 0.180 ns 4
std::string::find;_cv 2.31 % 2.31 % 4
std::string_view::find;_mean 7.82 ns 7.82 ns 4
std::string_view::find;_median 7.85 ns 7.84 ns 4
std::string_view::find;_stddev 0.082 ns 0.082 ns 4
std::string_view::find;_cv 1.05 % 1.05 % 4
ssa::find;_mean 7.82 ns 7.82 ns 4
ssa::find;_median 7.81 ns 7.81 ns 4
ssa::find;_stddev 0.113 ns 0.113 ns 4
ssa::find;_cv 1.44 % 1.45 % 4
stringa::find;_mean 8.60 ns 8.60 ns 4
stringa::find;_median 8.59 ns 8.59 ns 4
stringa::find;_stddev 0.045 ns 0.045 ns 4
stringa::find;_cv 0.52 % 0.52 % 4
lstringa<20>::find;_mean 6.98 ns 6.98 ns 4
lstringa<20>::find;_median 6.95 ns 6.95 ns 4
lstringa<20>::find;_stddev 0.090 ns 0.090 ns 4
lstringa<20>::find;_cv 1.29 % 1.29 % 4
lstringa<40>::find;_mean 7.01 ns 7.01 ns 4
lstringa<40>::find;_median 7.02 ns 7.02 ns 4
lstringa<40>::find;_stddev 0.253 ns 0.253 ns 4
lstringa<40>::find;_cv 3.61 % 3.61 % 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 1.18 ns 1.18 ns 4
std::string copy{str_with_len_N};/15_median 1.17 ns 1.17 ns 4
std::string copy{str_with_len_N};/15_stddev 0.043 ns 0.043 ns 4
std::string copy{str_with_len_N};/15_cv 3.65 % 3.65 % 4
std::string copy{str_with_len_N};/16_mean 1.16 ns 1.16 ns 4
std::string copy{str_with_len_N};/16_median 1.16 ns 1.16 ns 4
std::string copy{str_with_len_N};/16_stddev 0.028 ns 0.028 ns 4
std::string copy{str_with_len_N};/16_cv 2.42 % 2.42 % 4
std::string copy{str_with_len_N};/23_mean 25.8 ns 25.8 ns 4
std::string copy{str_with_len_N};/23_median 25.6 ns 25.6 ns 4
std::string copy{str_with_len_N};/23_stddev 0.708 ns 0.707 ns 4
std::string copy{str_with_len_N};/23_cv 2.75 % 2.75 % 4
std::string copy{str_with_len_N};/24_mean 24.8 ns 24.8 ns 4
std::string copy{str_with_len_N};/24_median 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/24_stddev 0.390 ns 0.390 ns 4
std::string copy{str_with_len_N};/24_cv 1.57 % 1.57 % 4
std::string copy{str_with_len_N};/32_mean 24.7 ns 24.7 ns 4
std::string copy{str_with_len_N};/32_median 24.9 ns 24.9 ns 4
std::string copy{str_with_len_N};/32_stddev 0.466 ns 0.466 ns 4
std::string copy{str_with_len_N};/32_cv 1.88 % 1.89 % 4
std::string copy{str_with_len_N};/64_mean 26.2 ns 26.2 ns 4
std::string copy{str_with_len_N};/64_median 26.2 ns 26.2 ns 4
std::string copy{str_with_len_N};/64_stddev 0.221 ns 0.221 ns 4
std::string copy{str_with_len_N};/64_cv 0.84 % 0.84 % 4
std::string copy{str_with_len_N};/128_mean 26.8 ns 26.8 ns 4
std::string copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4
std::string copy{str_with_len_N};/128_stddev 0.300 ns 0.300 ns 4
std::string copy{str_with_len_N};/128_cv 1.12 % 1.12 % 4
std::string copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4
std::string copy{str_with_len_N};/256_median 27.5 ns 27.5 ns 4
std::string copy{str_with_len_N};/256_stddev 0.234 ns 0.234 ns 4
std::string copy{str_with_len_N};/256_cv 0.85 % 0.85 % 4
std::string copy{str_with_len_N};/512_mean 31.6 ns 31.6 ns 4
std::string copy{str_with_len_N};/512_median 31.6 ns 31.6 ns 4
std::string copy{str_with_len_N};/512_stddev 0.751 ns 0.751 ns 4
std::string copy{str_with_len_N};/512_cv 2.38 % 2.38 % 4
std::string copy{str_with_len_N};/1024_mean 38.4 ns 38.4 ns 4
std::string copy{str_with_len_N};/1024_median 38.4 ns 38.4 ns 4
std::string copy{str_with_len_N};/1024_stddev 1.03 ns 1.03 ns 4
std::string copy{str_with_len_N};/1024_cv 2.67 % 2.67 % 4
std::string copy{str_with_len_N};/2048_mean 86.0 ns 86.0 ns 4
std::string copy{str_with_len_N};/2048_median 87.3 ns 87.3 ns 4
std::string copy{str_with_len_N};/2048_stddev 4.29 ns 4.29 ns 4
std::string copy{str_with_len_N};/2048_cv 4.99 % 4.99 % 4
std::string copy{str_with_len_N};/4096_mean 117 ns 117 ns 4
std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 4
std::string copy{str_with_len_N};/4096_stddev 3.68 ns 3.68 ns 4
std::string copy{str_with_len_N};/4096_cv 3.14 % 3.14 % 4
stringa copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4
stringa copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4
stringa copy{str_with_len_N};/15_stddev 0.037 ns 0.037 ns 4
stringa copy{str_with_len_N};/15_cv 3.27 % 3.27 % 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.14 ns 1.14 ns 4
stringa copy{str_with_len_N};/16_stddev 0.014 ns 0.014 ns 4
stringa copy{str_with_len_N};/16_cv 1.22 % 1.22 % 4
stringa copy{str_with_len_N};/23_mean 1.13 ns 1.13 ns 4
stringa copy{str_with_len_N};/23_median 1.13 ns 1.13 ns 4
stringa copy{str_with_len_N};/23_stddev 0.006 ns 0.006 ns 4
stringa copy{str_with_len_N};/23_cv 0.58 % 0.58 % 4
stringa copy{str_with_len_N};/24_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/24_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/24_stddev 0.167 ns 0.167 ns 4
stringa copy{str_with_len_N};/24_cv 1.01 % 1.01 % 4
stringa copy{str_with_len_N};/32_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/32_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/32_stddev 0.075 ns 0.075 ns 4
stringa copy{str_with_len_N};/32_cv 0.46 % 0.46 % 4
stringa copy{str_with_len_N};/64_mean 16.5 ns 16.5 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.129 ns 0.129 ns 4
stringa copy{str_with_len_N};/64_cv 0.78 % 0.78 % 4
stringa copy{str_with_len_N};/128_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/128_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/128_stddev 0.176 ns 0.176 ns 4
stringa copy{str_with_len_N};/128_cv 1.06 % 1.06 % 4
stringa copy{str_with_len_N};/256_mean 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/256_median 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/256_stddev 0.081 ns 0.081 ns 4
stringa copy{str_with_len_N};/256_cv 0.49 % 0.49 % 4
stringa copy{str_with_len_N};/512_mean 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/512_median 16.6 ns 16.6 ns 4
stringa copy{str_with_len_N};/512_stddev 0.117 ns 0.117 ns 4
stringa copy{str_with_len_N};/512_cv 0.71 % 0.71 % 4
stringa copy{str_with_len_N};/1024_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/1024_median 16.4 ns 16.4 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.232 ns 0.232 ns 4
stringa copy{str_with_len_N};/1024_cv 1.41 % 1.41 % 4
stringa copy{str_with_len_N};/2048_mean 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/2048_median 16.5 ns 16.5 ns 4
stringa copy{str_with_len_N};/2048_stddev 0.122 ns 0.122 ns 4
stringa copy{str_with_len_N};/2048_cv 0.74 % 0.74 % 4
stringa copy{str_with_len_N};/4096_mean 16.7 ns 16.7 ns 4
stringa copy{str_with_len_N};/4096_median 16.7 ns 16.7 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.175 ns 0.175 ns 4
stringa copy{str_with_len_N};/4096_cv 1.05 % 1.05 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.12 ns 1.12 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.12 ns 1.12 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.018 ns 0.018 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 1.63 % 1.63 % 4
lstringa<16> copy{str_with_len_N};/16_mean 5.35 ns 5.35 ns 4
lstringa<16> copy{str_with_len_N};/16_median 5.32 ns 5.32 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.139 ns 0.139 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 2.60 % 2.60 % 4
lstringa<16> copy{str_with_len_N};/23_mean 5.31 ns 5.31 ns 4
lstringa<16> copy{str_with_len_N};/23_median 5.33 ns 5.33 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.075 ns 0.075 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 1.42 % 1.42 % 4
lstringa<16> copy{str_with_len_N};/24_mean 21.8 ns 21.8 ns 4
lstringa<16> copy{str_with_len_N};/24_median 21.9 ns 21.9 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 0.457 ns 0.457 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 2.10 % 2.10 % 4
lstringa<16> copy{str_with_len_N};/32_mean 21.9 ns 21.9 ns 4
lstringa<16> copy{str_with_len_N};/32_median 21.8 ns 21.8 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 0.650 ns 0.650 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 2.97 % 2.97 % 4
lstringa<16> copy{str_with_len_N};/64_mean 23.1 ns 23.1 ns 4
lstringa<16> copy{str_with_len_N};/64_median 22.9 ns 22.9 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 0.476 ns 0.476 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 2.06 % 2.06 % 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.8 ns 25.8 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 0.666 ns 0.666 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 2.59 % 2.59 % 4
lstringa<16> copy{str_with_len_N};/256_mean 24.8 ns 24.8 ns 4
lstringa<16> copy{str_with_len_N};/256_median 24.7 ns 24.7 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 0.339 ns 0.339 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 27.7 ns 27.7 ns 4
lstringa<16> copy{str_with_len_N};/512_median 27.7 ns 27.7 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 0.248 ns 0.248 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 0.90 % 0.90 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 78.4 ns 78.4 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 87.3 ns 87.3 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 19.5 ns 19.5 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 24.87 % 24.87 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 73.4 ns 73.4 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 76.1 ns 76.1 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 6.12 ns 6.12 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 8.34 % 8.34 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 88.6 ns 88.6 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 88.9 ns 88.9 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 0.993 ns 0.993 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 1.12 % 1.12 % 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.14 ns 1.14 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.008 ns 0.008 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 0.74 % 0.74 % 4
lstringa<512> copy{str_with_len_N};/16_mean 4.98 ns 4.98 ns 4
lstringa<512> copy{str_with_len_N};/16_median 4.96 ns 4.96 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.149 ns 0.149 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 3.00 % 3.00 % 4
lstringa<512> copy{str_with_len_N};/23_mean 5.01 ns 5.01 ns 4
lstringa<512> copy{str_with_len_N};/23_median 5.02 ns 5.02 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.121 ns 0.120 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 2.41 % 2.40 % 4
lstringa<512> copy{str_with_len_N};/24_mean 4.59 ns 4.59 ns 4
lstringa<512> copy{str_with_len_N};/24_median 4.59 ns 4.59 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.088 ns 0.088 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 1.92 % 1.92 % 4
lstringa<512> copy{str_with_len_N};/32_mean 4.64 ns 4.64 ns 4
lstringa<512> copy{str_with_len_N};/32_median 4.64 ns 4.64 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.075 ns 0.075 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 1.61 % 1.61 % 4
lstringa<512> copy{str_with_len_N};/64_mean 6.06 ns 6.06 ns 4
lstringa<512> copy{str_with_len_N};/64_median 6.10 ns 6.10 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.122 ns 0.122 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 2.01 % 2.01 % 4
lstringa<512> copy{str_with_len_N};/128_mean 6.63 ns 6.63 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.128 ns 0.128 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 1.93 % 1.93 % 4
lstringa<512> copy{str_with_len_N};/256_mean 17.3 ns 17.3 ns 4
lstringa<512> copy{str_with_len_N};/256_median 17.3 ns 17.3 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.252 ns 0.252 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 1.45 % 1.45 % 4
lstringa<512> copy{str_with_len_N};/512_mean 10.6 ns 10.6 ns 4
lstringa<512> copy{str_with_len_N};/512_median 10.6 ns 10.6 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.094 ns 0.094 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 0.88 % 0.88 % 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 52.0 ns 52.0 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 1.85 ns 1.85 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 3.55 % 3.55 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 73.6 ns 73.6 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 76.5 ns 76.5 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 8.36 ns 8.36 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 11.35 % 11.35 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 90.1 ns 90.1 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 90.3 ns 90.3 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 0.860 ns 0.860 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 0.95 % 0.95 % 4
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 27.4 ns 27.4 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.5 ns 27.5 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.390 ns 0.390 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.42 % 1.42 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 17.5 ns 17.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 17.6 ns 17.6 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.354 ns 0.354 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.02 % 2.02 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.48 ns 9.48 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.50 ns 9.50 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.135 ns 0.135 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.42 % 1.42 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.76 ns 9.76 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.80 ns 9.80 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.135 ns 0.135 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.38 % 1.38 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.51 ns 9.51 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.53 ns 9.53 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.042 ns 0.042 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.44 % 0.44 % 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.4 ns 24.4 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.3 ns 24.3 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.490 ns 0.490 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.01 % 2.01 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 22.0 ns 22.0 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 22.2 ns 22.2 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.697 ns 0.697 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.17 % 3.17 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.28 ns 8.28 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.15 ns 8.15 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.363 ns 0.363 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.38 % 4.38 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.65 ns 7.65 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.63 ns 7.63 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.109 ns 0.109 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.43 % 1.43 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.84 ns 7.84 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.87 ns 7.87 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.130 ns 0.130 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.66 % 1.66 % 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.4 ns 29.4 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.3 ns 29.3 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.371 ns 0.371 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.26 % 1.26 % 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.079 ns 0.079 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 0.70 % 0.70 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 13.2 ns 13.2 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.292 ns 0.292 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.21 % 2.21 % 4
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 65.8 ns 65.8 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 65.6 ns 65.6 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.998 ns 0.998 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.52 % 1.52 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented'
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented'
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented'
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented'
ssa s = "1234.567e10"; double res = *s.to_double()_mean 34.8 ns 34.8 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 34.7 ns 34.7 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.864 ns 0.864 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.48 % 2.48 % 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 2080 ns 2080 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 2077 ns 2077 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.9 ns 35.9 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.72 % 1.72 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 416 ns 416 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 416 ns 416 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 18.5 ns 18.5 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 4.45 % 4.45 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 362 ns 362 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 362 ns 362 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.73 ns 3.73 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.03 % 1.03 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 245 ns 245 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 248 ns 248 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 19.5 ns 19.5 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 7.96 % 7.96 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 217 ns 217 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 222 ns 222 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.2 ns 16.2 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.49 % 7.49 % 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.48 ns 1.48 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.09 % 1.08 % 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 2037 ns 2037 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 2042 ns 2042 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 54.5 ns 54.5 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.68 % 2.67 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1253 ns 1253 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1255 ns 1255 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.7 ns 17.7 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.41 % 1.41 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 401 ns 401 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 406 ns 406 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.1 ns 23.1 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.75 % 5.75 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 335 ns 335 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 346 ns 346 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 24.4 ns 24.4 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.29 % 7.29 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 291 ns 291 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 297 ns 297 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.8 ns 18.8 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.47 % 6.47 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 214 ns 214 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 214 ns 214 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 1.16 ns 1.16 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.54 % 0.54 % 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 159733 ns 159734 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 158296 ns 158296 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6342 ns 6342 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.97 % 3.97 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 104710 ns 104710 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 104630 ns 104630 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1116 ns 1116 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.07 % 1.07 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49815 ns 49815 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 49890 ns 49891 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 327 ns 327 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.66 % 0.66 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 27270 ns 27270 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 27160 ns 27160 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 903 ns 903 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.31 % 3.31 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16860 ns 16860 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16838 ns 16838 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 204 ns 204 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.21 % 1.21 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16899 ns 16899 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16878 ns 16878 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 88.6 ns 88.6 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.52 % 0.52 % 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 2073 ns 2073 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 2050 ns 2050 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 66.2 ns 66.2 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 3.19 % 3.19 % 4
std::string str; ... str += str_var1 + str_var2;_mean 1492 ns 1492 ns 4
std::string str; ... str += str_var1 + str_var2;_median 1494 ns 1494 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 29.6 ns 29.6 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 1.98 % 1.98 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 476 ns 476 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 480 ns 480 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 20.4 ns 20.4 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.29 % 4.29 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 448 ns 448 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 460 ns 460 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 27.7 ns 27.7 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.18 % 6.18 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 379 ns 379 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 385 ns 385 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 13.8 ns 13.8 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.63 % 3.63 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 298 ns 298 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 296 ns 296 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.34 ns 4.34 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.46 % 1.46 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 3419 ns 3419 ns 4
std::stringstream str; str << "test = " << k << " times";_median 3420 ns 3420 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 78.3 ns 78.3 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 2.29 % 2.29 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 474 ns 474 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 477 ns 477 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 9.20 ns 9.20 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 1.94 % 1.94 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1229 ns 1229 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1226 ns 1226 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 15.9 ns 15.9 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.29 % 1.29 % 4
std::string str = std::format("test = {} times", k);_mean 959 ns 959 ns 4
std::string str = std::format("test = {} times", k);_median 955 ns 955 ns 4
std::string str = std::format("test = {} times", k);_stddev 9.35 ns 9.35 ns 4
std::string str = std::format("test = {} times", k);_cv 0.97 % 0.97 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 2002 ns 2002 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 2000 ns 2000 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 27.3 ns 27.3 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 1.37 % 1.37 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 1745 ns 1745 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 1743 ns 1743 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 33.1 ns 33.1 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 1.90 % 1.90 % 4
lstringa<8> str = "test = " + k + " times";_mean 263 ns 263 ns 4
lstringa<8> str = "test = " + k + " times";_median 264 ns 264 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 5.32 ns 5.32 ns 4
lstringa<8> str = "test = " + k + " times";_cv 2.02 % 2.02 % 4
lstringa<32> str = "test = " + k + " times";_mean 119 ns 119 ns 4
lstringa<32> str = "test = " + k + " times";_median 119 ns 119 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 1.45 ns 1.45 ns 4
lstringa<32> str = "test = " + k + " times";_cv 1.22 % 1.22 % 4
stringa str = "test = " + k + " times";_mean 118 ns 118 ns 4
stringa str = "test = " + k + " times";_median 118 ns 118 ns 4
stringa str = "test = " + k + " times";_stddev 0.943 ns 0.943 ns 4
stringa str = "test = " + k + " times";_cv 0.80 % 0.80 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 277 ns 277 ns 4
std::string::find + substr + std::strtol_median 276 ns 276 ns 4
std::string::find + substr + std::strtol_stddev 2.54 ns 2.54 ns 4
std::string::find + substr + std::strtol_cv 0.92 % 0.92 % 4
ssa::splitter + ssa::as_int_mean 159 ns 159 ns 4
ssa::splitter + ssa::as_int_median 159 ns 159 ns 4
ssa::splitter + ssa::as_int_stddev 3.14 ns 3.14 ns 4
ssa::splitter + ssa::as_int_cv 1.97 % 1.97 % 4
ssa::splitf + functor_mean 213 ns 213 ns 4
ssa::splitf + functor_median 212 ns 212 ns 4
ssa::splitf + functor_stddev 8.20 ns 8.20 ns 4
ssa::splitf + functor_cv 3.84 % 3.84 % 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 916 ns 916 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 909 ns 909 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 27.2 ns 27.2 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 2.97 % 2.97 % 4
replace symbols with std::string find_first_of + replace_mean 2428 ns 2428 ns 4
replace symbols with std::string find_first_of + replace_median 2432 ns 2432 ns 4
replace symbols with std::string find_first_of + replace_stddev 22.9 ns 22.9 ns 4
replace symbols with std::string find_first_of + replace_cv 0.94 % 0.94 % 4
replace symbols with std::string_view find_first_of + copy_mean 1026 ns 1026 ns 4
replace symbols with std::string_view find_first_of + copy_median 1018 ns 1018 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 22.2 ns 22.2 ns 4
replace symbols with std::string_view find_first_of + copy_cv 2.16 % 2.16 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1408 ns 1408 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1410 ns 1410 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 14.7 ns 14.7 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 1.04 % 1.04 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1083 ns 1083 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1076 ns 1076 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 17.0 ns 17.0 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 1.57 % 1.57 % 4
replace const symbols with string expressions and without remembering all search results_mean 1128 ns 1128 ns 4
replace const symbols with string expressions and without remembering all search results_median 1130 ns 1130 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 7.02 ns 7.02 ns 4
replace const symbols with string expressions and without remembering all search results_cv 0.62 % 0.62 % 4
replace const symbols with string expressions and memorization of all search results_mean 820 ns 820 ns 4
replace const symbols with string expressions and memorization of all search results_median 812 ns 812 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 23.0 ns 23.0 ns 4
replace const symbols with string expressions and memorization of all search results_cv 2.81 % 2.81 % 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 177 ns 177 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 177 ns 177 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 0.976 ns 0.976 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 0.55 % 0.55 % 4
Short replace symbols with std::string find_first_of + replace_mean 324 ns 324 ns 4
Short replace symbols with std::string find_first_of + replace_median 325 ns 325 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 4.96 ns 4.96 ns 4
Short replace symbols with std::string find_first_of + replace_cv 1.53 % 1.53 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 141 ns 141 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 139 ns 139 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 4.79 ns 4.79 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 3.41 % 3.41 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 198 ns 198 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 197 ns 197 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.51 ns 6.51 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 3.29 % 3.29 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 186 ns 186 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 186 ns 186 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 2.39 ns 2.39 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 1.28 % 1.28 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 126 ns 126 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 126 ns 126 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 1.64 ns 1.64 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 1.30 % 1.30 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 136 ns 136 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 136 ns 136 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 2.88 ns 2.88 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 2.12 % 2.12 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 180 ns 180 ns 4
replace bb to ---- in std::string|64_median 181 ns 181 ns 4
replace bb to ---- in std::string|64_stddev 5.27 ns 5.27 ns 4
replace bb to ---- in std::string|64_cv 2.93 % 2.93 % 4
replace bb to ---- in std::string|256_mean 842 ns 842 ns 4
replace bb to ---- in std::string|256_median 844 ns 844 ns 4
replace bb to ---- in std::string|256_stddev 12.7 ns 12.7 ns 4
replace bb to ---- in std::string|256_cv 1.50 % 1.50 % 4
replace bb to ---- in std::string|512_mean 1259 ns 1259 ns 4
replace bb to ---- in std::string|512_median 1269 ns 1269 ns 4
replace bb to ---- in std::string|512_stddev 30.9 ns 30.9 ns 4
replace bb to ---- in std::string|512_cv 2.45 % 2.45 % 4
replace bb to ---- in std::string|1024_mean 2422 ns 2422 ns 4
replace bb to ---- in std::string|1024_median 2423 ns 2423 ns 4
replace bb to ---- in std::string|1024_stddev 19.3 ns 19.3 ns 4
replace bb to ---- in std::string|1024_cv 0.80 % 0.80 % 4
replace bb to ---- in std::string|2048_mean 6347 ns 6347 ns 4
replace bb to ---- in std::string|2048_median 6403 ns 6403 ns 4
replace bb to ---- in std::string|2048_stddev 221 ns 221 ns 4
replace bb to ---- in std::string|2048_cv 3.48 % 3.48 % 4
replace bb to ---- in lstringa<8>|64_mean 129 ns 129 ns 4
replace bb to ---- in lstringa<8>|64_median 129 ns 129 ns 4
replace bb to ---- in lstringa<8>|64_stddev 3.09 ns 3.09 ns 4
replace bb to ---- in lstringa<8>|64_cv 2.39 % 2.39 % 4
replace bb to ---- in lstringa<8>|256_mean 444 ns 444 ns 4
replace bb to ---- in lstringa<8>|256_median 444 ns 444 ns 4
replace bb to ---- in lstringa<8>|256_stddev 12.1 ns 12.1 ns 4
replace bb to ---- in lstringa<8>|256_cv 2.73 % 2.73 % 4
replace bb to ---- in lstringa<8>|512_mean 828 ns 828 ns 4
replace bb to ---- in lstringa<8>|512_median 825 ns 825 ns 4
replace bb to ---- in lstringa<8>|512_stddev 23.9 ns 23.9 ns 4
replace bb to ---- in lstringa<8>|512_cv 2.89 % 2.89 % 4
replace bb to ---- in lstringa<8>|1024_mean 1614 ns 1614 ns 4
replace bb to ---- in lstringa<8>|1024_median 1611 ns 1611 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 19.6 ns 19.6 ns 4
replace bb to ---- in lstringa<8>|1024_cv 1.21 % 1.21 % 4
replace bb to ---- in lstringa<8>|2048_mean 3127 ns 3127 ns 4
replace bb to ---- in lstringa<8>|2048_median 3109 ns 3109 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 54.0 ns 54.0 ns 4
replace bb to ---- in lstringa<8>|2048_cv 1.73 % 1.73 % 4
replace bb to ---- by init stringa|64_mean 90.9 ns 90.9 ns 4
replace bb to ---- by init stringa|64_median 91.5 ns 91.5 ns 4
replace bb to ---- by init stringa|64_stddev 2.07 ns 2.07 ns 4
replace bb to ---- by init stringa|64_cv 2.28 % 2.28 % 4
replace bb to ---- by init stringa|256_mean 308 ns 308 ns 4
replace bb to ---- by init stringa|256_median 309 ns 309 ns 4
replace bb to ---- by init stringa|256_stddev 3.01 ns 3.01 ns 4
replace bb to ---- by init stringa|256_cv 0.98 % 0.98 % 4
replace bb to ---- by init stringa|512_mean 709 ns 709 ns 4
replace bb to ---- by init stringa|512_median 709 ns 709 ns 4
replace bb to ---- by init stringa|512_stddev 3.56 ns 3.56 ns 4
replace bb to ---- by init stringa|512_cv 0.50 % 0.50 % 4
replace bb to ---- by init stringa|1024_mean 1392 ns 1392 ns 4
replace bb to ---- by init stringa|1024_median 1391 ns 1391 ns 4
replace bb to ---- by init stringa|1024_stddev 5.76 ns 5.76 ns 4
replace bb to ---- by init stringa|1024_cv 0.41 % 0.41 % 4
replace bb to ---- by init stringa|2048_mean 2810 ns 2810 ns 4
replace bb to ---- by init stringa|2048_median 2815 ns 2815 ns 4
replace bb to ---- by init stringa|2048_stddev 36.4 ns 36.4 ns 4
replace bb to ---- by init stringa|2048_cv 1.29 % 1.29 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 130 ns 130 ns 4
replace bb to -- in std::string|64_median 129 ns 129 ns 4
replace bb to -- in std::string|64_stddev 2.30 ns 2.30 ns 4
replace bb to -- in std::string|64_cv 1.77 % 1.77 % 4
replace bb to -- in std::string|256_mean 427 ns 427 ns 4
replace bb to -- in std::string|256_median 429 ns 429 ns 4
replace bb to -- in std::string|256_stddev 6.83 ns 6.83 ns 4
replace bb to -- in std::string|256_cv 1.60 % 1.60 % 4
replace bb to -- in std::string|512_mean 851 ns 851 ns 4
replace bb to -- in std::string|512_median 849 ns 849 ns 4
replace bb to -- in std::string|512_stddev 11.5 ns 11.5 ns 4
replace bb to -- in std::string|512_cv 1.35 % 1.35 % 4
replace bb to -- in std::string|1024_mean 1603 ns 1603 ns 4
replace bb to -- in std::string|1024_median 1613 ns 1613 ns 4
replace bb to -- in std::string|1024_stddev 35.0 ns 35.0 ns 4
replace bb to -- in std::string|1024_cv 2.18 % 2.18 % 4
replace bb to -- in std::string|2048_mean 3230 ns 3230 ns 4
replace bb to -- in std::string|2048_median 3217 ns 3217 ns 4
replace bb to -- in std::string|2048_stddev 41.6 ns 41.6 ns 4
replace bb to -- in std::string|2048_cv 1.29 % 1.29 % 4
replace bb to -- in lstringa<8>|64_mean 90.8 ns 90.8 ns 4
replace bb to -- in lstringa<8>|64_median 91.5 ns 91.5 ns 4
replace bb to -- in lstringa<8>|64_stddev 1.56 ns 1.56 ns 4
replace bb to -- in lstringa<8>|64_cv 1.72 % 1.72 % 4
replace bb to -- in lstringa<8>|256_mean 294 ns 294 ns 4
replace bb to -- in lstringa<8>|256_median 294 ns 294 ns 4
replace bb to -- in lstringa<8>|256_stddev 5.26 ns 5.26 ns 4
replace bb to -- in lstringa<8>|256_cv 1.79 % 1.79 % 4
replace bb to -- in lstringa<8>|512_mean 551 ns 551 ns 4
replace bb to -- in lstringa<8>|512_median 555 ns 555 ns 4
replace bb to -- in lstringa<8>|512_stddev 9.79 ns 9.78 ns 4
replace bb to -- in lstringa<8>|512_cv 1.78 % 1.78 % 4
replace bb to -- in lstringa<8>|1024_mean 1066 ns 1066 ns 4
replace bb to -- in lstringa<8>|1024_median 1071 ns 1071 ns 4
replace bb to -- in lstringa<8>|1024_stddev 18.1 ns 18.1 ns 4
replace bb to -- in lstringa<8>|1024_cv 1.70 % 1.70 % 4
replace bb to -- in lstringa<8>|2048_mean 2242 ns 2242 ns 4
replace bb to -- in lstringa<8>|2048_median 2197 ns 2197 ns 4
replace bb to -- in lstringa<8>|2048_stddev 132 ns 132 ns 4
replace bb to -- in lstringa<8>|2048_cv 5.90 % 5.90 % 4
replace bb to -- by init stringa|64_mean 83.0 ns 83.0 ns 4
replace bb to -- by init stringa|64_median 81.6 ns 81.6 ns 4
replace bb to -- by init stringa|64_stddev 4.12 ns 4.12 ns 4
replace bb to -- by init stringa|64_cv 4.96 % 4.96 % 4
replace bb to -- by init stringa|256_mean 237 ns 237 ns 4
replace bb to -- by init stringa|256_median 236 ns 236 ns 4
replace bb to -- by init stringa|256_stddev 4.04 ns 4.04 ns 4
replace bb to -- by init stringa|256_cv 1.70 % 1.70 % 4
replace bb to -- by init stringa|512_mean 435 ns 435 ns 4
replace bb to -- by init stringa|512_median 435 ns 435 ns 4
replace bb to -- by init stringa|512_stddev 5.95 ns 5.95 ns 4
replace bb to -- by init stringa|512_cv 1.37 % 1.37 % 4
replace bb to -- by init stringa|1024_mean 851 ns 851 ns 4
replace bb to -- by init stringa|1024_median 846 ns 846 ns 4
replace bb to -- by init stringa|1024_stddev 18.7 ns 18.7 ns 4
replace bb to -- by init stringa|1024_cv 2.20 % 2.20 % 4
replace bb to -- by init stringa|2048_mean 1658 ns 1658 ns 4
replace bb to -- by init stringa|2048_median 1652 ns 1652 ns 4
replace bb to -- by init stringa|2048_stddev 28.9 ns 28.9 ns 4
replace bb to -- by init stringa|2048_cv 1.74 % 1.74 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3780026 ns 3780035 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3764708 ns 3764717 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 108428 ns 108427 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 2.87 % 2.87 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3706958 ns 3706967 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3712805 ns 3712816 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 32417 ns 32419 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 0.87 % 0.87 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3815600 ns 3815610 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3818146 ns 3818155 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 36526 ns 36523 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 0.96 % 0.96 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4134155 ns 4134170 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4133427 ns 4133445 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 54010 ns 54012 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.31 % 1.31 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 1021 ns 1021 ns 4
Build func full name std::string;_median 1018 ns 1018 ns 4
Build func full name std::string;_stddev 20.5 ns 20.5 ns 4
Build func full name std::string;_cv 2.01 % 2.01 % 4
Build func full name std::string 1;_mean 1021 ns 1021 ns 4
Build func full name std::string 1;_median 1019 ns 1019 ns 4
Build func full name std::string 1;_stddev 26.5 ns 26.5 ns 4
Build func full name std::string 1;_cv 2.60 % 2.60 % 4
Build func full name std::stream;_mean 2984 ns 2984 ns 4
Build func full name std::stream;_median 2987 ns 2987 ns 4
Build func full name std::stream;_stddev 37.7 ns 37.7 ns 4
Build func full name std::stream;_cv 1.26 % 1.26 % 4
Build func full name stringa;_mean 471 ns 471 ns 4
Build func full name stringa;_median 470 ns 470 ns 4
Build func full name stringa;_stddev 4.83 ns 4.83 ns 4
Build func full name stringa;_cv 1.02 % 1.02 % 4
Build func full name stringa 1;_mean 648 ns 648 ns 4
Build func full name stringa 1;_median 651 ns 651 ns 4
Build func full name stringa 1;_stddev 9.87 ns 9.87 ns 4
Build func full name stringa 1;_cv 1.52 % 1.52 % 4
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
To upper case std::wstring_mean 175 ns 175 ns 4
To upper case std::wstring_median 177 ns 177 ns 4
To upper case std::wstring_stddev 3.99 ns 3.99 ns 4
To upper case std::wstring_cv 2.28 % 2.28 % 4
To upper case lstringw<15>_mean 38.5 ns 38.5 ns 4
To upper case lstringw<15>_median 38.5 ns 38.5 ns 4
To upper case lstringw<15>_stddev 1.33 ns 1.33 ns 4
To upper case lstringw<15>_cv 3.44 % 3.44 % 4