2026-02-27 20:05:49 +00:00
|
|
|
Benchmarks of simstr, version 1.7.2
|
2026-02-03 07:38:21 +00:00
|
|
|
Sources: https://github.com/orefkov/simstr
|
|
|
|
|
Results: https://orefkov.github.io/simstr/results.html
|
2026-02-27 20:05:49 +00:00
|
|
|
Compiler MSVC 19.44.35213.0
|
|
|
|
|
2026-02-27T17:41:31+03:00
|
2025-04-05 14:21:11 +00:00
|
|
|
Running benchStr.exe
|
2025-11-26 19:15:50 +00:00
|
|
|
Run on (32 X 2494 MHz CPU s)
|
2025-04-05 14:21:11 +00:00
|
|
|
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
|
|
|
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
2026-02-14 10:09:54 +00:00
|
|
|
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Concat email std::format_mean 252 ns 253 ns 4
|
|
|
|
|
Concat email std::format_median 252 ns 251 ns 4
|
|
|
|
|
Concat email std::format_stddev 1.36 ns 2.79 ns 4
|
|
|
|
|
Concat email std::format_cv 0.54 % 1.10 % 4
|
|
|
|
|
Concat email std::stringstream_mean 909 ns 905 ns 4
|
|
|
|
|
Concat email std::stringstream_median 906 ns 910 ns 4
|
|
|
|
|
Concat email std::stringstream_stddev 30.3 ns 35.7 ns 4
|
|
|
|
|
Concat email std::stringstream_cv 3.34 % 3.95 % 4
|
|
|
|
|
Concat email stringzilla append_mean 272 ns 265 ns 4
|
|
|
|
|
Concat email stringzilla append_median 268 ns 267 ns 4
|
|
|
|
|
Concat email stringzilla append_stddev 15.4 ns 7.46 ns 4
|
|
|
|
|
Concat email stringzilla append_cv 5.66 % 2.81 % 4
|
|
|
|
|
Concat email stringzilla concat_mean 127 ns 126 ns 4
|
|
|
|
|
Concat email stringzilla concat_median 127 ns 126 ns 4
|
|
|
|
|
Concat email stringzilla concat_stddev 0.463 ns 1.40 ns 4
|
|
|
|
|
Concat email stringzilla concat_cv 0.37 % 1.10 % 4
|
|
|
|
|
Concat email std::string append_mean 196 ns 196 ns 4
|
|
|
|
|
Concat email std::string append_median 197 ns 197 ns 4
|
|
|
|
|
Concat email std::string append_stddev 5.34 ns 4.34 ns 4
|
|
|
|
|
Concat email std::string append_cv 2.72 % 2.21 % 4
|
|
|
|
|
Concat email std::string by strexpr_mean 111 ns 110 ns 4
|
|
|
|
|
Concat email std::string by strexpr_median 110 ns 110 ns 4
|
|
|
|
|
Concat email std::string by strexpr_stddev 5.82 ns 5.03 ns 4
|
|
|
|
|
Concat email std::string by strexpr_cv 5.23 % 4.56 % 4
|
|
|
|
|
Concat email stringa_mean 101 ns 100 ns 4
|
|
|
|
|
Concat email stringa_median 101 ns 100 ns 4
|
|
|
|
|
Concat email stringa_stddev 1.95 ns 3.42 ns 4
|
|
|
|
|
Concat email stringa_cv 1.93 % 3.40 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Concat std::string and number by std to std::string_mean 331 ns 330 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_median 329 ns 331 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_stddev 6.82 ns 6.68 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_cv 2.06 % 2.03 % 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_mean 211 ns 211 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_median 211 ns 211 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_stddev 6.14 ns 5.85 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_cv 2.91 % 2.78 % 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 102 ns 102 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 103 ns 101 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.24 ns 2.34 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 2.19 % 2.29 % 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 113 ns 113 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_median 113 ns 114 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 2.08 ns 2.79 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 1.84 % 2.47 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-21 13:51:57 +00:00
|
|
|
Concat std::string and format hex number and literal to std::string_mean 1043 ns 1044 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
Concat std::string and format hex number and literal to std::string_median 1044 ns 1038 ns 4
|
|
|
|
|
Concat std::string and format hex number and literal to std::string_stddev 33.7 ns 23.4 ns 4
|
|
|
|
|
Concat std::string and format hex number and literal to std::string_cv 3.23 % 2.24 % 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_mean 1834 ns 1822 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_median 1850 ns 1822 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_stddev 44.0 ns 49.5 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_cv 2.40 % 2.72 % 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_mean 254 ns 253 ns 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_median 254 ns 254 ns 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_stddev 2.18 ns 5.34 ns 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_cv 0.86 % 2.12 % 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 119 ns 119 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 118 ns 118 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 4.26 ns 4.17 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.59 % 3.50 % 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 100 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 101 ns 100 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.00 ns 1.71 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.99 % 1.70 % 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 105 ns 105 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 105 ns 105 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.77 ns 3.14 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.63 % 2.99 % 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 171 ns 172 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 172 ns 173 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 3.96 ns 3.34 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.31 % 1.94 % 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 359 ns 359 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 359 ns 357 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.64 ns 7.68 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.85 % 2.14 % 4
|
2026-02-08 11:17:03 +00:00
|
|
|
---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 695 ns 694 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 691 ns 691 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 13.5 ns 13.4 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.94 % 1.92 % 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 828 ns 827 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 824 ns 827 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 27.7 ns 27.0 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 3.35 % 3.27 % 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1166 ns 1160 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 1162 ns 1160 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 27.7 ns 31.5 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.37 % 2.72 % 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1577 ns 1578 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1578 ns 1587 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 44.1 ns 59.6 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.80 % 3.77 % 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1440 ns 1444 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1447 ns 1444 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 23.1 ns 25.6 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.60 % 1.77 % 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1921 ns 1925 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1912 ns 1925 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 27.2 ns 34.2 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.42 % 1.77 % 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1914 ns 1918 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_median 1921 ns 1918 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 35.2 ns 31.3 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_cv 1.84 % 1.63 % 4
|
|
|
|
|
std::format with std::formatted_size_mean 2861 ns 2849 ns 4
|
|
|
|
|
std::format with std::formatted_size_median 2851 ns 2816 ns 4
|
|
|
|
|
std::format with std::formatted_size_stddev 84.3 ns 93.7 ns 4
|
|
|
|
|
std::format with std::formatted_size_cv 2.95 % 3.29 % 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6947 ns 6941 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6957 ns 6975 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 146 ns 209 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.10 % 3.02 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Concat std::string by std to std::string_mean 55.1 ns 55.1 ns 4
|
|
|
|
|
Concat std::string by std to std::string_median 55.3 ns 55.5 ns 4
|
|
|
|
|
Concat std::string by std to std::string_stddev 1.35 ns 1.50 ns 4
|
|
|
|
|
Concat std::string by std to std::string_cv 2.45 % 2.72 % 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_mean 80.2 ns 80.2 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_median 80.1 ns 80.2 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_stddev 2.30 ns 2.85 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_cv 2.87 % 3.55 % 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_mean 52.4 ns 52.3 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_median 52.2 ns 52.3 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_stddev 1.77 ns 0.902 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_cv 3.37 % 1.72 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Find concat three std::string_mean 223 ns 224 ns 4
|
|
|
|
|
Find concat three std::string_median 222 ns 224 ns 4
|
|
|
|
|
Find concat three std::string_stddev 3.78 ns 2.62 ns 4
|
|
|
|
|
Find concat three std::string_cv 1.69 % 1.17 % 4
|
|
|
|
|
Find concat three strexpr_mean 124 ns 124 ns 4
|
|
|
|
|
Find concat three strexpr_median 124 ns 124 ns 4
|
|
|
|
|
Find concat three strexpr_stddev 2.70 ns 3.60 ns 4
|
|
|
|
|
Find concat three strexpr_cv 2.18 % 2.90 % 4
|
|
|
|
|
Find concat three simstr_mean 28.2 ns 28.2 ns 4
|
|
|
|
|
Find concat three simstr_median 28.4 ns 28.2 ns 4
|
|
|
|
|
Find concat three simstr_stddev 0.824 ns 0.765 ns 4
|
|
|
|
|
Find concat three simstr_cv 2.93 % 2.72 % 4
|
|
|
|
|
Find concat three stringzilla string_mean 221 ns 221 ns 4
|
|
|
|
|
Find concat three stringzilla string_median 220 ns 220 ns 4
|
|
|
|
|
Find concat three stringzilla string_stddev 3.60 ns 2.44 ns 4
|
|
|
|
|
Find concat three stringzilla string_cv 1.63 % 1.10 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
BuildTypeNameStr 0/0_mean 17.5 ns 17.5 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_median 17.6 ns 17.6 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_stddev 0.266 ns 0.209 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_cv 1.52 % 1.20 % 4
|
|
|
|
|
BuildTypeNameExp 0/0_mean 14.1 ns 14.1 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_median 14.0 ns 14.1 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_stddev 0.274 ns 0.256 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_cv 1.94 % 1.81 % 4
|
|
|
|
|
BuildTypeNameSim 0/0_mean 16.3 ns 16.3 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_median 16.2 ns 16.2 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_stddev 0.297 ns 0.334 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_cv 1.82 % 2.05 % 4
|
|
|
|
|
BuildTypeNameStr 10/10_mean 83.6 ns 83.7 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_median 83.2 ns 83.7 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_stddev 3.14 ns 2.85 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_cv 3.76 % 3.40 % 4
|
|
|
|
|
BuildTypeNameExp 10/10_mean 38.1 ns 37.9 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_median 38.1 ns 37.9 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_stddev 0.928 ns 0.503 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_cv 2.44 % 1.33 % 4
|
|
|
|
|
BuildTypeNameSim 10/10_mean 38.4 ns 38.5 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_median 38.3 ns 38.5 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_stddev 0.524 ns 0.683 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_cv 1.37 % 1.77 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Concat with replace str_mean 360 ns 359 ns 4
|
|
|
|
|
Concat with replace str_median 359 ns 359 ns 4
|
|
|
|
|
Concat with replace str_stddev 7.97 ns 8.46 ns 4
|
|
|
|
|
Concat with replace str_cv 2.21 % 2.36 % 4
|
|
|
|
|
Concat with replace exp_mean 219 ns 216 ns 4
|
|
|
|
|
Concat with replace exp_median 220 ns 217 ns 4
|
|
|
|
|
Concat with replace exp_stddev 4.19 ns 4.67 ns 4
|
|
|
|
|
Concat with replace exp_cv 1.91 % 2.16 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string e;_mean 2.52 ns 2.52 ns 4
|
|
|
|
|
std::string e;_median 2.52 ns 2.52 ns 4
|
|
|
|
|
std::string e;_stddev 0.027 ns 0.034 ns 4
|
|
|
|
|
std::string e;_cv 1.07 % 1.36 % 4
|
|
|
|
|
std::string_view e;_mean 1.82 ns 1.80 ns 4
|
|
|
|
|
std::string_view e;_median 1.81 ns 1.78 ns 4
|
|
|
|
|
std::string_view e;_stddev 0.049 ns 0.054 ns 4
|
|
|
|
|
std::string_view e;_cv 2.69 % 3.01 % 4
|
|
|
|
|
ssa e;_mean 1.81 ns 1.81 ns 4
|
|
|
|
|
ssa e;_median 1.80 ns 1.80 ns 4
|
|
|
|
|
ssa e;_stddev 0.016 ns 0.019 ns 4
|
|
|
|
|
ssa e;_cv 0.91 % 1.06 % 4
|
|
|
|
|
stringa e;_mean 2.22 ns 2.21 ns 4
|
|
|
|
|
stringa e;_median 2.20 ns 2.20 ns 4
|
|
|
|
|
stringa e;_stddev 0.044 ns 0.066 ns 4
|
|
|
|
|
stringa e;_cv 1.98 % 2.98 % 4
|
|
|
|
|
lstringa<20> e;_mean 2.54 ns 2.54 ns 4
|
|
|
|
|
lstringa<20> e;_median 2.53 ns 2.54 ns 4
|
|
|
|
|
lstringa<20> e;_stddev 0.044 ns 0.072 ns 4
|
|
|
|
|
lstringa<20> e;_cv 1.74 % 2.84 % 4
|
|
|
|
|
lstringa<40> e;_mean 2.56 ns 2.55 ns 4
|
|
|
|
|
lstringa<40> e;_median 2.54 ns 2.55 ns 4
|
|
|
|
|
lstringa<40> e;_stddev 0.066 ns 0.048 ns 4
|
|
|
|
|
lstringa<40> e;_cv 2.59 % 1.90 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string e = "Test text";_mean 2.58 ns 2.58 ns 4
|
|
|
|
|
std::string e = "Test text";_median 2.59 ns 2.58 ns 4
|
|
|
|
|
std::string e = "Test text";_stddev 0.059 ns 0.077 ns 4
|
|
|
|
|
std::string e = "Test text";_cv 2.28 % 2.97 % 4
|
|
|
|
|
std::string_view e = "Test text";_mean 1.83 ns 1.82 ns 4
|
2026-02-21 13:51:57 +00:00
|
|
|
std::string_view e = "Test text";_median 1.84 ns 1.84 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string_view e = "Test text";_stddev 0.032 ns 0.042 ns 4
|
|
|
|
|
std::string_view e = "Test text";_cv 1.76 % 2.30 % 4
|
|
|
|
|
ssa e = "Test text";_mean 1.82 ns 1.81 ns 4
|
|
|
|
|
ssa e = "Test text";_median 1.83 ns 1.82 ns 4
|
|
|
|
|
ssa e = "Test text";_stddev 0.007 ns 0.037 ns 4
|
|
|
|
|
ssa e = "Test text";_cv 0.41 % 2.03 % 4
|
|
|
|
|
stringa e = "Test text";_mean 2.55 ns 2.55 ns 4
|
|
|
|
|
stringa e = "Test text";_median 2.54 ns 2.57 ns 4
|
|
|
|
|
stringa e = "Test text";_stddev 0.025 ns 0.028 ns 4
|
|
|
|
|
stringa e = "Test text";_cv 1.00 % 1.09 % 4
|
|
|
|
|
lstringa<20> e = "Test text";_mean 2.53 ns 2.53 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_median 2.53 ns 2.55 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_stddev 0.041 ns 0.030 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_cv 1.64 % 1.17 % 4
|
|
|
|
|
lstringa<40> e = "Test text";_mean 2.55 ns 2.55 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_median 2.55 ns 2.54 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_stddev 0.047 ns 0.053 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_cv 1.85 % 2.09 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string e = "123456789012345678901234567890";_mean 78.9 ns 78.9 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_median 77.0 ns 76.7 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_stddev 4.84 ns 5.58 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_cv 6.14 % 7.08 % 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.84 ns 1.84 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_median 1.85 ns 1.84 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.051 ns 0.044 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_cv 2.78 % 2.41 % 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_mean 1.85 ns 1.85 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_median 1.84 ns 1.84 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_stddev 0.048 ns 0.019 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_cv 2.61 % 1.04 % 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_mean 2.87 ns 2.87 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_median 2.86 ns 2.86 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_stddev 0.031 ns 0.060 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_cv 1.09 % 2.09 % 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 76.9 ns 76.7 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_median 76.5 ns 75.9 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 2.03 ns 2.47 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.65 % 3.21 % 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.27 ns 3.26 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.27 ns 3.24 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.067 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.94 % 2.05 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string e = "Test text"; auto c{e};_mean 5.99 ns 6.00 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_median 5.96 ns 6.00 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_stddev 0.113 ns 0.114 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_cv 1.88 % 1.90 % 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_mean 3.47 ns 3.47 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_median 3.47 ns 3.49 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.037 ns 0.073 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.07 % 2.12 % 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_mean 3.46 ns 3.45 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_median 3.46 ns 3.45 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_stddev 0.022 ns 0.063 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_cv 0.64 % 1.81 % 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_mean 4.00 ns 3.99 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_median 4.00 ns 3.99 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_stddev 0.060 ns 0.074 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_cv 1.50 % 1.86 % 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.77 ns 4.78 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.80 ns 4.81 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.073 ns 0.134 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.54 % 2.80 % 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.89 ns 4.87 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.86 ns 4.87 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.057 ns 0.000 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.16 % 0.00 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 74.9 ns 74.3 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 74.9 ns 74.3 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.57 ns 2.70 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.10 % 3.64 % 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.82 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.82 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.043 ns 0.054 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.33 % 2.97 % 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.81 ns 1.81 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.82 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.040 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.89 % 2.21 % 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.90 ns 2.90 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.90 ns 2.92 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.031 ns 0.033 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.07 % 1.14 % 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 81.1 ns 81.5 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 81.3 ns 82.0 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.09 ns 2.19 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.57 % 2.69 % 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.73 ns 7.72 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.74 ns 7.76 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.176 ns 0.167 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.28 % 2.16 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
sz::string::find;_mean 115 ns 115 ns 4
|
|
|
|
|
sz::string::find;_median 115 ns 115 ns 4
|
|
|
|
|
sz::string::find;_stddev 1.15 ns 0.000 ns 4
|
|
|
|
|
sz::string::find;_cv 1.00 % 0.00 % 4
|
|
|
|
|
std::string::find;_mean 40.5 ns 40.4 ns 4
|
|
|
|
|
std::string::find;_median 40.5 ns 40.4 ns 4
|
|
|
|
|
std::string::find;_stddev 0.932 ns 1.17 ns 4
|
|
|
|
|
std::string::find;_cv 2.30 % 2.90 % 4
|
|
|
|
|
std::string_view::find;_mean 39.5 ns 39.5 ns 4
|
|
|
|
|
std::string_view::find;_median 39.7 ns 39.7 ns 4
|
|
|
|
|
std::string_view::find;_stddev 0.877 ns 0.835 ns 4
|
|
|
|
|
std::string_view::find;_cv 2.22 % 2.12 % 4
|
|
|
|
|
ssa::find;_mean 22.0 ns 22.0 ns 4
|
|
|
|
|
ssa::find;_median 22.0 ns 22.0 ns 4
|
|
|
|
|
ssa::find;_stddev 0.276 ns 0.000 ns 4
|
|
|
|
|
ssa::find;_cv 1.25 % 0.00 % 4
|
|
|
|
|
stringa::find;_mean 29.9 ns 29.8 ns 4
|
|
|
|
|
stringa::find;_median 29.9 ns 29.6 ns 4
|
|
|
|
|
stringa::find;_stddev 0.624 ns 0.746 ns 4
|
|
|
|
|
stringa::find;_cv 2.09 % 2.50 % 4
|
|
|
|
|
lstringa<20>::find;_mean 21.9 ns 21.9 ns 4
|
|
|
|
|
lstringa<20>::find;_median 21.8 ns 21.7 ns 4
|
|
|
|
|
lstringa<20>::find;_stddev 0.723 ns 1.01 ns 4
|
|
|
|
|
lstringa<20>::find;_cv 3.31 % 4.61 % 4
|
|
|
|
|
lstringa<40>::find;_mean 22.9 ns 22.8 ns 4
|
|
|
|
|
lstringa<40>::find;_median 22.7 ns 22.5 ns 4
|
|
|
|
|
lstringa<40>::find;_stddev 1.06 ns 0.906 ns 4
|
|
|
|
|
lstringa<40>::find;_cv 4.63 % 3.98 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string copy{str_with_len_N};/15_mean 5.09 ns 5.12 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_median 5.09 ns 5.16 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_stddev 0.068 ns 0.078 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_cv 1.34 % 1.53 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_mean 82.6 ns 82.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_median 83.4 ns 83.7 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_stddev 1.79 ns 1.74 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_cv 2.16 % 2.11 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_mean 83.1 ns 82.7 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_median 82.8 ns 82.7 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_stddev 1.49 ns 1.21 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_cv 1.79 % 1.46 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_mean 83.0 ns 83.3 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_median 83.6 ns 83.7 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_stddev 2.70 ns 2.62 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_cv 3.25 % 3.14 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_mean 85.5 ns 85.3 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_median 85.2 ns 84.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_stddev 1.52 ns 2.00 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_cv 1.78 % 2.35 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_mean 90.0 ns 89.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_median 90.2 ns 89.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_stddev 5.56 ns 5.42 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_cv 6.18 % 6.04 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_mean 89.5 ns 89.5 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_median 89.1 ns 88.9 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_stddev 2.50 ns 3.57 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_cv 2.79 % 3.99 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_mean 91.4 ns 91.0 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_median 90.8 ns 91.0 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_stddev 1.35 ns 1.21 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_cv 1.47 % 1.33 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_mean 93.4 ns 93.1 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_median 93.0 ns 93.1 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_stddev 3.23 ns 4.36 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_cv 3.46 % 4.68 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_mean 98.8 ns 98.9 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_median 98.7 ns 98.9 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_stddev 2.39 ns 3.15 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_cv 2.42 % 3.19 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_mean 132 ns 132 ns 4
|
2026-02-21 13:51:57 +00:00
|
|
|
std::string copy{str_with_len_N};/2048_median 131 ns 131 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string copy{str_with_len_N};/2048_stddev 5.42 ns 6.19 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_cv 4.11 % 4.69 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_mean 181 ns 180 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_median 180 ns 180 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_stddev 3.61 ns 4.43 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_cv 2.00 % 2.46 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_mean 4.03 ns 4.01 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_median 4.03 ns 4.01 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_stddev 0.045 ns 0.071 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_cv 1.11 % 1.77 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_mean 4.07 ns 4.08 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_median 4.10 ns 4.10 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_stddev 0.095 ns 0.110 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_cv 2.34 % 2.69 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_mean 3.99 ns 3.99 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_median 4.00 ns 3.97 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_stddev 0.069 ns 0.083 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_cv 1.74 % 2.09 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_mean 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_stddev 0.076 ns 0.342 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_cv 0.41 % 1.86 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_mean 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_median 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_stddev 0.151 ns 0.342 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_cv 0.82 % 1.86 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_mean 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_stddev 0.116 ns 0.000 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_cv 0.63 % 0.00 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_mean 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_stddev 0.138 ns 0.342 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_cv 0.75 % 1.86 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_mean 18.7 ns 18.6 ns 4
|
2026-02-21 13:51:57 +00:00
|
|
|
stringa copy{str_with_len_N};/256_median 18.5 ns 18.4 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
stringa copy{str_with_len_N};/256_stddev 0.642 ns 0.801 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_cv 3.44 % 4.30 % 4
|
2026-02-21 13:51:57 +00:00
|
|
|
stringa copy{str_with_len_N};/512_mean 18.5 ns 18.4 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
stringa copy{str_with_len_N};/512_median 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_stddev 0.171 ns 0.000 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_cv 0.92 % 0.00 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_mean 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_stddev 0.213 ns 0.000 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_cv 1.15 % 0.00 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_mean 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_stddev 0.059 ns 0.000 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_cv 0.32 % 0.00 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_mean 18.4 ns 18.3 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_stddev 0.199 ns 0.209 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_cv 1.09 % 1.14 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.55 ns 4.54 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.55 ns 4.54 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.015 ns 0.056 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_cv 0.33 % 1.24 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_mean 9.64 ns 9.68 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_median 9.68 ns 9.73 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.232 ns 0.200 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_cv 2.40 % 2.07 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_mean 9.66 ns 9.63 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_median 9.67 ns 9.63 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.180 ns 0.171 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.86 % 1.77 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_mean 82.0 ns 81.5 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_median 82.2 ns 81.1 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.687 ns 1.67 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_cv 0.84 % 2.05 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_mean 83.4 ns 83.2 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_median 83.1 ns 82.7 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 2.04 ns 2.00 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.45 % 2.41 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_mean 84.9 ns 84.8 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_median 83.4 ns 83.7 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 3.20 ns 3.62 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_cv 3.77 % 4.28 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_mean 88.6 ns 88.4 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_median 88.8 ns 88.9 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 3.20 ns 3.57 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_cv 3.61 % 4.04 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_mean 88.4 ns 88.4 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_median 88.4 ns 88.9 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 2.47 ns 2.00 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_cv 2.80 % 2.27 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_mean 91.7 ns 91.0 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_median 91.8 ns 91.0 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 1.34 ns 1.21 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_cv 1.46 % 1.33 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 95.5 ns 95.8 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_median 96.1 ns 96.4 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 2.53 ns 2.34 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 2.65 % 2.44 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 126 ns 126 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_median 126 ns 126 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 2.55 ns 2.28 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 2.02 % 1.81 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 186 ns 185 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_median 186 ns 186 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 1.25 ns 4.01 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 0.67 % 2.16 % 4
|
2026-02-21 13:51:57 +00:00
|
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.41 ns 4.39 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.42 ns 4.39 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.042 ns 0.080 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_cv 0.94 % 1.81 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_mean 9.30 ns 9.26 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_median 9.36 ns 9.21 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.161 ns 0.105 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_cv 1.73 % 1.13 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_mean 9.29 ns 9.21 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_median 9.34 ns 9.21 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.178 ns 0.171 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_cv 1.92 % 1.86 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_mean 9.52 ns 9.52 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_median 9.37 ns 9.31 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.423 ns 0.498 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_cv 4.44 % 5.23 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_mean 12.3 ns 12.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_median 12.2 ns 12.1 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.336 ns 0.395 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_cv 2.74 % 3.21 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_mean 12.0 ns 12.0 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_median 12.0 ns 12.1 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.235 ns 0.234 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.95 % 1.94 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_mean 13.0 ns 12.9 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.9 ns 12.8 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.377 ns 0.419 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.91 % 3.24 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_mean 13.8 ns 13.8 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_median 13.8 ns 13.8 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.353 ns 0.362 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_cv 2.57 % 2.62 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_mean 15.3 ns 15.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_median 15.3 ns 15.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.105 ns 0.174 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_cv 0.69 % 1.14 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 95.2 ns 95.2 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_median 95.1 ns 95.2 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.03 ns 2.70 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.13 % 2.84 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 129 ns 128 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_median 129 ns 128 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 3.04 ns 2.28 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 2.37 % 1.77 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 195 ns 194 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_median 194 ns 193 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 7.18 ns 8.34 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 3.69 % 4.30 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 34.4 ns 34.3 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 35.0 ns 34.9 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.74 ns 2.02 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 5.07 % 5.88 % 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.6 ns 12.6 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.8 ns 12.7 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.558 ns 0.603 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 4.44 % 4.80 % 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.7 ns 17.6 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 17.7 ns 17.6 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.527 ns 0.443 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.98 % 2.51 % 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.3 ns 16.3 ns 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.2 ns 16.4 ns 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.778 ns 0.773 ns 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.77 % 4.74 % 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 14.8 ns 14.8 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 14.8 ns 14.8 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.247 ns 0.495 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.68 % 3.35 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 34.5 ns 34.6 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.7 ns 34.4 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.888 ns 0.922 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.57 % 2.66 % 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.74 ns 8.76 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.68 ns 8.72 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.177 ns 0.087 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.02 % 1.00 % 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 14.2 ns 14.2 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 14.1 ns 14.2 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.191 ns 0.228 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.35 % 1.60 % 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.1 ns 13.1 ns 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.1 ns 13.1 ns 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.084 ns 0.000 ns 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.64 % 0.00 % 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.5 ns 12.5 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.4 ns 12.3 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.430 ns 0.462 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.43 % 3.69 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 45.5 ns 45.0 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.8 ns 45.5 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.25 ns 1.01 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.76 % 2.25 % 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 22.0 ns 21.9 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 21.9 ns 22.0 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.240 ns 0.244 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.09 % 1.12 % 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 18.7 ns 18.6 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 18.7 ns 18.6 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.123 ns 0.242 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 0.66 % 1.30 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 99.9 ns 99.4 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 100 ns 99.4 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.755 ns 1.21 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 0.76 % 1.22 % 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 85.0 ns 85.0 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 85.2 ns 85.4 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.06 ns 2.62 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.25 % 3.08 % 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 37.0 ns 36.9 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 37.2 ns 36.9 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.515 ns 0.655 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.39 % 1.77 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5668 ns 5685 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5689 ns 5720 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 158 ns 209 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.79 % 3.68 % 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1286 ns 1290 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1286 ns 1283 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 29.6 ns 41.9 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.30 % 3.24 % 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 929 ns 926 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 923 ns 921 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 14.9 ns 10.5 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.60 % 1.13 % 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 539 ns 537 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 538 ns 537 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 12.8 ns 18.0 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.37 % 3.35 % 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 350 ns 349 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 350 ns 353 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 8.11 ns 7.67 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.31 % 2.20 % 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 227 ns 226 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 227 ns 225 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.56 ns 2.62 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.69 % 1.16 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- 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
|
2026-02-27 20:05:49 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 5590 ns 5586 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5588 ns 5547 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 49.6 ns 150 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 0.89 % 2.68 % 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3966 ns 3951 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3937 ns 3971 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 146 ns 165 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.68 % 4.19 % 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 829 ns 824 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 828 ns 828 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 16.4 ns 16.7 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.98 % 2.03 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 535 ns 535 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 540 ns 539 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.6 ns 15.0 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.73 % 2.80 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 377 ns 375 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 377 ns 377 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.05 ns 12.0 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.40 % 3.21 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 281 ns 278 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 281 ns 275 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.89 ns 9.37 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.46 % 3.37 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- 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
|
2026-02-27 20:05:49 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 287657 ns 287595 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 289098 ns 287595 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4494 ns 3424 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.56 % 1.19 % 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 196942 ns 196725 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 197261 ns 196725 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3705 ns 3418 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.88 % 1.74 % 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 26361 ns 26367 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 26402 ns 26507 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 432 ns 534 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.64 % 2.03 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23270 ns 23071 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23114 ns 22949 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 567 ns 614 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.66 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21890 ns 21763 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21824 ns 21536 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 503 ns 641 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.30 % 2.95 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22257 ns 22217 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22271 ns 22217 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 384 ns 282 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.73 % 1.27 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 5535 ns 5511 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5520 ns 5441 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 187 ns 267 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 3.38 % 4.85 % 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_mean 4014 ns 4018 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_median 4004 ns 4018 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 64.9 ns 68.3 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.62 % 1.70 % 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 924 ns 909 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 924 ns 916 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 34.1 ns 23.4 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.69 % 2.57 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 607 ns 609 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 607 ns 609 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 1.96 ns 0.000 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 0.32 % 0.00 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 471 ns 471 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 470 ns 471 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.67 ns 12.1 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.84 % 2.57 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 355 ns 353 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 356 ns 353 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.84 ns 0.000 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.36 % 0.00 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11311 ns 11292 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_median 11176 ns 11230 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 302 ns 122 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.67 % 1.08 % 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1258 ns 1263 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1262 ns 1282 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 37.8 ns 46.2 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.00 % 3.66 % 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2797 ns 2778 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2801 ns 2762 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 85.5 ns 94.2 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.06 % 3.39 % 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_mean 2370 ns 2341 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_median 2368 ns 2354 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_stddev 39.7 ns 26.2 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_cv 1.67 % 1.12 % 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2624 ns 2623 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2611 ns 2623 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 64.1 ns 91.1 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.44 % 3.47 % 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1513 ns 1508 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1512 ns 1500 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 9.49 ns 17.4 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 0.63 % 1.16 % 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_mean 877 ns 874 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_median 878 ns 879 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_stddev 10.8 ns 10.5 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.24 % 1.20 % 4
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_mean 171 ns 170 ns 4
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_median 171 ns 169 ns 4
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_stddev 1.50 ns 1.92 ns 4
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_cv 0.88 % 1.13 % 4
|
|
|
|
|
stringa str = "test = " + k + " times";_mean 172 ns 170 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_median 170 ns 167 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_stddev 6.14 ns 7.26 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_cv 3.57 % 4.28 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
std::string::find + substr + std::strtol_mean 555 ns 555 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_median 551 ns 555 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_stddev 15.3 ns 20.2 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_cv 2.75 % 3.64 % 4
|
|
|
|
|
ssa::splitter + ssa::as_int_mean 306 ns 306 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_median 306 ns 308 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_stddev 5.10 ns 6.34 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_cv 1.67 % 2.07 % 4
|
|
|
|
|
ssa::splitf + functor_mean 212 ns 212 ns 4
|
|
|
|
|
ssa::splitf + functor_median 212 ns 212 ns 4
|
|
|
|
|
ssa::splitf + functor_stddev 3.09 ns 2.82 ns 4
|
|
|
|
|
ssa::splitf + functor_cv 1.46 % 1.33 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 1249 ns 1242 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1243 ns 1242 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 25.7 ns 16.1 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 2.06 % 1.30 % 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_mean 2111 ns 2112 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_median 2120 ns 2124 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_stddev 40.3 ns 46.7 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_cv 1.91 % 2.21 % 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_mean 2522 ns 2524 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_median 2532 ns 2537 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_stddev 62.3 ns 89.3 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.47 % 3.54 % 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1682 ns 1683 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1674 ns 1674 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 42.2 ns 43.9 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 2.51 % 2.61 % 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1470 ns 1467 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_median 1477 ns 1475 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 36.7 ns 39.5 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.50 % 2.69 % 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_mean 1271 ns 1270 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_median 1267 ns 1270 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_stddev 16.4 ns 16.1 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.29 % 1.27 % 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_mean 1209 ns 1208 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_median 1212 ns 1208 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_stddev 45.2 ns 50.8 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_cv 3.74 % 4.21 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_mean 327 ns 326 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 328 ns 326 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.16 ns 9.46 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.88 % 2.90 % 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_mean 407 ns 408 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_median 409 ns 410 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_stddev 10.7 ns 16.5 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_cv 2.63 % 4.04 % 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 339 ns 338 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_median 335 ns 334 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 11.6 ns 10.9 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 3.42 % 3.21 % 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 309 ns 308 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 308 ns 308 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 10.7 ns 11.5 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 3.47 % 3.72 % 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 387 ns 388 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 385 ns 388 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 4.16 ns 5.03 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 1.07 % 1.30 % 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 250 ns 251 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_median 250 ns 252 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 4.69 ns 5.68 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 1.87 % 2.27 % 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 363 ns 364 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_median 353 ns 356 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 33.0 ns 32.4 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 9.09 % 8.90 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
replace bb to ---- in std::string|64_mean 239 ns 237 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_median 237 ns 233 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_stddev 10.1 ns 13.8 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_cv 4.24 % 5.81 % 4
|
|
|
|
|
replace bb to ---- in std::string|256_mean 755 ns 759 ns 4
|
|
|
|
|
replace bb to ---- in std::string|256_median 755 ns 759 ns 4
|
|
|
|
|
replace bb to ---- in std::string|256_stddev 4.49 ns 10.1 ns 4
|
|
|
|
|
replace bb to ---- in std::string|256_cv 0.59 % 1.33 % 4
|
|
|
|
|
replace bb to ---- in std::string|512_mean 1467 ns 1472 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_median 1477 ns 1479 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_stddev 40.7 ns 41.9 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_cv 2.78 % 2.84 % 4
|
|
|
|
|
replace bb to ---- in std::string|1024_mean 3081 ns 3069 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_median 3092 ns 3069 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_stddev 92.5 ns 57.0 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_cv 3.00 % 1.86 % 4
|
|
|
|
|
replace bb to ---- in std::string|2048_mean 7858 ns 7847 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_median 7864 ns 7847 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_stddev 27.0 ns 0.000 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_cv 0.34 % 0.00 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_mean 231 ns 229 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_median 233 ns 234 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_stddev 4.75 ns 9.77 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_cv 2.05 % 4.26 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_mean 653 ns 652 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_median 655 ns 656 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_stddev 5.12 ns 6.98 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_cv 0.78 % 1.07 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_mean 1115 ns 1117 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_median 1117 ns 1111 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_stddev 19.9 ns 23.4 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_cv 1.78 % 2.09 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_mean 2048 ns 2039 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_median 2051 ns 2051 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_stddev 15.3 ns 24.4 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_cv 0.75 % 1.20 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_mean 3807 ns 3815 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_median 3826 ns 3793 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_stddev 58.0 ns 83.5 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_cv 1.52 % 2.19 % 4
|
|
|
|
|
replace bb to ---- by init stringa|64_mean 197 ns 197 ns 4
|
2026-02-21 13:51:57 +00:00
|
|
|
replace bb to ---- by init stringa|64_median 199 ns 199 ns 4
|
2026-02-27 20:05:49 +00:00
|
|
|
replace bb to ---- by init stringa|64_stddev 6.03 ns 5.92 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|64_cv 3.06 % 3.01 % 4
|
|
|
|
|
replace bb to ---- by init stringa|256_mean 448 ns 448 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_median 449 ns 445 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_stddev 5.06 ns 5.06 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_cv 1.13 % 1.13 % 4
|
|
|
|
|
replace bb to ---- by init stringa|512_mean 1049 ns 1044 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_median 1049 ns 1038 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_stddev 11.9 ns 23.4 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_cv 1.14 % 2.24 % 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_mean 2172 ns 2184 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_median 2165 ns 2171 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_stddev 32.6 ns 50.1 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_cv 1.50 % 2.29 % 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_mean 4373 ns 4374 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_median 4358 ns 4400 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_stddev 39.9 ns 96.8 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_cv 0.91 % 2.21 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
replace bb to -- in std::string|64_mean 196 ns 197 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_median 198 ns 198 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_stddev 5.36 ns 3.67 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_cv 2.73 % 1.87 % 4
|
|
|
|
|
replace bb to -- in std::string|256_mean 503 ns 502 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_median 504 ns 502 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_stddev 4.40 ns 0.000 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_cv 0.88 % 0.00 % 4
|
|
|
|
|
replace bb to -- in std::string|512_mean 898 ns 900 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_median 896 ns 900 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_stddev 10.5 ns 0.000 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_cv 1.17 % 0.00 % 4
|
|
|
|
|
replace bb to -- in std::string|1024_mean 1731 ns 1717 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_median 1739 ns 1726 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_stddev 37.2 ns 48.3 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_cv 2.15 % 2.81 % 4
|
|
|
|
|
replace bb to -- in std::string|2048_mean 3433 ns 3414 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_median 3446 ns 3453 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_stddev 35.2 ns 76.7 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_cv 1.02 % 2.25 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_mean 185 ns 185 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_median 185 ns 186 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_stddev 3.26 ns 4.01 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_cv 1.76 % 2.16 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_mean 442 ns 442 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_median 442 ns 444 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_stddev 7.93 ns 9.35 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_cv 1.79 % 2.12 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_mean 765 ns 759 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_median 763 ns 759 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_stddev 18.5 ns 22.5 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_cv 2.42 % 2.97 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_mean 1447 ns 1439 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_median 1434 ns 1430 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_stddev 47.0 ns 43.9 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_cv 3.24 % 3.05 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_mean 2826 ns 2841 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_median 2809 ns 2825 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_stddev 71.6 ns 94.2 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_cv 2.53 % 3.31 % 4
|
|
|
|
|
replace bb to -- by init stringa|64_mean 163 ns 163 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_median 163 ns 161 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_stddev 3.63 ns 5.12 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_cv 2.22 % 3.14 % 4
|
|
|
|
|
replace bb to -- by init stringa|256_mean 373 ns 375 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_median 373 ns 373 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_stddev 4.20 ns 7.68 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_cv 1.12 % 2.05 % 4
|
|
|
|
|
replace bb to -- by init stringa|512_mean 620 ns 621 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_median 619 ns 621 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_stddev 14.8 ns 18.0 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_cv 2.39 % 2.90 % 4
|
|
|
|
|
replace bb to -- by init stringa|1024_mean 1101 ns 1104 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_median 1097 ns 1099 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_stddev 18.7 ns 20.0 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_cv 1.70 % 1.82 % 4
|
|
|
|
|
replace bb to -- by init stringa|2048_mean 2114 ns 2097 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_median 2100 ns 2063 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_stddev 59.2 ns 85.8 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_cv 2.80 % 4.09 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4373144 ns 4370117 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4344827 ns 4394531 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 67271 ns 48828 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.54 % 1.12 % 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5795906 ns 5789621 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5739451 ns 5719866 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 137198 ns 139509 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.37 % 2.41 % 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3917153 ns 3906250 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3909701 ns 3884427 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 89050 ns 83574 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 2.27 % 2.14 % 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6341143 ns 6367188 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6355890 ns 6328125 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 140221 ns 149598 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.21 % 2.35 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
Build func full name std::string;_mean 1574 ns 1573 ns 4
|
|
|
|
|
Build func full name std::string;_median 1554 ns 1554 ns 4
|
|
|
|
|
Build func full name std::string;_stddev 54.9 ns 82.9 ns 4
|
|
|
|
|
Build func full name std::string;_cv 3.49 % 5.27 % 4
|
|
|
|
|
Build func full name std::string 1;_mean 1638 ns 1622 ns 4
|
|
|
|
|
Build func full name std::string 1;_median 1650 ns 1622 ns 4
|
|
|
|
|
Build func full name std::string 1;_stddev 30.1 ns 45.0 ns 4
|
|
|
|
|
Build func full name std::string 1;_cv 1.84 % 2.78 % 4
|
|
|
|
|
Build func full name std::stream;_mean 9771 ns 9783 ns 4
|
|
|
|
|
Build func full name std::stream;_median 9837 ns 9835 ns 4
|
|
|
|
|
Build func full name std::stream;_stddev 184 ns 105 ns 4
|
|
|
|
|
Build func full name std::stream;_cv 1.88 % 1.07 % 4
|
|
|
|
|
Build func full name stringa;_mean 855 ns 859 ns 4
|
|
|
|
|
Build func full name stringa;_median 856 ns 863 ns 4
|
|
|
|
|
Build func full name stringa;_stddev 13.9 ns 16.7 ns 4
|
|
|
|
|
Build func full name stringa;_cv 1.63 % 1.94 % 4
|
|
|
|
|
Build func full name stringa 1;_mean 988 ns 989 ns 4
|
|
|
|
|
Build func full name stringa 1;_median 989 ns 989 ns 4
|
|
|
|
|
Build func full name stringa 1;_stddev 21.9 ns 31.5 ns 4
|
|
|
|
|
Build func full name stringa 1;_cv 2.22 % 3.19 % 4
|
2026-02-15 14:13:54 +00:00
|
|
|
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-27 20:05:49 +00:00
|
|
|
To upper case std::wstring_mean 1404 ns 1397 ns 4
|
|
|
|
|
To upper case std::wstring_median 1411 ns 1397 ns 4
|
|
|
|
|
To upper case std::wstring_stddev 29.0 ns 18.1 ns 4
|
|
|
|
|
To upper case std::wstring_cv 2.06 % 1.30 % 4
|
|
|
|
|
To upper case lstringw<15>_mean 47.9 ns 48.1 ns 4
|
|
|
|
|
To upper case lstringw<15>_median 47.7 ns 48.1 ns 4
|
|
|
|
|
To upper case lstringw<15>_stddev 0.855 ns 0.854 ns 4
|
|
|
|
|
To upper case lstringw<15>_cv 1.78 % 1.77 % 4
|