simstr/bench/results/002-Xeon E5-2682 v4, Window...

975 lines
144 KiB
Plaintext

Benchmarks of simstr, version 1.6.7
Sources: https://github.com/orefkov/simstr
Results: https://orefkov.github.io/simstr/results.html
2026-02-14T11:03:52+03:00
Running benchStr.exe
Run on (32 X 2494 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)
--------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat email std::format_mean 203 ns 203 ns 4
Concat email std::format_median 202 ns 201 ns 4
Concat email std::format_stddev 5.59 ns 4.19 ns 4
Concat email std::format_cv 2.75 % 2.06 % 4
Concat email std::stringstream_mean 792 ns 795 ns 4
Concat email std::stringstream_median 794 ns 788 ns 4
Concat email std::stringstream_stddev 19.8 ns 19.7 ns 4
Concat email std::stringstream_cv 2.51 % 2.48 % 4
Concat email stringzilla append_mean 268 ns 266 ns 4
Concat email stringzilla append_median 267 ns 268 ns 4
Concat email stringzilla append_stddev 6.46 ns 11.5 ns 4
Concat email stringzilla append_cv 2.41 % 4.32 % 4
Concat email stringzilla concat_mean 126 ns 126 ns 4
Concat email stringzilla concat_median 126 ns 126 ns 4
Concat email stringzilla concat_stddev 1.04 ns 1.40 ns 4
Concat email stringzilla concat_cv 0.83 % 1.10 % 4
Concat email std::string append_mean 189 ns 189 ns 4
Concat email std::string append_median 187 ns 188 ns 4
Concat email std::string append_stddev 8.95 ns 8.63 ns 4
Concat email std::string append_cv 4.73 % 4.56 % 4
Concat email std::string by strexpr_mean 108 ns 107 ns 4
Concat email std::string by strexpr_median 107 ns 107 ns 4
Concat email std::string by strexpr_stddev 5.11 ns 4.46 ns 4
Concat email std::string by strexpr_cv 4.75 % 4.15 % 4
Concat email stringa_mean 92.7 ns 92.1 ns 4
Concat email stringa_median 91.9 ns 92.1 ns 4
Concat email stringa_stddev 2.35 ns 3.42 ns 4
Concat email stringa_cv 2.54 % 3.71 % 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 273 ns 273 ns 4
Concat std::string and number by std to std::string_median 273 ns 273 ns 4
Concat std::string and number by std to std::string_stddev 3.27 ns 4.84 ns 4
Concat std::string and number by std to std::string_cv 1.20 % 1.77 % 4
Concat std::string and number by StrExpr to std::string_mean 152 ns 151 ns 4
Concat std::string and number by StrExpr to std::string_median 152 ns 151 ns 4
Concat std::string and number by StrExpr to std::string_stddev 3.63 ns 3.95 ns 4
Concat std::string and number by StrExpr to std::string_cv 2.39 % 2.61 % 4
Concat stringa and number by StrExpr to simstr::stringa_mean 70.1 ns 69.8 ns 4
Concat stringa and number by StrExpr to simstr::stringa_median 70.2 ns 70.5 ns 4
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.78 ns 3.01 ns 4
Concat stringa and number by StrExpr to simstr::stringa_cv 3.97 % 4.32 % 4
Concat stringa and number by e_concat to simstr::stringa_mean 74.4 ns 74.6 ns 4
Concat stringa and number by e_concat to simstr::stringa_median 75.3 ns 75.0 ns 4
Concat stringa and number by e_concat to simstr::stringa_stddev 2.15 ns 2.19 ns 4
Concat stringa and number by e_concat to simstr::stringa_cv 2.89 % 2.94 % 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 705 ns 706 ns 4
Concat std::string and format hex number and literal to std::string_median 708 ns 706 ns 4
Concat std::string and format hex number and literal to std::string_stddev 11.7 ns 10.1 ns 4
Concat std::string and format hex number and literal to std::string_cv 1.65 % 1.43 % 4
std::format std::string and hex number by literal to std::string_mean 1462 ns 1465 ns 4
std::format std::string and hex number by literal to std::string_median 1453 ns 1447 ns 4
std::format std::string and hex number by literal to std::string_stddev 42.2 ns 49.3 ns 4
std::format std::string and hex number by literal to std::string_cv 2.89 % 3.37 % 4
Concat std::string and std::to_chars and string to std::string_mean 189 ns 189 ns 4
Concat std::string and std::to_chars and string to std::string_median 189 ns 188 ns 4
Concat std::string and std::to_chars and string to std::string_stddev 5.14 ns 6.28 ns 4
Concat std::string and std::to_chars and string to std::string_cv 2.71 % 3.31 % 4
Concat std::string and hex number and literal by StrExpr to std::string_mean 87.4 ns 87.6 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_median 87.7 ns 88.1 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.32 ns 1.67 ns 4
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.51 % 1.91 % 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 77.7 ns 77.2 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 73.8 ns 73.2 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 9.46 ns 9.16 ns 4
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 12.17 % 11.87 % 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 76.3 ns 76.7 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 76.2 ns 76.7 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.98 ns 2.01 ns 4
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.59 % 2.62 % 4
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 152 ns 151 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_median 152 ns 152 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.08 ns 3.34 ns 4
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.36 % 2.21 % 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 279 ns 279 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 278 ns 279 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.89 ns 13.1 ns 4
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 3.19 % 4.68 % 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 660 ns 656 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 654 ns 656 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 17.1 ns 22.8 ns 4
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.59 % 3.47 % 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 778 ns 776 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 773 ns 767 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 24.5 ns 30.2 ns 4
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 3.15 % 3.89 % 4
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1061 ns 1062 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_median 1068 ns 1062 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 26.9 ns 31.5 ns 4
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.53 % 2.97 % 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1404 ns 1405 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1405 ns 1413 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 44.2 ns 47.1 ns 4
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.15 % 3.35 % 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1355 ns 1346 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1352 ns 1353 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 27.2 ns 47.7 ns 4
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.01 % 3.54 % 4
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1542 ns 1543 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1540 ns 1552 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 29.8 ns 33.4 ns 4
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.93 % 2.16 % 4
std::vformat(pattern, std::make_format_args(i))_mean 1549 ns 1543 ns 4
std::vformat(pattern, std::make_format_args(i))_median 1539 ns 1535 ns 4
std::vformat(pattern, std::make_format_args(i))_stddev 31.6 ns 43.9 ns 4
std::vformat(pattern, std::make_format_args(i))_cv 2.04 % 2.84 % 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6785 ns 6801 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6807 ns 6836 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 182 ns 176 ns 4
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.69 % 2.58 % 4
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat std::string by std to std::string_mean 41.5 ns 41.5 ns 4
Concat std::string by std to std::string_median 41.3 ns 41.3 ns 4
Concat std::string by std to std::string_stddev 1.69 ns 1.55 ns 4
Concat std::string by std to std::string_cv 4.07 % 3.73 % 4
Concat std::string by StrExpr to std::string_mean 38.6 ns 38.1 ns 4
Concat std::string by StrExpr to std::string_median 38.6 ns 38.1 ns 4
Concat std::string by StrExpr to std::string_stddev 1.19 ns 0.740 ns 4
Concat std::string by StrExpr to std::string_cv 3.08 % 1.94 % 4
Concat stringa by StrExpr to stringa_mean 28.7 ns 28.6 ns 4
Concat stringa by StrExpr to stringa_median 28.7 ns 28.9 ns 4
Concat stringa by StrExpr to stringa_stddev 0.410 ns 0.628 ns 4
Concat stringa by StrExpr to stringa_cv 1.43 % 2.20 % 4
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Find concat three std::string_mean 205 ns 205 ns 4
Find concat three std::string_median 204 ns 204 ns 4
Find concat three std::string_stddev 2.80 ns 2.27 ns 4
Find concat three std::string_cv 1.36 % 1.10 % 4
Find concat three strexpr_mean 118 ns 118 ns 4
Find concat three strexpr_median 118 ns 118 ns 4
Find concat three strexpr_stddev 1.98 ns 2.34 ns 4
Find concat three strexpr_cv 1.68 % 1.98 % 4
Find concat three simstr_mean 27.2 ns 27.3 ns 4
Find concat three simstr_median 27.3 ns 27.3 ns 4
Find concat three simstr_stddev 0.267 ns 0.362 ns 4
Find concat three simstr_cv 0.98 % 1.33 % 4
Find concat three stringzilla string_mean 215 ns 214 ns 4
Find concat three stringzilla string_median 215 ns 212 ns 4
Find concat three stringzilla string_stddev 6.28 ns 4.67 ns 4
Find concat three stringzilla string_cv 2.92 % 2.19 % 4
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
BuildTypeNameStr 0/0_mean 8.48 ns 8.50 ns 4
BuildTypeNameStr 0/0_median 8.34 ns 8.28 ns 4
BuildTypeNameStr 0/0_stddev 0.433 ns 0.501 ns 4
BuildTypeNameStr 0/0_cv 5.11 % 5.89 % 4
BuildTypeNameExp 0/0_mean 7.64 ns 7.64 ns 4
BuildTypeNameExp 0/0_median 7.48 ns 7.53 ns 4
BuildTypeNameExp 0/0_stddev 0.470 ns 0.432 ns 4
BuildTypeNameExp 0/0_cv 6.15 % 5.65 % 4
BuildTypeNameSim 0/0_mean 7.75 ns 7.72 ns 4
BuildTypeNameSim 0/0_median 7.73 ns 7.67 ns 4
BuildTypeNameSim 0/0_stddev 0.190 ns 0.219 ns 4
BuildTypeNameSim 0/0_cv 2.45 % 2.84 % 4
BuildTypeNameStr 10/10_mean 59.6 ns 59.8 ns 4
BuildTypeNameStr 10/10_median 59.9 ns 60.2 ns 4
BuildTypeNameStr 10/10_stddev 1.68 ns 1.50 ns 4
BuildTypeNameStr 10/10_cv 2.82 % 2.50 % 4
BuildTypeNameExp 10/10_mean 33.3 ns 33.2 ns 4
BuildTypeNameExp 10/10_median 33.6 ns 33.4 ns 4
BuildTypeNameExp 10/10_stddev 0.948 ns 1.31 ns 4
BuildTypeNameExp 10/10_cv 2.85 % 3.95 % 4
BuildTypeNameSim 10/10_mean 25.6 ns 25.6 ns 4
BuildTypeNameSim 10/10_median 25.5 ns 25.6 ns 4
BuildTypeNameSim 10/10_stddev 0.498 ns 0.604 ns 4
BuildTypeNameSim 10/10_cv 1.94 % 2.36 % 4
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
Concat with replace str_mean 308 ns 305 ns 4
Concat with replace str_median 306 ns 303 ns 4
Concat with replace str_stddev 5.60 ns 7.35 ns 4
Concat with replace str_cv 1.82 % 2.41 % 4
Concat with replace exp_mean 222 ns 222 ns 4
Concat with replace exp_median 220 ns 220 ns 4
Concat with replace exp_stddev 12.9 ns 12.3 ns 4
Concat with replace exp_cv 5.81 % 5.53 % 4
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 1.14 ns 1.14 ns 4
std::string e;_median 1.12 ns 1.12 ns 4
std::string e;_stddev 0.062 ns 0.054 ns 4
std::string e;_cv 5.40 % 4.74 % 4
std::string_view e;_mean 0.372 ns 0.372 ns 4
std::string_view e;_median 0.377 ns 0.377 ns 4
std::string_view e;_stddev 0.016 ns 0.014 ns 4
std::string_view e;_cv 4.26 % 3.89 % 4
ssa e;_mean 0.359 ns 0.357 ns 4
ssa e;_median 0.359 ns 0.357 ns 4
ssa e;_stddev 0.007 ns 0.010 ns 4
ssa e;_cv 1.97 % 2.90 % 4
stringa e;_mean 0.736 ns 0.737 ns 4
stringa e;_median 0.734 ns 0.732 ns 4
stringa e;_stddev 0.017 ns 0.026 ns 4
stringa e;_cv 2.24 % 3.55 % 4
lstringa<20> e;_mean 1.11 ns 1.11 ns 4
lstringa<20> e;_median 1.11 ns 1.12 ns 4
lstringa<20> e;_stddev 0.020 ns 0.014 ns 4
lstringa<20> e;_cv 1.75 % 1.26 % 4
lstringa<40> e;_mean 1.10 ns 1.10 ns 4
lstringa<40> e;_median 1.11 ns 1.10 ns 4
lstringa<40> e;_stddev 0.021 ns 0.012 ns 4
lstringa<40> e;_cv 1.91 % 1.10 % 4
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 1.81 ns 1.81 ns 4
std::string e = "Test text";_median 1.81 ns 1.80 ns 4
std::string e = "Test text";_stddev 0.020 ns 0.058 ns 4
std::string e = "Test text";_cv 1.11 % 3.17 % 4
std::string_view e = "Test text";_mean 0.734 ns 0.736 ns 4
std::string_view e = "Test text";_median 0.728 ns 0.725 ns 4
std::string_view e = "Test text";_stddev 0.021 ns 0.021 ns 4
std::string_view e = "Test text";_cv 2.80 % 2.84 % 4
ssa e = "Test text";_mean 0.364 ns 0.364 ns 4
ssa e = "Test text";_median 0.363 ns 0.364 ns 4
ssa e = "Test text";_stddev 0.006 ns 0.005 ns 4
ssa e = "Test text";_cv 1.62 % 1.33 % 4
stringa e = "Test text";_mean 1.11 ns 1.11 ns 4
stringa e = "Test text";_median 1.11 ns 1.11 ns 4
stringa e = "Test text";_stddev 0.016 ns 0.014 ns 4
stringa e = "Test text";_cv 1.40 % 1.27 % 4
lstringa<20> e = "Test text";_mean 1.87 ns 1.87 ns 4
lstringa<20> e = "Test text";_median 1.87 ns 1.88 ns 4
lstringa<20> e = "Test text";_stddev 0.055 ns 0.048 ns 4
lstringa<20> e = "Test text";_cv 2.96 % 2.58 % 4
lstringa<40> e = "Test text";_mean 1.94 ns 1.93 ns 4
lstringa<40> e = "Test text";_median 1.92 ns 1.90 ns 4
lstringa<40> e = "Test text";_stddev 0.080 ns 0.059 ns 4
lstringa<40> e = "Test text";_cv 4.11 % 3.07 % 4
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 73.4 ns 73.2 ns 4
std::string e = "123456789012345678901234567890";_median 73.3 ns 73.2 ns 4
std::string e = "123456789012345678901234567890";_stddev 0.800 ns 0.000 ns 4
std::string e = "123456789012345678901234567890";_cv 1.09 % 0.00 % 4
std::string_view e = "123456789012345678901234567890";_mean 0.750 ns 0.750 ns 4
std::string_view e = "123456789012345678901234567890";_median 0.735 ns 0.732 ns 4
std::string_view e = "123456789012345678901234567890";_stddev 0.035 ns 0.040 ns 4
std::string_view e = "123456789012345678901234567890";_cv 4.65 % 5.34 % 4
ssa e = "123456789012345678901234567890";_mean 0.360 ns 0.361 ns 4
ssa e = "123456789012345678901234567890";_median 0.361 ns 0.361 ns 4
ssa e = "123456789012345678901234567890";_stddev 0.005 ns 0.007 ns 4
ssa e = "123456789012345678901234567890";_cv 1.33 % 1.81 % 4
stringa e = "123456789012345678901234567890";_mean 1.08 ns 1.07 ns 4
stringa e = "123456789012345678901234567890";_median 1.09 ns 1.07 ns 4
stringa e = "123456789012345678901234567890";_stddev 0.015 ns 0.010 ns 4
stringa e = "123456789012345678901234567890";_cv 1.41 % 0.98 % 4
lstringa<20> e = "123456789012345678901234567890";_mean 73.6 ns 73.2 ns 4
lstringa<20> e = "123456789012345678901234567890";_median 73.5 ns 73.2 ns 4
lstringa<20> e = "123456789012345678901234567890";_stddev 0.402 ns 1.42 ns 4
lstringa<20> e = "123456789012345678901234567890";_cv 0.55 % 1.94 % 4
lstringa<40> e = "123456789012345678901234567890";_mean 2.50 ns 2.48 ns 4
lstringa<40> e = "123456789012345678901234567890";_median 2.49 ns 2.48 ns 4
lstringa<40> e = "123456789012345678901234567890";_stddev 0.045 ns 0.032 ns 4
lstringa<40> e = "123456789012345678901234567890";_cv 1.80 % 1.30 % 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.82 ns 1.81 ns 4
std::string e = "Test text"; auto c{e};_median 1.81 ns 1.80 ns 4
std::string e = "Test text"; auto c{e};_stddev 0.013 ns 0.021 ns 4
std::string e = "Test text"; auto c{e};_cv 0.70 % 1.16 % 4
std::string_view e = "Test text"; auto c{e};_mean 0.363 ns 0.358 ns 4
std::string_view e = "Test text"; auto c{e};_median 0.362 ns 0.360 ns 4
std::string_view e = "Test text"; auto c{e};_stddev 0.005 ns 0.004 ns 4
std::string_view e = "Test text"; auto c{e};_cv 1.35 % 1.17 % 4
ssa e = "Test text"; auto c{e};_mean 0.366 ns 0.367 ns 4
ssa e = "Test text"; auto c{e};_median 0.366 ns 0.365 ns 4
ssa e = "Test text"; auto c{e};_stddev 0.005 ns 0.008 ns 4
ssa e = "Test text"; auto c{e};_cv 1.43 % 2.09 % 4
stringa e = "Test text"; auto c{e};_mean 1.28 ns 1.29 ns 4
stringa e = "Test text"; auto c{e};_median 1.28 ns 1.27 ns 4
stringa e = "Test text"; auto c{e};_stddev 0.028 ns 0.044 ns 4
stringa e = "Test text"; auto c{e};_cv 2.21 % 3.45 % 4
lstringa<20> e = "Test text"; auto c{e};_mean 1.50 ns 1.48 ns 4
lstringa<20> e = "Test text"; auto c{e};_median 1.50 ns 1.49 ns 4
lstringa<20> e = "Test text"; auto c{e};_stddev 0.020 ns 0.030 ns 4
lstringa<20> e = "Test text"; auto c{e};_cv 1.32 % 2.03 % 4
lstringa<40> e = "Test text"; auto c{e};_mean 1.47 ns 1.47 ns 4
lstringa<40> e = "Test text"; auto c{e};_median 1.47 ns 1.48 ns 4
lstringa<40> e = "Test text"; auto c{e};_stddev 0.044 ns 0.047 ns 4
lstringa<40> e = "Test text"; auto c{e};_cv 3.02 % 3.21 % 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 75.8 ns 75.9 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_median 76.6 ns 76.4 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.37 ns 2.00 ns 4
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.13 % 2.64 % 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.735 ns 0.737 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.738 ns 0.741 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.030 ns 4
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.40 % 4.04 % 4
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.361 ns 0.359 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.362 ns 0.357 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.007 ns 0.008 ns 4
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.85 % 2.14 % 4
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.82 ns 1.82 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.82 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.030 ns 0.050 ns 4
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.68 % 2.72 % 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 75.1 ns 75.0 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 74.9 ns 75.0 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.12 ns 1.42 ns 4
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.50 % 1.90 % 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.73 ns 4.71 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.71 ns 4.74 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.122 ns 0.176 ns 4
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.58 % 3.73 % 4
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
sz::string::find;_mean 98.8 ns 98.9 ns 4
sz::string::find;_median 97.9 ns 98.9 ns 4
sz::string::find;_stddev 2.01 ns 3.15 ns 4
sz::string::find;_cv 2.03 % 3.19 % 4
std::string::find;_mean 39.3 ns 39.2 ns 4
std::string::find;_median 39.3 ns 39.4 ns 4
std::string::find;_stddev 0.447 ns 0.868 ns 4
std::string::find;_cv 1.14 % 2.21 % 4
std::string_view::find;_mean 52.1 ns 52.0 ns 4
std::string_view::find;_median 52.0 ns 51.6 ns 4
std::string_view::find;_stddev 0.931 ns 0.781 ns 4
std::string_view::find;_cv 1.79 % 1.50 % 4
ssa::find;_mean 19.5 ns 19.4 ns 4
ssa::find;_median 19.5 ns 19.2 ns 4
ssa::find;_stddev 0.850 ns 0.735 ns 4
ssa::find;_cv 4.35 % 3.79 % 4
stringa::find;_mean 18.9 ns 18.9 ns 4
stringa::find;_median 18.7 ns 18.8 ns 4
stringa::find;_stddev 0.307 ns 0.434 ns 4
stringa::find;_cv 1.63 % 2.29 % 4
lstringa<20>::find;_mean 17.6 ns 17.6 ns 4
lstringa<20>::find;_median 17.6 ns 17.6 ns 4
lstringa<20>::find;_stddev 0.363 ns 0.192 ns 4
lstringa<20>::find;_cv 2.07 % 1.09 % 4
lstringa<40>::find;_mean 18.2 ns 18.1 ns 4
lstringa<40>::find;_median 18.2 ns 18.2 ns 4
lstringa<40>::find;_stddev 0.304 ns 0.367 ns 4
lstringa<40>::find;_cv 1.67 % 2.03 % 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.83 ns 1.83 ns 4
std::string copy{str_with_len_N};/15_median 1.83 ns 1.84 ns 4
std::string copy{str_with_len_N};/15_stddev 0.053 ns 0.058 ns 4
std::string copy{str_with_len_N};/15_cv 2.89 % 3.14 % 4
std::string copy{str_with_len_N};/16_mean 80.8 ns 80.6 ns 4
std::string copy{str_with_len_N};/16_median 77.5 ns 77.4 ns 4
std::string copy{str_with_len_N};/16_stddev 7.70 ns 7.76 ns 4
std::string copy{str_with_len_N};/16_cv 9.53 % 9.63 % 4
std::string copy{str_with_len_N};/23_mean 78.3 ns 78.1 ns 4
std::string copy{str_with_len_N};/23_median 78.5 ns 78.1 ns 4
std::string copy{str_with_len_N};/23_stddev 1.62 ns 1.61 ns 4
std::string copy{str_with_len_N};/23_cv 2.07 % 2.06 % 4
std::string copy{str_with_len_N};/24_mean 78.5 ns 78.5 ns 4
std::string copy{str_with_len_N};/24_median 78.0 ns 78.5 ns 4
std::string copy{str_with_len_N};/24_stddev 1.27 ns 1.42 ns 4
std::string copy{str_with_len_N};/24_cv 1.62 % 1.81 % 4
std::string copy{str_with_len_N};/32_mean 81.8 ns 82.0 ns 4
std::string copy{str_with_len_N};/32_median 81.9 ns 82.8 ns 4
std::string copy{str_with_len_N};/32_stddev 2.16 ns 2.47 ns 4
std::string copy{str_with_len_N};/32_cv 2.64 % 3.01 % 4
std::string copy{str_with_len_N};/64_mean 82.8 ns 83.2 ns 4
std::string copy{str_with_len_N};/64_median 83.2 ns 83.7 ns 4
std::string copy{str_with_len_N};/64_stddev 4.62 ns 4.64 ns 4
std::string copy{str_with_len_N};/64_cv 5.58 % 5.58 % 4
std::string copy{str_with_len_N};/128_mean 82.6 ns 82.8 ns 4
std::string copy{str_with_len_N};/128_median 82.8 ns 83.7 ns 4
std::string copy{str_with_len_N};/128_stddev 1.46 ns 1.74 ns 4
std::string copy{str_with_len_N};/128_cv 1.77 % 2.11 % 4
std::string copy{str_with_len_N};/256_mean 85.0 ns 83.7 ns 4
std::string copy{str_with_len_N};/256_median 85.2 ns 83.7 ns 4
std::string copy{str_with_len_N};/256_stddev 1.69 ns 1.71 ns 4
std::string copy{str_with_len_N};/256_cv 1.98 % 2.04 % 4
std::string copy{str_with_len_N};/512_mean 86.5 ns 86.8 ns 4
std::string copy{str_with_len_N};/512_median 86.3 ns 86.3 ns 4
std::string copy{str_with_len_N};/512_stddev 0.681 ns 1.67 ns 4
std::string copy{str_with_len_N};/512_cv 0.79 % 1.92 % 4
std::string copy{str_with_len_N};/1024_mean 95.3 ns 95.7 ns 4
std::string copy{str_with_len_N};/1024_median 95.6 ns 96.3 ns 4
std::string copy{str_with_len_N};/1024_stddev 1.19 ns 1.05 ns 4
std::string copy{str_with_len_N};/1024_cv 1.25 % 1.09 % 4
std::string copy{str_with_len_N};/2048_mean 133 ns 133 ns 4
std::string copy{str_with_len_N};/2048_median 132 ns 133 ns 4
std::string copy{str_with_len_N};/2048_stddev 5.46 ns 4.05 ns 4
std::string copy{str_with_len_N};/2048_cv 4.11 % 3.04 % 4
std::string copy{str_with_len_N};/4096_mean 179 ns 177 ns 4
std::string copy{str_with_len_N};/4096_median 176 ns 175 ns 4
std::string copy{str_with_len_N};/4096_stddev 7.28 ns 7.26 ns 4
std::string copy{str_with_len_N};/4096_cv 4.08 % 4.09 % 4
stringa copy{str_with_len_N};/15_mean 1.29 ns 1.29 ns 4
stringa copy{str_with_len_N};/15_median 1.28 ns 1.29 ns 4
stringa copy{str_with_len_N};/15_stddev 0.020 ns 0.026 ns 4
stringa copy{str_with_len_N};/15_cv 1.58 % 1.99 % 4
stringa copy{str_with_len_N};/16_mean 1.32 ns 1.32 ns 4
stringa copy{str_with_len_N};/16_median 1.33 ns 1.33 ns 4
stringa copy{str_with_len_N};/16_stddev 0.039 ns 0.048 ns 4
stringa copy{str_with_len_N};/16_cv 2.93 % 3.61 % 4
stringa copy{str_with_len_N};/23_mean 1.29 ns 1.29 ns 4
stringa copy{str_with_len_N};/23_median 1.29 ns 1.30 ns 4
stringa copy{str_with_len_N};/23_stddev 0.024 ns 0.027 ns 4
stringa copy{str_with_len_N};/23_cv 1.85 % 2.07 % 4
stringa copy{str_with_len_N};/24_mean 15.8 ns 15.8 ns 4
stringa copy{str_with_len_N};/24_median 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/24_stddev 0.168 ns 0.174 ns 4
stringa copy{str_with_len_N};/24_cv 1.07 % 1.10 % 4
stringa copy{str_with_len_N};/32_mean 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/32_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/32_stddev 0.085 ns 0.285 ns 4
stringa copy{str_with_len_N};/32_cv 0.54 % 1.81 % 4
stringa copy{str_with_len_N};/64_mean 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/64_median 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/64_stddev 0.157 ns 0.000 ns 4
stringa copy{str_with_len_N};/64_cv 0.99 % 0.00 % 4
stringa copy{str_with_len_N};/128_mean 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/128_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/128_stddev 0.082 ns 0.285 ns 4
stringa copy{str_with_len_N};/128_cv 0.52 % 1.81 % 4
stringa copy{str_with_len_N};/256_mean 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/256_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/256_stddev 0.060 ns 0.000 ns 4
stringa copy{str_with_len_N};/256_cv 0.38 % 0.00 % 4
stringa copy{str_with_len_N};/512_mean 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/512_median 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/512_stddev 0.021 ns 0.000 ns 4
stringa copy{str_with_len_N};/512_cv 0.13 % 0.00 % 4
stringa copy{str_with_len_N};/1024_mean 15.8 ns 15.8 ns 4
stringa copy{str_with_len_N};/1024_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/1024_stddev 0.108 ns 0.174 ns 4
stringa copy{str_with_len_N};/1024_cv 0.69 % 1.10 % 4
stringa copy{str_with_len_N};/2048_mean 16.8 ns 16.7 ns 4
stringa copy{str_with_len_N};/2048_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/2048_stddev 2.13 ns 2.33 ns 4
stringa copy{str_with_len_N};/2048_cv 12.68 % 13.92 % 4
stringa copy{str_with_len_N};/4096_mean 15.7 ns 15.7 ns 4
stringa copy{str_with_len_N};/4096_median 15.8 ns 15.7 ns 4
stringa copy{str_with_len_N};/4096_stddev 0.078 ns 0.313 ns 4
stringa copy{str_with_len_N};/4096_cv 0.49 % 1.99 % 4
lstringa<16> copy{str_with_len_N};/15_mean 1.50 ns 1.51 ns 4
lstringa<16> copy{str_with_len_N};/15_median 1.50 ns 1.51 ns 4
lstringa<16> copy{str_with_len_N};/15_stddev 0.033 ns 0.036 ns 4
lstringa<16> copy{str_with_len_N};/15_cv 2.23 % 2.41 % 4
lstringa<16> copy{str_with_len_N};/16_mean 5.09 ns 5.09 ns 4
lstringa<16> copy{str_with_len_N};/16_median 5.09 ns 5.16 ns 4
lstringa<16> copy{str_with_len_N};/16_stddev 0.077 ns 0.140 ns 4
lstringa<16> copy{str_with_len_N};/16_cv 1.50 % 2.74 % 4
lstringa<16> copy{str_with_len_N};/23_mean 5.36 ns 5.35 ns 4
lstringa<16> copy{str_with_len_N};/23_median 5.38 ns 5.39 ns 4
lstringa<16> copy{str_with_len_N};/23_stddev 0.100 ns 0.150 ns 4
lstringa<16> copy{str_with_len_N};/23_cv 1.87 % 2.80 % 4
lstringa<16> copy{str_with_len_N};/24_mean 76.8 ns 76.7 ns 4
lstringa<16> copy{str_with_len_N};/24_median 75.8 ns 75.9 ns 4
lstringa<16> copy{str_with_len_N};/24_stddev 1.89 ns 2.47 ns 4
lstringa<16> copy{str_with_len_N};/24_cv 2.46 % 3.21 % 4
lstringa<16> copy{str_with_len_N};/32_mean 81.4 ns 81.5 ns 4
lstringa<16> copy{str_with_len_N};/32_median 81.8 ns 82.0 ns 4
lstringa<16> copy{str_with_len_N};/32_stddev 2.10 ns 2.19 ns 4
lstringa<16> copy{str_with_len_N};/32_cv 2.58 % 2.69 % 4
lstringa<16> copy{str_with_len_N};/64_mean 80.8 ns 81.1 ns 4
lstringa<16> copy{str_with_len_N};/64_median 80.8 ns 81.1 ns 4
lstringa<16> copy{str_with_len_N};/64_stddev 1.42 ns 1.01 ns 4
lstringa<16> copy{str_with_len_N};/64_cv 1.75 % 1.24 % 4
lstringa<16> copy{str_with_len_N};/128_mean 82.8 ns 82.0 ns 4
lstringa<16> copy{str_with_len_N};/128_median 82.0 ns 82.0 ns 4
lstringa<16> copy{str_with_len_N};/128_stddev 1.96 ns 1.42 ns 4
lstringa<16> copy{str_with_len_N};/128_cv 2.37 % 1.74 % 4
lstringa<16> copy{str_with_len_N};/256_mean 87.4 ns 87.2 ns 4
lstringa<16> copy{str_with_len_N};/256_median 87.0 ns 87.2 ns 4
lstringa<16> copy{str_with_len_N};/256_stddev 1.21 ns 1.42 ns 4
lstringa<16> copy{str_with_len_N};/256_cv 1.38 % 1.63 % 4
lstringa<16> copy{str_with_len_N};/512_mean 86.9 ns 85.4 ns 4
lstringa<16> copy{str_with_len_N};/512_median 86.7 ns 85.4 ns 4
lstringa<16> copy{str_with_len_N};/512_stddev 1.91 ns 1.42 ns 4
lstringa<16> copy{str_with_len_N};/512_cv 2.20 % 1.67 % 4
lstringa<16> copy{str_with_len_N};/1024_mean 93.4 ns 93.6 ns 4
lstringa<16> copy{str_with_len_N};/1024_median 91.8 ns 92.1 ns 4
lstringa<16> copy{str_with_len_N};/1024_stddev 3.66 ns 3.14 ns 4
lstringa<16> copy{str_with_len_N};/1024_cv 3.92 % 3.35 % 4
lstringa<16> copy{str_with_len_N};/2048_mean 133 ns 133 ns 4
lstringa<16> copy{str_with_len_N};/2048_median 134 ns 134 ns 4
lstringa<16> copy{str_with_len_N};/2048_stddev 4.12 ns 3.51 ns 4
lstringa<16> copy{str_with_len_N};/2048_cv 3.09 % 2.64 % 4
lstringa<16> copy{str_with_len_N};/4096_mean 189 ns 189 ns 4
lstringa<16> copy{str_with_len_N};/4096_median 191 ns 193 ns 4
lstringa<16> copy{str_with_len_N};/4096_stddev 8.95 ns 9.89 ns 4
lstringa<16> copy{str_with_len_N};/4096_cv 4.73 % 5.22 % 4
lstringa<512> copy{str_with_len_N};/15_mean 1.49 ns 1.48 ns 4
lstringa<512> copy{str_with_len_N};/15_median 1.49 ns 1.48 ns 4
lstringa<512> copy{str_with_len_N};/15_stddev 0.047 ns 0.051 ns 4
lstringa<512> copy{str_with_len_N};/15_cv 3.15 % 3.47 % 4
lstringa<512> copy{str_with_len_N};/16_mean 5.15 ns 5.16 ns 4
lstringa<512> copy{str_with_len_N};/16_median 5.14 ns 5.16 ns 4
lstringa<512> copy{str_with_len_N};/16_stddev 0.094 ns 0.128 ns 4
lstringa<512> copy{str_with_len_N};/16_cv 1.83 % 2.47 % 4
lstringa<512> copy{str_with_len_N};/23_mean 5.14 ns 5.12 ns 4
lstringa<512> copy{str_with_len_N};/23_median 5.13 ns 5.08 ns 4
lstringa<512> copy{str_with_len_N};/23_stddev 0.104 ns 0.150 ns 4
lstringa<512> copy{str_with_len_N};/23_cv 2.01 % 2.92 % 4
lstringa<512> copy{str_with_len_N};/24_mean 5.12 ns 5.09 ns 4
lstringa<512> copy{str_with_len_N};/24_median 5.12 ns 5.09 ns 4
lstringa<512> copy{str_with_len_N};/24_stddev 0.140 ns 0.081 ns 4
lstringa<512> copy{str_with_len_N};/24_cv 2.73 % 1.58 % 4
lstringa<512> copy{str_with_len_N};/32_mean 8.25 ns 8.21 ns 4
lstringa<512> copy{str_with_len_N};/32_median 8.18 ns 8.16 ns 4
lstringa<512> copy{str_with_len_N};/32_stddev 0.268 ns 0.263 ns 4
lstringa<512> copy{str_with_len_N};/32_cv 3.25 % 3.21 % 4
lstringa<512> copy{str_with_len_N};/64_mean 8.00 ns 7.93 ns 4
lstringa<512> copy{str_with_len_N};/64_median 8.01 ns 7.93 ns 4
lstringa<512> copy{str_with_len_N};/64_stddev 0.275 ns 0.225 ns 4
lstringa<512> copy{str_with_len_N};/64_cv 3.44 % 2.84 % 4
lstringa<512> copy{str_with_len_N};/128_mean 8.46 ns 8.42 ns 4
lstringa<512> copy{str_with_len_N};/128_median 8.32 ns 8.27 ns 4
lstringa<512> copy{str_with_len_N};/128_stddev 0.393 ns 0.396 ns 4
lstringa<512> copy{str_with_len_N};/128_cv 4.65 % 4.70 % 4
lstringa<512> copy{str_with_len_N};/256_mean 9.58 ns 9.52 ns 4
lstringa<512> copy{str_with_len_N};/256_median 9.55 ns 9.52 ns 4
lstringa<512> copy{str_with_len_N};/256_stddev 0.105 ns 0.121 ns 4
lstringa<512> copy{str_with_len_N};/256_cv 1.10 % 1.27 % 4
lstringa<512> copy{str_with_len_N};/512_mean 11.0 ns 11.0 ns 4
lstringa<512> copy{str_with_len_N};/512_median 11.0 ns 11.0 ns 4
lstringa<512> copy{str_with_len_N};/512_stddev 0.236 ns 0.282 ns 4
lstringa<512> copy{str_with_len_N};/512_cv 2.15 % 2.57 % 4
lstringa<512> copy{str_with_len_N};/1024_mean 94.5 ns 94.7 ns 4
lstringa<512> copy{str_with_len_N};/1024_median 94.3 ns 94.2 ns 4
lstringa<512> copy{str_with_len_N};/1024_stddev 2.42 ns 2.63 ns 4
lstringa<512> copy{str_with_len_N};/1024_cv 2.56 % 2.78 % 4
lstringa<512> copy{str_with_len_N};/2048_mean 134 ns 135 ns 4
lstringa<512> copy{str_with_len_N};/2048_median 135 ns 134 ns 4
lstringa<512> copy{str_with_len_N};/2048_stddev 3.36 ns 4.19 ns 4
lstringa<512> copy{str_with_len_N};/2048_cv 2.51 % 3.11 % 4
lstringa<512> copy{str_with_len_N};/4096_mean 193 ns 191 ns 4
lstringa<512> copy{str_with_len_N};/4096_median 193 ns 193 ns 4
lstringa<512> copy{str_with_len_N};/4096_stddev 2.96 ns 2.09 ns 4
lstringa<512> copy{str_with_len_N};/4096_cv 1.54 % 1.09 % 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 30.6 ns 30.7 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 30.7 ns 30.7 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.391 ns 0.570 ns 4
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.28 % 1.86 % 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.5 ns 13.5 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.5 ns 13.4 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.552 ns 0.619 ns 4
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 4.09 % 4.60 % 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 13.8 ns 13.7 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 13.9 ns 13.8 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.147 ns 0.395 ns 4
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.06 % 2.88 % 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 9.17 ns 9.10 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 9.14 ns 9.10 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.188 ns 0.121 ns 4
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.05 % 1.33 % 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 13.9 ns 13.9 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 13.9 ns 13.8 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.142 ns 0.157 ns 4
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.02 % 1.13 % 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 34.2 ns 33.7 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 33.4 ns 33.3 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.54 ns 1.73 ns 4
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 7.42 % 5.14 % 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.11 ns 8.11 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.07 ns 8.02 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.148 ns 0.174 ns 4
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.83 % 2.15 % 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.7 ns 12.8 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.8 ns 12.8 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.207 ns 0.140 ns 4
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.63 % 1.09 % 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.39 ns 7.24 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.34 ns 7.15 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.269 ns 0.461 ns 4
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.63 % 6.38 % 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.7 ns 12.7 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.7 ns 12.7 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.034 ns 0.161 ns 4
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.27 % 1.27 % 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 42.8 ns 43.0 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 43.3 ns 43.0 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.04 ns 0.797 ns 4
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.43 % 1.86 % 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.5 ns 18.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.5 ns 18.4 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.204 ns 0.342 ns 4
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.11 % 1.86 % 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 13.6 ns 13.5 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 13.6 ns 13.7 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.279 ns 0.279 ns 4
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.05 % 2.06 % 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 97.9 ns 97.8 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 97.9 ns 98.4 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.764 ns 2.63 ns 4
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 0.78 % 2.69 % 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 58.4 ns 58.2 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 58.3 ns 57.9 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.60 ns 2.38 ns 4
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.75 % 4.09 % 4
ssa s = "1234.567e10"; double res = *s.to_double()_mean 35.1 ns 34.7 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_median 35.3 ns 34.5 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.515 ns 1.01 ns 4
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.47 % 2.91 % 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 4844 ns 4844 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_median 4854 ns 4844 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 98.7 ns 128 ns 4
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.04 % 2.63 % 4
std::string str; ... str += "abbaabbaabbaabba";_mean 1045 ns 1046 ns 4
std::string str; ... str += "abbaabbaabbaabba";_median 1049 ns 1046 ns 4
std::string str; ... str += "abbaabbaabbaabba";_stddev 21.8 ns 24.2 ns 4
std::string str; ... str += "abbaabbaabbaabba";_cv 2.09 % 2.31 % 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 782 ns 785 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 781 ns 781 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 6.56 ns 6.98 ns 4
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.84 % 0.89 % 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 406 ns 404 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 406 ns 406 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 6.45 ns 8.01 ns 4
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 1.59 % 1.98 % 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 268 ns 268 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 270 ns 270 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 4.37 ns 5.68 ns 4
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.63 % 2.12 % 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 156 ns 156 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 156 ns 157 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.663 ns 1.74 ns 4
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.42 % 1.12 % 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 4654 ns 4656 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4665 ns 4656 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 84.4 ns 135 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.81 % 2.90 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3736 ns 3730 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3714 ns 3690 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 67.1 ns 80.2 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.80 % 2.15 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 713 ns 715 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 715 ns 715 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.9 ns 20.1 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.23 % 2.82 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 437 ns 435 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 436 ns 435 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 1.89 ns 8.26 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.43 % 1.90 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 281 ns 283 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 281 ns 283 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.76 ns 0.000 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.98 % 0.00 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 187 ns 187 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 187 ns 188 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.88 ns 1.92 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.54 % 1.03 % 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 234977 ns 235596 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 235722 ns 236816 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 13239 ns 13446 ns 4
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 5.63 % 5.71 % 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 192544 ns 192705 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 193142 ns 192705 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4934 ns 5854 ns 4
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.56 % 3.04 % 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20077 ns 20063 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20076 ns 20176 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 430 ns 434 ns 4
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.14 % 2.16 % 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16403 ns 16305 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16379 ns 16113 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 388 ns 384 ns 4
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.37 % 2.35 % 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16237 ns 16209 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16280 ns 16113 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 190 ns 192 ns 4
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.17 % 1.18 % 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15954 ns 15956 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15846 ns 16044 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 412 ns 439 ns 4
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.58 % 2.75 % 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 4325 ns 4332 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_median 4320 ns 4332 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_stddev 98.0 ns 76.9 ns 4
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.27 % 1.77 % 4
std::string str; ... str += str_var1 + str_var2;_mean 4072 ns 4058 ns 4
std::string str; ... str += str_var1 + str_var2;_median 4095 ns 4081 ns 4
std::string str; ... str += str_var1 + str_var2;_stddev 90.4 ns 45.3 ns 4
std::string str; ... str += str_var1 + str_var2;_cv 2.22 % 1.12 % 4
lstringa<16> str; ... str += str_var1 + str_var2;_mean 794 ns 793 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_median 794 ns 793 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 15.7 ns 22.5 ns 4
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.97 % 2.84 % 4
lstringa<128> str; ... str += str_var1 + str_var2;_mean 512 ns 513 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_median 513 ns 516 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 9.21 ns 6.98 ns 4
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.80 % 1.36 % 4
lstringa<512> str; ... str += str_var1 + str_var2;_mean 395 ns 396 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_median 393 ns 393 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 10.4 ns 12.6 ns 4
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.65 % 3.17 % 4
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 287 ns 289 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_median 288 ns 289 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 3.70 ns 5.13 ns 4
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.29 % 1.77 % 4
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 10825 ns 10803 ns 4
std::stringstream str; str << "test = " << k << " times";_median 10927 ns 10864 ns 4
std::stringstream str; str << "test = " << k << " times";_stddev 263 ns 234 ns 4
std::stringstream str; str << "test = " << k << " times";_cv 2.43 % 2.16 % 4
std::string str = "test = " + std::to_string(k) + " times";_mean 1066 ns 1062 ns 4
std::string str = "test = " + std::to_string(k) + " times";_median 1060 ns 1050 ns 4
std::string str = "test = " + std::to_string(k) + " times";_stddev 45.9 ns 42.3 ns 4
std::string str = "test = " + std::to_string(k) + " times";_cv 4.31 % 3.98 % 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2723 ns 2715 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2730 ns 2699 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 47.5 ns 94.2 ns 4
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.74 % 3.47 % 4
std::string str = std::format("test = {} times", k);_mean 1842 ns 1821 ns 4
std::string str = std::format("test = {} times", k);_median 1839 ns 1800 ns 4
std::string str = std::format("test = {} times", k);_stddev 44.1 ns 72.5 ns 4
std::string str = std::format("test = {} times", k);_cv 2.40 % 3.98 % 4
lstringa<8> str; str.format("test = {} times", k);_mean 2012 ns 2002 ns 4
lstringa<8> str; str.format("test = {} times", k);_median 1998 ns 2002 ns 4
lstringa<8> str; str.format("test = {} times", k);_stddev 45.7 ns 56.4 ns 4
lstringa<8> str; str.format("test = {} times", k);_cv 2.27 % 2.82 % 4
lstringa<32> str; str.format("test = {} times", k);_mean 1004 ns 1004 ns 4
lstringa<32> str; str.format("test = {} times", k);_median 1000 ns 1004 ns 4
lstringa<32> str; str.format("test = {} times", k);_stddev 12.0 ns 17.1 ns 4
lstringa<32> str; str.format("test = {} times", k);_cv 1.19 % 1.70 % 4
lstringa<8> str = "test = " + k + " times";_mean 821 ns 821 ns 4
lstringa<8> str = "test = " + k + " times";_median 824 ns 827 ns 4
lstringa<8> str = "test = " + k + " times";_stddev 20.2 ns 20.0 ns 4
lstringa<8> str = "test = " + k + " times";_cv 2.46 % 2.44 % 4
lstringa<32> str = "test = " + k + " times";_mean 136 ns 136 ns 4
lstringa<32> str = "test = " + k + " times";_median 135 ns 135 ns 4
lstringa<32> str = "test = " + k + " times";_stddev 4.46 ns 4.77 ns 4
lstringa<32> str = "test = " + k + " times";_cv 3.28 % 3.50 % 4
stringa str = "test = " + k + " times";_mean 121 ns 120 ns 4
stringa str = "test = " + k + " times";_median 120 ns 119 ns 4
stringa str = "test = " + k + " times";_stddev 3.98 ns 3.95 ns 4
stringa str = "test = " + k + " times";_cv 3.30 % 3.29 % 4
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 546 ns 547 ns 4
std::string::find + substr + std::strtol_median 547 ns 547 ns 4
std::string::find + substr + std::strtol_stddev 8.88 ns 12.8 ns 4
std::string::find + substr + std::strtol_cv 1.63 % 2.33 % 4
ssa::splitter + ssa::as_int_mean 165 ns 165 ns 4
ssa::splitter + ssa::as_int_median 164 ns 163 ns 4
ssa::splitter + ssa::as_int_stddev 3.58 ns 4.19 ns 4
ssa::splitter + ssa::as_int_cv 2.16 % 2.53 % 4
ssa::splitf + functor_mean 191 ns 191 ns 4
ssa::splitf + functor_median 191 ns 190 ns 4
ssa::splitf + functor_stddev 4.25 ns 4.01 ns 4
ssa::splitf + functor_cv 2.23 % 2.09 % 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 1108 ns 1106 ns 4
Naive (and wrong) replace symbols with std::string find + replace_median 1111 ns 1114 ns 4
Naive (and wrong) replace symbols with std::string find + replace_stddev 13.6 ns 30.1 ns 4
Naive (and wrong) replace symbols with std::string find + replace_cv 1.23 % 2.72 % 4
replace symbols with std::string find_first_of + replace_mean 2009 ns 2009 ns 4
replace symbols with std::string find_first_of + replace_median 2011 ns 2030 ns 4
replace symbols with std::string find_first_of + replace_stddev 48.8 ns 59.2 ns 4
replace symbols with std::string find_first_of + replace_cv 2.43 % 2.95 % 4
replace symbols with std::string_view find_first_of + copy_mean 2277 ns 2283 ns 4
replace symbols with std::string_view find_first_of + copy_median 2276 ns 2271 ns 4
replace symbols with std::string_view find_first_of + copy_stddev 41.5 ns 46.7 ns 4
replace symbols with std::string_view find_first_of + copy_cv 1.82 % 2.05 % 4
replace runtime symbols with string expressions and without remembering all search results_mean 1448 ns 1444 ns 4
replace runtime symbols with string expressions and without remembering all search results_median 1451 ns 1444 ns 4
replace runtime symbols with string expressions and without remembering all search results_stddev 48.3 ns 57.3 ns 4
replace runtime symbols with string expressions and without remembering all search results_cv 3.34 % 3.97 % 4
replace runtime symbols with simstr and memorization of all search results_mean 1363 ns 1350 ns 4
replace runtime symbols with simstr and memorization of all search results_median 1359 ns 1334 ns 4
replace runtime symbols with simstr and memorization of all search results_stddev 36.4 ns 44.4 ns 4
replace runtime symbols with simstr and memorization of all search results_cv 2.67 % 3.29 % 4
replace const symbols with string expressions and without remembering all search results_mean 1229 ns 1228 ns 4
replace const symbols with string expressions and without remembering all search results_median 1219 ns 1228 ns 4
replace const symbols with string expressions and without remembering all search results_stddev 35.0 ns 32.2 ns 4
replace const symbols with string expressions and without remembering all search results_cv 2.85 % 2.62 % 4
replace const symbols with string expressions and memorization of all search results_mean 1096 ns 1093 ns 4
replace const symbols with string expressions and memorization of all search results_median 1094 ns 1099 ns 4
replace const symbols with string expressions and memorization of all search results_stddev 5.98 ns 12.2 ns 4
replace const symbols with string expressions and memorization of all search results_cv 0.55 % 1.12 % 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 305 ns 300 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_median 301 ns 302 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 19.3 ns 11.3 ns 4
Short Naive (and wrong) replace symbols with std::string find + replace_cv 6.35 % 3.77 % 4
Short replace symbols with std::string find_first_of + replace_mean 356 ns 355 ns 4
Short replace symbols with std::string find_first_of + replace_median 354 ns 353 ns 4
Short replace symbols with std::string find_first_of + replace_stddev 11.7 ns 10.1 ns 4
Short replace symbols with std::string find_first_of + replace_cv 3.28 % 2.84 % 4
Short replace symbols with std::string_view find_first_of + copy_mean 307 ns 306 ns 4
Short replace symbols with std::string_view find_first_of + copy_median 306 ns 305 ns 4
Short replace symbols with std::string_view find_first_of + copy_stddev 9.99 ns 9.94 ns 4
Short replace symbols with std::string_view find_first_of + copy_cv 3.26 % 3.24 % 4
Short replace runtime symbols with string expressions and without remembering all search results_mean 259 ns 258 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_median 258 ns 258 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.09 ns 7.65 ns 4
Short replace runtime symbols with string expressions and without remembering all search results_cv 0.81 % 2.97 % 4
Short replace runtime symbols with simstr and memorization of all search results_mean 355 ns 353 ns 4
Short replace runtime symbols with simstr and memorization of all search results_median 353 ns 353 ns 4
Short replace runtime symbols with simstr and memorization of all search results_stddev 7.74 ns 6.55 ns 4
Short replace runtime symbols with simstr and memorization of all search results_cv 2.18 % 1.86 % 4
Short replace const symbols with string expressions and without remembering all search results_mean 199 ns 198 ns 4
Short replace const symbols with string expressions and without remembering all search results_median 199 ns 197 ns 4
Short replace const symbols with string expressions and without remembering all search results_stddev 4.27 ns 4.34 ns 4
Short replace const symbols with string expressions and without remembering all search results_cv 2.15 % 2.19 % 4
Short replace const symbols with string expressions and memorization of all search results_mean 289 ns 289 ns 4
Short replace const symbols with string expressions and memorization of all search results_median 290 ns 289 ns 4
Short replace const symbols with string expressions and memorization of all search results_stddev 9.47 ns 11.5 ns 4
Short replace const symbols with string expressions and memorization of all search results_cv 3.28 % 3.97 % 4
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 217 ns 217 ns 4
replace bb to ---- in std::string|64_median 216 ns 217 ns 4
replace bb to ---- in std::string|64_stddev 3.68 ns 2.82 ns 4
replace bb to ---- in std::string|64_cv 1.69 % 1.30 % 4
replace bb to ---- in std::string|256_mean 736 ns 737 ns 4
replace bb to ---- in std::string|256_median 739 ns 741 ns 4
replace bb to ---- in std::string|256_stddev 30.6 ns 29.8 ns 4
replace bb to ---- in std::string|256_cv 4.16 % 4.04 % 4
replace bb to ---- in std::string|512_mean 1385 ns 1381 ns 4
replace bb to ---- in std::string|512_median 1412 ns 1395 ns 4
replace bb to ---- in std::string|512_stddev 65.5 ns 48.3 ns 4
replace bb to ---- in std::string|512_cv 4.73 % 3.50 % 4
replace bb to ---- in std::string|1024_mean 3048 ns 3048 ns 4
replace bb to ---- in std::string|1024_median 3045 ns 3081 ns 4
replace bb to ---- in std::string|1024_stddev 68.7 ns 93.7 ns 4
replace bb to ---- in std::string|1024_cv 2.25 % 3.07 % 4
replace bb to ---- in std::string|2048_mean 7662 ns 7673 ns 4
replace bb to ---- in std::string|2048_median 7620 ns 7673 ns 4
replace bb to ---- in std::string|2048_stddev 197 ns 142 ns 4
replace bb to ---- in std::string|2048_cv 2.57 % 1.86 % 4
replace bb to ---- in lstringa<8>|64_mean 218 ns 217 ns 4
replace bb to ---- in lstringa<8>|64_median 219 ns 220 ns 4
replace bb to ---- in lstringa<8>|64_stddev 3.38 ns 4.88 ns 4
replace bb to ---- in lstringa<8>|64_cv 1.55 % 2.25 % 4
replace bb to ---- in lstringa<8>|256_mean 613 ns 607 ns 4
replace bb to ---- in lstringa<8>|256_median 608 ns 607 ns 4
replace bb to ---- in lstringa<8>|256_stddev 23.0 ns 29.0 ns 4
replace bb to ---- in lstringa<8>|256_cv 3.75 % 4.79 % 4
replace bb to ---- in lstringa<8>|512_mean 1056 ns 1046 ns 4
replace bb to ---- in lstringa<8>|512_median 1058 ns 1057 ns 4
replace bb to ---- in lstringa<8>|512_stddev 23.6 ns 29.6 ns 4
replace bb to ---- in lstringa<8>|512_cv 2.24 % 2.83 % 4
replace bb to ---- in lstringa<8>|1024_mean 1894 ns 1880 ns 4
replace bb to ---- in lstringa<8>|1024_median 1903 ns 1861 ns 4
replace bb to ---- in lstringa<8>|1024_stddev 68.0 ns 54.3 ns 4
replace bb to ---- in lstringa<8>|1024_cv 3.59 % 2.89 % 4
replace bb to ---- in lstringa<8>|2048_mean 3567 ns 3537 ns 4
replace bb to ---- in lstringa<8>|2048_median 3510 ns 3474 ns 4
replace bb to ---- in lstringa<8>|2048_stddev 151 ns 220 ns 4
replace bb to ---- in lstringa<8>|2048_cv 4.24 % 6.22 % 4
replace bb to ---- by init stringa|64_mean 170 ns 171 ns 4
replace bb to ---- by init stringa|64_median 169 ns 167 ns 4
replace bb to ---- by init stringa|64_stddev 8.86 ns 9.86 ns 4
replace bb to ---- by init stringa|64_cv 5.20 % 5.77 % 4
replace bb to ---- by init stringa|256_mean 369 ns 368 ns 4
replace bb to ---- by init stringa|256_median 370 ns 368 ns 4
replace bb to ---- by init stringa|256_stddev 9.91 ns 6.26 ns 4
replace bb to ---- by init stringa|256_cv 2.68 % 1.70 % 4
replace bb to ---- by init stringa|512_mean 806 ns 802 ns 4
replace bb to ---- by init stringa|512_median 802 ns 793 ns 4
replace bb to ---- by init stringa|512_stddev 13.8 ns 24.7 ns 4
replace bb to ---- by init stringa|512_cv 1.71 % 3.07 % 4
replace bb to ---- by init stringa|1024_mean 1658 ns 1659 ns 4
replace bb to ---- by init stringa|1024_median 1660 ns 1669 ns 4
replace bb to ---- by init stringa|1024_stddev 50.8 ns 36.7 ns 4
replace bb to ---- by init stringa|1024_cv 3.06 % 2.21 % 4
replace bb to ---- by init stringa|2048_mean 3213 ns 3164 ns 4
replace bb to ---- by init stringa|2048_median 3177 ns 3148 ns 4
replace bb to ---- by init stringa|2048_stddev 89.0 ns 63.4 ns 4
replace bb to ---- by init stringa|2048_cv 2.77 % 2.01 % 4
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 186 ns 185 ns 4
replace bb to -- in std::string|64_median 186 ns 186 ns 4
replace bb to -- in std::string|64_stddev 2.91 ns 2.27 ns 4
replace bb to -- in std::string|64_cv 1.57 % 1.23 % 4
replace bb to -- in std::string|256_mean 464 ns 463 ns 4
replace bb to -- in std::string|256_median 464 ns 460 ns 4
replace bb to -- in std::string|256_stddev 1.48 ns 5.23 ns 4
replace bb to -- in std::string|256_cv 0.32 % 1.13 % 4
replace bb to -- in std::string|512_mean 843 ns 833 ns 4
replace bb to -- in std::string|512_median 840 ns 837 ns 4
replace bb to -- in std::string|512_stddev 22.6 ns 8.72 ns 4
replace bb to -- in std::string|512_cv 2.68 % 1.05 % 4
replace bb to -- in std::string|1024_mean 1576 ns 1577 ns 4
replace bb to -- in std::string|1024_median 1576 ns 1569 ns 4
replace bb to -- in std::string|1024_stddev 22.1 ns 15.7 ns 4
replace bb to -- in std::string|1024_cv 1.40 % 1.00 % 4
replace bb to -- in std::string|2048_mean 3142 ns 3128 ns 4
replace bb to -- in std::string|2048_median 3120 ns 3083 ns 4
replace bb to -- in std::string|2048_stddev 64.0 ns 90.7 ns 4
replace bb to -- in std::string|2048_cv 2.04 % 2.90 % 4
replace bb to -- in lstringa<8>|64_mean 185 ns 183 ns 4
replace bb to -- in lstringa<8>|64_median 186 ns 184 ns 4
replace bb to -- in lstringa<8>|64_stddev 2.94 ns 5.75 ns 4
replace bb to -- in lstringa<8>|64_cv 1.59 % 3.14 % 4
replace bb to -- in lstringa<8>|256_mean 423 ns 423 ns 4
replace bb to -- in lstringa<8>|256_median 421 ns 423 ns 4
replace bb to -- in lstringa<8>|256_stddev 9.33 ns 11.3 ns 4
replace bb to -- in lstringa<8>|256_cv 2.21 % 2.66 % 4
replace bb to -- in lstringa<8>|512_mean 728 ns 729 ns 4
replace bb to -- in lstringa<8>|512_median 728 ns 725 ns 4
replace bb to -- in lstringa<8>|512_stddev 11.6 ns 17.6 ns 4
replace bb to -- in lstringa<8>|512_cv 1.60 % 2.41 % 4
replace bb to -- in lstringa<8>|1024_mean 1403 ns 1389 ns 4
replace bb to -- in lstringa<8>|1024_median 1367 ns 1365 ns 4
replace bb to -- in lstringa<8>|1024_stddev 105 ns 82.6 ns 4
replace bb to -- in lstringa<8>|1024_cv 7.49 % 5.94 % 4
replace bb to -- in lstringa<8>|2048_mean 2686 ns 2609 ns 4
replace bb to -- in lstringa<8>|2048_median 2677 ns 2609 ns 4
replace bb to -- in lstringa<8>|2048_stddev 47.0 ns 48.4 ns 4
replace bb to -- in lstringa<8>|2048_cv 1.75 % 1.86 % 4
replace bb to -- by init stringa|64_mean 151 ns 151 ns 4
replace bb to -- by init stringa|64_median 150 ns 151 ns 4
replace bb to -- by init stringa|64_stddev 4.70 ns 3.95 ns 4
replace bb to -- by init stringa|64_cv 3.11 % 2.61 % 4
replace bb to -- by init stringa|256_mean 320 ns 319 ns 4
replace bb to -- by init stringa|256_median 319 ns 315 ns 4
replace bb to -- by init stringa|256_stddev 7.65 ns 7.32 ns 4
replace bb to -- by init stringa|256_cv 2.39 % 2.30 % 4
replace bb to -- by init stringa|512_mean 523 ns 523 ns 4
replace bb to -- by init stringa|512_median 522 ns 523 ns 4
replace bb to -- by init stringa|512_stddev 8.09 ns 9.02 ns 4
replace bb to -- by init stringa|512_cv 1.55 % 1.72 % 4
replace bb to -- by init stringa|1024_mean 978 ns 978 ns 4
replace bb to -- by init stringa|1024_median 978 ns 984 ns 4
replace bb to -- by init stringa|1024_stddev 11.8 ns 10.5 ns 4
replace bb to -- by init stringa|1024_cv 1.21 % 1.07 % 4
replace bb to -- by init stringa|2048_mean 1763 ns 1758 ns 4
replace bb to -- by init stringa|2048_median 1761 ns 1758 ns 4
replace bb to -- by init stringa|2048_stddev 58.8 ns 48.3 ns 4
replace bb to -- by init stringa|2048_cv 3.33 % 2.75 % 4
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 3922015 ns 3928073 ns 4
hashStrMapA<size_t> emplace & find stringa;_median 3894926 ns 3928073 ns 4
hashStrMapA<size_t> emplace & find stringa;_stddev 127123 ns 142545 ns 4
hashStrMapA<size_t> emplace & find stringa;_cv 3.24 % 3.63 % 4
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5584695 ns 5546875 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5600902 ns 5546875 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 245431 ns 270633 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 4.39 % 4.88 % 4
hashStrMapA<size_t> emplace & find ssa;_mean 3523219 ns 3523284 ns 4
hashStrMapA<size_t> emplace & find ssa;_median 3536825 ns 3523284 ns 4
hashStrMapA<size_t> emplace & find ssa;_stddev 57435 ns 62538 ns 4
hashStrMapA<size_t> emplace & find ssa;_cv 1.63 % 1.77 % 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6362266 ns 6312779 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6361217 ns 6277902 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 140421 ns 175545 ns 4
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.21 % 2.78 % 4
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 1505 ns 1499 ns 4
Build func full name std::string;_median 1494 ns 1491 ns 4
Build func full name std::string;_stddev 61.9 ns 53.6 ns 4
Build func full name std::string;_cv 4.12 % 3.58 % 4
Build func full name std::string 1;_mean 1501 ns 1499 ns 4
Build func full name std::string 1;_median 1511 ns 1507 ns 4
Build func full name std::string 1;_stddev 27.4 ns 39.5 ns 4
Build func full name std::string 1;_cv 1.83 % 2.64 % 4
Build func full name std::stream;_mean 8093 ns 8065 ns 4
Build func full name std::stream;_median 8095 ns 8022 ns 4
Build func full name std::stream;_stddev 79.4 ns 87.2 ns 4
Build func full name std::stream;_cv 0.98 % 1.08 % 4
Build func full name stringa;_mean 747 ns 746 ns 4
Build func full name stringa;_median 750 ns 746 ns 4
Build func full name stringa;_stddev 9.81 ns 18.0 ns 4
Build func full name stringa;_cv 1.31 % 2.41 % 4
Build func full name stringa 1;_mean 898 ns 897 ns 4
Build func full name stringa 1;_median 895 ns 891 ns 4
Build func full name stringa 1;_stddev 23.2 ns 23.4 ns 4
Build func full name stringa 1;_cv 2.58 % 2.61 % 4