mirror of https://github.com/orefkov/simstr.git
975 lines
144 KiB
Plaintext
975 lines
144 KiB
Plaintext
Benchmarks of simstr, version 1.6.7
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-14T11:16:06+03:00
|
|
Running benchStr.exe
|
|
Run on (32 X 2494 MHz CPU s)
|
|
CPU Caches:
|
|
L1 Data 32 KiB (x16)
|
|
L1 Instruction 32 KiB (x16)
|
|
L2 Unified 256 KiB (x16)
|
|
L3 Unified 40960 KiB (x1)
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat email std::format_mean 259 ns 257 ns 4
|
|
Concat email std::format_median 257 ns 257 ns 4
|
|
Concat email std::format_stddev 4.37 ns 0.000 ns 4
|
|
Concat email std::format_cv 1.69 % 0.00 % 4
|
|
Concat email std::stringstream_mean 898 ns 895 ns 4
|
|
Concat email std::stringstream_median 900 ns 889 ns 4
|
|
Concat email std::stringstream_stddev 30.7 ns 20.0 ns 4
|
|
Concat email std::stringstream_cv 3.42 % 2.24 % 4
|
|
Concat email stringzilla append_mean 282 ns 281 ns 4
|
|
Concat email stringzilla append_median 283 ns 283 ns 4
|
|
Concat email stringzilla append_stddev 13.9 ns 12.9 ns 4
|
|
Concat email stringzilla append_cv 4.94 % 4.61 % 4
|
|
Concat email stringzilla concat_mean 131 ns 130 ns 4
|
|
Concat email stringzilla concat_median 131 ns 130 ns 4
|
|
Concat email stringzilla concat_stddev 2.70 ns 2.67 ns 4
|
|
Concat email stringzilla concat_cv 2.06 % 2.05 % 4
|
|
Concat email std::string append_mean 198 ns 197 ns 4
|
|
Concat email std::string append_median 198 ns 197 ns 4
|
|
Concat email std::string append_stddev 1.95 ns 4.83 ns 4
|
|
Concat email std::string append_cv 0.99 % 2.46 % 4
|
|
Concat email std::string by strexpr_mean 106 ns 106 ns 4
|
|
Concat email std::string by strexpr_median 106 ns 105 ns 4
|
|
Concat email std::string by strexpr_stddev 3.71 ns 3.66 ns 4
|
|
Concat email std::string by strexpr_cv 3.50 % 3.47 % 4
|
|
Concat email stringa_mean 103 ns 102 ns 4
|
|
Concat email stringa_median 104 ns 103 ns 4
|
|
Concat email stringa_stddev 3.36 ns 5.03 ns 4
|
|
Concat email stringa_cv 3.26 % 4.94 % 4
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 320 ns 320 ns 4
|
|
Concat std::string and number by std to std::string_median 321 ns 322 ns 4
|
|
Concat std::string and number by std to std::string_stddev 2.88 ns 3.84 ns 4
|
|
Concat std::string and number by std to std::string_cv 0.90 % 1.20 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 212 ns 211 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 211 ns 210 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 6.03 ns 6.14 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 2.84 % 2.91 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 107 ns 106 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 108 ns 106 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.10 ns 1.41 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 1.96 % 1.33 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 115 ns 115 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 115 ns 115 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.06 ns 2.85 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 0.92 % 2.47 % 4
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and format hex number and literal to std::string_mean 1044 ns 1044 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 1021 ns 1025 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 70.4 ns 75.6 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 6.75 % 7.24 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 1832 ns 1842 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 1831 ns 1842 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 23.4 ns 0.000 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 1.28 % 0.00 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 253 ns 253 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 252 ns 251 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 2.44 ns 2.79 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 0.97 % 1.10 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 115 ns 114 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 115 ns 113 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.59 ns 2.67 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.38 % 2.35 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 99.3 ns 99.5 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 99.0 ns 98.9 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.32 ns 2.34 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.33 % 2.35 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 106 ns 106 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 106 ns 106 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.03 ns 2.34 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.92 % 2.21 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 171 ns 171 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 171 ns 172 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.55 ns 2.09 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.90 % 1.23 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 356 ns 357 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 356 ns 357 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 2.78 ns 4.43 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.78 % 1.24 % 4
|
|
---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 698 ns 701 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 696 ns 698 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 17.9 ns 17.6 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.56 % 2.50 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 813 ns 798 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 819 ns 802 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 30.0 ns 21.9 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 3.69 % 2.75 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1118 ns 1117 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 1121 ns 1111 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 20.6 ns 23.4 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.84 % 2.09 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1550 ns 1535 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1557 ns 1535 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 34.6 ns 31.3 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.23 % 2.04 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1431 ns 1420 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1414 ns 1397 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 47.7 ns 59.4 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.33 % 4.18 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1923 ns 1910 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1924 ns 1910 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 57.3 ns 67.5 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.98 % 3.54 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1941 ns 1916 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1902 ns 1882 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 93.0 ns 119 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 4.79 % 6.22 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7038 ns 6975 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6948 ns 6888 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 295 ns 247 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 4.19 % 3.54 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 55.6 ns 55.1 ns 4
|
|
Concat std::string by std to std::string_median 55.5 ns 55.1 ns 4
|
|
Concat std::string by std to std::string_stddev 1.67 ns 1.80 ns 4
|
|
Concat std::string by std to std::string_cv 3.01 % 3.27 % 4
|
|
Concat std::string by StrExpr to std::string_mean 81.8 ns 81.5 ns 4
|
|
Concat std::string by StrExpr to std::string_median 81.2 ns 81.1 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 3.46 ns 2.98 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 4.23 % 3.65 % 4
|
|
Concat stringa by StrExpr to stringa_mean 50.8 ns 50.8 ns 4
|
|
Concat stringa by StrExpr to stringa_median 50.6 ns 50.0 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 1.05 ns 1.56 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.06 % 3.08 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 228 ns 226 ns 4
|
|
Find concat three std::string_median 225 ns 222 ns 4
|
|
Find concat three std::string_stddev 8.48 ns 10.1 ns 4
|
|
Find concat three std::string_cv 3.72 % 4.46 % 4
|
|
Find concat three strexpr_mean 132 ns 131 ns 4
|
|
Find concat three strexpr_median 130 ns 129 ns 4
|
|
Find concat three strexpr_stddev 11.6 ns 10.7 ns 4
|
|
Find concat three strexpr_cv 8.74 % 8.15 % 4
|
|
Find concat three simstr_mean 29.2 ns 29.2 ns 4
|
|
Find concat three simstr_median 28.0 ns 27.9 ns 4
|
|
Find concat three simstr_stddev 2.97 ns 3.18 ns 4
|
|
Find concat three simstr_cv 10.14 % 10.90 % 4
|
|
Find concat three stringzilla string_mean 228 ns 228 ns 4
|
|
Find concat three stringzilla string_median 226 ns 228 ns 4
|
|
Find concat three stringzilla string_stddev 7.19 ns 6.75 ns 4
|
|
Find concat three stringzilla string_cv 3.16 % 2.97 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 18.1 ns 18.0 ns 4
|
|
BuildTypeNameStr 0/0_median 18.0 ns 17.8 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.371 ns 0.592 ns 4
|
|
BuildTypeNameStr 0/0_cv 2.06 % 3.29 % 4
|
|
BuildTypeNameExp 0/0_mean 14.5 ns 14.3 ns 4
|
|
BuildTypeNameExp 0/0_median 14.5 ns 14.3 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.455 ns 0.405 ns 4
|
|
BuildTypeNameExp 0/0_cv 3.14 % 2.84 % 4
|
|
BuildTypeNameSim 0/0_mean 16.3 ns 16.3 ns 4
|
|
BuildTypeNameSim 0/0_median 16.4 ns 16.2 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.221 ns 0.334 ns 4
|
|
BuildTypeNameSim 0/0_cv 1.35 % 2.05 % 4
|
|
BuildTypeNameStr 10/10_mean 85.7 ns 85.0 ns 4
|
|
BuildTypeNameStr 10/10_median 85.8 ns 86.3 ns 4
|
|
BuildTypeNameStr 10/10_stddev 1.85 ns 3.30 ns 4
|
|
BuildTypeNameStr 10/10_cv 2.16 % 3.88 % 4
|
|
BuildTypeNameExp 10/10_mean 40.1 ns 39.4 ns 4
|
|
BuildTypeNameExp 10/10_median 38.7 ns 39.0 ns 4
|
|
BuildTypeNameExp 10/10_stddev 3.23 ns 2.28 ns 4
|
|
BuildTypeNameExp 10/10_cv 8.06 % 5.79 % 4
|
|
BuildTypeNameSim 10/10_mean 40.1 ns 39.6 ns 4
|
|
BuildTypeNameSim 10/10_median 39.9 ns 39.8 ns 4
|
|
BuildTypeNameSim 10/10_stddev 1.93 ns 0.801 ns 4
|
|
BuildTypeNameSim 10/10_cv 4.80 % 2.03 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 366 ns 360 ns 4
|
|
Concat with replace str_median 369 ns 366 ns 4
|
|
Concat with replace str_stddev 30.7 ns 20.6 ns 4
|
|
Concat with replace str_cv 8.41 % 5.73 % 4
|
|
Concat with replace exp_mean 221 ns 221 ns 4
|
|
Concat with replace exp_median 221 ns 222 ns 4
|
|
Concat with replace exp_stddev 1.78 ns 5.01 ns 4
|
|
Concat with replace exp_cv 0.81 % 2.27 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 3.25 ns 3.22 ns 4
|
|
std::string e;_median 3.25 ns 3.22 ns 4
|
|
std::string e;_stddev 0.019 ns 0.060 ns 4
|
|
std::string e;_cv 0.59 % 1.86 % 4
|
|
std::string_view e;_mean 1.85 ns 1.83 ns 4
|
|
std::string_view e;_median 1.83 ns 1.84 ns 4
|
|
std::string_view e;_stddev 0.051 ns 0.048 ns 4
|
|
std::string_view e;_cv 2.77 % 2.64 % 4
|
|
ssa e;_mean 1.45 ns 1.45 ns 4
|
|
ssa e;_median 1.44 ns 1.44 ns 4
|
|
ssa e;_stddev 0.027 ns 0.039 ns 4
|
|
ssa e;_cv 1.88 % 2.72 % 4
|
|
stringa e;_mean 2.20 ns 2.18 ns 4
|
|
stringa e;_median 2.20 ns 2.20 ns 4
|
|
stringa e;_stddev 0.017 ns 0.026 ns 4
|
|
stringa e;_cv 0.77 % 1.20 % 4
|
|
lstringa<20> e;_mean 2.59 ns 2.59 ns 4
|
|
lstringa<20> e;_median 2.60 ns 2.59 ns 4
|
|
lstringa<20> e;_stddev 0.070 ns 0.032 ns 4
|
|
lstringa<20> e;_cv 2.71 % 1.24 % 4
|
|
lstringa<40> e;_mean 2.62 ns 2.62 ns 4
|
|
lstringa<40> e;_median 2.55 ns 2.57 ns 4
|
|
lstringa<40> e;_stddev 0.177 ns 0.193 ns 4
|
|
lstringa<40> e;_cv 6.76 % 7.37 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.67 ns 2.65 ns 4
|
|
std::string e = "Test text";_median 2.68 ns 2.65 ns 4
|
|
std::string e = "Test text";_stddev 0.092 ns 0.116 ns 4
|
|
std::string e = "Test text";_cv 3.43 % 4.38 % 4
|
|
std::string_view e = "Test text";_mean 1.84 ns 1.84 ns 4
|
|
std::string_view e = "Test text";_median 1.84 ns 1.84 ns 4
|
|
std::string_view e = "Test text";_stddev 0.032 ns 0.034 ns 4
|
|
std::string_view e = "Test text";_cv 1.75 % 1.86 % 4
|
|
ssa e = "Test text";_mean 1.87 ns 1.87 ns 4
|
|
ssa e = "Test text";_median 1.86 ns 1.86 ns 4
|
|
ssa e = "Test text";_stddev 0.045 ns 0.037 ns 4
|
|
ssa e = "Test text";_cv 2.40 % 1.96 % 4
|
|
stringa e = "Test text";_mean 2.86 ns 2.83 ns 4
|
|
stringa e = "Test text";_median 2.86 ns 2.83 ns 4
|
|
stringa e = "Test text";_stddev 0.041 ns 0.000 ns 4
|
|
stringa e = "Test text";_cv 1.44 % 0.00 % 4
|
|
lstringa<20> e = "Test text";_mean 2.55 ns 2.54 ns 4
|
|
lstringa<20> e = "Test text";_median 2.54 ns 2.51 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.046 ns 0.056 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.79 % 2.20 % 4
|
|
lstringa<40> e = "Test text";_mean 2.53 ns 2.53 ns 4
|
|
lstringa<40> e = "Test text";_median 2.53 ns 2.54 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.029 ns 0.053 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.15 % 2.12 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 73.6 ns 73.2 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 73.3 ns 73.2 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.788 ns 1.80 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.07 % 2.46 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.83 ns 1.82 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 1.83 ns 1.82 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.046 ns 0.050 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 2.53 % 2.72 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 1.81 ns 1.81 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 1.81 ns 1.80 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.010 ns 0.021 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 0.54 % 1.16 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 2.54 ns 2.52 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 2.54 ns 2.52 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.062 ns 0.077 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 2.43 % 3.04 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 75.1 ns 74.8 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 75.0 ns 74.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 1.37 ns 2.00 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.82 % 2.68 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.27 ns 3.26 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.25 ns 3.26 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.080 ns 0.099 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.46 % 3.04 % 4
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text"; auto c{e};_mean 5.10 ns 5.09 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.08 ns 5.09 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.037 ns 0.081 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 0.72 % 1.58 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 3.79 ns 3.79 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 3.79 ns 3.77 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.027 ns 0.040 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 0.70 % 1.06 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 3.85 ns 3.83 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 3.80 ns 3.81 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.129 ns 0.080 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 3.36 % 2.09 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 4.00 ns 3.95 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 3.97 ns 3.97 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.078 ns 0.083 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 1.96 % 2.12 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.38 ns 4.37 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.36 ns 4.35 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.089 ns 0.093 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 2.04 % 2.14 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.52 ns 4.52 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.51 ns 4.49 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.062 ns 0.049 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.36 % 1.08 % 4
|
|
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 78.3 ns 78.5 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 78.1 ns 78.5 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.44 ns 2.01 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.84 % 2.57 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.85 ns 1.84 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.80 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.058 ns 0.077 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.13 % 4.17 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.81 ns 1.80 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.81 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.023 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.39 % 1.26 % 4
|
|
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
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.073 ns 0.063 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.48 % 2.16 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 82.0 ns 80.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 80.9 ns 80.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 4.16 ns 3.62 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 5.08 % 4.50 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.56 ns 7.54 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.52 ns 7.59 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.330 ns 0.360 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.37 % 4.77 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
sz::string::find;_mean 115 ns 116 ns 4
|
|
sz::string::find;_median 115 ns 116 ns 4
|
|
sz::string::find;_stddev 1.37 ns 1.41 ns 4
|
|
sz::string::find;_cv 1.19 % 1.22 % 4
|
|
std::string::find;_mean 39.0 ns 39.0 ns 4
|
|
std::string::find;_median 38.9 ns 39.0 ns 4
|
|
std::string::find;_stddev 0.632 ns 1.05 ns 4
|
|
std::string::find;_cv 1.62 % 2.69 % 4
|
|
std::string_view::find;_mean 40.1 ns 40.1 ns 4
|
|
std::string_view::find;_median 39.8 ns 39.7 ns 4
|
|
std::string_view::find;_stddev 1.51 ns 1.88 ns 4
|
|
std::string_view::find;_cv 3.78 % 4.70 % 4
|
|
ssa::find;_mean 21.4 ns 21.3 ns 4
|
|
ssa::find;_median 21.5 ns 21.3 ns 4
|
|
ssa::find;_stddev 0.564 ns 0.370 ns 4
|
|
ssa::find;_cv 2.63 % 1.74 % 4
|
|
stringa::find;_mean 30.1 ns 30.2 ns 4
|
|
stringa::find;_median 30.4 ns 30.5 ns 4
|
|
stringa::find;_stddev 1.30 ns 1.75 ns 4
|
|
stringa::find;_cv 4.33 % 5.81 % 4
|
|
lstringa<20>::find;_mean 22.0 ns 21.5 ns 4
|
|
lstringa<20>::find;_median 21.3 ns 21.2 ns 4
|
|
lstringa<20>::find;_stddev 1.49 ns 0.691 ns 4
|
|
lstringa<20>::find;_cv 6.77 % 3.21 % 4
|
|
lstringa<40>::find;_mean 20.7 ns 20.6 ns 4
|
|
lstringa<40>::find;_median 20.7 ns 20.6 ns 4
|
|
lstringa<40>::find;_stddev 0.125 ns 0.262 ns 4
|
|
lstringa<40>::find;_cv 0.60 % 1.27 % 4
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string copy{str_with_len_N};/15_mean 4.42 ns 4.36 ns 4
|
|
std::string copy{str_with_len_N};/15_median 4.47 ns 4.38 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.144 ns 0.090 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 3.27 % 2.07 % 4
|
|
std::string copy{str_with_len_N};/16_mean 81.3 ns 81.1 ns 4
|
|
std::string copy{str_with_len_N};/16_median 81.6 ns 81.6 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 3.91 ns 4.31 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 4.81 % 5.32 % 4
|
|
std::string copy{str_with_len_N};/23_mean 78.6 ns 78.0 ns 4
|
|
std::string copy{str_with_len_N};/23_median 78.3 ns 77.6 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 1.94 ns 1.67 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 2.46 % 2.14 % 4
|
|
std::string copy{str_with_len_N};/24_mean 79.8 ns 79.8 ns 4
|
|
std::string copy{str_with_len_N};/24_median 79.9 ns 80.2 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 1.27 ns 2.19 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 1.59 % 2.75 % 4
|
|
std::string copy{str_with_len_N};/32_mean 83.8 ns 83.7 ns 4
|
|
std::string copy{str_with_len_N};/32_median 83.2 ns 82.8 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 4.07 ns 3.77 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 4.86 % 4.50 % 4
|
|
std::string copy{str_with_len_N};/64_mean 81.7 ns 81.5 ns 4
|
|
std::string copy{str_with_len_N};/64_median 81.6 ns 81.1 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 0.544 ns 1.67 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 0.67 % 2.05 % 4
|
|
std::string copy{str_with_len_N};/128_mean 87.7 ns 87.2 ns 4
|
|
std::string copy{str_with_len_N};/128_median 86.8 ns 86.3 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 3.38 ns 3.77 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 3.86 % 4.32 % 4
|
|
std::string copy{str_with_len_N};/256_mean 88.5 ns 88.5 ns 4
|
|
std::string copy{str_with_len_N};/256_median 88.1 ns 88.1 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 2.63 ns 2.98 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 2.97 % 3.37 % 4
|
|
std::string copy{str_with_len_N};/512_mean 92.7 ns 92.1 ns 4
|
|
std::string copy{str_with_len_N};/512_median 92.8 ns 92.1 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 1.52 ns 1.71 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 1.64 % 1.86 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 97.1 ns 96.4 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 97.0 ns 97.7 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 2.83 ns 4.67 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 2.92 % 4.85 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 129 ns 128 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 129 ns 127 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 4.16 ns 4.77 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 3.23 % 3.73 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 180 ns 179 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 179 ns 178 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 2.90 ns 4.01 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 1.61 % 2.24 % 4
|
|
stringa copy{str_with_len_N};/15_mean 4.00 ns 4.01 ns 4
|
|
stringa copy{str_with_len_N};/15_median 3.99 ns 4.04 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.067 ns 0.087 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 1.68 % 2.16 % 4
|
|
stringa copy{str_with_len_N};/16_mean 4.02 ns 4.04 ns 4
|
|
stringa copy{str_with_len_N};/16_median 4.02 ns 4.06 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.044 ns 0.080 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 1.10 % 1.98 % 4
|
|
stringa copy{str_with_len_N};/23_mean 4.10 ns 4.01 ns 4
|
|
stringa copy{str_with_len_N};/23_median 4.02 ns 3.97 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.236 ns 0.123 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 5.76 % 3.07 % 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.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.305 ns 0.342 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.66 % 1.86 % 4
|
|
stringa copy{str_with_len_N};/32_mean 18.4 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/32_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.112 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.61 % 1.05 % 4
|
|
stringa copy{str_with_len_N};/64_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/64_median 18.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.112 ns 0.401 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.61 % 2.19 % 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.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.423 ns 0.592 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 2.29 % 3.21 % 4
|
|
stringa copy{str_with_len_N};/256_mean 18.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/256_median 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.079 ns 0.242 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.43 % 1.33 % 4
|
|
stringa copy{str_with_len_N};/512_mean 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/512_median 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.197 ns 0.222 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 1.08 % 1.22 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.026 ns 0.222 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.14 % 1.22 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.0 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.170 ns 0.384 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.93 % 2.11 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 18.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 18.3 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.148 ns 0.222 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.81 % 1.22 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.84 ns 4.81 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.85 ns 4.81 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.016 ns 0.081 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 0.33 % 1.67 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 8.98 ns 9.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 8.93 ns 9.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.148 ns 0.171 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.64 % 1.90 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 9.08 ns 9.10 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 9.07 ns 9.10 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.196 ns 0.121 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.16 % 1.33 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 81.2 ns 81.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 81.4 ns 82.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 1.51 ns 1.74 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 1.86 % 2.15 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 85.0 ns 84.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 84.7 ns 85.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.05 ns 1.74 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.23 % 2.06 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 83.7 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 83.3 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 2.13 ns 1.42 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 2.54 % 1.70 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 90.0 ns 90.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 89.1 ns 89.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 2.91 ns 2.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 3.23 % 3.30 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 93.2 ns 92.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 92.7 ns 92.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 1.26 ns 0.872 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.35 % 0.94 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 91.0 ns 90.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 91.4 ns 90.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 2.38 ns 3.14 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 2.61 % 3.47 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 98.2 ns 98.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 98.4 ns 98.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 3.04 ns 2.34 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 3.10 % 2.38 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 130 ns 129 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 130 ns 128 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 4.39 ns 6.19 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 3.39 % 4.79 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 183 ns 184 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 182 ns 184 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 3.28 ns 3.13 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.79 % 1.70 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.03 ns 4.03 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.05 ns 4.05 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.122 ns 0.141 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 3.03 % 3.51 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 8.78 ns 8.79 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 8.82 ns 8.89 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.200 ns 0.296 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.28 % 3.37 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 8.82 ns 8.81 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 8.82 ns 8.81 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.215 ns 0.225 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 2.44 % 2.56 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 8.74 ns 8.74 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 8.75 ns 8.79 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.175 ns 0.105 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.00 % 1.20 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 11.9 ns 12.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 11.9 ns 12.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.235 ns 0.199 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.97 % 1.67 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 12.3 ns 12.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 12.2 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.273 ns 0.140 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.22 % 1.14 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 12.4 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.4 ns 12.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.131 ns 0.267 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 1.06 % 2.16 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 13.4 ns 13.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 13.4 ns 13.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.405 ns 0.456 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 3.01 % 3.40 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 14.7 ns 14.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 14.8 ns 14.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.228 ns 0.181 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.55 % 1.24 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 93.5 ns 94.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 94.0 ns 94.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 1.97 ns 1.41 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.11 % 1.50 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 127 ns 127 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 127 ns 127 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 3.21 ns 3.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 2.54 % 2.84 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 192 ns 190 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 192 ns 188 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 5.17 ns 6.41 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.70 % 3.37 % 4
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.5 ns 31.5 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.6 ns 31.5 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.398 ns 0.598 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.26 % 1.90 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.8 ns 14.8 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.7 ns 14.8 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.205 ns 0.256 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.39 % 1.74 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.9 ns 15.9 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.9 ns 16.0 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.233 ns 0.349 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.47 % 2.20 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.2 ns 15.3 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.2 ns 15.2 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.140 ns 0.334 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.92 % 2.19 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.3 ns 15.3 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.3 ns 15.2 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.324 ns 0.301 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.11 % 1.96 % 4
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 34.5 ns 34.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.2 ns 34.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.778 ns 0.655 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.25 % 1.90 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.16 ns 9.16 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.18 ns 9.21 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.100 ns 0.105 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.09 % 1.14 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.8 ns 13.8 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.8 ns 14.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.206 ns 0.279 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.50 % 2.02 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.4 ns 13.3 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.3 ns 13.1 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.249 ns 0.483 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.86 % 3.65 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.6 ns 13.6 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.5 ns 13.5 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.294 ns 0.477 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.16 % 3.50 % 4
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 44.1 ns 43.7 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 44.0 ns 43.9 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.764 ns 0.488 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.73 % 1.12 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 22.3 ns 22.4 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 22.2 ns 22.2 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.733 ns 0.893 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 3.28 % 3.99 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 18.8 ns 18.7 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 18.8 ns 18.8 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.305 ns 0.483 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.63 % 2.58 % 4
|
|
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 103 ns 103 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 103 ns 101 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.57 ns 2.96 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.50 % 2.89 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 77.6 ns 77.6 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 77.4 ns 77.6 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.603 ns 1.01 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.78 % 1.30 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.4 ns 36.2 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 36.5 ns 36.0 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.772 ns 0.419 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.12 % 1.16 % 4
|
|
-- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5669 ns 5664 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5669 ns 5625 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 120 ns 78.1 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.11 % 1.38 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1305 ns 1295 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1290 ns 1287 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 31.9 ns 39.5 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.45 % 3.05 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 986 ns 984 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 952 ns 942 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 93.0 ns 99.6 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 9.44 % 10.13 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 582 ns 579 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 597 ns 586 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 33.2 ns 35.1 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.71 % 6.06 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 400 ns 398 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 402 ns 400 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 12.0 ns 12.3 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.99 % 3.09 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 244 ns 244 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 247 ns 246 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 14.3 ns 11.5 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 5.85 % 4.71 % 4
|
|
-- Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 5946 ns 5929 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 6041 ns 6069 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 423 ns 463 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 7.12 % 7.80 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4420 ns 4453 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4310 ns 4297 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 454 ns 486 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 10.27 % 10.91 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 920 ns 921 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 923 ns 921 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 38.7 ns 32.2 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.21 % 3.50 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 635 ns 631 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 630 ns 628 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 25.9 ns 28.8 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.08 % 4.56 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 384 ns 385 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 382 ns 385 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.56 ns 6.83 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.71 % 1.77 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 273 ns 273 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 274 ns 276 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.34 ns 8.39 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.69 % 3.07 % 4
|
|
-- Append string of 16 bytes and const literal of 16 bytes 2048 times, 65536 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 272220 ns 270025 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 273181 ns 268368 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6633 ns 6344 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.35 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 203527 ns 204050 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 205311 ns 207189 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 11031 ns 11008 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.42 % 5.39 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24303 ns 24275 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24189 ns 24275 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 444 ns 322 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.83 % 1.33 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22770 ns 22705 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22625 ns 22461 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 701 ns 846 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.08 % 3.72 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22095 ns 22103 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21907 ns 21972 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 384 ns 262 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.74 % 1.18 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21427 ns 21362 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21403 ns 21240 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 825 ns 834 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.85 % 3.90 % 4
|
|
-- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 5265 ns 5273 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5311 ns 5312 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 120 ns 78.1 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.28 % 1.48 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 4034 ns 4033 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 4025 ns 4011 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 101 ns 110 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 2.49 % 2.72 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 911 ns 910 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 916 ns 910 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 20.7 ns 27.0 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.27 % 2.97 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 620 ns 621 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 613 ns 614 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 19.7 ns 24.2 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.17 % 3.89 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 469 ns 470 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 468 ns 470 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 17.8 ns 13.1 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.80 % 2.78 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 362 ns 363 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 364 ns 364 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.49 ns 7.35 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.79 % 2.03 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11467 ns 11457 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 11413 ns 11457 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 229 ns 181 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.00 % 1.58 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1162 ns 1160 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1165 ns 1160 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 27.1 ns 31.5 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 2.33 % 2.72 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2743 ns 2747 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2743 ns 2762 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 57.0 ns 79.0 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.08 % 2.88 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 2397 ns 2393 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 2349 ns 2344 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 146 ns 174 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 6.08 % 7.26 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2712 ns 2698 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2722 ns 2698 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 70.1 ns 76.5 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.59 % 2.84 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1521 ns 1517 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1523 ns 1517 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 14.0 ns 20.1 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 0.92 % 1.33 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 899 ns 900 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 898 ns 900 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 17.4 ns 24.2 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.93 % 2.69 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 177 ns 177 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 175 ns 176 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.19 ns 5.27 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.81 % 2.98 % 4
|
|
stringa str = "test = " + k + " times";_mean 178 ns 178 ns 4
|
|
stringa str = "test = " + k + " times";_median 177 ns 178 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 4.71 ns 4.95 ns 4
|
|
stringa str = "test = " + k + " times";_cv 2.64 % 2.78 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 551 ns 551 ns 4
|
|
std::string::find + substr + std::strtol_median 552 ns 551 ns 4
|
|
std::string::find + substr + std::strtol_stddev 4.82 ns 8.05 ns 4
|
|
std::string::find + substr + std::strtol_cv 0.87 % 1.46 % 4
|
|
ssa::splitter + ssa::as_int_mean 300 ns 300 ns 4
|
|
ssa::splitter + ssa::as_int_median 301 ns 301 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 7.17 ns 7.90 ns 4
|
|
ssa::splitter + ssa::as_int_cv 2.39 % 2.64 % 4
|
|
ssa::splitf + functor_mean 215 ns 214 ns 4
|
|
ssa::splitf + functor_median 214 ns 212 ns 4
|
|
ssa::splitf + functor_stddev 4.75 ns 4.67 ns 4
|
|
ssa::splitf + functor_cv 2.21 % 2.19 % 4
|
|
-- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 1224 ns 1221 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1224 ns 1228 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 16.4 ns 14.0 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.34 % 1.14 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2264 ns 2188 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2198 ns 2176 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 215 ns 101 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 9.51 % 4.60 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 2662 ns 2665 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 2665 ns 2679 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 19.1 ns 27.9 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 0.72 % 1.05 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1582 ns 1578 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1580 ns 1587 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 27.7 ns 33.4 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.75 % 2.12 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1398 ns 1395 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1396 ns 1395 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 30.5 ns 22.8 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.18 % 1.63 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1251 ns 1235 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1240 ns 1242 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 47.3 ns 26.7 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.78 % 2.16 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 1243 ns 1242 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 1240 ns 1228 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 21.3 ns 27.9 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.71 % 2.25 % 4
|
|
-- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_mean 337 ns 335 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 336 ns 333 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 7.71 ns 12.5 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.28 % 3.73 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 423 ns 424 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 425 ns 424 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 5.99 ns 7.69 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 1.42 % 1.81 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 350 ns 349 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 350 ns 349 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 2.62 ns 4.43 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 0.75 % 1.27 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 298 ns 298 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 297 ns 298 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.04 ns 3.62 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.36 % 1.22 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 396 ns 397 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 394 ns 394 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 9.88 ns 8.68 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.50 % 2.19 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 253 ns 254 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 250 ns 249 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 16.7 ns 17.4 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 6.59 % 6.84 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 349 ns 345 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 349 ns 345 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 3.72 ns 13.1 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 1.07 % 3.80 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 241 ns 242 ns 4
|
|
replace bb to ---- in std::string|64_median 233 ns 233 ns 4
|
|
replace bb to ---- in std::string|64_stddev 18.7 ns 20.2 ns 4
|
|
replace bb to ---- in std::string|64_cv 7.73 % 8.35 % 4
|
|
replace bb to ---- in std::string|256_mean 791 ns 789 ns 4
|
|
replace bb to ---- in std::string|256_median 789 ns 785 ns 4
|
|
replace bb to ---- in std::string|256_stddev 7.73 ns 8.72 ns 4
|
|
replace bb to ---- in std::string|256_cv 0.98 % 1.10 % 4
|
|
replace bb to ---- in std::string|512_mean 1425 ns 1420 ns 4
|
|
replace bb to ---- in std::string|512_median 1432 ns 1428 ns 4
|
|
replace bb to ---- in std::string|512_stddev 26.5 ns 30.1 ns 4
|
|
replace bb to ---- in std::string|512_cv 1.86 % 2.12 % 4
|
|
replace bb to ---- in std::string|1024_mean 3130 ns 3122 ns 4
|
|
replace bb to ---- in std::string|1024_median 3102 ns 3104 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 88.3 ns 66.8 ns 4
|
|
replace bb to ---- in std::string|1024_cv 2.82 % 2.14 % 4
|
|
replace bb to ---- in std::string|2048_mean 7950 ns 7978 ns 4
|
|
replace bb to ---- in std::string|2048_median 7981 ns 8022 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 194 ns 219 ns 4
|
|
replace bb to ---- in std::string|2048_cv 2.44 % 2.75 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 234 ns 233 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 230 ns 229 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 11.7 ns 11.5 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 4.99 % 4.95 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 662 ns 658 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 662 ns 663 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 13.7 ns 21.9 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 2.07 % 3.33 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 1118 ns 1123 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 1102 ns 1111 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 57.0 ns 52.7 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 5.10 % 4.70 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1999 ns 1990 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1994 ns 1978 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 22.1 ns 46.7 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 1.11 % 2.35 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3914 ns 3892 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3855 ns 3809 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 217 ns 199 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 5.54 % 5.12 % 4
|
|
replace bb to ---- by init stringa|64_mean 195 ns 196 ns 4
|
|
replace bb to ---- by init stringa|64_median 196 ns 195 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.23 ns 4.01 ns 4
|
|
replace bb to ---- by init stringa|64_cv 1.14 % 2.05 % 4
|
|
replace bb to ---- by init stringa|256_mean 465 ns 466 ns 4
|
|
replace bb to ---- by init stringa|256_median 462 ns 466 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 11.5 ns 13.5 ns 4
|
|
replace bb to ---- by init stringa|256_cv 2.48 % 2.90 % 4
|
|
replace bb to ---- by init stringa|512_mean 1064 ns 1057 ns 4
|
|
replace bb to ---- by init stringa|512_median 1061 ns 1057 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 18.8 ns 27.0 ns 4
|
|
replace bb to ---- by init stringa|512_cv 1.76 % 2.56 % 4
|
|
replace bb to ---- by init stringa|1024_mean 2218 ns 2209 ns 4
|
|
replace bb to ---- by init stringa|1024_median 2220 ns 2222 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 28.9 ns 46.7 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 1.30 % 2.12 % 4
|
|
replace bb to ---- by init stringa|2048_mean 4628 ns 4630 ns 4
|
|
replace bb to ---- by init stringa|2048_median 4521 ns 4551 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 253 ns 198 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 5.48 % 4.28 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 200 ns 198 ns 4
|
|
replace bb to -- in std::string|64_median 200 ns 199 ns 4
|
|
replace bb to -- in std::string|64_stddev 5.51 ns 9.35 ns 4
|
|
replace bb to -- in std::string|64_cv 2.76 % 4.71 % 4
|
|
replace bb to -- in std::string|256_mean 527 ns 520 ns 4
|
|
replace bb to -- in std::string|256_median 523 ns 516 ns 4
|
|
replace bb to -- in std::string|256_stddev 23.4 ns 23.4 ns 4
|
|
replace bb to -- in std::string|256_cv 4.44 % 4.51 % 4
|
|
replace bb to -- in std::string|512_mean 925 ns 926 ns 4
|
|
replace bb to -- in std::string|512_median 925 ns 921 ns 4
|
|
replace bb to -- in std::string|512_stddev 10.3 ns 10.5 ns 4
|
|
replace bb to -- in std::string|512_cv 1.12 % 1.13 % 4
|
|
replace bb to -- in std::string|1024_mean 1849 ns 1852 ns 4
|
|
replace bb to -- in std::string|1024_median 1783 ns 1779 ns 4
|
|
replace bb to -- in std::string|1024_stddev 166 ns 162 ns 4
|
|
replace bb to -- in std::string|1024_cv 9.00 % 8.73 % 4
|
|
replace bb to -- in std::string|2048_mean 3432 ns 3414 ns 4
|
|
replace bb to -- in std::string|2048_median 3444 ns 3414 ns 4
|
|
replace bb to -- in std::string|2048_stddev 92.5 ns 99.1 ns 4
|
|
replace bb to -- in std::string|2048_cv 2.69 % 2.90 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 184 ns 184 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 182 ns 184 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 6.17 ns 5.85 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 3.36 % 3.19 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 441 ns 443 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 441 ns 443 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 4.07 ns 7.69 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 0.92 % 1.74 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 773 ns 772 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 771 ns 767 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 5.07 ns 8.72 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 0.66 % 1.13 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1438 ns 1439 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1436 ns 1430 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 19.8 ns 17.4 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 1.38 % 1.21 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2797 ns 2787 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2812 ns 2816 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 74.9 ns 83.9 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 2.68 % 3.01 % 4
|
|
replace bb to -- by init stringa|64_mean 165 ns 164 ns 4
|
|
replace bb to -- by init stringa|64_median 167 ns 165 ns 4
|
|
replace bb to -- by init stringa|64_stddev 4.54 ns 4.83 ns 4
|
|
replace bb to -- by init stringa|64_cv 2.76 % 2.94 % 4
|
|
replace bb to -- by init stringa|256_mean 371 ns 370 ns 4
|
|
replace bb to -- by init stringa|256_median 368 ns 368 ns 4
|
|
replace bb to -- by init stringa|256_stddev 6.71 ns 4.19 ns 4
|
|
replace bb to -- by init stringa|256_cv 1.81 % 1.13 % 4
|
|
replace bb to -- by init stringa|512_mean 613 ns 614 ns 4
|
|
replace bb to -- by init stringa|512_median 614 ns 614 ns 4
|
|
replace bb to -- by init stringa|512_stddev 9.32 ns 11.4 ns 4
|
|
replace bb to -- by init stringa|512_cv 1.52 % 1.86 % 4
|
|
replace bb to -- by init stringa|1024_mean 1103 ns 1105 ns 4
|
|
replace bb to -- by init stringa|1024_median 1109 ns 1111 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 19.7 ns 23.4 ns 4
|
|
replace bb to -- by init stringa|1024_cv 1.79 % 2.12 % 4
|
|
replace bb to -- by init stringa|2048_mean 2080 ns 2075 ns 4
|
|
replace bb to -- by init stringa|2048_median 2083 ns 2075 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 13.8 ns 28.2 ns 4
|
|
replace bb to -- by init stringa|2048_cv 0.66 % 1.36 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4404870 ns 4400414 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4416405 ns 4376883 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 71727 ns 90119 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.63 % 2.05 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5721296 ns 5650112 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5688711 ns 5580357 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 198446 ns 267139 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 3.47 % 4.73 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3899002 ns 3906250 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3893037 ns 3884427 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 121491 ns 149077 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 3.12 % 3.82 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6299827 ns 6243025 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6282895 ns 6208147 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 115741 ns 133570 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.84 % 2.14 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1577 ns 1569 ns 4
|
|
Build func full name std::string;_median 1566 ns 1569 ns 4
|
|
Build func full name std::string;_stddev 32.8 ns 28.5 ns 4
|
|
Build func full name std::string;_cv 2.08 % 1.81 % 4
|
|
Build func full name std::string 1;_mean 1622 ns 1613 ns 4
|
|
Build func full name std::string 1;_median 1622 ns 1622 ns 4
|
|
Build func full name std::string 1;_stddev 26.1 ns 33.4 ns 4
|
|
Build func full name std::string 1;_cv 1.61 % 2.07 % 4
|
|
Build func full name std::stream;_mean 9579 ns 9583 ns 4
|
|
Build func full name std::stream;_median 9627 ns 9766 ns 4
|
|
Build func full name std::stream;_stddev 201 ns 366 ns 4
|
|
Build func full name std::stream;_cv 2.10 % 3.82 % 4
|
|
Build func full name stringa;_mean 857 ns 854 ns 4
|
|
Build func full name stringa;_median 857 ns 854 ns 4
|
|
Build func full name stringa;_stddev 5.26 ns 14.2 ns 4
|
|
Build func full name stringa;_cv 0.61 % 1.67 % 4
|
|
Build func full name stringa 1;_mean 1025 ns 1025 ns 4
|
|
Build func full name stringa 1;_median 999 ns 1001 ns 4
|
|
Build func full name stringa 1;_stddev 59.3 ns 66.1 ns 4
|
|
Build func full name stringa 1;_cv 5.79 % 6.45 % 4
|