2026-02-15 14:13:54 +00:00
|
|
|
Benchmarks of simstr, version 1.7.0
|
2026-02-03 07:38:21 +00:00
|
|
|
Sources: https://github.com/orefkov/simstr
|
|
|
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
|
|
2026-02-15 14:13:54 +00:00
|
|
|
2026-02-15T17:29:05+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-15 14:13:54 +00:00
|
|
|
Concat email std::format_mean 253 ns 250 ns 4
|
|
|
|
|
Concat email std::format_median 253 ns 251 ns 4
|
|
|
|
|
Concat email std::format_stddev 5.93 ns 8.37 ns 4
|
|
|
|
|
Concat email std::format_cv 2.35 % 3.35 % 4
|
|
|
|
|
Concat email std::stringstream_mean 946 ns 947 ns 4
|
|
|
|
|
Concat email std::stringstream_median 949 ns 952 ns 4
|
|
|
|
|
Concat email std::stringstream_stddev 15.5 ns 20.0 ns 4
|
|
|
|
|
Concat email std::stringstream_cv 1.64 % 2.12 % 4
|
|
|
|
|
Concat email stringzilla append_mean 289 ns 289 ns 4
|
|
|
|
|
Concat email stringzilla append_median 282 ns 283 ns 4
|
|
|
|
|
Concat email stringzilla append_stddev 27.8 ns 27.1 ns 4
|
|
|
|
|
Concat email stringzilla append_cv 9.60 % 9.39 % 4
|
|
|
|
|
Concat email stringzilla concat_mean 134 ns 133 ns 4
|
|
|
|
|
Concat email stringzilla concat_median 133 ns 133 ns 4
|
|
|
|
|
Concat email stringzilla concat_stddev 4.42 ns 5.75 ns 4
|
|
|
|
|
Concat email stringzilla concat_cv 3.29 % 4.32 % 4
|
|
|
|
|
Concat email std::string append_mean 194 ns 194 ns 4
|
|
|
|
|
Concat email std::string append_median 194 ns 195 ns 4
|
|
|
|
|
Concat email std::string append_stddev 3.38 ns 4.01 ns 4
|
|
|
|
|
Concat email std::string append_cv 1.74 % 2.07 % 4
|
|
|
|
|
Concat email std::string by strexpr_mean 112 ns 112 ns 4
|
|
|
|
|
Concat email std::string by strexpr_median 108 ns 109 ns 4
|
|
|
|
|
Concat email std::string by strexpr_stddev 10.5 ns 8.77 ns 4
|
|
|
|
|
Concat email std::string by strexpr_cv 9.36 % 7.86 % 4
|
|
|
|
|
Concat email stringa_mean 98.1 ns 97.8 ns 4
|
|
|
|
|
Concat email stringa_median 97.8 ns 98.4 ns 4
|
|
|
|
|
Concat email stringa_stddev 1.61 ns 1.05 ns 4
|
|
|
|
|
Concat email stringa_cv 1.64 % 1.07 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
Concat std::string and number by std to std::string_mean 314 ns 314 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_median 315 ns 314 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_stddev 5.84 ns 5.70 ns 4
|
|
|
|
|
Concat std::string and number by std to std::string_cv 1.86 % 1.81 % 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_mean 206 ns 205 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_median 207 ns 206 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_stddev 3.52 ns 4.34 ns 4
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_cv 1.71 % 2.12 % 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 102 ns 103 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 102 ns 103 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.05 ns 2.42 ns 4
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 2.00 % 2.36 % 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 109 ns 109 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_median 109 ns 109 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.23 ns 1.41 ns 4
|
|
|
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 1.13 % 1.30 % 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-15 14:13:54 +00:00
|
|
|
Concat std::string and format hex number and literal to std::string_mean 1073 ns 1074 ns 4
|
|
|
|
|
Concat std::string and format hex number and literal to std::string_median 1092 ns 1099 ns 4
|
|
|
|
|
Concat std::string and format hex number and literal to std::string_stddev 43.6 ns 48.8 ns 4
|
|
|
|
|
Concat std::string and format hex number and literal to std::string_cv 4.06 % 4.55 % 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_mean 1843 ns 1831 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_median 1855 ns 1842 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_stddev 51.7 ns 52.7 ns 4
|
|
|
|
|
std::format std::string and hex number by literal to std::string_cv 2.81 % 2.88 % 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_mean 255 ns 254 ns 4
|
2026-02-14 10:09:54 +00:00
|
|
|
Concat std::string and std::to_chars and string to std::string_median 252 ns 251 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
Concat std::string and std::to_chars and string to std::string_stddev 7.07 ns 9.67 ns 4
|
|
|
|
|
Concat std::string and std::to_chars and string to std::string_cv 2.77 % 3.81 % 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 114 ns 114 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 115 ns 114 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.19 ns 1.41 ns 4
|
|
|
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.92 % 1.24 % 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 102 ns 102 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 101 ns 103 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.23 ns 1.05 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.21 % 1.03 % 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 104 ns 104 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 104 ns 104 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.27 ns 1.21 ns 4
|
|
|
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.22 % 1.17 % 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 176 ns 176 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 173 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 6.74 ns 8.51 ns 4
|
|
|
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 3.83 % 4.85 % 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 365 ns 364 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 361 ns 360 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 17.5 ns 16.0 ns 4
|
|
|
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 4.79 % 4.40 % 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-15 14:13:54 +00:00
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 682 ns 680 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 680 ns 680 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 11.4 ns 14.2 ns 4
|
|
|
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.68 % 2.09 % 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 798 ns 789 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 797 ns 793 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 9.41 ns 16.7 ns 4
|
|
|
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.18 % 2.12 % 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1128 ns 1123 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 1126 ns 1116 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 14.0 ns 14.0 ns 4
|
|
|
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.24 % 1.24 % 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1577 ns 1561 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1586 ns 1552 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 50.1 ns 33.4 ns 4
|
|
|
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.18 % 2.14 % 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1535 ns 1526 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1533 ns 1535 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 18.5 ns 17.4 ns 4
|
|
|
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.21 % 1.14 % 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1931 ns 1925 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1928 ns 1925 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 13.5 ns 34.2 ns 4
|
|
|
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.70 % 1.77 % 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1914 ns 1904 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_median 1914 ns 1904 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 33.0 ns 39.9 ns 4
|
|
|
|
|
std::vformat(pattern, std::make_format_args(i))_cv 1.73 % 2.09 % 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7062 ns 7080 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 7063 ns 7115 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 72.3 ns 69.8 ns 4
|
|
|
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.02 % 0.99 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-14 10:09:54 +00:00
|
|
|
Concat std::string by std to std::string_mean 55.6 ns 55.1 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
Concat std::string by std to std::string_median 55.1 ns 55.1 ns 4
|
|
|
|
|
Concat std::string by std to std::string_stddev 1.80 ns 0.805 ns 4
|
|
|
|
|
Concat std::string by std to std::string_cv 3.25 % 1.46 % 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_mean 79.3 ns 78.5 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_median 78.2 ns 76.4 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_stddev 4.56 ns 4.98 ns 4
|
|
|
|
|
Concat std::string by StrExpr to std::string_cv 5.74 % 6.35 % 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_mean 50.7 ns 50.8 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_median 50.5 ns 50.8 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_stddev 0.846 ns 0.902 ns 4
|
|
|
|
|
Concat stringa by StrExpr to stringa_cv 1.67 % 1.78 % 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-15 14:13:54 +00:00
|
|
|
Find concat three std::string_mean 219 ns 219 ns 4
|
|
|
|
|
Find concat three std::string_median 217 ns 218 ns 4
|
|
|
|
|
Find concat three std::string_stddev 6.16 ns 5.71 ns 4
|
|
|
|
|
Find concat three std::string_cv 2.81 % 2.61 % 4
|
|
|
|
|
Find concat three strexpr_mean 125 ns 122 ns 4
|
|
|
|
|
Find concat three strexpr_median 125 ns 123 ns 4
|
|
|
|
|
Find concat three strexpr_stddev 1.56 ns 1.40 ns 4
|
|
|
|
|
Find concat three strexpr_cv 1.25 % 1.14 % 4
|
|
|
|
|
Find concat three simstr_mean 28.4 ns 28.3 ns 4
|
|
|
|
|
Find concat three simstr_median 28.1 ns 28.5 ns 4
|
|
|
|
|
Find concat three simstr_stddev 0.520 ns 0.746 ns 4
|
|
|
|
|
Find concat three simstr_cv 1.83 % 2.64 % 4
|
2026-02-14 10:09:54 +00:00
|
|
|
Find concat three stringzilla string_mean 228 ns 228 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
Find concat three stringzilla string_median 230 ns 228 ns 4
|
|
|
|
|
Find concat three stringzilla string_stddev 4.04 ns 3.02 ns 4
|
|
|
|
|
Find concat three stringzilla string_cv 1.77 % 1.33 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
BuildTypeNameStr 0/0_mean 17.4 ns 17.5 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_median 17.5 ns 17.4 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_stddev 0.363 ns 0.401 ns 4
|
|
|
|
|
BuildTypeNameStr 0/0_cv 2.08 % 2.29 % 4
|
|
|
|
|
BuildTypeNameExp 0/0_mean 12.8 ns 12.6 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_median 12.8 ns 12.7 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_stddev 0.250 ns 0.267 ns 4
|
|
|
|
|
BuildTypeNameExp 0/0_cv 1.95 % 2.12 % 4
|
|
|
|
|
BuildTypeNameSim 0/0_mean 15.1 ns 15.1 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_median 15.2 ns 15.2 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_stddev 0.179 ns 0.334 ns 4
|
|
|
|
|
BuildTypeNameSim 0/0_cv 1.18 % 2.21 % 4
|
|
|
|
|
BuildTypeNameStr 10/10_mean 77.5 ns 77.2 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_median 77.5 ns 77.6 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_stddev 0.577 ns 1.67 ns 4
|
|
|
|
|
BuildTypeNameStr 10/10_cv 0.74 % 2.16 % 4
|
|
|
|
|
BuildTypeNameExp 10/10_mean 39.5 ns 39.4 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_median 39.6 ns 39.4 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_stddev 0.364 ns 0.524 ns 4
|
|
|
|
|
BuildTypeNameExp 10/10_cv 0.92 % 1.33 % 4
|
|
|
|
|
BuildTypeNameSim 10/10_mean 38.3 ns 38.1 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_median 37.7 ns 37.6 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_stddev 1.77 ns 1.28 ns 4
|
|
|
|
|
BuildTypeNameSim 10/10_cv 4.61 % 3.37 % 4
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
Concat with replace str_mean 343 ns 341 ns 4
|
|
|
|
|
Concat with replace str_median 343 ns 345 ns 4
|
|
|
|
|
Concat with replace str_stddev 0.499 ns 7.67 ns 4
|
|
|
|
|
Concat with replace str_cv 0.15 % 2.25 % 4
|
|
|
|
|
Concat with replace exp_mean 225 ns 223 ns 4
|
|
|
|
|
Concat with replace exp_median 224 ns 222 ns 4
|
|
|
|
|
Concat with replace exp_stddev 6.12 ns 4.67 ns 4
|
|
|
|
|
Concat with replace exp_cv 2.71 % 2.09 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
std::string e;_mean 2.59 ns 2.59 ns 4
|
|
|
|
|
std::string e;_median 2.57 ns 2.61 ns 4
|
|
|
|
|
std::string e;_stddev 0.037 ns 0.030 ns 4
|
|
|
|
|
std::string e;_cv 1.43 % 1.14 % 4
|
|
|
|
|
std::string_view e;_mean 1.84 ns 1.83 ns 4
|
2026-02-14 10:09:54 +00:00
|
|
|
std::string_view e;_median 1.83 ns 1.84 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
std::string_view e;_stddev 0.043 ns 0.053 ns 4
|
|
|
|
|
std::string_view e;_cv 2.33 % 2.88 % 4
|
|
|
|
|
ssa e;_mean 1.84 ns 1.83 ns 4
|
|
|
|
|
ssa e;_median 1.85 ns 1.84 ns 4
|
|
|
|
|
ssa e;_stddev 0.043 ns 0.021 ns 4
|
|
|
|
|
ssa e;_cv 2.32 % 1.14 % 4
|
|
|
|
|
stringa e;_mean 2.20 ns 2.20 ns 4
|
|
|
|
|
stringa e;_median 2.19 ns 2.20 ns 4
|
|
|
|
|
stringa e;_stddev 0.020 ns 0.000 ns 4
|
|
|
|
|
stringa e;_cv 0.90 % 0.00 % 4
|
|
|
|
|
lstringa<20> e;_mean 2.58 ns 2.56 ns 4
|
|
|
|
|
lstringa<20> e;_median 2.57 ns 2.58 ns 4
|
|
|
|
|
lstringa<20> e;_stddev 0.066 ns 0.057 ns 4
|
|
|
|
|
lstringa<20> e;_cv 2.54 % 2.21 % 4
|
|
|
|
|
lstringa<40> e;_mean 2.54 ns 2.53 ns 4
|
|
|
|
|
lstringa<40> e;_median 2.54 ns 2.55 ns 4
|
|
|
|
|
lstringa<40> e;_stddev 0.047 ns 0.075 ns 4
|
|
|
|
|
lstringa<40> e;_cv 1.85 % 2.94 % 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-15 14:13:54 +00:00
|
|
|
std::string e = "Test text";_mean 2.53 ns 2.53 ns 4
|
|
|
|
|
std::string e = "Test text";_median 2.53 ns 2.54 ns 4
|
|
|
|
|
std::string e = "Test text";_stddev 0.008 ns 0.053 ns 4
|
|
|
|
|
std::string e = "Test text";_cv 0.32 % 2.12 % 4
|
|
|
|
|
std::string_view e = "Test text";_mean 1.84 ns 1.81 ns 4
|
|
|
|
|
std::string_view e = "Test text";_median 1.83 ns 1.80 ns 4
|
|
|
|
|
std::string_view e = "Test text";_stddev 0.026 ns 0.019 ns 4
|
|
|
|
|
std::string_view e = "Test text";_cv 1.40 % 1.06 % 4
|
|
|
|
|
ssa e = "Test text";_mean 1.82 ns 1.82 ns 4
|
|
|
|
|
ssa e = "Test text";_median 1.82 ns 1.82 ns 4
|
|
|
|
|
ssa e = "Test text";_stddev 0.021 ns 0.024 ns 4
|
|
|
|
|
ssa e = "Test text";_cv 1.18 % 1.33 % 4
|
|
|
|
|
stringa e = "Test text";_mean 3.04 ns 3.05 ns 4
|
|
|
|
|
stringa e = "Test text";_median 3.03 ns 3.05 ns 4
|
|
|
|
|
stringa e = "Test text";_stddev 0.102 ns 0.108 ns 4
|
|
|
|
|
stringa e = "Test text";_cv 3.34 % 3.55 % 4
|
|
|
|
|
lstringa<20> e = "Test text";_mean 2.57 ns 2.55 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_median 2.58 ns 2.54 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_stddev 0.050 ns 0.053 ns 4
|
|
|
|
|
lstringa<20> e = "Test text";_cv 1.95 % 2.09 % 4
|
|
|
|
|
lstringa<40> e = "Test text";_mean 2.62 ns 2.61 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_median 2.62 ns 2.61 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_stddev 0.037 ns 0.048 ns 4
|
|
|
|
|
lstringa<40> e = "Test text";_cv 1.43 % 1.86 % 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-15 14:13:54 +00:00
|
|
|
std::string e = "123456789012345678901234567890";_mean 77.2 ns 77.2 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_median 77.7 ns 77.6 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_stddev 2.77 ns 2.98 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890";_cv 3.59 % 3.86 % 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.84 ns 1.84 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_median 1.84 ns 1.84 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.026 ns 0.000 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.42 % 0.00 % 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_mean 1.84 ns 1.82 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_median 1.83 ns 1.81 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_stddev 0.030 ns 0.023 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890";_cv 1.64 % 1.24 % 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_mean 2.20 ns 2.20 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_median 2.22 ns 2.20 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_stddev 0.037 ns 0.043 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890";_cv 1.67 % 1.94 % 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 74.5 ns 74.6 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_median 74.3 ns 74.1 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.880 ns 1.67 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.18 % 2.24 % 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.34 ns 3.32 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.35 ns 3.34 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.073 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.94 % 2.21 % 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-15 14:13:54 +00:00
|
|
|
std::string e = "Test text"; auto c{e};_mean 5.36 ns 5.39 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_median 5.34 ns 5.39 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_stddev 0.073 ns 0.090 ns 4
|
|
|
|
|
std::string e = "Test text"; auto c{e};_cv 1.36 % 1.67 % 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_mean 2.92 ns 2.92 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_median 2.90 ns 2.92 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.054 ns 0.054 ns 4
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.86 % 1.86 % 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_mean 2.92 ns 2.92 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_median 2.93 ns 2.92 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_stddev 0.048 ns 0.054 ns 4
|
|
|
|
|
ssa e = "Test text"; auto c{e};_cv 1.63 % 1.86 % 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_mean 4.11 ns 4.12 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_median 4.12 ns 4.14 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_stddev 0.090 ns 0.083 ns 4
|
|
|
|
|
stringa e = "Test text"; auto c{e};_cv 2.18 % 2.03 % 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.71 ns 4.73 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.71 ns 4.76 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.056 ns 0.054 ns 4
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.20 % 1.14 % 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 5.44 ns 5.47 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_median 5.42 ns 5.47 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.041 ns 0.128 ns 4
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 0.75 % 2.33 % 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-15 14:13:54 +00:00
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 78.7 ns 78.9 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 79.0 ns 78.5 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.960 ns 0.872 ns 4
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.22 % 1.10 % 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.49 ns 1.49 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.48 ns 1.49 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.028 ns 0.018 ns 4
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.87 % 1.22 % 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.52 ns 1.52 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.52 ns 1.52 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.060 ns 0.065 ns 4
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 3.98 % 4.29 % 4
|
2026-02-14 10:09:54 +00:00
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.93 ns 2.93 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.94 ns 2.95 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.059 ns 0.063 ns 4
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.01 % 2.16 % 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 79.5 ns 79.3 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 79.1 ns 78.5 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.85 ns 1.74 ns 4
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.33 % 2.20 % 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.37 ns 7.37 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.37 ns 7.41 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.185 ns 0.167 ns 4
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.51 % 2.27 % 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-15 14:13:54 +00:00
|
|
|
sz::string::find;_mean 117 ns 117 ns 4
|
|
|
|
|
sz::string::find;_median 118 ns 117 ns 4
|
|
|
|
|
sz::string::find;_stddev 1.99 ns 2.28 ns 4
|
|
|
|
|
sz::string::find;_cv 1.69 % 1.94 % 4
|
|
|
|
|
std::string::find;_mean 39.2 ns 39.2 ns 4
|
|
|
|
|
std::string::find;_median 39.1 ns 39.2 ns 4
|
|
|
|
|
std::string::find;_stddev 0.317 ns 0.000 ns 4
|
|
|
|
|
std::string::find;_cv 0.81 % 0.00 % 4
|
|
|
|
|
std::string_view::find;_mean 39.0 ns 39.0 ns 4
|
|
|
|
|
std::string_view::find;_median 39.1 ns 39.0 ns 4
|
|
|
|
|
std::string_view::find;_stddev 0.396 ns 0.740 ns 4
|
|
|
|
|
std::string_view::find;_cv 1.01 % 1.90 % 4
|
|
|
|
|
ssa::find;_mean 21.9 ns 21.7 ns 4
|
|
|
|
|
ssa::find;_median 21.8 ns 21.7 ns 4
|
|
|
|
|
ssa::find;_stddev 0.494 ns 0.282 ns 4
|
|
|
|
|
ssa::find;_cv 2.25 % 1.30 % 4
|
|
|
|
|
stringa::find;_mean 31.0 ns 31.0 ns 4
|
|
|
|
|
stringa::find;_median 31.3 ns 31.4 ns 4
|
|
|
|
|
stringa::find;_stddev 1.02 ns 1.21 ns 4
|
|
|
|
|
stringa::find;_cv 3.30 % 3.89 % 4
|
|
|
|
|
lstringa<20>::find;_mean 21.9 ns 22.0 ns 4
|
|
|
|
|
lstringa<20>::find;_median 21.9 ns 22.0 ns 4
|
|
|
|
|
lstringa<20>::find;_stddev 0.387 ns 0.399 ns 4
|
|
|
|
|
lstringa<20>::find;_cv 1.77 % 1.81 % 4
|
|
|
|
|
lstringa<40>::find;_mean 22.2 ns 22.3 ns 4
|
|
|
|
|
lstringa<40>::find;_median 22.3 ns 22.2 ns 4
|
|
|
|
|
lstringa<40>::find;_stddev 0.189 ns 0.227 ns 4
|
|
|
|
|
lstringa<40>::find;_cv 0.85 % 1.02 % 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-15 14:13:54 +00:00
|
|
|
std::string copy{str_with_len_N};/15_mean 5.24 ns 5.27 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_median 5.21 ns 5.23 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_stddev 0.160 ns 0.150 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/15_cv 3.05 % 2.84 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_mean 79.3 ns 78.9 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_median 78.9 ns 78.5 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_stddev 3.38 ns 3.87 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/16_cv 4.26 % 4.90 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_mean 77.7 ns 77.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_median 77.0 ns 76.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_stddev 2.67 ns 2.96 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/23_cv 3.43 % 3.82 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_mean 77.5 ns 77.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_median 78.1 ns 77.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_stddev 1.71 ns 1.80 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/24_cv 2.20 % 2.33 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_mean 86.2 ns 85.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_median 85.4 ns 84.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_stddev 2.51 ns 2.96 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/32_cv 2.91 % 3.45 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_mean 80.0 ns 80.2 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_median 79.8 ns 80.2 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_stddev 1.62 ns 2.01 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/64_cv 2.02 % 2.51 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_mean 84.8 ns 84.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_median 85.2 ns 84.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_stddev 1.13 ns 1.21 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/128_cv 1.34 % 1.43 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_mean 88.0 ns 87.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_median 86.9 ns 86.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_stddev 3.03 ns 2.00 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/256_cv 3.44 % 2.29 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_mean 88.8 ns 88.9 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_median 89.5 ns 89.8 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_stddev 2.17 ns 2.47 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/512_cv 2.45 % 2.77 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_mean 97.7 ns 97.0 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_median 97.2 ns 96.4 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_stddev 5.80 ns 4.17 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/1024_cv 5.93 % 4.30 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_mean 135 ns 135 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_median 135 ns 135 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_stddev 2.73 ns 2.56 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/2048_cv 2.03 % 1.90 % 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_mean 183 ns 182 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_median 183 ns 180 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_stddev 2.05 ns 3.84 ns 4
|
|
|
|
|
std::string copy{str_with_len_N};/4096_cv 1.12 % 2.11 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_mean 4.09 ns 4.10 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_median 4.10 ns 4.13 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_stddev 0.060 ns 0.087 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/15_cv 1.46 % 2.12 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_mean 4.08 ns 4.08 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_median 4.08 ns 4.08 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_stddev 0.022 ns 0.074 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/16_cv 0.53 % 1.81 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_mean 3.99 ns 3.99 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_median 3.98 ns 3.97 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_stddev 0.052 ns 0.083 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/23_cv 1.31 % 2.09 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_mean 18.6 ns 18.7 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_median 18.6 ns 18.8 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_stddev 0.171 ns 0.192 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/24_cv 0.92 % 1.03 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_mean 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_median 18.4 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_stddev 0.058 ns 0.000 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/32_cv 0.31 % 0.00 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_mean 18.6 ns 18.5 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_median 18.7 ns 18.6 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_stddev 0.106 ns 0.401 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/64_cv 0.57 % 2.16 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_mean 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_median 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_stddev 0.110 ns 0.342 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/128_cv 0.60 % 1.86 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_mean 18.7 ns 18.6 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_median 18.6 ns 18.6 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_stddev 0.197 ns 0.242 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/256_cv 1.05 % 1.30 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_mean 18.6 ns 18.5 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_median 18.6 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_stddev 0.156 ns 0.209 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/512_cv 0.84 % 1.13 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_mean 18.6 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_median 18.6 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_stddev 0.149 ns 0.342 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/1024_cv 0.80 % 1.86 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_mean 18.5 ns 18.6 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_median 18.5 ns 18.6 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_stddev 0.109 ns 0.222 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/2048_cv 0.59 % 1.19 % 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_mean 18.6 ns 18.5 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_median 18.5 ns 18.4 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_stddev 0.153 ns 0.209 ns 4
|
|
|
|
|
stringa copy{str_with_len_N};/4096_cv 0.82 % 1.13 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.08 ns 4.08 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.04 ns 4.04 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.161 ns 0.128 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_cv 3.95 % 3.14 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_mean 8.48 ns 8.41 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_median 8.47 ns 8.46 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.111 ns 0.167 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.31 % 1.98 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_mean 8.50 ns 8.42 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_median 8.52 ns 8.48 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.213 ns 0.200 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.51 % 2.38 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_mean 78.6 ns 78.5 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_median 78.2 ns 77.6 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 2.17 ns 2.47 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_cv 2.76 % 3.14 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_mean 83.2 ns 82.4 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_median 83.0 ns 82.0 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 3.24 ns 2.62 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_cv 3.90 % 3.17 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_mean 84.0 ns 83.7 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_median 82.4 ns 82.7 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 5.22 ns 4.52 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_cv 6.21 % 5.40 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_mean 87.1 ns 87.2 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_median 87.2 ns 87.2 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 2.52 ns 3.18 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_cv 2.90 % 3.65 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_mean 90.7 ns 90.0 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_median 91.3 ns 90.0 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 2.77 ns 2.42 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_cv 3.05 % 2.69 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_mean 89.3 ns 89.4 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_median 89.5 ns 89.8 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 1.46 ns 1.67 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_cv 1.63 % 1.87 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 101 ns 99.9 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_median 97.6 ns 96.3 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 8.72 ns 8.94 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 8.65 % 8.95 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 125 ns 124 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_median 125 ns 124 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 0.379 ns 1.61 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 0.30 % 1.30 % 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 190 ns 190 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_median 190 ns 190 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 2.05 ns 2.42 ns 4
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.08 % 1.27 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.82 ns 4.78 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.81 ns 4.76 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.058 ns 0.054 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.20 % 1.13 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_mean 9.21 ns 9.22 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_median 9.24 ns 9.28 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.092 ns 0.122 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_cv 1.00 % 1.32 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_mean 9.42 ns 9.40 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_median 9.39 ns 9.40 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.200 ns 0.315 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_cv 2.12 % 3.35 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_mean 9.49 ns 9.47 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_median 9.50 ns 9.42 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.040 ns 0.105 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_cv 0.42 % 1.10 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_mean 12.2 ns 12.1 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_median 12.2 ns 12.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.164 ns 0.279 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.35 % 2.30 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_mean 12.2 ns 12.1 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_median 12.1 ns 12.0 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.248 ns 0.279 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.03 % 2.30 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_mean 12.7 ns 12.7 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.7 ns 12.7 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.119 ns 0.161 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_cv 0.93 % 1.27 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_mean 13.6 ns 13.6 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_median 13.6 ns 13.7 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.274 ns 0.301 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_cv 2.01 % 2.21 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_mean 15.4 ns 15.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_median 15.4 ns 15.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.444 ns 0.443 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_cv 2.89 % 2.89 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 99.1 ns 98.9 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_median 96.7 ns 96.3 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 7.93 ns 8.26 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 8.00 % 8.35 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 127 ns 126 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_median 127 ns 126 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 3.27 ns 4.39 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 2.57 % 3.47 % 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 191 ns 190 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_median 191 ns 190 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 3.15 ns 5.64 ns 4
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 1.64 % 2.96 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.5 ns 31.6 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.4 ns 31.4 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.377 ns 0.349 ns 4
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.20 % 1.10 % 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.9 ns 11.9 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.9 ns 12.0 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.085 ns 0.122 ns 4
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.71 % 1.03 % 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.5 ns 16.4 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.5 ns 16.3 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.160 ns 0.367 ns 4
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.97 % 2.24 % 4
|
2026-02-14 10:09:54 +00:00
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.2 ns 15.3 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.2 ns 15.3 ns 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.160 ns 0.192 ns 4
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.05 % 1.26 % 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.2 ns 15.2 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.2 ns 15.2 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.388 ns 0.405 ns 4
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.54 % 2.66 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 34.9 ns 34.9 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 35.0 ns 34.7 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.353 ns 0.801 ns 4
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.01 % 2.29 % 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.00 ns 9.00 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.03 ns 9.07 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.306 ns 0.267 ns 4
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.40 % 2.97 % 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 14.4 ns 14.3 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 14.5 ns 14.3 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.167 ns 0.181 ns 4
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.16 % 1.27 % 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.0 ns 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.225 ns 0.301 ns 4
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.71 % 2.29 % 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.6 ns 12.6 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.6 ns 12.6 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.136 ns 0.140 ns 4
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.08 % 1.10 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 47.5 ns 47.3 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 46.4 ns 46.6 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 3.07 ns 2.75 ns 4
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 6.45 % 5.81 % 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 22.1 ns 22.0 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 22.0 ns 22.0 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.236 ns 0.399 ns 4
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.07 % 1.81 % 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 18.9 ns 18.9 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 19.0 ns 19.0 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.191 ns 0.401 ns 4
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.01 % 2.12 % 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-15 14:13:54 +00:00
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 104 ns 103 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 104 ns 104 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.12 ns 2.00 ns 4
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.09 % 1.94 % 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 84.1 ns 84.1 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 84.1 ns 84.6 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.709 ns 1.67 ns 4
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.84 % 1.98 % 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 37.8 ns 37.9 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 37.8 ns 37.7 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.661 ns 0.419 ns 4
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.75 % 1.10 % 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-15 14:13:54 +00:00
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5627 ns 5615 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5617 ns 5580 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 71.3 ns 69.8 ns 4
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.27 % 1.24 % 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1313 ns 1318 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1308 ns 1311 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 48.1 ns 61.9 ns 4
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 3.66 % 4.69 % 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 942 ns 942 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 938 ns 942 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 13.2 ns 17.1 ns 4
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.40 % 1.81 % 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 519 ns 520 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 518 ns 523 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 13.3 ns 15.0 ns 4
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.57 % 2.88 % 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 370 ns 370 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 368 ns 368 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 7.71 ns 4.19 ns 4
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.09 % 1.13 % 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 288 ns 283 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 281 ns 282 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 26.9 ns 20.8 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 9.36 % 7.33 % 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-15 14:13:54 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 6205 ns 6191 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5957 ns 5929 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 859 ns 824 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 13.84 % 13.31 % 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3832 ns 3854 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3822 ns 3899 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 48.5 ns 90.7 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.27 % 2.35 % 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 841 ns 827 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 838 ns 827 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.2 ns 12.1 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.33 % 1.46 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 525 ns 516 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 517 ns 508 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 19.7 ns 22.1 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.76 % 4.29 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 391 ns 391 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 381 ns 381 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 31.3 ns 30.1 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 8.00 % 7.69 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 286 ns 284 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 285 ns 283 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.63 ns 3.14 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.92 % 1.10 % 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-15 14:13:54 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 285336 ns 284062 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 284931 ns 282493 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 13838 ns 13920 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.85 % 4.90 % 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 192976 ns 192540 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 191814 ns 190447 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 5762 ns 5919 ns 4
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.99 % 3.07 % 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 25665 ns 25643 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 25645 ns 25792 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 461 ns 568 ns 4
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.80 % 2.21 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22282 ns 22103 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22091 ns 21972 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 694 ns 262 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.11 % 1.18 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21972 ns 21973 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22090 ns 21973 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 367 ns 399 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.67 % 1.81 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22145 ns 22217 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21951 ns 21973 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 544 ns 488 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.46 % 2.20 % 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-15 14:13:54 +00:00
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 5300 ns 5312 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5298 ns 5312 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 122 ns 128 ns 4
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.31 % 2.40 % 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_mean 3964 ns 3955 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_median 3968 ns 3934 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 91.8 ns 105 ns 4
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_cv 2.31 % 2.66 % 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 909 ns 910 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 910 ns 921 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 17.6 ns 20.9 ns 4
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.94 % 2.30 % 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 624 ns 617 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 625 ns 621 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 17.3 ns 13.4 ns 4
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.77 % 2.16 % 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 476 ns 470 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 476 ns 470 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 5.95 ns 14.0 ns 4
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.25 % 2.97 % 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 367 ns 361 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 367 ns 361 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.06 ns 6.55 ns 4
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.38 % 1.81 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11879 ns 11658 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_median 11861 ns 11475 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 492 ns 577 ns 4
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_cv 4.14 % 4.95 % 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1691 ns 1692 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1688 ns 1692 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 20.2 ns 45.0 ns 4
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 1.19 % 2.66 % 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2823 ns 2816 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2819 ns 2816 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 18.5 ns 34.2 ns 4
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.65 % 1.22 % 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_mean 2332 ns 2289 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_median 2337 ns 2302 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_stddev 35.9 ns 78.5 ns 4
|
|
|
|
|
std::string str = std::format("test = {} times", k);_cv 1.54 % 3.43 % 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2730 ns 2742 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2718 ns 2727 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 27.6 ns 29.6 ns 4
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 1.01 % 1.08 % 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1530 ns 1530 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1493 ns 1491 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 83.9 ns 90.2 ns 4
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 5.48 % 5.89 % 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_mean 938 ns 931 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_median 940 ns 931 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_stddev 29.3 ns 27.0 ns 4
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_cv 3.13 % 2.90 % 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 2.83 ns 1.92 ns 4
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.66 % 1.13 % 4
|
|
|
|
|
stringa str = "test = " + k + " times";_mean 174 ns 175 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_median 173 ns 175 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_stddev 4.38 ns 4.95 ns 4
|
|
|
|
|
stringa str = "test = " + k + " times";_cv 2.51 % 2.84 % 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-15 14:13:54 +00:00
|
|
|
std::string::find + substr + std::strtol_mean 545 ns 544 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_median 548 ns 544 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_stddev 10.4 ns 11.4 ns 4
|
|
|
|
|
std::string::find + substr + std::strtol_cv 1.91 % 2.09 % 4
|
|
|
|
|
ssa::splitter + ssa::as_int_mean 298 ns 298 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_median 298 ns 300 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_stddev 2.36 ns 3.49 ns 4
|
|
|
|
|
ssa::splitter + ssa::as_int_cv 0.79 % 1.17 % 4
|
|
|
|
|
ssa::splitf + functor_mean 214 ns 214 ns 4
|
|
|
|
|
ssa::splitf + functor_median 214 ns 215 ns 4
|
|
|
|
|
ssa::splitf + functor_stddev 0.925 ns 2.44 ns 4
|
|
|
|
|
ssa::splitf + functor_cv 0.43 % 1.14 % 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-15 14:13:54 +00:00
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 1191 ns 1193 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1193 ns 1200 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 11.3 ns 14.0 ns 4
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 0.95 % 1.17 % 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_mean 2209 ns 2197 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_median 2196 ns 2173 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_stddev 109 ns 105 ns 4
|
|
|
|
|
replace symbols with std::string find_first_of + replace_cv 4.93 % 4.80 % 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_mean 2598 ns 2581 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_median 2603 ns 2567 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_stddev 63.8 ns 27.9 ns 4
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.46 % 1.08 % 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1546 ns 1544 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1553 ns 1554 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 23.2 ns 36.7 ns 4
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.50 % 2.38 % 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1349 ns 1350 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_median 1352 ns 1365 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 28.5 ns 44.4 ns 4
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.11 % 3.29 % 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_mean 1272 ns 1271 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_median 1277 ns 1271 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_stddev 22.7 ns 18.1 ns 4
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.79 % 1.43 % 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_mean 1283 ns 1276 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_median 1261 ns 1245 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_stddev 77.0 ns 78.2 ns 4
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_cv 6.01 % 6.13 % 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-15 14:13:54 +00:00
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_mean 332 ns 331 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 333 ns 333 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 10.2 ns 7.01 ns 4
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.07 % 2.12 % 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_mean 419 ns 419 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_median 413 ns 414 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_stddev 19.0 ns 16.3 ns 4
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_cv 4.53 % 3.89 % 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 344 ns 345 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_median 345 ns 345 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 6.57 ns 8.86 ns 4
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 1.91 % 2.57 % 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 299 ns 297 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 299 ns 298 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.16 ns 3.31 ns 4
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.39 % 1.12 % 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 380 ns 379 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 379 ns 379 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 1.97 ns 5.03 ns 4
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 0.52 % 1.33 % 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 243 ns 241 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_median 244 ns 240 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 7.62 ns 8.37 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.13 % 3.47 % 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 344 ns 342 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_median 342 ns 341 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 9.63 ns 12.5 ns 4
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.80 % 3.65 % 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-15 14:13:54 +00:00
|
|
|
replace bb to ---- in std::string|64_mean 239 ns 239 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_median 238 ns 237 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_stddev 9.12 ns 9.53 ns 4
|
|
|
|
|
replace bb to ---- in std::string|64_cv 3.81 % 3.99 % 4
|
2026-02-14 10:09:54 +00:00
|
|
|
replace bb to ---- in std::string|256_mean 791 ns 789 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
replace bb to ---- in std::string|256_median 796 ns 793 ns 4
|
|
|
|
|
replace bb to ---- in std::string|256_stddev 19.5 ns 16.7 ns 4
|
|
|
|
|
replace bb to ---- in std::string|256_cv 2.47 % 2.12 % 4
|
|
|
|
|
replace bb to ---- in std::string|512_mean 1460 ns 1460 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_median 1454 ns 1460 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_stddev 25.4 ns 18.1 ns 4
|
|
|
|
|
replace bb to ---- in std::string|512_cv 1.74 % 1.24 % 4
|
|
|
|
|
replace bb to ---- in std::string|1024_mean 3181 ns 3181 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_median 3180 ns 3181 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_stddev 32.1 ns 54.1 ns 4
|
|
|
|
|
replace bb to ---- in std::string|1024_cv 1.01 % 1.70 % 4
|
|
|
|
|
replace bb to ---- in std::string|2048_mean 7842 ns 7804 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_median 7807 ns 7760 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_stddev 161 ns 167 ns 4
|
|
|
|
|
replace bb to ---- in std::string|2048_cv 2.05 % 2.14 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_mean 225 ns 226 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_median 226 ns 227 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_stddev 3.99 ns 4.67 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_cv 1.78 % 2.07 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_mean 653 ns 652 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_median 650 ns 649 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_stddev 26.9 ns 34.9 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_cv 4.11 % 5.35 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_mean 1086 ns 1086 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_median 1090 ns 1099 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_stddev 21.5 ns 24.4 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_cv 1.98 % 2.25 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_mean 2002 ns 1984 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_median 1995 ns 1972 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_stddev 28.8 ns 43.4 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_cv 1.44 % 2.19 % 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_mean 3792 ns 3746 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_median 3773 ns 3767 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_stddev 91.2 ns 41.9 ns 4
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.41 % 1.12 % 4
|
|
|
|
|
replace bb to ---- by init stringa|64_mean 195 ns 195 ns 4
|
2026-02-14 10:09:54 +00:00
|
|
|
replace bb to ---- by init stringa|64_median 196 ns 195 ns 4
|
2026-02-15 14:13:54 +00:00
|
|
|
replace bb to ---- by init stringa|64_stddev 2.99 ns 3.70 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|64_cv 1.53 % 1.90 % 4
|
|
|
|
|
replace bb to ---- by init stringa|256_mean 461 ns 454 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_median 459 ns 454 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_stddev 9.95 ns 8.83 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|256_cv 2.16 % 1.94 % 4
|
|
|
|
|
replace bb to ---- by init stringa|512_mean 1061 ns 1062 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_median 1064 ns 1062 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_stddev 10.1 ns 14.1 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|512_cv 0.95 % 1.33 % 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_mean 2174 ns 2173 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_median 2176 ns 2173 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_stddev 11.6 ns 28.2 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|1024_cv 0.53 % 1.30 % 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_mean 4494 ns 4473 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_median 4476 ns 4447 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_stddev 70.6 ns 100 ns 4
|
|
|
|
|
replace bb to ---- by init stringa|2048_cv 1.57 % 2.24 % 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-15 14:13:54 +00:00
|
|
|
replace bb to -- in std::string|64_mean 193 ns 190 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_median 194 ns 190 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_stddev 3.07 ns 0.000 ns 4
|
|
|
|
|
replace bb to -- in std::string|64_cv 1.59 % 0.00 % 4
|
|
|
|
|
replace bb to -- in std::string|256_mean 514 ns 513 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_median 500 ns 495 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_stddev 32.3 ns 40.1 ns 4
|
|
|
|
|
replace bb to -- in std::string|256_cv 6.28 % 7.82 % 4
|
|
|
|
|
replace bb to -- in std::string|512_mean 936 ns 936 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_median 936 ns 942 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_stddev 16.9 ns 26.3 ns 4
|
|
|
|
|
replace bb to -- in std::string|512_cv 1.80 % 2.81 % 4
|
|
|
|
|
replace bb to -- in std::string|1024_mean 1727 ns 1726 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_median 1728 ns 1726 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_stddev 21.5 ns 31.3 ns 4
|
|
|
|
|
replace bb to -- in std::string|1024_cv 1.25 % 1.81 % 4
|
|
|
|
|
replace bb to -- in std::string|2048_mean 3417 ns 3414 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_median 3437 ns 3414 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_stddev 44.7 ns 44.3 ns 4
|
|
|
|
|
replace bb to -- in std::string|2048_cv 1.31 % 1.30 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_mean 186 ns 186 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_median 187 ns 188 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_stddev 3.81 ns 3.84 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|64_cv 2.06 % 2.06 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_mean 435 ns 434 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_median 437 ns 434 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_stddev 6.21 ns 6.04 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|256_cv 1.43 % 1.39 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_mean 783 ns 785 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_median 783 ns 785 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_stddev 30.0 ns 31.8 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|512_cv 3.83 % 4.06 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_mean 1432 ns 1420 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_median 1435 ns 1428 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_stddev 25.8 ns 30.1 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_cv 1.80 % 2.12 % 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_mean 2808 ns 2783 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_median 2769 ns 2750 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_stddev 123 ns 143 ns 4
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_cv 4.38 % 5.14 % 4
|
|
|
|
|
replace bb to -- by init stringa|64_mean 163 ns 164 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_median 164 ns 164 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_stddev 2.54 ns 2.85 ns 4
|
|
|
|
|
replace bb to -- by init stringa|64_cv 1.56 % 1.74 % 4
|
|
|
|
|
replace bb to -- by init stringa|256_mean 368 ns 368 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_median 369 ns 368 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_stddev 6.86 ns 6.83 ns 4
|
|
|
|
|
replace bb to -- by init stringa|256_cv 1.86 % 1.86 % 4
|
|
|
|
|
replace bb to -- by init stringa|512_mean 634 ns 631 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_median 621 ns 614 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_stddev 36.1 ns 34.9 ns 4
|
|
|
|
|
replace bb to -- by init stringa|512_cv 5.70 % 5.52 % 4
|
|
|
|
|
replace bb to -- by init stringa|1024_mean 1114 ns 1105 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_median 1112 ns 1111 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_stddev 11.2 ns 23.4 ns 4
|
|
|
|
|
replace bb to -- by init stringa|1024_cv 1.01 % 2.12 % 4
|
|
|
|
|
replace bb to -- by init stringa|2048_mean 2145 ns 2131 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_median 2123 ns 2108 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_stddev 83.0 ns 97.9 ns 4
|
|
|
|
|
replace bb to -- by init stringa|2048_cv 3.87 % 4.60 % 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-15 14:13:54 +00:00
|
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4396542 ns 4376883 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4367166 ns 4376883 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 80723 ns 54344 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.84 % 1.24 % 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5663611 ns 5664062 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5677585 ns 5703125 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 276094 ns 322118 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 4.87 % 5.69 % 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3927354 ns 3928073 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3914217 ns 3928073 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 49740 ns 71272 ns 4
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.27 % 1.81 % 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6453271 ns 6417411 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6435957 ns 6417411 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 103644 ns 113909 ns 4
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.61 % 1.77 % 4
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-02-15 14:13:54 +00:00
|
|
|
Build func full name std::string;_mean 1582 ns 1587 ns 4
|
|
|
|
|
Build func full name std::string;_median 1577 ns 1587 ns 4
|
|
|
|
|
Build func full name std::string;_stddev 37.9 ns 45.0 ns 4
|
|
|
|
|
Build func full name std::string;_cv 2.39 % 2.84 % 4
|
|
|
|
|
Build func full name std::string 1;_mean 1666 ns 1657 ns 4
|
|
|
|
|
Build func full name std::string 1;_median 1656 ns 1639 ns 4
|
|
|
|
|
Build func full name std::string 1;_stddev 39.4 ns 60.4 ns 4
|
|
|
|
|
Build func full name std::string 1;_cv 2.37 % 3.65 % 4
|
|
|
|
|
Build func full name std::stream;_mean 9706 ns 9678 ns 4
|
|
|
|
|
Build func full name std::stream;_median 9672 ns 9626 ns 4
|
|
|
|
|
Build func full name std::stream;_stddev 284 ns 314 ns 4
|
|
|
|
|
Build func full name std::stream;_cv 2.92 % 3.24 % 4
|
|
|
|
|
Build func full name stringa;_mean 871 ns 872 ns 4
|
|
|
|
|
Build func full name stringa;_median 874 ns 872 ns 4
|
|
|
|
|
Build func full name stringa;_stddev 10.9 ns 14.2 ns 4
|
|
|
|
|
Build func full name stringa;_cv 1.25 % 1.63 % 4
|
|
|
|
|
Build func full name stringa 1;_mean 956 ns 957 ns 4
|
|
|
|
|
Build func full name stringa 1;_median 943 ns 942 ns 4
|
|
|
|
|
Build func full name stringa 1;_stddev 32.4 ns 31.4 ns 4
|
|
|
|
|
Build func full name stringa 1;_cv 3.39 % 3.28 % 4
|
|
|
|
|
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
To upper case std::wstring_mean 1452 ns 1452 ns 4
|
|
|
|
|
To upper case std::wstring_median 1428 ns 1428 ns 4
|
|
|
|
|
To upper case std::wstring_stddev 67.1 ns 59.4 ns 4
|
|
|
|
|
To upper case std::wstring_cv 4.62 % 4.09 % 4
|
|
|
|
|
To upper case lstringw<15>_mean 44.5 ns 44.2 ns 4
|
|
|
|
|
To upper case lstringw<15>_median 44.4 ns 44.4 ns 4
|
|
|
|
|
To upper case lstringw<15>_stddev 0.351 ns 0.935 ns 4
|
|
|
|
|
To upper case lstringw<15>_cv 0.79 % 2.12 % 4
|