mirror of https://github.com/orefkov/simstr.git
877 lines
130 KiB
Plaintext
877 lines
130 KiB
Plaintext
2026-01-21T00:56:24+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 331 ns 330 ns 10
|
|
Concat std::string and number by std to std::string_median 328 ns 328 ns 10
|
|
Concat std::string and number by std to std::string_stddev 9.88 ns 8.73 ns 10
|
|
Concat std::string and number by std to std::string_cv 2.98 % 2.65 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 211 ns 207 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 212 ns 206 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 5.83 ns 5.26 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 2.77 % 2.54 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 108 ns 107 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 108 ns 107 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.53 ns 2.24 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 2.33 % 2.10 % 10
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and hex number by std to std::string_mean 1074 ns 1059 ns 10
|
|
Concat std::string and hex number by std to std::string_median 1060 ns 1046 ns 10
|
|
Concat std::string and hex number by std to std::string_stddev 38.0 ns 38.5 ns 10
|
|
Concat std::string and hex number by std to std::string_cv 3.54 % 3.63 % 10
|
|
Concat std::string and hex number by StrExpr to std::string_mean 136 ns 136 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_median 137 ns 135 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_stddev 4.05 ns 4.20 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_cv 2.97 % 3.09 % 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_mean 101 ns 98.4 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_median 102 ns 97.7 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_stddev 4.57 ns 4.00 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_cv 4.50 % 4.06 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 55.4 ns 55.0 ns 10
|
|
Concat std::string by std to std::string_median 54.8 ns 54.4 ns 10
|
|
Concat std::string by std to std::string_stddev 1.60 ns 1.76 ns 10
|
|
Concat std::string by std to std::string_cv 2.89 % 3.21 % 10
|
|
Concat std::string by StrExpr to std::string_mean 77.9 ns 77.0 ns 10
|
|
Concat std::string by StrExpr to std::string_median 77.6 ns 76.7 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 1.39 ns 1.28 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 1.78 % 1.66 % 10
|
|
Concat stringa by StrExpr to stringa_mean 52.5 ns 52.0 ns 10
|
|
Concat stringa by StrExpr to stringa_median 51.6 ns 51.6 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 1.34 ns 0.755 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 2.56 % 1.45 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 225 ns 222 ns 10
|
|
Find concat three std::string_median 223 ns 217 ns 10
|
|
Find concat three std::string_stddev 9.31 ns 8.69 ns 10
|
|
Find concat three std::string_cv 4.13 % 3.91 % 10
|
|
Find concat three strexpr_mean 122 ns 121 ns 10
|
|
Find concat three strexpr_median 122 ns 120 ns 10
|
|
Find concat three strexpr_stddev 3.71 ns 3.68 ns 10
|
|
Find concat three strexpr_cv 3.05 % 3.05 % 10
|
|
Find concat three simstr_mean 28.4 ns 27.9 ns 10
|
|
Find concat three simstr_median 28.2 ns 27.9 ns 10
|
|
Find concat three simstr_stddev 0.873 ns 0.791 ns 10
|
|
Find concat three simstr_cv 3.08 % 2.84 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 17.9 ns 17.7 ns 10
|
|
BuildTypeNameStr 0/0_median 17.7 ns 17.6 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.347 ns 0.353 ns 10
|
|
BuildTypeNameStr 0/0_cv 1.94 % 1.99 % 10
|
|
BuildTypeNameExp 0/0_mean 14.2 ns 14.1 ns 10
|
|
BuildTypeNameExp 0/0_median 14.0 ns 14.1 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.420 ns 0.391 ns 10
|
|
BuildTypeNameExp 0/0_cv 2.96 % 2.77 % 10
|
|
BuildTypeNameSim 0/0_mean 17.2 ns 17.1 ns 10
|
|
BuildTypeNameSim 0/0_median 17.2 ns 17.3 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.256 ns 0.185 ns 10
|
|
BuildTypeNameSim 0/0_cv 1.49 % 1.08 % 10
|
|
BuildTypeNameStr 10/10_mean 79.4 ns 79.2 ns 10
|
|
BuildTypeNameStr 10/10_median 78.6 ns 78.5 ns 10
|
|
BuildTypeNameStr 10/10_stddev 1.75 ns 1.22 ns 10
|
|
BuildTypeNameStr 10/10_cv 2.20 % 1.54 % 10
|
|
BuildTypeNameExp 10/10_mean 40.0 ns 40.0 ns 10
|
|
BuildTypeNameExp 10/10_median 39.9 ns 40.1 ns 10
|
|
BuildTypeNameExp 10/10_stddev 0.764 ns 0.643 ns 10
|
|
BuildTypeNameExp 10/10_cv 1.91 % 1.61 % 10
|
|
BuildTypeNameSim 10/10_mean 37.9 ns 37.8 ns 10
|
|
BuildTypeNameSim 10/10_median 37.8 ns 37.5 ns 10
|
|
BuildTypeNameSim 10/10_stddev 0.709 ns 0.718 ns 10
|
|
BuildTypeNameSim 10/10_cv 1.87 % 1.90 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 362 ns 351 ns 10
|
|
Concat with replace str_median 364 ns 349 ns 10
|
|
Concat with replace str_stddev 13.6 ns 10.6 ns 10
|
|
Concat with replace str_cv 3.75 % 3.01 % 10
|
|
Concat with replace exp_mean 223 ns 221 ns 10
|
|
Concat with replace exp_median 222 ns 222 ns 10
|
|
Concat with replace exp_stddev 5.40 ns 4.68 ns 10
|
|
Concat with replace exp_cv 2.42 % 2.12 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.63 ns 2.57 ns 10
|
|
std::string e;_median 2.61 ns 2.58 ns 10
|
|
std::string e;_stddev 0.115 ns 0.093 ns 10
|
|
std::string e;_cv 4.35 % 3.62 % 10
|
|
std::string_view e;_mean 1.84 ns 1.83 ns 10
|
|
std::string_view e;_median 1.82 ns 1.84 ns 10
|
|
std::string_view e;_stddev 0.042 ns 0.028 ns 10
|
|
std::string_view e;_cv 2.27 % 1.54 % 10
|
|
ssa e;_mean 1.83 ns 1.82 ns 10
|
|
ssa e;_median 1.83 ns 1.84 ns 10
|
|
ssa e;_stddev 0.031 ns 0.041 ns 10
|
|
ssa e;_cv 1.68 % 2.23 % 10
|
|
stringa e;_mean 2.22 ns 2.20 ns 10
|
|
stringa e;_median 2.22 ns 2.20 ns 10
|
|
stringa e;_stddev 0.056 ns 0.046 ns 10
|
|
stringa e;_cv 2.53 % 2.10 % 10
|
|
lstringa<20> e;_mean 2.59 ns 2.57 ns 10
|
|
lstringa<20> e;_median 2.56 ns 2.57 ns 10
|
|
lstringa<20> e;_stddev 0.070 ns 0.051 ns 10
|
|
lstringa<20> e;_cv 2.69 % 1.99 % 10
|
|
lstringa<40> e;_mean 2.56 ns 2.54 ns 10
|
|
lstringa<40> e;_median 2.55 ns 2.55 ns 10
|
|
lstringa<40> e;_stddev 0.045 ns 0.044 ns 10
|
|
lstringa<40> e;_cv 1.75 % 1.72 % 10
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.64 ns 2.61 ns 10
|
|
std::string e = "Test text";_median 2.63 ns 2.59 ns 10
|
|
std::string e = "Test text";_stddev 0.074 ns 0.078 ns 10
|
|
std::string e = "Test text";_cv 2.79 % 2.99 % 10
|
|
std::string_view e = "Test text";_mean 1.85 ns 1.83 ns 10
|
|
std::string_view e = "Test text";_median 1.84 ns 1.82 ns 10
|
|
std::string_view e = "Test text";_stddev 0.038 ns 0.027 ns 10
|
|
std::string_view e = "Test text";_cv 2.05 % 1.47 % 10
|
|
ssa e = "Test text";_mean 1.83 ns 1.82 ns 10
|
|
ssa e = "Test text";_median 1.83 ns 1.81 ns 10
|
|
ssa e = "Test text";_stddev 0.022 ns 0.029 ns 10
|
|
ssa e = "Test text";_cv 1.20 % 1.57 % 10
|
|
stringa e = "Test text";_mean 2.20 ns 2.20 ns 10
|
|
stringa e = "Test text";_median 2.19 ns 2.20 ns 10
|
|
stringa e = "Test text";_stddev 0.053 ns 0.061 ns 10
|
|
stringa e = "Test text";_cv 2.42 % 2.77 % 10
|
|
lstringa<20> e = "Test text";_mean 2.59 ns 2.57 ns 10
|
|
lstringa<20> e = "Test text";_median 2.60 ns 2.55 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.033 ns 0.031 ns 10
|
|
lstringa<20> e = "Test text";_cv 1.28 % 1.19 % 10
|
|
lstringa<40> e = "Test text";_mean 2.58 ns 2.54 ns 10
|
|
lstringa<40> e = "Test text";_median 2.57 ns 2.55 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.082 ns 0.059 ns 10
|
|
lstringa<40> e = "Test text";_cv 3.17 % 2.32 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 77.5 ns 77.2 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 77.1 ns 77.4 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 2.32 ns 2.51 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 2.99 % 3.24 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.83 ns 1.81 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 1.82 ns 1.80 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.028 ns 0.028 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.53 % 1.56 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 1.83 ns 1.83 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 1.83 ns 1.84 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.019 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 0.36 % 1.01 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 2.24 ns 2.23 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 2.22 ns 2.22 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.060 ns 0.047 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 2.70 % 2.10 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 77.7 ns 77.1 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 76.7 ns 76.7 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 2.51 ns 2.57 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 3.24 % 3.34 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.42 ns 3.40 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.36 ns 3.35 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.192 ns 0.168 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 5.60 % 4.95 % 10
|
|
----- 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.43 ns 5.37 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 5.37 ns 5.31 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.131 ns 0.132 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 2.41 % 2.45 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 2.94 ns 2.93 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 2.94 ns 2.93 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.055 ns 0.066 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.86 % 2.24 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 2.92 ns 2.90 ns 10
|
|
ssa e = "Test text"; auto c{e};_median 2.90 ns 2.92 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.056 ns 0.070 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 1.93 % 2.42 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 4.13 ns 4.09 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 4.08 ns 4.05 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.145 ns 0.104 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 3.51 % 2.55 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 7.74 ns 7.60 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 7.65 ns 7.50 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.280 ns 0.187 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 3.62 % 2.47 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 8.56 ns 8.46 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 8.52 ns 8.37 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.277 ns 0.276 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 3.24 % 3.26 % 10
|
|
----- 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.5 ns 76.6 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 77.6 ns 77.4 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.80 ns 2.50 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.61 % 3.26 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.88 ns 1.85 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.84 ns 1.82 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.098 ns 0.086 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 5.20 % 4.64 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.82 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.80 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.047 ns 0.045 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.54 % 2.47 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 3.02 ns 2.98 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 3.01 ns 2.98 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.093 ns 0.070 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 3.09 % 2.34 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 79.3 ns 78.6 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 78.3 ns 78.5 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.18 ns 2.09 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.75 % 2.65 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 6.63 ns 6.63 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 6.60 ns 6.63 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.129 ns 0.151 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.95 % 2.27 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 40.7 ns 40.4 ns 10
|
|
std::string::find;_median 40.6 ns 40.4 ns 10
|
|
std::string::find;_stddev 0.887 ns 1.43 ns 10
|
|
std::string::find;_cv 2.18 % 3.55 % 10
|
|
std::string_view::find;_mean 40.8 ns 40.4 ns 10
|
|
std::string_view::find;_median 40.7 ns 39.9 ns 10
|
|
std::string_view::find;_stddev 0.671 ns 0.641 ns 10
|
|
std::string_view::find;_cv 1.64 % 1.59 % 10
|
|
ssa::find;_mean 22.6 ns 22.5 ns 10
|
|
ssa::find;_median 22.6 ns 22.7 ns 10
|
|
ssa::find;_stddev 0.634 ns 0.779 ns 10
|
|
ssa::find;_cv 2.81 % 3.46 % 10
|
|
stringa::find;_mean 28.4 ns 28.2 ns 10
|
|
stringa::find;_median 28.5 ns 27.6 ns 10
|
|
stringa::find;_stddev 1.42 ns 1.51 ns 10
|
|
stringa::find;_cv 4.99 % 5.37 % 10
|
|
lstringa<20>::find;_mean 23.2 ns 23.0 ns 10
|
|
lstringa<20>::find;_median 23.1 ns 22.9 ns 10
|
|
lstringa<20>::find;_stddev 0.720 ns 0.765 ns 10
|
|
lstringa<20>::find;_cv 3.10 % 3.32 % 10
|
|
lstringa<40>::find;_mean 21.3 ns 21.0 ns 10
|
|
lstringa<40>::find;_median 20.9 ns 20.9 ns 10
|
|
lstringa<40>::find;_stddev 0.840 ns 0.678 ns 10
|
|
lstringa<40>::find;_cv 3.95 % 3.23 % 10
|
|
------- 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 5.27 ns 5.17 ns 10
|
|
std::string copy{str_with_len_N};/15_median 5.22 ns 5.16 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 0.211 ns 0.155 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 4.00 % 3.00 % 10
|
|
std::string copy{str_with_len_N};/16_mean 83.4 ns 83.2 ns 10
|
|
std::string copy{str_with_len_N};/16_median 81.9 ns 82.0 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 4.14 ns 4.20 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 4.96 % 5.04 % 10
|
|
std::string copy{str_with_len_N};/23_mean 82.9 ns 82.3 ns 10
|
|
std::string copy{str_with_len_N};/23_median 82.5 ns 81.1 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 2.73 ns 2.94 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 3.30 % 3.57 % 10
|
|
std::string copy{str_with_len_N};/24_mean 83.8 ns 82.4 ns 10
|
|
std::string copy{str_with_len_N};/24_median 83.3 ns 81.6 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 3.68 ns 3.30 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 4.39 % 4.00 % 10
|
|
std::string copy{str_with_len_N};/32_mean 88.0 ns 87.7 ns 10
|
|
std::string copy{str_with_len_N};/32_median 87.0 ns 87.9 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 2.48 ns 2.30 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 2.82 % 2.63 % 10
|
|
std::string copy{str_with_len_N};/64_mean 84.3 ns 83.5 ns 10
|
|
std::string copy{str_with_len_N};/64_median 83.4 ns 83.7 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 2.69 ns 2.51 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 3.19 % 3.00 % 10
|
|
std::string copy{str_with_len_N};/128_mean 87.8 ns 87.5 ns 10
|
|
std::string copy{str_with_len_N};/128_median 87.3 ns 87.9 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 1.32 ns 1.65 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 1.51 % 1.89 % 10
|
|
std::string copy{str_with_len_N};/256_mean 88.5 ns 88.1 ns 10
|
|
std::string copy{str_with_len_N};/256_median 88.5 ns 87.9 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 1.91 ns 2.30 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 2.16 % 2.61 % 10
|
|
std::string copy{str_with_len_N};/512_mean 91.6 ns 91.0 ns 10
|
|
std::string copy{str_with_len_N};/512_median 90.9 ns 90.0 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 3.32 ns 3.31 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 3.63 % 3.63 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 99.9 ns 99.6 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 101 ns 99.4 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 2.94 ns 2.65 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 2.95 % 2.66 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 129 ns 128 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 129 ns 126 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 4.47 ns 5.43 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 3.46 % 4.26 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 177 ns 174 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 177 ns 174 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 3.85 ns 3.68 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 2.17 % 2.11 % 10
|
|
stringa copy{str_with_len_N};/15_mean 4.05 ns 4.02 ns 10
|
|
stringa copy{str_with_len_N};/15_median 4.03 ns 4.01 ns 10
|
|
stringa copy{str_with_len_N};/15_stddev 0.115 ns 0.104 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 2.85 % 2.60 % 10
|
|
stringa copy{str_with_len_N};/16_mean 4.03 ns 4.02 ns 10
|
|
stringa copy{str_with_len_N};/16_median 4.01 ns 4.00 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.090 ns 0.109 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 2.22 % 2.72 % 10
|
|
stringa copy{str_with_len_N};/23_mean 4.10 ns 4.04 ns 10
|
|
stringa copy{str_with_len_N};/23_median 4.05 ns 4.04 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.096 ns 0.048 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 2.34 % 1.18 % 10
|
|
stringa copy{str_with_len_N};/24_mean 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/24_median 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.254 ns 0.218 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 1.37 % 1.19 % 10
|
|
stringa copy{str_with_len_N};/32_mean 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/32_median 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/32_stddev 0.251 ns 0.313 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 1.35 % 1.70 % 10
|
|
stringa copy{str_with_len_N};/64_mean 18.6 ns 18.5 ns 10
|
|
stringa copy{str_with_len_N};/64_median 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.532 ns 0.385 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 2.85 % 2.08 % 10
|
|
stringa copy{str_with_len_N};/128_mean 18.5 ns 18.1 ns 10
|
|
stringa copy{str_with_len_N};/128_median 18.5 ns 18.0 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.403 ns 0.316 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 2.18 % 1.74 % 10
|
|
stringa copy{str_with_len_N};/256_mean 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/256_median 18.5 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/256_stddev 0.340 ns 0.366 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.84 % 1.99 % 10
|
|
stringa copy{str_with_len_N};/512_mean 18.4 ns 18.2 ns 10
|
|
stringa copy{str_with_len_N};/512_median 18.3 ns 18.2 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.276 ns 0.293 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 1.50 % 1.60 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 18.9 ns 18.8 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 18.7 ns 18.6 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.739 ns 0.711 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 3.91 % 3.78 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 18.4 ns 18.2 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.0 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.265 ns 0.296 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 1.44 % 1.63 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 18.3 ns 18.3 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 18.3 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.201 ns 0.324 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 1.10 % 1.77 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 7.84 ns 7.80 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.79 ns 7.85 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.204 ns 0.118 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 2.60 % 1.51 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 7.89 ns 7.78 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 7.82 ns 7.74 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.209 ns 0.132 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 2.65 % 1.70 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 7.73 ns 7.71 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 7.68 ns 7.67 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.151 ns 0.138 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.96 % 1.78 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 82.1 ns 81.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 81.9 ns 81.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 3.09 ns 2.96 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 3.76 % 3.63 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 84.1 ns 83.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 83.9 ns 83.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.82 ns 1.42 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.16 % 1.70 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 84.8 ns 84.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 82.9 ns 82.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 4.78 ns 4.87 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 5.63 % 5.78 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 84.7 ns 83.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 83.8 ns 83.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 2.94 ns 2.61 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 3.47 % 3.12 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 649 ns 646 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 643 ns 642 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 15.9 ns 11.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 2.45 % 1.78 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 91.6 ns 89.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 89.9 ns 87.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 4.09 ns 3.62 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 4.47 % 4.03 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 96.2 ns 95.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 97.3 ns 96.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 2.69 ns 1.92 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 2.80 % 2.01 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 128 ns 127 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 129 ns 126 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 5.41 ns 5.62 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 4.21 % 4.43 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 185 ns 182 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 185 ns 182 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 4.32 ns 6.00 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 2.34 % 3.30 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 8.54 ns 8.43 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 8.50 ns 8.37 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.107 ns 0.141 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.25 % 1.67 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 8.63 ns 8.62 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 8.50 ns 8.51 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.377 ns 0.420 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 4.37 % 4.87 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 8.58 ns 8.50 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 8.56 ns 8.58 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.136 ns 0.108 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 1.59 % 1.27 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 8.55 ns 8.52 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 8.49 ns 8.48 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.246 ns 0.280 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.87 % 3.29 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 11.5 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 11.4 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.298 ns 0.244 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 2.59 % 2.14 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 11.9 ns 11.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 11.9 ns 11.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.441 ns 0.382 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 3.71 % 3.27 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 12.1 ns 11.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 12.1 ns 11.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.349 ns 0.328 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.89 % 2.77 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 13.0 ns 12.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 12.9 ns 12.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.254 ns 0.386 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.96 % 3.01 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 14.3 ns 14.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 14.3 ns 14.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.162 ns 0.219 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.13 % 1.54 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 97.2 ns 97.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 95.8 ns 96.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 3.21 ns 3.45 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 3.30 % 3.55 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 127 ns 126 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 125 ns 123 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 6.82 ns 7.42 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 5.38 % 5.88 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 186 ns 184 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 187 ns 184 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 6.34 ns 7.34 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 3.41 % 3.99 % 10
|
|
----- 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 32.2 ns 32.1 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.9 ns 32.1 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.839 ns 0.870 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.60 % 2.71 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.8 ns 13.7 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.7 ns 13.7 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.442 ns 0.359 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.21 % 2.62 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.7 ns 15.7 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.5 ns 15.5 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.567 ns 0.531 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.61 % 3.39 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.1 ns 14.9 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.0 ns 14.8 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.325 ns 0.449 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.16 % 3.00 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.1 ns 15.9 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.1 ns 15.9 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.287 ns 0.287 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.79 % 1.80 % 10
|
|
----- 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.1 ns 34.8 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.9 ns 34.5 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.07 ns 1.04 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.04 % 2.97 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.56 ns 9.52 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.46 ns 9.42 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.246 ns 0.320 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.57 % 3.37 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.5 ns 13.1 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.3 ns 13.2 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.431 ns 0.212 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.20 % 1.62 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.0 ns 12.8 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.8 ns 12.8 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.294 ns 0.263 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.27 % 2.05 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.3 ns 13.2 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.1 ns 13.1 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.427 ns 0.256 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.22 % 1.95 % 10
|
|
----- 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 45.3 ns 44.8 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.3 ns 44.9 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.32 ns 0.971 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.92 % 2.17 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 19.7 ns 19.5 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 19.6 ns 19.3 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.325 ns 0.356 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.65 % 1.83 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 17.7 ns 17.5 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 17.7 ns 17.6 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.306 ns 0.282 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.73 % 1.62 % 10
|
|
----- 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 102 ns 101 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 101 ns 100 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.49 ns 2.76 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.44 % 2.73 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 76.5 ns 76.2 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 75.7 ns 75.9 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.73 ns 2.73 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.57 % 3.59 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.6 ns 36.3 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 36.1 ns 36.1 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.09 ns 0.986 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.99 % 2.72 % 10
|
|
-- 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 5705 ns 5706 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5476 ns 5511 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 425 ns 443 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 7.44 % 7.77 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1288 ns 1278 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1272 ns 1270 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 52.8 ns 48.9 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 4.10 % 3.82 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 923 ns 911 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 915 ns 903 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 34.1 ns 28.3 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.69 % 3.11 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 531 ns 527 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 525 ns 523 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.9 ns 16.6 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.81 % 3.14 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 349 ns 346 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 348 ns 345 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 5.90 ns 5.66 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.69 % 1.64 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 234 ns 232 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 234 ns 229 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.73 ns 4.75 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.02 % 2.05 % 10
|
|
-- 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 5637 ns 5500 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5631 ns 5469 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 259 ns 123 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.60 % 2.24 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3881 ns 3845 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3863 ns 3836 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 85.9 ns 49.5 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.21 % 1.29 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 839 ns 828 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 835 ns 828 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.8 ns 18.8 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.24 % 2.27 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 533 ns 527 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 526 ns 523 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 27.6 ns 23.4 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.18 % 4.43 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 387 ns 379 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 390 ns 377 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.0 ns 11.8 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.35 % 3.13 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 285 ns 279 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 286 ns 276 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.43 ns 10.1 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.31 % 3.62 % 10
|
|
-- 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 274181 ns 271821 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 272079 ns 269938 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6678 ns 7279 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.68 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 196295 ns 193795 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 196074 ns 192540 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 5109 ns 6559 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.60 % 3.38 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23926 ns 23242 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23566 ns 22949 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1393 ns 573 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.82 % 2.47 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22113 ns 21777 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22164 ns 21484 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 539 ns 573 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.63 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23784 ns 23646 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23238 ns 23019 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1312 ns 1369 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.51 % 5.79 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22963 ns 22851 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22728 ns 22670 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 784 ns 805 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.42 % 3.52 % 10
|
|
-- 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 5373 ns 5281 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5528 ns 5234 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 262 ns 231 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 4.88 % 4.37 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 3964 ns 3889 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 3945 ns 3861 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 102 ns 89.3 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 2.57 % 2.30 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 932 ns 914 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 922 ns 889 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 45.8 ns 47.4 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.91 % 5.18 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 597 ns 596 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 596 ns 600 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 9.11 ns 9.42 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.53 % 1.58 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 449 ns 448 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 446 ns 449 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 7.41 ns 9.71 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.65 % 2.17 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 353 ns 350 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 351 ns 349 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.61 ns 8.67 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.87 % 2.48 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11252 ns 11143 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 11193 ns 10986 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 294 ns 398 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.61 % 3.58 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1222 ns 1216 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1221 ns 1221 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 22.2 ns 22.4 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 1.82 % 1.85 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2807 ns 2800 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2814 ns 2825 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 48.0 ns 43.9 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.71 % 1.57 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 2421 ns 2412 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 2380 ns 2407 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 88.1 ns 71.7 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 3.64 % 2.97 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2671 ns 2633 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2648 ns 2609 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 70.0 ns 50.0 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.62 % 1.90 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1531 ns 1523 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1522 ns 1515 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 32.6 ns 44.5 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 2.13 % 2.92 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 880 ns 872 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 880 ns 872 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 19.1 ns 16.4 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 2.17 % 1.89 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 187 ns 182 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 188 ns 181 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 5.30 ns 4.63 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.84 % 2.54 % 10
|
|
stringa str = "test = " + k + " times";_mean 236 ns 234 ns 10
|
|
stringa str = "test = " + k + " times";_median 231 ns 232 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 10.9 ns 9.21 ns 10
|
|
stringa str = "test = " + k + " times";_cv 4.62 % 3.93 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 550 ns 539 ns 10
|
|
std::string::find + substr + std::strtol_median 544 ns 530 ns 10
|
|
std::string::find + substr + std::strtol_stddev 21.9 ns 13.5 ns 10
|
|
std::string::find + substr + std::strtol_cv 3.99 % 2.50 % 10
|
|
ssa::splitter + ssa::as_int_mean 303 ns 300 ns 10
|
|
ssa::splitter + ssa::as_int_median 303 ns 295 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 15.1 ns 17.4 ns 10
|
|
ssa::splitter + ssa::as_int_cv 4.98 % 5.80 % 10
|
|
ssa::splitf + functor_mean 217 ns 214 ns 10
|
|
ssa::splitf + functor_median 217 ns 212 ns 10
|
|
ssa::splitf + functor_stddev 5.38 ns 6.73 ns 10
|
|
ssa::splitf + functor_cv 2.49 % 3.15 % 10
|
|
-- 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 1298 ns 1292 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1287 ns 1270 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 82.0 ns 86.3 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 6.32 % 6.68 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 2231 ns 2212 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 2235 ns 2197 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 86.8 ns 97.8 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 3.89 % 4.42 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 2520 ns 2517 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 2524 ns 2511 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 31.7 ns 31.7 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.26 % 1.26 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1580 ns 1573 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1559 ns 1554 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 51.1 ns 56.2 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 3.23 % 3.58 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1389 ns 1384 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 1377 ns 1381 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 36.5 ns 31.2 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.63 % 2.25 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 1283 ns 1271 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 1270 ns 1256 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 31.2 ns 22.2 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 2.43 % 1.75 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 1242 ns 1233 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 1240 ns 1228 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 39.7 ns 31.7 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 3.20 % 2.57 % 10
|
|
-- 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 339 ns 338 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 335 ns 338 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 9.07 ns 6.26 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.67 % 1.86 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 431 ns 429 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 429 ns 425 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 15.6 ns 15.2 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 3.63 % 3.55 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 357 ns 356 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 356 ns 356 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 8.94 ns 9.86 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.50 % 2.77 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 315 ns 313 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 313 ns 311 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 8.27 ns 7.56 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.62 % 2.41 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 393 ns 390 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 386 ns 388 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 14.7 ns 8.27 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 3.74 % 2.12 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 253 ns 250 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 254 ns 249 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 8.12 ns 7.82 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.21 % 3.13 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 359 ns 352 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 359 ns 352 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 12.2 ns 9.21 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 3.41 % 2.61 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 251 ns 247 ns 10
|
|
replace bb to ---- in std::string|64_median 250 ns 248 ns 10
|
|
replace bb to ---- in std::string|64_stddev 10.6 ns 8.74 ns 10
|
|
replace bb to ---- in std::string|64_cv 4.24 % 3.54 % 10
|
|
replace bb to ---- in std::string|256_mean 825 ns 814 ns 10
|
|
replace bb to ---- in std::string|256_median 835 ns 802 ns 10
|
|
replace bb to ---- in std::string|256_stddev 29.2 ns 26.1 ns 10
|
|
replace bb to ---- in std::string|256_cv 3.54 % 3.20 % 10
|
|
replace bb to ---- in std::string|512_mean 1501 ns 1482 ns 10
|
|
replace bb to ---- in std::string|512_median 1483 ns 1475 ns 10
|
|
replace bb to ---- in std::string|512_stddev 55.0 ns 32.4 ns 10
|
|
replace bb to ---- in std::string|512_cv 3.67 % 2.19 % 10
|
|
replace bb to ---- in std::string|1024_mean 3319 ns 3289 ns 10
|
|
replace bb to ---- in std::string|1024_median 3344 ns 3333 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 93.5 ns 94.2 ns 10
|
|
replace bb to ---- in std::string|1024_cv 2.82 % 2.87 % 10
|
|
replace bb to ---- in std::string|2048_mean 8393 ns 8119 ns 10
|
|
replace bb to ---- in std::string|2048_median 8442 ns 8161 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 245 ns 276 ns 10
|
|
replace bb to ---- in std::string|2048_cv 2.92 % 3.39 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 330 ns 325 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 329 ns 326 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 7.25 ns 5.12 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 2.20 % 1.57 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 692 ns 681 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 694 ns 677 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 33.0 ns 31.4 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 4.78 % 4.61 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 1154 ns 1133 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 1142 ns 1123 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 32.8 ns 12.6 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 2.84 % 1.11 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 2102 ns 2049 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 2110 ns 2018 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 83.2 ns 66.9 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.96 % 3.26 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 3939 ns 3884 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 3968 ns 3934 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 92.9 ns 90.0 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.36 % 2.32 % 10
|
|
replace bb to ---- by init stringa|64_mean 209 ns 206 ns 10
|
|
replace bb to ---- by init stringa|64_median 208 ns 205 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 9.63 ns 7.56 ns 10
|
|
replace bb to ---- by init stringa|64_cv 4.60 % 3.67 % 10
|
|
replace bb to ---- by init stringa|256_mean 485 ns 477 ns 10
|
|
replace bb to ---- by init stringa|256_median 485 ns 470 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 14.8 ns 18.7 ns 10
|
|
replace bb to ---- by init stringa|256_cv 3.05 % 3.92 % 10
|
|
replace bb to ---- by init stringa|512_mean 1086 ns 1078 ns 10
|
|
replace bb to ---- by init stringa|512_median 1076 ns 1078 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 17.4 ns 28.3 ns 10
|
|
replace bb to ---- by init stringa|512_cv 1.60 % 2.63 % 10
|
|
replace bb to ---- by init stringa|1024_mean 2232 ns 2226 ns 10
|
|
replace bb to ---- by init stringa|1024_median 2210 ns 2222 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 51.5 ns 49.9 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 2.31 % 2.24 % 10
|
|
replace bb to ---- by init stringa|2048_mean 4615 ns 4541 ns 10
|
|
replace bb to ---- by init stringa|2048_median 4603 ns 4551 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 99.7 ns 121 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 2.16 % 2.67 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 209 ns 207 ns 10
|
|
replace bb to -- in std::string|64_median 206 ns 207 ns 10
|
|
replace bb to -- in std::string|64_stddev 6.33 ns 4.45 ns 10
|
|
replace bb to -- in std::string|64_cv 3.04 % 2.15 % 10
|
|
replace bb to -- in std::string|256_mean 553 ns 548 ns 10
|
|
replace bb to -- in std::string|256_median 530 ns 530 ns 10
|
|
replace bb to -- in std::string|256_stddev 61.0 ns 55.0 ns 10
|
|
replace bb to -- in std::string|256_cv 11.03 % 10.04 % 10
|
|
replace bb to -- in std::string|512_mean 975 ns 971 ns 10
|
|
replace bb to -- in std::string|512_median 971 ns 963 ns 10
|
|
replace bb to -- in std::string|512_stddev 24.3 ns 26.5 ns 10
|
|
replace bb to -- in std::string|512_cv 2.50 % 2.73 % 10
|
|
replace bb to -- in std::string|1024_mean 1826 ns 1807 ns 10
|
|
replace bb to -- in std::string|1024_median 1812 ns 1803 ns 10
|
|
replace bb to -- in std::string|1024_stddev 36.9 ns 38.2 ns 10
|
|
replace bb to -- in std::string|1024_cv 2.02 % 2.11 % 10
|
|
replace bb to -- in std::string|2048_mean 3547 ns 3489 ns 10
|
|
replace bb to -- in std::string|2048_median 3532 ns 3449 ns 10
|
|
replace bb to -- in std::string|2048_stddev 60.2 ns 86.6 ns 10
|
|
replace bb to -- in std::string|2048_cv 1.70 % 2.48 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 189 ns 189 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 189 ns 188 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 1.39 ns 3.09 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 0.73 % 1.64 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 470 ns 464 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 461 ns 460 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 18.8 ns 18.1 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 4.00 % 3.90 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 807 ns 802 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 807 ns 802 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 11.3 ns 16.4 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 1.40 % 2.05 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 1515 ns 1489 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 1490 ns 1500 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 62.7 ns 43.7 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 4.14 % 2.93 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 2967 ns 2929 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 2937 ns 2883 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 134 ns 128 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 4.53 % 4.37 % 10
|
|
replace bb to -- by init stringa|64_mean 179 ns 176 ns 10
|
|
replace bb to -- by init stringa|64_median 178 ns 176 ns 10
|
|
replace bb to -- by init stringa|64_stddev 3.89 ns 3.36 ns 10
|
|
replace bb to -- by init stringa|64_cv 2.18 % 1.91 % 10
|
|
replace bb to -- by init stringa|256_mean 392 ns 385 ns 10
|
|
replace bb to -- by init stringa|256_median 391 ns 385 ns 10
|
|
replace bb to -- by init stringa|256_stddev 13.1 ns 8.82 ns 10
|
|
replace bb to -- by init stringa|256_cv 3.34 % 2.29 % 10
|
|
replace bb to -- by init stringa|512_mean 642 ns 633 ns 10
|
|
replace bb to -- by init stringa|512_median 643 ns 635 ns 10
|
|
replace bb to -- by init stringa|512_stddev 21.2 ns 13.5 ns 10
|
|
replace bb to -- by init stringa|512_cv 3.30 % 2.13 % 10
|
|
replace bb to -- by init stringa|1024_mean 1151 ns 1138 ns 10
|
|
replace bb to -- by init stringa|1024_median 1144 ns 1144 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 26.9 ns 34.3 ns 10
|
|
replace bb to -- by init stringa|1024_cv 2.34 % 3.01 % 10
|
|
replace bb to -- by init stringa|2048_mean 2264 ns 2223 ns 10
|
|
replace bb to -- by init stringa|2048_median 2276 ns 2197 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 52.5 ns 37.0 ns 10
|
|
replace bb to -- by init stringa|2048_cv 2.32 % 1.66 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4203983 ns 4208984 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4228262 ns 4199219 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 226508 ns 222928 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 5.39 % 5.30 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5344121 ns 5281250 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5268283 ns 5312500 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 149555 ns 123252 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.80 % 2.33 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 4011248 ns 3928073 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 4025866 ns 3928073 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 92509 ns 130125 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 2.31 % 3.31 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6304499 ns 6236049 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6292092 ns 6208147 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 163281 ns 114854 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.59 % 1.84 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1645 ns 1627 ns 10
|
|
Build func full name std::string;_median 1625 ns 1611 ns 10
|
|
Build func full name std::string;_stddev 59.7 ns 41.2 ns 10
|
|
Build func full name std::string;_cv 3.63 % 2.54 % 10
|
|
Build func full name std::string 1;_mean 1711 ns 1692 ns 10
|
|
Build func full name std::string 1;_median 1687 ns 1669 ns 10
|
|
Build func full name std::string 1;_stddev 73.4 ns 73.4 ns 10
|
|
Build func full name std::string 1;_cv 4.29 % 4.34 % 10
|
|
Build func full name std::stream;_mean 10110 ns 10128 ns 10
|
|
Build func full name std::stream;_median 9848 ns 9835 ns 10
|
|
Build func full name std::stream;_stddev 970 ns 932 ns 10
|
|
Build func full name std::stream;_cv 9.59 % 9.20 % 10
|
|
Build func full name stringa;_mean 924 ns 910 ns 10
|
|
Build func full name stringa;_median 906 ns 902 ns 10
|
|
Build func full name stringa;_stddev 43.8 ns 24.8 ns 10
|
|
Build func full name stringa;_cv 4.74 % 2.73 % 10
|
|
Build func full name stringa 1;_mean 1020 ns 1002 ns 10
|
|
Build func full name stringa 1;_median 1020 ns 1004 ns 10
|
|
Build func full name stringa 1;_stddev 29.0 ns 23.0 ns 10
|
|
Build func full name stringa 1;_cv 2.85 % 2.30 % 10
|