mirror of https://github.com/orefkov/simstr.git
901 lines
134 KiB
Plaintext
901 lines
134 KiB
Plaintext
2026-01-31T15:25:07+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 313 ns 313 ns 10
|
|
Concat std::string and number by std to std::string_median 312 ns 311 ns 10
|
|
Concat std::string and number by std to std::string_stddev 5.39 ns 5.46 ns 10
|
|
Concat std::string and number by std to std::string_cv 1.72 % 1.74 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 210 ns 210 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 210 ns 211 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 4.25 ns 3.73 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 2.03 % 1.78 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 109 ns 109 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 108 ns 109 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.68 ns 2.08 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 2.46 % 1.92 % 10
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 123 ns 123 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_median 124 ns 123 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 5.34 ns 4.99 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 4.33 % 4.07 % 10
|
|
----- 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 1029 ns 1027 ns 10
|
|
Concat std::string and format hex number and literal to std::string_median 1024 ns 1025 ns 10
|
|
Concat std::string and format hex number and literal to std::string_stddev 32.6 ns 33.4 ns 10
|
|
Concat std::string and format hex number and literal to std::string_cv 3.17 % 3.25 % 10
|
|
std::format std::string and hex number by literal to std::string_mean 1862 ns 1845 ns 10
|
|
std::format std::string and hex number by literal to std::string_median 1854 ns 1842 ns 10
|
|
std::format std::string and hex number by literal to std::string_stddev 32.3 ns 45.9 ns 10
|
|
std::format std::string and hex number by literal to std::string_cv 1.74 % 2.49 % 10
|
|
Concat std::string and std::tochars and string to std::string_mean 256 ns 255 ns 10
|
|
Concat std::string and std::tochars and string to std::string_median 254 ns 251 ns 10
|
|
Concat std::string and std::tochars and string to std::string_stddev 10.0 ns 11.8 ns 10
|
|
Concat std::string and std::tochars and string to std::string_cv 3.91 % 4.65 % 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 133 ns 133 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 133 ns 133 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 4.24 ns 3.01 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.18 % 2.27 % 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 109 ns 109 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 107 ns 108 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 9.15 ns 9.10 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 8.37 % 8.31 % 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 102 ns 101 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 101 ns 101 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.72 ns 1.71 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.69 % 1.69 % 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 175 ns 174 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 173 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 5.74 ns 6.82 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 3.28 % 3.91 % 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 346 ns 344 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 345 ns 344 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.73 ns 4.88 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.95 % 1.42 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 56.5 ns 56.6 ns 10
|
|
Concat std::string by std to std::string_median 55.5 ns 55.5 ns 10
|
|
Concat std::string by std to std::string_stddev 3.15 ns 3.28 ns 10
|
|
Concat std::string by std to std::string_cv 5.58 % 5.79 % 10
|
|
Concat std::string by StrExpr to std::string_mean 83.3 ns 83.0 ns 10
|
|
Concat std::string by StrExpr to std::string_median 82.7 ns 82.0 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 3.88 ns 4.37 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 4.66 % 5.26 % 10
|
|
Concat stringa by StrExpr to stringa_mean 52.4 ns 52.2 ns 10
|
|
Concat stringa by StrExpr to stringa_median 51.2 ns 51.6 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 2.66 ns 2.73 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 5.07 % 5.23 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 218 ns 218 ns 10
|
|
Find concat three std::string_median 217 ns 217 ns 10
|
|
Find concat three std::string_stddev 2.19 ns 3.41 ns 10
|
|
Find concat three std::string_cv 1.01 % 1.57 % 10
|
|
Find concat three strexpr_mean 119 ns 119 ns 10
|
|
Find concat three strexpr_median 119 ns 119 ns 10
|
|
Find concat three strexpr_stddev 3.04 ns 3.73 ns 10
|
|
Find concat three strexpr_cv 2.54 % 3.13 % 10
|
|
Find concat three simstr_mean 28.7 ns 28.6 ns 10
|
|
Find concat three simstr_median 28.7 ns 28.6 ns 10
|
|
Find concat three simstr_stddev 0.647 ns 0.678 ns 10
|
|
Find concat three simstr_cv 2.26 % 2.37 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 17.3 ns 17.3 ns 10
|
|
BuildTypeNameStr 0/0_median 17.3 ns 17.3 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.403 ns 0.512 ns 10
|
|
BuildTypeNameStr 0/0_cv 2.33 % 2.96 % 10
|
|
BuildTypeNameExp 0/0_mean 14.0 ns 14.0 ns 10
|
|
BuildTypeNameExp 0/0_median 14.0 ns 14.0 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.137 ns 0.320 ns 10
|
|
BuildTypeNameExp 0/0_cv 0.98 % 2.29 % 10
|
|
BuildTypeNameSim 0/0_mean 15.9 ns 15.8 ns 10
|
|
BuildTypeNameSim 0/0_median 15.5 ns 15.3 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.729 ns 0.857 ns 10
|
|
BuildTypeNameSim 0/0_cv 4.60 % 5.42 % 10
|
|
BuildTypeNameStr 10/10_mean 80.2 ns 80.2 ns 10
|
|
BuildTypeNameStr 10/10_median 80.4 ns 80.2 ns 10
|
|
BuildTypeNameStr 10/10_stddev 1.29 ns 1.42 ns 10
|
|
BuildTypeNameStr 10/10_cv 1.61 % 1.77 % 10
|
|
BuildTypeNameExp 10/10_mean 42.9 ns 42.7 ns 10
|
|
BuildTypeNameExp 10/10_median 41.6 ns 41.9 ns 10
|
|
BuildTypeNameExp 10/10_stddev 4.17 ns 3.90 ns 10
|
|
BuildTypeNameExp 10/10_cv 9.72 % 9.14 % 10
|
|
BuildTypeNameSim 10/10_mean 36.1 ns 36.1 ns 10
|
|
BuildTypeNameSim 10/10_median 36.1 ns 36.4 ns 10
|
|
BuildTypeNameSim 10/10_stddev 0.576 ns 0.683 ns 10
|
|
BuildTypeNameSim 10/10_cv 1.59 % 1.89 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 346 ns 345 ns 10
|
|
Concat with replace str_median 343 ns 344 ns 10
|
|
Concat with replace str_stddev 7.57 ns 9.42 ns 10
|
|
Concat with replace str_cv 2.19 % 2.73 % 10
|
|
Concat with replace exp_mean 225 ns 225 ns 10
|
|
Concat with replace exp_median 225 ns 225 ns 10
|
|
Concat with replace exp_stddev 6.50 ns 5.15 ns 10
|
|
Concat with replace exp_cv 2.89 % 2.29 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.84 ns 2.85 ns 10
|
|
std::string e;_median 2.84 ns 2.85 ns 10
|
|
std::string e;_stddev 0.035 ns 0.048 ns 10
|
|
std::string e;_cv 1.22 % 1.70 % 10
|
|
std::string_view e;_mean 1.82 ns 1.82 ns 10
|
|
std::string_view e;_median 1.82 ns 1.81 ns 10
|
|
std::string_view e;_stddev 0.024 ns 0.026 ns 10
|
|
std::string_view e;_cv 1.29 % 1.42 % 10
|
|
ssa e;_mean 1.46 ns 1.46 ns 10
|
|
ssa e;_median 1.45 ns 1.45 ns 10
|
|
ssa e;_stddev 0.054 ns 0.058 ns 10
|
|
ssa e;_cv 3.67 % 3.97 % 10
|
|
stringa e;_mean 2.19 ns 2.18 ns 10
|
|
stringa e;_median 2.19 ns 2.18 ns 10
|
|
stringa e;_stddev 0.035 ns 0.033 ns 10
|
|
stringa e;_cv 1.57 % 1.53 % 10
|
|
lstringa<20> e;_mean 2.62 ns 2.61 ns 10
|
|
lstringa<20> e;_median 2.58 ns 2.57 ns 10
|
|
lstringa<20> e;_stddev 0.086 ns 0.091 ns 10
|
|
lstringa<20> e;_cv 3.28 % 3.50 % 10
|
|
lstringa<40> e;_mean 2.57 ns 2.56 ns 10
|
|
lstringa<40> e;_median 2.56 ns 2.57 ns 10
|
|
lstringa<40> e;_stddev 0.046 ns 0.041 ns 10
|
|
lstringa<40> e;_cv 1.80 % 1.61 % 10
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.68 ns 2.67 ns 10
|
|
std::string e = "Test text";_median 2.65 ns 2.67 ns 10
|
|
std::string e = "Test text";_stddev 0.139 ns 0.136 ns 10
|
|
std::string e = "Test text";_cv 5.18 % 5.11 % 10
|
|
std::string_view e = "Test text";_mean 1.84 ns 1.84 ns 10
|
|
std::string_view e = "Test text";_median 1.83 ns 1.82 ns 10
|
|
std::string_view e = "Test text";_stddev 0.059 ns 0.056 ns 10
|
|
std::string_view e = "Test text";_cv 3.20 % 3.03 % 10
|
|
ssa e = "Test text";_mean 1.83 ns 1.83 ns 10
|
|
ssa e = "Test text";_median 1.83 ns 1.84 ns 10
|
|
ssa e = "Test text";_stddev 0.031 ns 0.026 ns 10
|
|
ssa e = "Test text";_cv 1.67 % 1.41 % 10
|
|
stringa e = "Test text";_mean 2.83 ns 2.82 ns 10
|
|
stringa e = "Test text";_median 2.82 ns 2.83 ns 10
|
|
stringa e = "Test text";_stddev 0.019 ns 0.036 ns 10
|
|
stringa e = "Test text";_cv 0.69 % 1.26 % 10
|
|
lstringa<20> e = "Test text";_mean 2.56 ns 2.56 ns 10
|
|
lstringa<20> e = "Test text";_median 2.56 ns 2.55 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.034 ns 0.047 ns 10
|
|
lstringa<20> e = "Test text";_cv 1.31 % 1.83 % 10
|
|
lstringa<40> e = "Test text";_mean 2.55 ns 2.54 ns 10
|
|
lstringa<40> e = "Test text";_median 2.53 ns 2.51 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.048 ns 0.054 ns 10
|
|
lstringa<40> e = "Test text";_cv 1.90 % 2.12 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 78.1 ns 78.0 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 77.3 ns 76.7 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 4.08 ns 4.03 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 5.22 % 5.17 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.83 ns 1.83 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 1.83 ns 1.84 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.027 ns 0.026 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.45 % 1.41 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 1.82 ns 1.81 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 1.82 ns 1.80 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.017 ns 0.028 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 0.96 % 1.56 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 2.54 ns 2.53 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 2.54 ns 2.51 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.034 ns 0.046 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 1.34 % 1.82 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 74.9 ns 74.8 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 74.6 ns 73.9 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 1.39 ns 1.88 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.86 % 2.52 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.31 ns 3.30 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.28 ns 3.28 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.069 ns 0.081 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.10 % 2.45 % 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.75 ns 5.72 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 5.75 ns 5.72 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.069 ns 0.147 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 1.21 % 2.57 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 3.49 ns 3.49 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 3.47 ns 3.45 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.054 ns 0.054 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.55 % 1.55 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 3.51 ns 3.51 ns 10
|
|
ssa e = "Test text"; auto c{e};_median 3.50 ns 3.53 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.052 ns 0.054 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 1.48 % 1.54 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 4.03 ns 4.03 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 4.01 ns 3.99 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.076 ns 0.097 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 1.89 % 2.42 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 7.80 ns 7.71 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 7.76 ns 7.67 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.314 ns 0.180 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 4.02 % 2.34 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 8.53 ns 8.48 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 8.30 ns 8.37 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.575 ns 0.594 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 6.74 % 7.01 % 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 78.2 ns 78.0 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 78.1 ns 77.6 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 5.51 ns 5.76 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 7.04 % 7.39 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.81 ns 1.81 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.80 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.040 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.38 % 2.19 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.81 ns 1.81 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.80 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.018 ns 0.026 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.98 % 1.46 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.92 ns 2.92 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.93 ns 2.92 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.044 ns 0.054 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.50 % 1.86 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 80.9 ns 80.9 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 80.9 ns 80.2 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.53 ns 2.99 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.12 % 3.69 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 6.60 ns 6.60 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 6.62 ns 6.70 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.123 ns 0.148 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.86 % 2.24 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 41.9 ns 41.9 ns 10
|
|
std::string::find;_median 40.9 ns 40.8 ns 10
|
|
std::string::find;_stddev 3.34 ns 3.16 ns 10
|
|
std::string::find;_cv 7.96 % 7.55 % 10
|
|
std::string_view::find;_mean 39.7 ns 39.7 ns 10
|
|
std::string_view::find;_median 39.6 ns 39.2 ns 10
|
|
std::string_view::find;_stddev 0.742 ns 0.942 ns 10
|
|
std::string_view::find;_cv 1.87 % 2.37 % 10
|
|
ssa::find;_mean 20.6 ns 20.5 ns 10
|
|
ssa::find;_median 20.5 ns 20.4 ns 10
|
|
ssa::find;_stddev 0.425 ns 0.417 ns 10
|
|
ssa::find;_cv 2.06 % 2.03 % 10
|
|
stringa::find;_mean 28.7 ns 28.6 ns 10
|
|
stringa::find;_median 29.1 ns 29.2 ns 10
|
|
stringa::find;_stddev 1.41 ns 1.68 ns 10
|
|
stringa::find;_cv 4.92 % 5.86 % 10
|
|
lstringa<20>::find;_mean 20.7 ns 20.7 ns 10
|
|
lstringa<20>::find;_median 20.7 ns 20.9 ns 10
|
|
lstringa<20>::find;_stddev 0.325 ns 0.234 ns 10
|
|
lstringa<20>::find;_cv 1.57 % 1.13 % 10
|
|
lstringa<40>::find;_mean 21.9 ns 21.8 ns 10
|
|
lstringa<40>::find;_median 21.9 ns 21.7 ns 10
|
|
lstringa<40>::find;_stddev 0.285 ns 0.431 ns 10
|
|
lstringa<40>::find;_cv 1.30 % 1.97 % 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.06 ns 5.05 ns 10
|
|
std::string copy{str_with_len_N};/15_median 5.09 ns 5.00 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 0.086 ns 0.105 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 1.69 % 2.09 % 10
|
|
std::string copy{str_with_len_N};/16_mean 84.4 ns 84.4 ns 10
|
|
std::string copy{str_with_len_N};/16_median 84.2 ns 83.7 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 2.50 ns 2.75 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 2.96 % 3.26 % 10
|
|
std::string copy{str_with_len_N};/23_mean 89.2 ns 89.1 ns 10
|
|
std::string copy{str_with_len_N};/23_median 88.5 ns 88.1 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 3.68 ns 3.98 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 4.13 % 4.47 % 10
|
|
std::string copy{str_with_len_N};/24_mean 87.8 ns 87.7 ns 10
|
|
std::string copy{str_with_len_N};/24_median 86.5 ns 87.2 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 3.60 ns 3.29 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 4.10 % 3.75 % 10
|
|
std::string copy{str_with_len_N};/32_mean 88.9 ns 88.9 ns 10
|
|
std::string copy{str_with_len_N};/32_median 88.1 ns 88.1 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 3.54 ns 3.49 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 3.98 % 3.92 % 10
|
|
std::string copy{str_with_len_N};/64_mean 86.8 ns 86.7 ns 10
|
|
std::string copy{str_with_len_N};/64_median 87.5 ns 87.2 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 2.52 ns 2.97 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 2.90 % 3.43 % 10
|
|
std::string copy{str_with_len_N};/128_mean 90.9 ns 91.0 ns 10
|
|
std::string copy{str_with_len_N};/128_median 90.3 ns 90.0 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 1.52 ns 2.03 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 1.67 % 2.23 % 10
|
|
std::string copy{str_with_len_N};/256_mean 97.0 ns 95.6 ns 10
|
|
std::string copy{str_with_len_N};/256_median 94.3 ns 94.2 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 6.98 ns 5.92 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 7.20 % 6.19 % 10
|
|
std::string copy{str_with_len_N};/512_mean 95.8 ns 95.7 ns 10
|
|
std::string copy{str_with_len_N};/512_median 93.2 ns 92.6 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 5.80 ns 6.32 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 6.05 % 6.60 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 101 ns 101 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 102 ns 103 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 3.06 ns 3.28 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 3.03 % 3.24 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 128 ns 128 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 129 ns 129 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 4.19 ns 3.85 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 3.28 % 3.01 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 179 ns 178 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 179 ns 180 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 5.38 ns 5.79 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 3.01 % 3.25 % 10
|
|
stringa copy{str_with_len_N};/15_mean 3.98 ns 3.96 ns 10
|
|
stringa copy{str_with_len_N};/15_median 3.98 ns 3.99 ns 10
|
|
stringa copy{str_with_len_N};/15_stddev 0.058 ns 0.075 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 1.47 % 1.88 % 10
|
|
stringa copy{str_with_len_N};/16_mean 3.99 ns 3.98 ns 10
|
|
stringa copy{str_with_len_N};/16_median 3.98 ns 3.97 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.042 ns 0.072 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 1.06 % 1.80 % 10
|
|
stringa copy{str_with_len_N};/23_mean 3.98 ns 3.98 ns 10
|
|
stringa copy{str_with_len_N};/23_median 3.99 ns 4.01 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.059 ns 0.074 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 1.49 % 1.85 % 10
|
|
stringa copy{str_with_len_N};/24_mean 18.3 ns 18.3 ns 10
|
|
stringa copy{str_with_len_N};/24_median 18.3 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.106 ns 0.198 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 0.58 % 1.08 % 10
|
|
stringa copy{str_with_len_N};/32_mean 18.3 ns 18.3 ns 10
|
|
stringa copy{str_with_len_N};/32_median 18.3 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/32_stddev 0.080 ns 0.176 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 0.43 % 0.96 % 10
|
|
stringa copy{str_with_len_N};/64_mean 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/64_median 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.146 ns 0.218 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 0.79 % 1.19 % 10
|
|
stringa copy{str_with_len_N};/128_mean 18.3 ns 18.3 ns 10
|
|
stringa copy{str_with_len_N};/128_median 18.3 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.094 ns 0.185 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 0.51 % 1.01 % 10
|
|
stringa copy{str_with_len_N};/256_mean 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/256_median 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/256_stddev 0.195 ns 0.279 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.06 % 1.52 % 10
|
|
stringa copy{str_with_len_N};/512_mean 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/512_median 18.4 ns 18.4 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.253 ns 0.342 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 1.37 % 1.86 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 18.3 ns 18.3 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 18.3 ns 18.1 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.178 ns 0.252 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 0.97 % 1.38 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.2 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.2 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.079 ns 0.221 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 0.43 % 1.21 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 18.3 ns 18.2 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.101 ns 0.293 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 0.55 % 1.60 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 7.39 ns 7.38 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.34 ns 7.32 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.237 ns 0.261 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 3.20 % 3.53 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 7.62 ns 7.62 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 7.58 ns 7.59 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.350 ns 0.377 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 4.60 % 4.95 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 7.32 ns 7.32 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 7.30 ns 7.32 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.136 ns 0.142 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.85 % 1.94 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 81.1 ns 81.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 80.4 ns 80.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 2.94 ns 2.80 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 3.63 % 3.46 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 83.8 ns 83.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 83.1 ns 83.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 2.35 ns 1.41 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.81 % 1.70 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 83.4 ns 83.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 83.0 ns 82.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 1.52 ns 1.44 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 1.82 % 1.73 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 87.0 ns 86.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 86.8 ns 87.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.22 ns 1.38 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 1.40 % 1.58 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 88.8 ns 88.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 88.4 ns 88.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 3.47 ns 3.77 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 3.90 % 4.24 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 90.7 ns 90.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 90.5 ns 90.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 1.79 ns 1.92 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 1.98 % 2.11 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 96.3 ns 96.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 95.0 ns 95.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 3.57 ns 3.34 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 3.71 % 3.48 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 128 ns 128 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 126 ns 126 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 7.46 ns 8.34 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 5.81 % 6.52 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 187 ns 186 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 186 ns 184 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 2.48 ns 2.96 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.33 % 1.59 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 8.92 ns 8.93 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 8.87 ns 8.89 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.418 ns 0.401 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 4.69 % 4.49 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 8.52 ns 8.51 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 8.47 ns 8.46 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.206 ns 0.214 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.42 % 2.52 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 8.80 ns 8.80 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 8.59 ns 8.59 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.407 ns 0.436 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 4.63 % 4.95 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 8.46 ns 8.41 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 8.38 ns 8.37 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.226 ns 0.276 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.67 % 3.28 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 11.4 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 11.4 ns 11.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.130 ns 0.165 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.14 % 1.45 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 11.4 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 11.4 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.171 ns 0.264 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.51 % 2.32 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 11.9 ns 11.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 11.7 ns 11.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.514 ns 0.504 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 4.34 % 4.25 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 12.8 ns 12.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 12.9 ns 12.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.171 ns 0.263 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.33 % 2.05 % 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.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.174 ns 0.265 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.22 % 1.85 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 94.9 ns 94.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 94.6 ns 94.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.58 ns 2.83 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.72 % 3.00 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 132 ns 132 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 132 ns 133 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 9.84 ns 9.32 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 7.45 % 7.05 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 189 ns 189 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 189 ns 188 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 3.15 ns 3.85 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 1.67 % 2.03 % 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.0 ns 31.9 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 32.0 ns 31.9 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.441 ns 0.386 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.38 % 1.21 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.4 ns 13.4 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.4 ns 13.5 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.162 ns 0.248 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.21 % 1.84 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.9 ns 15.8 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.6 ns 15.7 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.633 ns 0.360 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.99 % 2.28 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.0 ns 15.0 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.0 ns 15.0 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.214 ns 0.305 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.43 % 2.04 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.9 ns 15.9 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.7 ns 15.7 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.455 ns 0.424 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.86 % 2.67 % 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.7 ns 35.6 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.9 ns 34.7 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.85 ns 1.98 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 5.18 % 5.57 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 12.5 ns 12.5 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 12.4 ns 12.3 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.410 ns 0.445 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.27 % 3.55 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.8 ns 12.8 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.9 ns 12.9 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.257 ns 0.258 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.01 % 2.02 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.8 ns 12.8 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.8 ns 12.6 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.240 ns 0.349 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.88 % 2.74 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.8 ns 12.8 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.8 ns 12.7 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.181 ns 0.173 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.41 % 1.35 % 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.7 ns 45.5 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.6 ns 44.6 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.53 ns 1.35 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.34 % 2.96 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 22.1 ns 22.0 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 21.8 ns 21.7 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.748 ns 0.669 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 3.39 % 3.04 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 16.0 ns 16.0 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 16.0 ns 16.0 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.226 ns 0.275 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.42 % 1.72 % 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 105 ns 105 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 104 ns 105 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.21 ns 1.71 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.10 % 1.63 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 80.7 ns 80.7 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 79.9 ns 80.2 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.62 ns 2.47 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.25 % 3.06 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.2 ns 36.2 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 36.2 ns 36.1 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.723 ns 0.702 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.00 % 1.94 % 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 5600 ns 5594 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5568 ns 5580 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 106 ns 122 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.89 % 2.18 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1313 ns 1314 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1282 ns 1283 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 76.6 ns 77.2 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 5.83 % 5.87 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 904 ns 903 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 898 ns 907 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 14.5 ns 16.0 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.61 % 1.77 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 569 ns 569 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 557 ns 558 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 49.3 ns 46.9 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 8.66 % 8.24 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 348 ns 348 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 347 ns 345 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 6.20 ns 7.75 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.78 % 2.23 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 232 ns 231 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 232 ns 230 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.76 ns 5.76 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.06 % 2.50 % 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 5528 ns 5525 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5519 ns 5580 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 128 ns 150 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.32 % 2.71 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3948 ns 3941 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3960 ns 3967 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 90.6 ns 80.1 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.29 % 2.03 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 814 ns 814 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 815 ns 820 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.2 ns 16.5 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.62 % 2.03 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 531 ns 528 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 531 ns 531 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.2 ns 12.3 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.30 % 2.33 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 373 ns 372 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 370 ns 369 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.8 ns 11.5 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.23 % 3.08 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 292 ns 292 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 291 ns 286 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.9 ns 14.6 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.40 % 4.99 % 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 288865 ns 288143 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 277455 ns 276215 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 26150 ns 26378 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 9.05 % 9.15 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 189369 ns 189127 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 188924 ns 189894 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2672 ns 3158 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.41 % 1.67 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24389 ns 24379 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24320 ns 24588 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 512 ns 788 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.10 % 3.23 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22364 ns 22398 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22289 ns 22216 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 535 ns 715 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.39 % 3.19 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21345 ns 21289 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21390 ns 21484 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 260 ns 412 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.22 % 1.93 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21975 ns 21944 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21782 ns 21990 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 358 ns 438 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.63 % 2.00 % 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 5391 ns 5357 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5345 ns 5301 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 209 ns 210 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 3.88 % 3.92 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 3953 ns 3959 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 3947 ns 3934 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 69.9 ns 88.7 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.77 % 2.24 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 881 ns 879 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 868 ns 872 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 40.0 ns 42.1 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.54 % 4.79 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 604 ns 604 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 602 ns 600 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 11.9 ns 9.42 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.96 % 1.56 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 449 ns 448 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 447 ns 449 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.7 ns 14.2 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.82 % 3.16 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 394 ns 394 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 381 ns 381 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 30.1 ns 28.4 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 7.64 % 7.22 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11857 ns 11830 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 11705 ns 11719 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 684 ns 735 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 5.77 % 6.21 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1260 ns 1261 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1255 ns 1256 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 49.9 ns 55.5 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.96 % 4.40 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2822 ns 2813 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2820 ns 2790 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 65.5 ns 75.3 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.32 % 2.68 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 2423 ns 2417 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 2398 ns 2407 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 75.9 ns 84.7 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 3.13 % 3.51 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2694 ns 2692 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2681 ns 2668 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 78.1 ns 80.0 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.90 % 2.97 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1520 ns 1500 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1503 ns 1500 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 69.3 ns 46.5 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 4.56 % 3.10 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 904 ns 902 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 902 ns 900 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 15.2 ns 15.4 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.68 % 1.71 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 185 ns 185 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 184 ns 184 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 5.00 ns 4.06 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.70 % 2.19 % 10
|
|
stringa str = "test = " + k + " times";_mean 243 ns 243 ns 10
|
|
stringa str = "test = " + k + " times";_median 242 ns 241 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 5.07 ns 5.62 ns 10
|
|
stringa str = "test = " + k + " times";_cv 2.09 % 2.32 % 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 550 ns 10
|
|
std::string::find + substr + std::strtol_median 554 ns 547 ns 10
|
|
std::string::find + substr + std::strtol_stddev 12.1 ns 16.1 ns 10
|
|
std::string::find + substr + std::strtol_cv 2.19 % 2.93 % 10
|
|
ssa::splitter + ssa::as_int_mean 292 ns 292 ns 10
|
|
ssa::splitter + ssa::as_int_median 293 ns 292 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 3.48 ns 5.80 ns 10
|
|
ssa::splitter + ssa::as_int_cv 1.19 % 1.99 % 10
|
|
ssa::splitf + functor_mean 217 ns 217 ns 10
|
|
ssa::splitf + functor_median 216 ns 215 ns 10
|
|
ssa::splitf + functor_stddev 7.35 ns 8.38 ns 10
|
|
ssa::splitf + functor_cv 3.38 % 3.86 % 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 1176 ns 1172 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1178 ns 1172 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 16.6 ns 22.8 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.41 % 1.94 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 2155 ns 2149 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 2144 ns 2131 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 40.0 ns 43.8 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 1.86 % 2.04 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 2546 ns 2533 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 2538 ns 2511 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 70.3 ns 91.9 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.76 % 3.63 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1595 ns 1580 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1584 ns 1569 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 71.7 ns 71.8 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 4.49 % 4.54 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1418 ns 1415 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 1393 ns 1395 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 68.0 ns 73.3 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 4.80 % 5.18 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 1290 ns 1281 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 1264 ns 1256 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 58.6 ns 58.0 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 4.54 % 4.53 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 1249 ns 1242 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 1252 ns 1242 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 20.6 ns 14.7 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.65 % 1.18 % 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 338 ns 338 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 335 ns 337 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 7.85 ns 8.77 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.32 % 2.60 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 439 ns 438 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 435 ns 433 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 14.4 ns 16.2 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 3.29 % 3.69 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 375 ns 374 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 369 ns 368 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 20.1 ns 19.4 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 5.37 % 5.18 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 310 ns 308 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 308 ns 308 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 10.9 ns 10.6 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 3.52 % 3.44 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 394 ns 395 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 393 ns 395 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 4.66 ns 8.86 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 1.18 % 2.24 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 267 ns 266 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 263 ns 261 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 10.1 ns 9.46 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.78 % 3.55 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 352 ns 352 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 353 ns 353 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 6.59 ns 6.72 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 1.87 % 1.91 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 243 ns 242 ns 10
|
|
replace bb to ---- in std::string|64_median 243 ns 241 ns 10
|
|
replace bb to ---- in std::string|64_stddev 8.62 ns 8.47 ns 10
|
|
replace bb to ---- in std::string|64_cv 3.54 % 3.51 % 10
|
|
replace bb to ---- in std::string|256_mean 818 ns 809 ns 10
|
|
replace bb to ---- in std::string|256_median 799 ns 802 ns 10
|
|
replace bb to ---- in std::string|256_stddev 56.0 ns 26.3 ns 10
|
|
replace bb to ---- in std::string|256_cv 6.84 % 3.24 % 10
|
|
replace bb to ---- in std::string|512_mean 1492 ns 1494 ns 10
|
|
replace bb to ---- in std::string|512_median 1495 ns 1491 ns 10
|
|
replace bb to ---- in std::string|512_stddev 25.4 ns 30.3 ns 10
|
|
replace bb to ---- in std::string|512_cv 1.70 % 2.03 % 10
|
|
replace bb to ---- in std::string|1024_mean 3206 ns 3201 ns 10
|
|
replace bb to ---- in std::string|1024_median 3194 ns 3223 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 51.7 ns 49.4 ns 10
|
|
replace bb to ---- in std::string|1024_cv 1.61 % 1.54 % 10
|
|
replace bb to ---- in std::string|2048_mean 8058 ns 8022 ns 10
|
|
replace bb to ---- in std::string|2048_median 7989 ns 7935 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 275 ns 273 ns 10
|
|
replace bb to ---- in std::string|2048_cv 3.42 % 3.40 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 251 ns 250 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 248 ns 248 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 22.8 ns 22.6 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 9.08 % 9.04 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 670 ns 667 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 649 ns 642 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 52.7 ns 53.8 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 7.86 % 8.06 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 1168 ns 1165 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 1150 ns 1147 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 62.9 ns 66.2 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 5.38 % 5.68 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 2054 ns 2051 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 2051 ns 2051 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 41.2 ns 44.1 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.01 % 2.15 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 3914 ns 3892 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 3881 ns 3892 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 108 ns 90.4 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.75 % 2.32 % 10
|
|
replace bb to ---- by init stringa|64_mean 215 ns 215 ns 10
|
|
replace bb to ---- by init stringa|64_median 214 ns 213 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 8.32 ns 9.08 ns 10
|
|
replace bb to ---- by init stringa|64_cv 3.88 % 4.22 % 10
|
|
replace bb to ---- by init stringa|256_mean 497 ns 494 ns 10
|
|
replace bb to ---- by init stringa|256_median 485 ns 481 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 27.0 ns 25.5 ns 10
|
|
replace bb to ---- by init stringa|256_cv 5.43 % 5.17 % 10
|
|
replace bb to ---- by init stringa|512_mean 1064 ns 1062 ns 10
|
|
replace bb to ---- by init stringa|512_median 1059 ns 1050 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 26.2 ns 28.8 ns 10
|
|
replace bb to ---- by init stringa|512_cv 2.46 % 2.71 % 10
|
|
replace bb to ---- by init stringa|1024_mean 2210 ns 2192 ns 10
|
|
replace bb to ---- by init stringa|1024_median 2177 ns 2173 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 69.8 ns 70.8 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 3.16 % 3.23 % 10
|
|
replace bb to ---- by init stringa|2048_mean 4723 ns 4707 ns 10
|
|
replace bb to ---- by init stringa|2048_median 4823 ns 4736 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 291 ns 305 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 6.16 % 6.47 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 214 ns 214 ns 10
|
|
replace bb to -- in std::string|64_median 213 ns 213 ns 10
|
|
replace bb to -- in std::string|64_stddev 9.70 ns 9.02 ns 10
|
|
replace bb to -- in std::string|64_cv 4.53 % 4.21 % 10
|
|
replace bb to -- in std::string|256_mean 535 ns 532 ns 10
|
|
replace bb to -- in std::string|256_median 530 ns 530 ns 10
|
|
replace bb to -- in std::string|256_stddev 14.8 ns 7.92 ns 10
|
|
replace bb to -- in std::string|256_cv 2.77 % 1.49 % 10
|
|
replace bb to -- in std::string|512_mean 958 ns 954 ns 10
|
|
replace bb to -- in std::string|512_median 952 ns 952 ns 10
|
|
replace bb to -- in std::string|512_stddev 21.4 ns 20.2 ns 10
|
|
replace bb to -- in std::string|512_cv 2.24 % 2.12 % 10
|
|
replace bb to -- in std::string|1024_mean 1831 ns 1826 ns 10
|
|
replace bb to -- in std::string|1024_median 1810 ns 1803 ns 10
|
|
replace bb to -- in std::string|1024_stddev 48.3 ns 51.8 ns 10
|
|
replace bb to -- in std::string|1024_cv 2.64 % 2.84 % 10
|
|
replace bb to -- in std::string|2048_mean 3701 ns 3700 ns 10
|
|
replace bb to -- in std::string|2048_median 3605 ns 3599 ns 10
|
|
replace bb to -- in std::string|2048_stddev 225 ns 212 ns 10
|
|
replace bb to -- in std::string|2048_cv 6.07 % 5.72 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 195 ns 195 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 194 ns 193 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 4.83 ns 4.07 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 2.48 % 2.09 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 459 ns 457 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 461 ns 450 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 13.9 ns 14.1 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 3.02 % 3.09 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 853 ns 853 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 851 ns 846 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 60.8 ns 62.8 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 7.13 % 7.37 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 1489 ns 1489 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 1489 ns 1482 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 36.5 ns 40.4 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 2.45 % 2.72 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 2860 ns 2856 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 2853 ns 2856 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 57.3 ns 74.0 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 2.01 % 2.59 % 10
|
|
replace bb to -- by init stringa|64_mean 178 ns 178 ns 10
|
|
replace bb to -- by init stringa|64_median 178 ns 176 ns 10
|
|
replace bb to -- by init stringa|64_stddev 4.70 ns 4.80 ns 10
|
|
replace bb to -- by init stringa|64_cv 2.64 % 2.70 % 10
|
|
replace bb to -- by init stringa|256_mean 403 ns 403 ns 10
|
|
replace bb to -- by init stringa|256_median 399 ns 401 ns 10
|
|
replace bb to -- by init stringa|256_stddev 10.5 ns 12.2 ns 10
|
|
replace bb to -- by init stringa|256_cv 2.61 % 3.03 % 10
|
|
replace bb to -- by init stringa|512_mean 719 ns 718 ns 10
|
|
replace bb to -- by init stringa|512_median 709 ns 715 ns 10
|
|
replace bb to -- by init stringa|512_stddev 90.9 ns 88.5 ns 10
|
|
replace bb to -- by init stringa|512_cv 12.64 % 12.31 % 10
|
|
replace bb to -- by init stringa|1024_mean 1181 ns 1182 ns 10
|
|
replace bb to -- by init stringa|1024_median 1181 ns 1172 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 22.4 ns 26.2 ns 10
|
|
replace bb to -- by init stringa|1024_cv 1.90 % 2.22 % 10
|
|
replace bb to -- by init stringa|2048_mean 2295 ns 2290 ns 10
|
|
replace bb to -- by init stringa|2048_median 2273 ns 2295 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 74.4 ns 77.9 ns 10
|
|
replace bb to -- by init stringa|2048_cv 3.24 % 3.40 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4223565 ns 4226280 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4286891 ns 4282756 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 153748 ns 168671 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 3.64 % 3.99 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5280639 ns 5265625 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5237516 ns 5312500 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 98142 ns 105461 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 1.86 % 2.00 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3869626 ns 3866969 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3856536 ns 3840782 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 69055 ns 82811 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.78 % 2.14 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6233309 ns 6236049 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6218193 ns 6208147 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 96434 ns 114854 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.55 % 1.84 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1641 ns 1643 ns 10
|
|
Build func full name std::string;_median 1647 ns 1639 ns 10
|
|
Build func full name std::string;_stddev 32.3 ns 34.7 ns 10
|
|
Build func full name std::string;_cv 1.97 % 2.11 % 10
|
|
Build func full name std::string 1;_mean 1763 ns 1761 ns 10
|
|
Build func full name std::string 1;_median 1733 ns 1744 ns 10
|
|
Build func full name std::string 1;_stddev 57.8 ns 55.1 ns 10
|
|
Build func full name std::string 1;_cv 3.28 % 3.13 % 10
|
|
Build func full name std::stream;_mean 9911 ns 9898 ns 10
|
|
Build func full name std::stream;_median 9726 ns 9835 ns 10
|
|
Build func full name std::stream;_stddev 427 ns 395 ns 10
|
|
Build func full name std::stream;_cv 4.31 % 3.99 % 10
|
|
Build func full name stringa;_mean 910 ns 906 ns 10
|
|
Build func full name stringa;_median 909 ns 900 ns 10
|
|
Build func full name stringa;_stddev 15.1 ns 17.2 ns 10
|
|
Build func full name stringa;_cv 1.66 % 1.90 % 10
|
|
Build func full name stringa 1;_mean 1009 ns 1008 ns 10
|
|
Build func full name stringa 1;_median 1009 ns 1013 ns 10
|
|
Build func full name stringa 1;_stddev 20.4 ns 25.9 ns 10
|
|
Build func full name stringa 1;_cv 2.02 % 2.57 % 10
|