mirror of https://github.com/orefkov/simstr.git
938 lines
139 KiB
Plaintext
938 lines
139 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-12T14:50:38+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 string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 319 ns 320 ns 4
|
|
Concat std::string and number by std to std::string_median 320 ns 321 ns 4
|
|
Concat std::string and number by std to std::string_stddev 5.66 ns 6.34 ns 4
|
|
Concat std::string and number by std to std::string_cv 1.78 % 1.98 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 207 ns 206 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 205 ns 205 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 5.26 ns 6.14 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 2.54 % 2.98 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 106 ns 106 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 106 ns 106 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.07 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 116 ns 115 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 116 ns 115 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.14 ns 1.22 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 0.98 % 1.06 % 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 1020 ns 1013 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 1008 ns 1001 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 25.2 ns 42.3 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 2.47 % 4.17 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 1835 ns 1831 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 1843 ns 1842 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 29.2 ns 52.7 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 1.59 % 2.88 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 248 ns 248 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 247 ns 246 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 4.85 ns 5.58 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.95 % 2.25 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 116 ns 114 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 114 ns 113 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 5.47 ns 6.03 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 4.71 % 5.27 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 100 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 101 ns 101 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.80 ns 2.96 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.79 % 2.95 % 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 105 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.61 ns 3.66 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.47 % 3.47 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 172 ns 172 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 173 ns 171 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.27 ns 1.74 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.74 % 1.02 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 355 ns 354 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 356 ns 356 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 7.77 ns 8.01 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.19 % 2.27 % 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 681 ns 680 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 676 ns 680 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 20.8 ns 20.1 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.05 % 2.96 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 787 ns 788 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 786 ns 788 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.68 ns 8.05 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 0.59 % 1.02 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 1128 ns 1111 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 1132 ns 1111 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 19.0 ns 14.1 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.68 % 1.27 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1576 ns 1577 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1552 ns 1554 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 54.9 ns 59.4 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.49 % 3.77 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1432 ns 1436 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1439 ns 1444 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.9 ns 39.5 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.16 % 2.75 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1904 ns 1904 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1903 ns 1904 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 15.7 ns 37.0 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.82 % 1.94 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1932 ns 1937 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1927 ns 1918 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 16.0 ns 38.4 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 0.83 % 1.98 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7651 ns 7150 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 7239 ns 7150 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 870 ns 0.000 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 11.37 % 0.00 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 60.5 ns 60.3 ns 4
|
|
Concat std::string by std to std::string_median 58.7 ns 58.6 ns 4
|
|
Concat std::string by std to std::string_stddev 5.17 ns 4.61 ns 4
|
|
Concat std::string by std to std::string_cv 8.53 % 7.64 % 4
|
|
Concat std::string by StrExpr to std::string_mean 79.0 ns 78.9 ns 4
|
|
Concat std::string by StrExpr to std::string_median 78.7 ns 78.5 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 1.07 ns 0.872 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.35 % 1.10 % 4
|
|
Concat stringa by StrExpr to stringa_mean 51.1 ns 50.6 ns 4
|
|
Concat stringa by StrExpr to stringa_median 51.1 ns 50.2 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 1.16 ns 0.698 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.28 % 1.38 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 244 ns 244 ns 4
|
|
Find concat three std::string_median 248 ns 246 ns 4
|
|
Find concat three std::string_stddev 13.1 ns 12.4 ns 4
|
|
Find concat three std::string_cv 5.39 % 5.07 % 4
|
|
Find concat three strexpr_mean 121 ns 120 ns 4
|
|
Find concat three strexpr_median 121 ns 119 ns 4
|
|
Find concat three strexpr_stddev 3.18 ns 3.95 ns 4
|
|
Find concat three strexpr_cv 2.63 % 3.29 % 4
|
|
Find concat three simstr_mean 29.0 ns 29.0 ns 4
|
|
Find concat three simstr_median 29.0 ns 29.2 ns 4
|
|
Find concat three simstr_stddev 0.714 ns 0.601 ns 4
|
|
Find concat three simstr_cv 2.46 % 2.07 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 17.3 ns 17.4 ns 4
|
|
BuildTypeNameStr 0/0_median 17.3 ns 17.3 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.246 ns 0.192 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.42 % 1.10 % 4
|
|
BuildTypeNameExp 0/0_mean 13.1 ns 13.0 ns 4
|
|
BuildTypeNameExp 0/0_median 12.8 ns 12.7 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.706 ns 0.664 ns 4
|
|
BuildTypeNameExp 0/0_cv 5.38 % 5.12 % 4
|
|
BuildTypeNameSim 0/0_mean 15.2 ns 15.1 ns 4
|
|
BuildTypeNameSim 0/0_median 15.1 ns 15.0 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.379 ns 0.439 ns 4
|
|
BuildTypeNameSim 0/0_cv 2.50 % 2.91 % 4
|
|
BuildTypeNameStr 10/10_mean 81.8 ns 81.5 ns 4
|
|
BuildTypeNameStr 10/10_median 81.9 ns 81.1 ns 4
|
|
BuildTypeNameStr 10/10_stddev 1.87 ns 1.67 ns 4
|
|
BuildTypeNameStr 10/10_cv 2.28 % 2.05 % 4
|
|
BuildTypeNameExp 10/10_mean 38.8 ns 38.8 ns 4
|
|
BuildTypeNameExp 10/10_median 38.9 ns 39.0 ns 4
|
|
BuildTypeNameExp 10/10_stddev 0.987 ns 1.36 ns 4
|
|
BuildTypeNameExp 10/10_cv 2.54 % 3.51 % 4
|
|
BuildTypeNameSim 10/10_mean 36.4 ns 35.7 ns 4
|
|
BuildTypeNameSim 10/10_median 36.4 ns 35.7 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.258 ns 0.463 ns 4
|
|
BuildTypeNameSim 10/10_cv 0.71 % 1.30 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 351 ns 347 ns 4
|
|
Concat with replace str_median 350 ns 349 ns 4
|
|
Concat with replace str_stddev 8.58 ns 7.35 ns 4
|
|
Concat with replace str_cv 2.45 % 2.12 % 4
|
|
Concat with replace exp_mean 222 ns 221 ns 4
|
|
Concat with replace exp_median 223 ns 220 ns 4
|
|
Concat with replace exp_stddev 3.73 ns 4.34 ns 4
|
|
Concat with replace exp_cv 1.68 % 1.96 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.86 ns 2.87 ns 4
|
|
std::string e;_median 2.86 ns 2.86 ns 4
|
|
std::string e;_stddev 0.032 ns 0.060 ns 4
|
|
std::string e;_cv 1.10 % 2.09 % 4
|
|
std::string_view e;_mean 1.81 ns 1.81 ns 4
|
|
std::string_view e;_median 1.82 ns 1.80 ns 4
|
|
std::string_view e;_stddev 0.038 ns 0.063 ns 4
|
|
std::string_view e;_cv 2.07 % 3.47 % 4
|
|
ssa e;_mean 1.50 ns 1.50 ns 4
|
|
ssa e;_median 1.47 ns 1.46 ns 4
|
|
ssa e;_stddev 0.102 ns 0.124 ns 4
|
|
ssa e;_cv 6.79 % 8.28 % 4
|
|
stringa e;_mean 2.23 ns 2.23 ns 4
|
|
stringa e;_median 2.23 ns 2.22 ns 4
|
|
stringa e;_stddev 0.033 ns 0.047 ns 4
|
|
stringa e;_cv 1.49 % 2.09 % 4
|
|
lstringa<20> e;_mean 2.57 ns 2.55 ns 4
|
|
lstringa<20> e;_median 2.55 ns 2.57 ns 4
|
|
lstringa<20> e;_stddev 0.045 ns 0.028 ns 4
|
|
lstringa<20> e;_cv 1.74 % 1.09 % 4
|
|
lstringa<40> e;_mean 2.58 ns 2.55 ns 4
|
|
lstringa<40> e;_median 2.60 ns 2.55 ns 4
|
|
lstringa<40> e;_stddev 0.058 ns 0.048 ns 4
|
|
lstringa<40> e;_cv 2.25 % 1.90 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.56 ns 2.55 ns 4
|
|
std::string e = "Test text";_median 2.56 ns 2.57 ns 4
|
|
std::string e = "Test text";_stddev 0.022 ns 0.028 ns 4
|
|
std::string e = "Test text";_cv 0.87 % 1.09 % 4
|
|
std::string_view e = "Test text";_mean 1.81 ns 1.81 ns 4
|
|
std::string_view e = "Test text";_median 1.81 ns 1.82 ns 4
|
|
std::string_view e = "Test text";_stddev 0.020 ns 0.037 ns 4
|
|
std::string_view e = "Test text";_cv 1.11 % 2.03 % 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.008 ns 0.022 ns 4
|
|
ssa e = "Test text";_cv 0.46 % 1.22 % 4
|
|
stringa e = "Test text";_mean 2.84 ns 2.83 ns 4
|
|
stringa e = "Test text";_median 2.84 ns 2.85 ns 4
|
|
stringa e = "Test text";_stddev 0.028 ns 0.033 ns 4
|
|
stringa e = "Test text";_cv 0.97 % 1.17 % 4
|
|
lstringa<20> e = "Test text";_mean 2.56 ns 2.53 ns 4
|
|
lstringa<20> e = "Test text";_median 2.56 ns 2.55 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.026 ns 0.030 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.03 % 1.17 % 4
|
|
lstringa<40> e = "Test text";_mean 2.54 ns 2.52 ns 4
|
|
lstringa<40> e = "Test text";_median 2.53 ns 2.52 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.042 ns 0.034 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.67 % 1.36 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 79.4 ns 79.3 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 78.9 ns 79.3 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 1.50 ns 2.25 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.89 % 2.84 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.82 ns 1.81 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 1.82 ns 1.80 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.018 ns 0.021 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.00 % 1.16 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 1.79 ns 1.79 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 1.78 ns 1.80 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.016 ns 0.019 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 0.90 % 1.07 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 2.55 ns 2.55 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 2.55 ns 2.54 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.052 ns 0.053 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 2.05 % 2.09 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 76.3 ns 76.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 76.9 ns 76.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 1.63 ns 2.19 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.14 % 2.88 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.25 ns 3.24 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.25 ns 3.24 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.016 ns 0.040 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.49 % 1.24 % 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.08 ns 5.04 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.11 ns 5.08 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.120 ns 0.150 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 2.36 % 2.97 % 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.013 ns 0.042 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 0.34 % 1.10 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 3.76 ns 3.77 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 3.76 ns 3.77 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.018 ns 0.000 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.48 % 0.00 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 4.03 ns 4.01 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 4.02 ns 4.01 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.100 ns 0.071 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 2.47 % 1.77 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.27 ns 4.27 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.27 ns 4.30 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.007 ns 0.049 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 0.17 % 1.14 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.54 ns 4.53 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.54 ns 4.53 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.073 ns 0.081 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.62 % 1.78 % 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 77.1 ns 77.2 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 77.1 ns 77.6 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.43 ns 1.67 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.86 % 2.16 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.82 ns 1.81 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.80 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.019 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.88 % 1.06 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.85 ns 1.85 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.85 ns 1.84 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.019 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.89 % 1.04 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.97 ns 2.97 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.99 ns 2.98 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.060 ns 0.060 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.03 % 2.03 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 77.3 ns 77.4 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 77.1 ns 76.4 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.02 ns 2.96 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.61 % 3.82 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.40 ns 7.37 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.43 ns 7.32 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.079 ns 0.087 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.07 % 1.18 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 41.3 ns 41.0 ns 4
|
|
std::string::find;_median 41.4 ns 41.3 ns 4
|
|
std::string::find;_stddev 0.206 ns 0.868 ns 4
|
|
std::string::find;_cv 0.50 % 2.12 % 4
|
|
std::string_view::find;_mean 39.2 ns 39.3 ns 4
|
|
std::string_view::find;_median 39.2 ns 39.3 ns 4
|
|
std::string_view::find;_stddev 0.182 ns 0.683 ns 4
|
|
std::string_view::find;_cv 0.46 % 1.74 % 4
|
|
ssa::find;_mean 20.4 ns 20.4 ns 4
|
|
ssa::find;_median 20.4 ns 20.5 ns 4
|
|
ssa::find;_stddev 0.164 ns 0.209 ns 4
|
|
ssa::find;_cv 0.81 % 1.03 % 4
|
|
stringa::find;_mean 29.3 ns 29.3 ns 4
|
|
stringa::find;_median 29.4 ns 29.5 ns 4
|
|
stringa::find;_stddev 0.928 ns 0.634 ns 4
|
|
stringa::find;_cv 3.17 % 2.16 % 4
|
|
lstringa<20>::find;_mean 20.7 ns 20.7 ns 4
|
|
lstringa<20>::find;_median 20.6 ns 20.6 ns 4
|
|
lstringa<20>::find;_stddev 0.289 ns 0.434 ns 4
|
|
lstringa<20>::find;_cv 1.40 % 2.09 % 4
|
|
lstringa<40>::find;_mean 22.1 ns 22.1 ns 4
|
|
lstringa<40>::find;_median 22.1 ns 22.0 ns 4
|
|
lstringa<40>::find;_stddev 0.774 ns 0.732 ns 4
|
|
lstringa<40>::find;_cv 3.50 % 3.31 % 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.40 ns 4
|
|
std::string copy{str_with_len_N};/15_median 4.42 ns 4.40 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.023 ns 0.058 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 0.53 % 1.33 % 4
|
|
std::string copy{str_with_len_N};/16_mean 82.2 ns 82.4 ns 4
|
|
std::string copy{str_with_len_N};/16_median 82.2 ns 82.0 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 0.768 ns 0.872 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 0.93 % 1.06 % 4
|
|
std::string copy{str_with_len_N};/23_mean 83.3 ns 83.3 ns 4
|
|
std::string copy{str_with_len_N};/23_median 83.4 ns 83.7 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 1.69 ns 0.872 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 2.03 % 1.05 % 4
|
|
std::string copy{str_with_len_N};/24_mean 80.7 ns 80.6 ns 4
|
|
std::string copy{str_with_len_N};/24_median 80.6 ns 80.2 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 0.679 ns 1.34 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 0.84 % 1.66 % 4
|
|
std::string copy{str_with_len_N};/32_mean 84.3 ns 84.2 ns 4
|
|
std::string copy{str_with_len_N};/32_median 84.6 ns 83.7 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 2.70 ns 3.14 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 3.20 % 3.73 % 4
|
|
std::string copy{str_with_len_N};/64_mean 88.8 ns 89.1 ns 4
|
|
std::string copy{str_with_len_N};/64_median 88.3 ns 89.1 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 1.64 ns 1.41 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 1.84 % 1.58 % 4
|
|
std::string copy{str_with_len_N};/128_mean 90.4 ns 90.5 ns 4
|
|
std::string copy{str_with_len_N};/128_median 87.6 ns 88.9 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 6.20 ns 5.50 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 6.86 % 6.08 % 4
|
|
std::string copy{str_with_len_N};/256_mean 89.8 ns 89.8 ns 4
|
|
std::string copy{str_with_len_N};/256_median 90.2 ns 90.7 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 1.12 ns 1.74 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 1.24 % 1.94 % 4
|
|
std::string copy{str_with_len_N};/512_mean 93.0 ns 92.6 ns 4
|
|
std::string copy{str_with_len_N};/512_median 93.3 ns 93.1 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 1.94 ns 2.00 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 2.09 % 2.16 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 109 ns 109 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 109 ns 109 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 5.83 ns 5.50 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 5.34 % 5.03 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 131 ns 131 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 131 ns 130 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 3.96 ns 3.95 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 3.02 % 3.01 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 181 ns 180 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 180 ns 178 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 3.61 ns 5.43 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 2.00 % 3.01 % 4
|
|
stringa copy{str_with_len_N};/15_mean 4.04 ns 4.02 ns 4
|
|
stringa copy{str_with_len_N};/15_median 4.03 ns 3.98 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.076 ns 0.118 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 1.89 % 2.95 % 4
|
|
stringa copy{str_with_len_N};/16_mean 4.08 ns 4.06 ns 4
|
|
stringa copy{str_with_len_N};/16_median 4.09 ns 4.04 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.073 ns 0.087 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 1.79 % 2.14 % 4
|
|
stringa copy{str_with_len_N};/23_mean 3.96 ns 3.92 ns 4
|
|
stringa copy{str_with_len_N};/23_median 3.96 ns 3.90 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.051 ns 0.045 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 1.30 % 1.16 % 4
|
|
stringa copy{str_with_len_N};/24_mean 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/24_median 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.087 ns 0.242 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 0.48 % 1.33 % 4
|
|
stringa copy{str_with_len_N};/32_mean 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/32_median 18.2 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.062 ns 0.242 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.34 % 1.33 % 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.4 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.080 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.44 % 1.05 % 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.4 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.188 ns 0.000 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 1.02 % 0.00 % 4
|
|
stringa copy{str_with_len_N};/256_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/256_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.100 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.54 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/512_mean 18.4 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/512_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.097 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.53 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 19.1 ns 19.0 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 18.4 ns 18.2 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 1.45 ns 1.67 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 7.61 % 8.81 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.111 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.61 % 1.05 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 18.4 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 18.5 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.058 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.31 % 1.14 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.91 ns 4.89 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.91 ns 4.92 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.074 ns 0.104 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 1.52 % 2.12 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 9.01 ns 9.02 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 9.00 ns 8.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.154 ns 0.167 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.71 % 1.85 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 9.15 ns 9.05 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 9.20 ns 9.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.332 ns 0.314 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 3.63 % 3.47 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 79.3 ns 79.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 79.3 ns 79.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.727 ns 1.01 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 0.92 % 1.27 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 81.4 ns 81.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 81.6 ns 81.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.16 ns 1.71 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.42 % 2.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 89.5 ns 87.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 87.3 ns 86.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 6.15 ns 5.27 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 6.87 % 6.00 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 86.7 ns 85.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 87.1 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.32 ns 1.67 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 1.53 % 1.94 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 86.3 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 85.8 ns 87.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 1.60 ns 1.74 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.85 % 2.02 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 90.0 ns 89.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 88.8 ns 89.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 2.66 ns 2.34 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 2.96 % 2.61 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 99.4 ns 99.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 98.9 ns 99.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 3.30 ns 2.70 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 3.32 % 2.72 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 128 ns 128 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 129 ns 128 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 2.93 ns 1.40 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 2.29 % 1.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 189 ns 188 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 189 ns 188 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 0.863 ns 3.42 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 0.46 % 1.81 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.07 ns 4.05 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.06 ns 4.05 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.080 ns 0.113 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.98 % 2.78 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 9.17 ns 9.11 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 9.23 ns 9.16 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.178 ns 0.167 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 1.94 % 1.83 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 9.33 ns 9.31 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 9.25 ns 9.21 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.361 ns 0.362 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 3.87 % 3.89 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 9.11 ns 9.09 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 9.11 ns 9.03 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.099 ns 0.122 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 1.09 % 1.34 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 12.1 ns 12.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 12.1 ns 12.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.244 ns 0.351 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 2.01 % 2.91 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 12.3 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 12.3 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.172 ns 0.228 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.40 % 1.86 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 12.5 ns 12.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.4 ns 12.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.366 ns 0.307 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.93 % 2.46 % 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.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.214 ns 0.157 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.59 % 1.17 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 15.3 ns 15.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 15.5 ns 15.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.456 ns 0.544 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 2.98 % 3.57 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 99.8 ns 99.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 100.0 ns 99.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.42 ns 2.00 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.43 % 2.01 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 136 ns 135 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 136 ns 134 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 13.0 ns 13.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 9.54 % 10.17 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 191 ns 190 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 192 ns 193 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 4.60 ns 4.19 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.40 % 2.20 % 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.7 ns 31.7 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.8 ns 31.9 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.535 ns 0.701 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.69 % 2.21 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.6 ns 13.5 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.6 ns 13.5 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.307 ns 0.256 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.26 % 1.90 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.1 ns 15.1 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.1 ns 15.2 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.312 ns 0.301 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.06 % 1.98 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 14.8 ns 14.8 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 14.8 ns 14.8 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.211 ns 0.201 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.43 % 1.36 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.0 ns 14.9 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.0 ns 14.8 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.344 ns 0.314 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.30 % 2.11 % 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 35.4 ns 35.3 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 35.3 ns 35.3 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.10 ns 0.886 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.11 % 2.51 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.45 ns 9.36 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.41 ns 9.42 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.095 ns 0.105 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.01 % 1.12 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.4 ns 13.4 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.4 ns 13.5 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.245 ns 0.157 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.82 % 1.17 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.5 ns 12.4 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.4 ns 12.4 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.309 ns 0.360 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.48 % 2.90 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.8 ns 13.7 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.8 ns 13.5 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.069 ns 0.314 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.50 % 2.30 % 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.8 ns 44.8 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 44.3 ns 44.5 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.04 ns 1.27 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.33 % 2.84 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 21.6 ns 21.6 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 21.5 ns 21.5 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.244 ns 0.244 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.13 % 1.13 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 16.9 ns 16.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 17.0 ns 16.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.234 ns 0.313 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.38 % 1.86 % 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 105 ns 105 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 105 ns 105 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 3.76 ns 4.77 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.57 % 4.52 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 79.8 ns 79.3 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 80.1 ns 79.3 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.32 ns 1.41 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.66 % 1.78 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.2 ns 36.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 36.3 ns 36.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.436 ns 0.655 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.20 % 1.81 % 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 5868 ns 5859 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5767 ns 5703 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 356 ns 372 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 6.07 % 6.35 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1286 ns 1288 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1295 ns 1294 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 27.8 ns 30.7 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.16 % 2.39 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 948 ns 952 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 949 ns 952 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 13.8 ns 12.1 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.46 % 1.27 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 542 ns 539 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 542 ns 539 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 12.8 ns 20.2 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.37 % 3.74 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 366 ns 366 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 366 ns 368 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 3.20 ns 4.19 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.88 % 1.14 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 229 ns 229 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 227 ns 227 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 5.49 ns 6.91 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.40 % 3.01 % 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 5621 ns 5625 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5559 ns 5547 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 232 ns 221 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.12 % 3.93 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3832 ns 3830 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3823 ns 3809 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 120 ns 80.1 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.13 % 2.09 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 813 ns 815 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 811 ns 811 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.0 ns 16.7 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.35 % 2.05 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 538 ns 537 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 538 ns 537 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.22 ns 8.05 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.53 % 1.50 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 385 ns 385 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 386 ns 385 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.67 ns 6.55 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.47 % 1.70 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 269 ns 268 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 270 ns 268 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.60 ns 3.83 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.08 % 1.43 % 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 278650 ns 275735 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 280445 ns 275735 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 5164 ns 3424 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.85 % 1.24 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 196731 ns 195679 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 197320 ns 196725 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4161 ns 6278 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.11 % 3.21 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23803 ns 23803 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23890 ns 23803 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 316 ns 302 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.33 % 1.27 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22568 ns 22583 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22649 ns 22461 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 358 ns 244 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.58 % 1.08 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21625 ns 21606 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21622 ns 21484 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 282 ns 244 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.30 % 1.13 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21182 ns 21118 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21068 ns 21240 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 245 ns 467 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.16 % 2.21 % 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 5248 ns 5232 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5217 ns 5232 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 71.0 ns 80.5 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.35 % 1.54 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 4021 ns 4013 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 4019 ns 3990 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 32.5 ns 45.3 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 0.81 % 1.13 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 900 ns 900 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 903 ns 900 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 28.7 ns 17.1 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.19 % 1.90 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 622 ns 617 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 620 ns 614 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 17.5 ns 17.6 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.81 % 2.84 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 462 ns 459 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 463 ns 459 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.8 ns 7.97 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.77 % 1.74 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 351 ns 349 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 350 ns 345 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 8.25 ns 7.67 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.35 % 2.20 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11625 ns 11658 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 11546 ns 11597 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 236 ns 234 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.03 % 2.01 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1233 ns 1233 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1241 ns 1233 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 35.4 ns 31.5 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 2.87 % 2.56 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2806 ns 2809 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2807 ns 2794 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 34.3 ns 60.1 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.22 % 2.14 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 2367 ns 2354 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 2373 ns 2354 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 31.3 ns 42.7 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 1.32 % 1.81 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2624 ns 2609 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2623 ns 2609 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 24.7 ns 48.4 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 0.94 % 1.86 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1481 ns 1477 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1487 ns 1477 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 17.9 ns 22.2 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.21 % 1.50 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 898 ns 902 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 894 ns 898 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 14.3 ns 16.7 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.59 % 1.85 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 194 ns 194 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 193 ns 193 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 2.97 ns 2.09 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.53 % 1.08 % 4
|
|
stringa str = "test = " + k + " times";_mean 236 ns 237 ns 4
|
|
stringa str = "test = " + k + " times";_median 237 ns 238 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 3.73 ns 5.01 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.58 % 2.12 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 543 ns 541 ns 4
|
|
std::string::find + substr + std::strtol_median 541 ns 544 ns 4
|
|
std::string::find + substr + std::strtol_stddev 5.22 ns 6.98 ns 4
|
|
std::string::find + substr + std::strtol_cv 0.96 % 1.29 % 4
|
|
ssa::splitter + ssa::as_int_mean 296 ns 295 ns 4
|
|
ssa::splitter + ssa::as_int_median 297 ns 298 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 7.35 ns 11.5 ns 4
|
|
ssa::splitter + ssa::as_int_cv 2.48 % 3.89 % 4
|
|
ssa::splitf + functor_mean 213 ns 214 ns 4
|
|
ssa::splitf + functor_median 212 ns 212 ns 4
|
|
ssa::splitf + functor_stddev 3.75 ns 4.67 ns 4
|
|
ssa::splitf + functor_cv 1.76 % 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 1250 ns 1251 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1260 ns 1257 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 38.3 ns 41.7 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 3.07 % 3.33 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2160 ns 2154 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2171 ns 2154 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 38.2 ns 26.2 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 1.77 % 1.22 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 2559 ns 2553 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 2549 ns 2539 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 46.5 ns 53.4 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.82 % 2.09 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1585 ns 1587 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1583 ns 1587 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 8.16 ns 20.1 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 0.51 % 1.27 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1423 ns 1420 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1424 ns 1413 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 20.0 ns 15.7 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 1.41 % 1.10 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1306 ns 1304 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1308 ns 1311 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 26.8 ns 35.1 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 2.05 % 2.69 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 1240 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 20.1 ns 27.9 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.62 % 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 327 ns 326 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 327 ns 326 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 2.67 ns 4.43 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 0.82 % 1.36 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 434 ns 436 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 435 ns 438 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 3.90 ns 9.02 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 0.90 % 2.07 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 368 ns 367 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 364 ns 365 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 8.85 ns 7.68 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.40 % 2.09 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 306 ns 305 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 306 ns 307 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.43 ns 3.49 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.12 % 1.14 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 409 ns 410 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 408 ns 408 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 8.79 ns 11.4 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.15 % 2.78 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 268 ns 268 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 265 ns 267 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 7.49 ns 7.46 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 2.80 % 2.78 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 346 ns 343 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 346 ns 341 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 2.71 ns 7.68 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 0.78 % 2.24 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 246 ns 246 ns 4
|
|
replace bb to ---- in std::string|64_median 248 ns 248 ns 4
|
|
replace bb to ---- in std::string|64_stddev 5.28 ns 7.89 ns 4
|
|
replace bb to ---- in std::string|64_cv 2.15 % 3.21 % 4
|
|
replace bb to ---- in std::string|256_mean 797 ns 793 ns 4
|
|
replace bb to ---- in std::string|256_median 791 ns 793 ns 4
|
|
replace bb to ---- in std::string|256_stddev 17.8 ns 10.1 ns 4
|
|
replace bb to ---- in std::string|256_cv 2.23 % 1.27 % 4
|
|
replace bb to ---- in std::string|512_mean 1484 ns 1475 ns 4
|
|
replace bb to ---- in std::string|512_median 1479 ns 1475 ns 4
|
|
replace bb to ---- in std::string|512_stddev 13.6 ns 25.6 ns 4
|
|
replace bb to ---- in std::string|512_cv 0.91 % 1.74 % 4
|
|
replace bb to ---- in std::string|1024_mean 3187 ns 3191 ns 4
|
|
replace bb to ---- in std::string|1024_median 3197 ns 3174 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 42.2 ns 66.8 ns 4
|
|
replace bb to ---- in std::string|1024_cv 1.33 % 2.09 % 4
|
|
replace bb to ---- in std::string|2048_mean 8264 ns 8240 ns 4
|
|
replace bb to ---- in std::string|2048_median 8235 ns 8109 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 410 ns 459 ns 4
|
|
replace bb to ---- in std::string|2048_cv 4.96 % 5.57 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 234 ns 233 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 233 ns 232 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 7.59 ns 9.53 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 3.25 % 4.09 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 674 ns 670 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 675 ns 670 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 2.88 ns 11.4 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 0.43 % 1.70 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 1132 ns 1135 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 1141 ns 1147 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 36.7 ns 42.3 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 3.24 % 3.72 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 2070 ns 2074 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 2063 ns 2063 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 29.1 ns 43.4 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 1.40 % 2.09 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3928 ns 3854 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3967 ns 3854 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 96.7 ns 52.4 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.46 % 1.36 % 4
|
|
replace bb to ---- by init stringa|64_mean 204 ns 205 ns 4
|
|
replace bb to ---- by init stringa|64_median 202 ns 203 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 9.92 ns 9.04 ns 4
|
|
replace bb to ---- by init stringa|64_cv 4.85 % 4.41 % 4
|
|
replace bb to ---- by init stringa|256_mean 483 ns 484 ns 4
|
|
replace bb to ---- by init stringa|256_median 484 ns 487 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 14.9 ns 17.9 ns 4
|
|
replace bb to ---- by init stringa|256_cv 3.08 % 3.69 % 4
|
|
replace bb to ---- by init stringa|512_mean 1060 ns 1060 ns 4
|
|
replace bb to ---- by init stringa|512_median 1064 ns 1060 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 12.0 ns 22.8 ns 4
|
|
replace bb to ---- by init stringa|512_cv 1.13 % 2.15 % 4
|
|
replace bb to ---- by init stringa|1024_mean 2279 ns 2271 ns 4
|
|
replace bb to ---- by init stringa|1024_median 2297 ns 2295 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 63.3 ns 48.8 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 2.78 % 2.15 % 4
|
|
replace bb to ---- by init stringa|2048_mean 4526 ns 4526 ns 4
|
|
replace bb to ---- by init stringa|2048_median 4521 ns 4501 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 44.2 ns 96.8 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 0.98 % 2.14 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 213 ns 214 ns 4
|
|
replace bb to -- in std::string|64_median 211 ns 212 ns 4
|
|
replace bb to -- in std::string|64_stddev 5.30 ns 4.67 ns 4
|
|
replace bb to -- in std::string|64_cv 2.48 % 2.19 % 4
|
|
replace bb to -- in std::string|256_mean 540 ns 539 ns 4
|
|
replace bb to -- in std::string|256_median 543 ns 547 ns 4
|
|
replace bb to -- in std::string|256_stddev 14.4 ns 15.6 ns 4
|
|
replace bb to -- in std::string|256_cv 2.67 % 2.90 % 4
|
|
replace bb to -- in std::string|512_mean 975 ns 970 ns 4
|
|
replace bb to -- in std::string|512_median 974 ns 977 ns 4
|
|
replace bb to -- in std::string|512_stddev 4.44 ns 12.2 ns 4
|
|
replace bb to -- in std::string|512_cv 0.46 % 1.26 % 4
|
|
replace bb to -- in std::string|1024_mean 1812 ns 1789 ns 4
|
|
replace bb to -- in std::string|1024_median 1798 ns 1800 ns 4
|
|
replace bb to -- in std::string|1024_stddev 42.8 ns 52.7 ns 4
|
|
replace bb to -- in std::string|1024_cv 2.36 % 2.94 % 4
|
|
replace bb to -- in std::string|2048_mean 3562 ns 3570 ns 4
|
|
replace bb to -- in std::string|2048_median 3551 ns 3570 ns 4
|
|
replace bb to -- in std::string|2048_stddev 30.6 ns 46.3 ns 4
|
|
replace bb to -- in std::string|2048_cv 0.86 % 1.30 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 196 ns 197 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 195 ns 195 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 4.93 ns 6.14 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 2.51 % 3.13 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 459 ns 458 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 459 ns 455 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 15.0 ns 17.9 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 3.26 % 3.90 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 791 ns 793 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 796 ns 802 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 16.1 ns 17.4 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 2.03 % 2.20 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1519 ns 1522 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1523 ns 1522 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 30.0 ns 40.5 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 1.98 % 2.66 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2888 ns 2897 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2902 ns 2916 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 49.1 ns 38.4 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 1.70 % 1.32 % 4
|
|
replace bb to -- by init stringa|64_mean 176 ns 176 ns 4
|
|
replace bb to -- by init stringa|64_median 175 ns 175 ns 4
|
|
replace bb to -- by init stringa|64_stddev 7.58 ns 8.29 ns 4
|
|
replace bb to -- by init stringa|64_cv 4.31 % 4.70 % 4
|
|
replace bb to -- by init stringa|256_mean 389 ns 385 ns 4
|
|
replace bb to -- by init stringa|256_median 391 ns 385 ns 4
|
|
replace bb to -- by init stringa|256_stddev 6.20 ns 11.7 ns 4
|
|
replace bb to -- by init stringa|256_cv 1.59 % 3.04 % 4
|
|
replace bb to -- by init stringa|512_mean 647 ns 645 ns 4
|
|
replace bb to -- by init stringa|512_median 648 ns 649 ns 4
|
|
replace bb to -- by init stringa|512_stddev 11.7 ns 13.4 ns 4
|
|
replace bb to -- by init stringa|512_cv 1.81 % 2.07 % 4
|
|
replace bb to -- by init stringa|1024_mean 1222 ns 1227 ns 4
|
|
replace bb to -- by init stringa|1024_median 1217 ns 1221 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 35.2 ns 36.6 ns 4
|
|
replace bb to -- by init stringa|1024_cv 2.88 % 2.99 % 4
|
|
replace bb to -- by init stringa|2048_mean 2280 ns 2263 ns 4
|
|
replace bb to -- by init stringa|2048_median 2281 ns 2250 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 23.1 ns 26.2 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.01 % 1.16 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4240370 ns 4235693 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4229996 ns 4235693 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 54733 ns 76854 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.29 % 1.81 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5465021 ns 5468750 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5474793 ns 5468750 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 291111 ns 382733 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 5.33 % 7.00 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3925646 ns 3906250 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3942482 ns 3906250 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 63167 ns 74173 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.61 % 1.90 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6242693 ns 6243025 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6227330 ns 6208147 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 144165 ns 133570 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.31 % 2.14 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1664 ns 1665 ns 4
|
|
Build func full name std::string;_median 1663 ns 1674 ns 4
|
|
Build func full name std::string;_stddev 14.7 ns 17.4 ns 4
|
|
Build func full name std::string;_cv 0.88 % 1.05 % 4
|
|
Build func full name std::string 1;_mean 1769 ns 1765 ns 4
|
|
Build func full name std::string 1;_median 1696 ns 1688 ns 4
|
|
Build func full name std::string 1;_stddev 158 ns 153 ns 4
|
|
Build func full name std::string 1;_cv 8.95 % 8.70 % 4
|
|
Build func full name std::stream;_mean 9778 ns 9766 ns 4
|
|
Build func full name std::stream;_median 9752 ns 9766 ns 4
|
|
Build func full name std::stream;_stddev 146 ns 199 ns 4
|
|
Build func full name std::stream;_cv 1.49 % 2.04 % 4
|
|
Build func full name stringa;_mean 873 ns 874 ns 4
|
|
Build func full name stringa;_median 871 ns 868 ns 4
|
|
Build func full name stringa;_stddev 6.20 ns 20.0 ns 4
|
|
Build func full name stringa;_cv 0.71 % 2.29 % 4
|
|
Build func full name stringa 1;_mean 1040 ns 1039 ns 4
|
|
Build func full name stringa 1;_median 1030 ns 1018 ns 4
|
|
Build func full name stringa 1;_stddev 39.4 ns 52.8 ns 4
|
|
Build func full name stringa 1;_cv 3.79 % 5.08 % 4
|