mirror of https://github.com/orefkov/simstr.git
895 lines
133 KiB
Plaintext
895 lines
133 KiB
Plaintext
Run on (32 X 2513.96 MHz CPU s)
|
|
Firefox: 146.0.1.60 webasm
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
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 902 ns 902 ns 10
|
|
Concat std::string and number by std to std::string_median 904 ns 904 ns 10
|
|
Concat std::string and number by std to std::string_stddev 24.3 ns 24.3 ns 10
|
|
Concat std::string and number by std to std::string_cv 2.70 % 2.70 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 401 ns 401 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 400 ns 400 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 22.1 ns 22.1 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 5.50 % 5.50 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 228 ns 228 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 224 ns 224 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 11.6 ns 11.6 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 5.09 % 5.09 % 10
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 218 ns 218 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_median 216 ns 216 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 8.76 ns 8.76 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 4.02 % 4.02 % 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 1396 ns 1396 ns 10
|
|
Concat std::string and format hex number and literal to std::string_median 1392 ns 1392 ns 10
|
|
Concat std::string and format hex number and literal to std::string_stddev 30.5 ns 30.5 ns 10
|
|
Concat std::string and format hex number and literal to std::string_cv 2.18 % 2.18 % 10
|
|
std::format std::string and hex number by literal to std::string_mean 1628 ns 1628 ns 10
|
|
std::format std::string and hex number by literal to std::string_median 1628 ns 1628 ns 10
|
|
std::format std::string and hex number by literal to std::string_stddev 49.2 ns 49.2 ns 10
|
|
std::format std::string and hex number by literal to std::string_cv 3.02 % 3.02 % 10
|
|
Concat std::string and std::tochars and string to std::string_mean 627 ns 627 ns 10
|
|
Concat std::string and std::tochars and string to std::string_median 632 ns 632 ns 10
|
|
Concat std::string and std::tochars and string to std::string_stddev 24.8 ns 24.8 ns 10
|
|
Concat std::string and std::tochars and string to std::string_cv 3.96 % 3.96 % 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 396 ns 396 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 396 ns 396 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 13.5 ns 13.5 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.41 % 3.41 % 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 209 ns 209 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 209 ns 209 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 8.66 ns 8.66 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.13 % 4.13 % 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 221 ns 221 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 216 ns 216 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 13.5 ns 13.5 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 6.14 % 6.14 % 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 450 ns 450 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 440 ns 440 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 33.5 ns 33.5 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 7.45 % 7.45 % 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 740 ns 740 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 727 ns 727 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 39.4 ns 39.4 ns 10
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 5.32 % 5.32 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 101 ns 101 ns 10
|
|
Concat std::string by std to std::string_median 99.3 ns 99.3 ns 10
|
|
Concat std::string by std to std::string_stddev 5.64 ns 5.64 ns 10
|
|
Concat std::string by std to std::string_cv 5.60 % 5.60 % 10
|
|
Concat std::string by StrExpr to std::string_mean 108 ns 108 ns 10
|
|
Concat std::string by StrExpr to std::string_median 108 ns 108 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 5.10 ns 5.10 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 4.71 % 4.71 % 10
|
|
Concat stringa by StrExpr to stringa_mean 96.7 ns 96.7 ns 10
|
|
Concat stringa by StrExpr to stringa_median 98.6 ns 98.6 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 5.39 ns 5.42 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 5.58 % 5.60 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 187 ns 187 ns 10
|
|
Find concat three std::string_median 187 ns 187 ns 10
|
|
Find concat three std::string_stddev 6.98 ns 6.98 ns 10
|
|
Find concat three std::string_cv 3.73 % 3.73 % 10
|
|
Find concat three strexpr_mean 107 ns 107 ns 10
|
|
Find concat three strexpr_median 106 ns 106 ns 10
|
|
Find concat three strexpr_stddev 4.93 ns 4.93 ns 10
|
|
Find concat three strexpr_cv 4.62 % 4.62 % 10
|
|
Find concat three simstr_mean 76.4 ns 76.4 ns 10
|
|
Find concat three simstr_median 75.7 ns 75.7 ns 10
|
|
Find concat three simstr_stddev 2.65 ns 2.65 ns 10
|
|
Find concat three simstr_cv 3.47 % 3.47 % 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.4 ns 17.4 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.700 ns 0.700 ns 10
|
|
BuildTypeNameStr 0/0_cv 4.04 % 4.04 % 10
|
|
BuildTypeNameExp 0/0_mean 16.1 ns 16.1 ns 10
|
|
BuildTypeNameExp 0/0_median 16.0 ns 16.0 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.541 ns 0.539 ns 10
|
|
BuildTypeNameExp 0/0_cv 3.35 % 3.34 % 10
|
|
BuildTypeNameSim 0/0_mean 16.4 ns 16.4 ns 10
|
|
BuildTypeNameSim 0/0_median 15.8 ns 15.8 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.989 ns 0.989 ns 10
|
|
BuildTypeNameSim 0/0_cv 6.04 % 6.04 % 10
|
|
BuildTypeNameStr 10/10_mean 274 ns 274 ns 10
|
|
BuildTypeNameStr 10/10_median 269 ns 269 ns 10
|
|
BuildTypeNameStr 10/10_stddev 18.9 ns 18.9 ns 10
|
|
BuildTypeNameStr 10/10_cv 6.91 % 6.91 % 10
|
|
BuildTypeNameExp 10/10_mean 94.7 ns 94.7 ns 10
|
|
BuildTypeNameExp 10/10_median 95.1 ns 95.1 ns 10
|
|
BuildTypeNameExp 10/10_stddev 3.09 ns 3.06 ns 10
|
|
BuildTypeNameExp 10/10_cv 3.26 % 3.23 % 10
|
|
BuildTypeNameSim 10/10_mean 68.8 ns 68.8 ns 10
|
|
BuildTypeNameSim 10/10_median 68.6 ns 68.6 ns 10
|
|
BuildTypeNameSim 10/10_stddev 2.17 ns 2.17 ns 10
|
|
BuildTypeNameSim 10/10_cv 3.16 % 3.16 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 444 ns 444 ns 10
|
|
Concat with replace str_median 434 ns 434 ns 10
|
|
Concat with replace str_stddev 29.8 ns 29.8 ns 10
|
|
Concat with replace str_cv 6.72 % 6.72 % 10
|
|
Concat with replace exp_mean 252 ns 252 ns 10
|
|
Concat with replace exp_median 251 ns 251 ns 10
|
|
Concat with replace exp_stddev 14.6 ns 14.6 ns 10
|
|
Concat with replace exp_cv 5.79 % 5.79 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.15 ns 2.15 ns 10
|
|
std::string e;_median 2.15 ns 2.15 ns 10
|
|
std::string e;_stddev 0.017 ns 0.017 ns 10
|
|
std::string e;_cv 0.78 % 0.78 % 10
|
|
std::string_view e;_mean 0.974 ns 0.974 ns 10
|
|
std::string_view e;_median 0.973 ns 0.973 ns 10
|
|
std::string_view e;_stddev 0.013 ns 0.013 ns 10
|
|
std::string_view e;_cv 1.30 % 1.30 % 10
|
|
ssa e;_mean 0.939 ns 0.939 ns 10
|
|
ssa e;_median 0.937 ns 0.937 ns 10
|
|
ssa e;_stddev 0.006 ns 0.006 ns 10
|
|
ssa e;_cv 0.59 % 0.59 % 10
|
|
stringa e;_mean 2.19 ns 2.19 ns 10
|
|
stringa e;_median 2.18 ns 2.18 ns 10
|
|
stringa e;_stddev 0.054 ns 0.054 ns 10
|
|
stringa e;_cv 2.46 % 2.46 % 10
|
|
lstringa<20> e;_mean 2.21 ns 2.21 ns 10
|
|
lstringa<20> e;_median 2.19 ns 2.19 ns 10
|
|
lstringa<20> e;_stddev 0.059 ns 0.059 ns 10
|
|
lstringa<20> e;_cv 2.68 % 2.68 % 10
|
|
lstringa<40> e;_mean 2.57 ns 2.57 ns 10
|
|
lstringa<40> e;_median 2.57 ns 2.57 ns 10
|
|
lstringa<40> e;_stddev 0.031 ns 0.031 ns 10
|
|
lstringa<40> e;_cv 1.19 % 1.19 % 10
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.34 ns 2.34 ns 10
|
|
std::string e = "Test text";_median 2.33 ns 2.33 ns 10
|
|
std::string e = "Test text";_stddev 0.058 ns 0.058 ns 10
|
|
std::string e = "Test text";_cv 2.50 % 2.50 % 10
|
|
std::string_view e = "Test text";_mean 1.26 ns 1.26 ns 10
|
|
std::string_view e = "Test text";_median 1.23 ns 1.23 ns 10
|
|
std::string_view e = "Test text";_stddev 0.067 ns 0.067 ns 10
|
|
std::string_view e = "Test text";_cv 5.32 % 5.32 % 10
|
|
ssa e = "Test text";_mean 0.978 ns 0.978 ns 10
|
|
ssa e = "Test text";_median 0.973 ns 0.973 ns 10
|
|
ssa e = "Test text";_stddev 0.015 ns 0.015 ns 10
|
|
ssa e = "Test text";_cv 1.50 % 1.50 % 10
|
|
stringa e = "Test text";_mean 2.18 ns 2.18 ns 10
|
|
stringa e = "Test text";_median 2.18 ns 2.18 ns 10
|
|
stringa e = "Test text";_stddev 0.035 ns 0.035 ns 10
|
|
stringa e = "Test text";_cv 1.61 % 1.61 % 10
|
|
lstringa<20> e = "Test text";_mean 2.66 ns 2.66 ns 10
|
|
lstringa<20> e = "Test text";_median 2.66 ns 2.66 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.074 ns 0.074 ns 10
|
|
lstringa<20> e = "Test text";_cv 2.79 % 2.79 % 10
|
|
lstringa<40> e = "Test text";_mean 2.67 ns 2.67 ns 10
|
|
lstringa<40> e = "Test text";_median 2.66 ns 2.66 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.063 ns 0.063 ns 10
|
|
lstringa<40> e = "Test text";_cv 2.35 % 2.35 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 15.9 ns 15.9 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 15.8 ns 15.8 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 0.411 ns 0.411 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 2.58 % 2.58 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.25 ns 1.25 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 1.25 ns 1.25 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.034 ns 0.034 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 2.74 % 2.74 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 0.981 ns 0.981 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 0.978 ns 0.978 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.018 ns 0.018 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 1.79 % 1.79 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 2.24 ns 2.24 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 2.22 ns 2.22 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.073 ns 0.073 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 3.28 % 3.28 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 17.2 ns 17.2 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 17.2 ns 17.2 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.407 ns 0.407 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.36 % 2.36 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.99 ns 2.99 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.98 ns 2.98 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.067 ns 0.067 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.26 % 2.26 % 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 2.26 ns 2.26 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 2.27 ns 2.27 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.075 ns 0.075 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 3.31 % 3.31 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 1.25 ns 1.25 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 1.25 ns 1.25 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.029 ns 0.029 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.30 % 2.30 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 1.24 ns 1.24 ns 10
|
|
ssa e = "Test text"; auto c{e};_median 1.23 ns 1.23 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.044 ns 0.044 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 3.56 % 3.56 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 2.58 ns 2.58 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 2.57 ns 2.57 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.045 ns 0.045 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 1.73 % 1.73 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 15.2 ns 15.2 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 15.3 ns 15.3 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.758 ns 0.758 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 5.00 % 5.00 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 14.8 ns 14.8 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 14.8 ns 14.8 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.826 ns 0.826 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 5.58 % 5.58 % 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 33.9 ns 33.9 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 33.7 ns 33.7 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.974 ns 0.974 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.87 % 2.87 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.25 ns 1.25 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.25 ns 1.25 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.039 ns 0.039 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.09 % 3.09 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.972 ns 0.972 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.977 ns 0.977 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.93 % 1.93 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.22 ns 2.22 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.22 ns 2.22 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.052 ns 0.052 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.33 % 2.33 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 16.3 ns 16.3 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 16.1 ns 16.1 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.405 ns 0.402 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.49 % 2.47 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 14.0 ns 14.0 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 13.6 ns 13.6 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 1.45 ns 1.45 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 10.32 % 10.32 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 45.3 ns 45.3 ns 10
|
|
std::string::find;_median 44.5 ns 44.5 ns 10
|
|
std::string::find;_stddev 1.49 ns 1.49 ns 10
|
|
std::string::find;_cv 3.29 % 3.29 % 10
|
|
std::string_view::find;_mean 49.9 ns 49.9 ns 10
|
|
std::string_view::find;_median 49.8 ns 49.8 ns 10
|
|
std::string_view::find;_stddev 1.42 ns 1.42 ns 10
|
|
std::string_view::find;_cv 2.84 % 2.84 % 10
|
|
ssa::find;_mean 49.3 ns 49.3 ns 10
|
|
ssa::find;_median 49.1 ns 49.1 ns 10
|
|
ssa::find;_stddev 0.854 ns 0.855 ns 10
|
|
ssa::find;_cv 1.73 % 1.73 % 10
|
|
stringa::find;_mean 51.1 ns 51.1 ns 10
|
|
stringa::find;_median 51.3 ns 51.3 ns 10
|
|
stringa::find;_stddev 1.20 ns 1.20 ns 10
|
|
stringa::find;_cv 2.35 % 2.35 % 10
|
|
lstringa<20>::find;_mean 43.8 ns 43.8 ns 10
|
|
lstringa<20>::find;_median 43.2 ns 43.2 ns 10
|
|
lstringa<20>::find;_stddev 1.24 ns 1.24 ns 10
|
|
lstringa<20>::find;_cv 2.84 % 2.84 % 10
|
|
lstringa<40>::find;_mean 43.8 ns 43.8 ns 10
|
|
lstringa<40>::find;_median 43.7 ns 43.7 ns 10
|
|
lstringa<40>::find;_stddev 0.555 ns 0.555 ns 10
|
|
lstringa<40>::find;_cv 1.27 % 1.27 % 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 34.6 ns 34.6 ns 10
|
|
std::string copy{str_with_len_N};/15_median 33.9 ns 33.9 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 2.22 ns 2.22 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 6.41 % 6.41 % 10
|
|
std::string copy{str_with_len_N};/16_mean 34.9 ns 34.9 ns 10
|
|
std::string copy{str_with_len_N};/16_median 34.8 ns 34.8 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 1.36 ns 1.36 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 3.89 % 3.89 % 10
|
|
std::string copy{str_with_len_N};/23_mean 36.1 ns 36.1 ns 10
|
|
std::string copy{str_with_len_N};/23_median 36.3 ns 36.3 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 1.30 ns 1.30 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 3.60 % 3.60 % 10
|
|
std::string copy{str_with_len_N};/24_mean 34.4 ns 34.4 ns 10
|
|
std::string copy{str_with_len_N};/24_median 33.8 ns 33.8 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 1.34 ns 1.34 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 3.91 % 3.91 % 10
|
|
std::string copy{str_with_len_N};/32_mean 37.9 ns 37.9 ns 10
|
|
std::string copy{str_with_len_N};/32_median 38.0 ns 38.0 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 0.886 ns 0.886 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 2.34 % 2.34 % 10
|
|
std::string copy{str_with_len_N};/64_mean 37.7 ns 37.7 ns 10
|
|
std::string copy{str_with_len_N};/64_median 37.9 ns 37.9 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 1.11 ns 1.11 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 2.95 % 2.95 % 10
|
|
std::string copy{str_with_len_N};/128_mean 39.1 ns 39.1 ns 10
|
|
std::string copy{str_with_len_N};/128_median 38.9 ns 38.9 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 1.39 ns 1.39 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 3.56 % 3.56 % 10
|
|
std::string copy{str_with_len_N};/256_mean 59.2 ns 59.2 ns 10
|
|
std::string copy{str_with_len_N};/256_median 65.5 ns 65.5 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 12.9 ns 12.9 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 21.79 % 21.79 % 10
|
|
std::string copy{str_with_len_N};/512_mean 55.7 ns 55.7 ns 10
|
|
std::string copy{str_with_len_N};/512_median 54.6 ns 54.6 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 12.4 ns 12.4 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 22.19 % 22.19 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 54.8 ns 54.8 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 54.7 ns 54.7 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 4.68 ns 4.68 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 8.54 % 8.54 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 78.0 ns 78.0 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 77.7 ns 77.7 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 6.47 ns 6.47 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 8.29 % 8.29 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 112 ns 112 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 15.6 ns 15.6 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 13.86 % 13.86 % 10
|
|
stringa copy{str_with_len_N};/15_mean 2.56 ns 2.56 ns 10
|
|
stringa copy{str_with_len_N};/15_median 2.55 ns 2.55 ns 10
|
|
stringa copy{str_with_len_N};/15_stddev 0.080 ns 0.080 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 3.14 % 3.14 % 10
|
|
stringa copy{str_with_len_N};/16_mean 4.87 ns 4.87 ns 10
|
|
stringa copy{str_with_len_N};/16_median 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.178 ns 0.178 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 3.66 % 3.66 % 10
|
|
stringa copy{str_with_len_N};/23_mean 4.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/23_median 4.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.071 ns 0.071 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 1.47 % 1.47 % 10
|
|
stringa copy{str_with_len_N};/24_mean 4.91 ns 4.91 ns 10
|
|
stringa copy{str_with_len_N};/24_median 4.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.155 ns 0.155 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 3.16 % 3.16 % 10
|
|
stringa copy{str_with_len_N};/32_mean 4.87 ns 4.87 ns 10
|
|
stringa copy{str_with_len_N};/32_median 4.88 ns 4.88 ns 10
|
|
stringa copy{str_with_len_N};/32_stddev 0.128 ns 0.128 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 2.64 % 2.64 % 10
|
|
stringa copy{str_with_len_N};/64_mean 4.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/64_median 4.78 ns 4.78 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.077 ns 0.077 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 1.60 % 1.60 % 10
|
|
stringa copy{str_with_len_N};/128_mean 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/128_median 4.82 ns 4.82 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.092 ns 0.092 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 1.90 % 1.90 % 10
|
|
stringa copy{str_with_len_N};/256_mean 4.87 ns 4.87 ns 10
|
|
stringa copy{str_with_len_N};/256_median 4.88 ns 4.88 ns 10
|
|
stringa copy{str_with_len_N};/256_stddev 0.079 ns 0.079 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.62 % 1.62 % 10
|
|
stringa copy{str_with_len_N};/512_mean 4.82 ns 4.82 ns 10
|
|
stringa copy{str_with_len_N};/512_median 4.83 ns 4.83 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.073 ns 0.073 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 1.52 % 1.52 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 4.98 ns 4.98 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 5.00 ns 5.00 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.185 ns 0.185 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 3.71 % 3.71 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 4.90 ns 4.90 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 4.90 ns 4.90 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.130 ns 0.130 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 2.66 % 2.66 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.078 ns 0.078 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 1.62 % 1.62 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 14.3 ns 14.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 14.3 ns 14.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.383 ns 0.383 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 2.68 % 2.68 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 15.0 ns 15.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 14.8 ns 14.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 1.15 ns 1.15 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 7.62 % 7.62 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 28.8 ns 28.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 28.8 ns 28.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.914 ns 0.914 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 3.17 % 3.17 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 29.8 ns 29.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 29.7 ns 29.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 1.67 ns 1.67 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 5.60 % 5.60 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 31.9 ns 31.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 32.1 ns 32.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.10 ns 1.10 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 3.45 % 3.45 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 31.3 ns 31.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 31.2 ns 31.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 1.26 ns 1.26 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 4.04 % 4.04 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 32.5 ns 32.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 32.9 ns 32.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.25 ns 1.25 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 3.84 % 3.84 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 54.6 ns 54.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 62.2 ns 62.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 13.3 ns 13.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 24.40 % 24.40 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 51.6 ns 51.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 51.5 ns 51.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 12.7 ns 12.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 24.61 % 24.61 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 51.0 ns 51.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 50.4 ns 50.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 5.42 ns 5.42 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 10.62 % 10.62 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 74.1 ns 74.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 72.6 ns 72.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 5.47 ns 5.47 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 7.39 % 7.39 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 110 ns 110 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 118 ns 118 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 18.3 ns 18.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 16.65 % 16.65 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 14.4 ns 14.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 14.3 ns 14.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.718 ns 0.718 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 4.97 % 4.97 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 14.2 ns 14.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 14.0 ns 14.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.764 ns 0.764 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 5.40 % 5.40 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 14.0 ns 14.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 13.9 ns 13.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.592 ns 0.592 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 4.24 % 4.24 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 14.2 ns 14.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 14.1 ns 14.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.767 ns 0.767 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 5.41 % 5.41 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 17.8 ns 17.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 17.7 ns 17.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 1.14 ns 1.14 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 6.39 % 6.39 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 17.4 ns 17.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 17.4 ns 17.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.526 ns 0.526 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 3.03 % 3.03 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 17.6 ns 17.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 17.5 ns 17.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.582 ns 0.582 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 3.30 % 3.30 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 19.4 ns 19.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 19.2 ns 19.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.740 ns 0.740 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 3.82 % 3.82 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 21.6 ns 21.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 21.6 ns 21.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.553 ns 0.553 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 2.56 % 2.56 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 52.8 ns 52.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 53.5 ns 53.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 3.77 ns 3.77 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 7.13 % 7.13 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 74.7 ns 74.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 72.3 ns 72.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 8.28 ns 8.28 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 11.08 % 11.08 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 111 ns 111 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 120 ns 120 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 19.0 ns 19.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 17.15 % 17.15 % 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 70.3 ns 70.3 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 70.4 ns 70.4 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 2.09 ns 2.09 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.97 % 2.97 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 27.4 ns 27.4 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 27.1 ns 27.1 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.829 ns 0.829 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.03 % 3.03 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 18.8 ns 18.8 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 18.7 ns 18.7 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.495 ns 0.495 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.64 % 2.64 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.9 ns 16.9 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.9 ns 16.9 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.239 ns 0.239 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.42 % 1.42 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 16.7 ns 16.7 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.7 ns 16.7 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.321 ns 0.321 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.92 % 1.92 % 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 54.8 ns 54.8 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 54.3 ns 54.3 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.11 ns 1.11 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.03 % 2.03 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 28.7 ns 28.7 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 28.7 ns 28.7 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.874 ns 0.874 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.04 % 3.04 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 17.4 ns 17.4 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 17.3 ns 17.3 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.332 ns 0.332 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.91 % 1.91 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.0 ns 16.0 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.0 ns 16.0 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.275 ns 0.275 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.72 % 1.72 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.2 ns 16.2 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.1 ns 16.1 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.390 ns 0.390 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.41 % 2.41 % 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 77.9 ns 77.9 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 76.7 ns 76.7 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 3.26 ns 3.26 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 4.18 % 4.18 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 24.1 ns 24.1 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 24.0 ns 24.0 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.358 ns 0.358 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.49 % 1.49 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 23.2 ns 23.2 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 22.7 ns 22.7 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 1.10 ns 1.10 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 4.71 % 4.71 % 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 198 ns 198 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 196 ns 196 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 6.87 ns 6.87 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.47 % 3.47 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 107 ns 107 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 106 ns 106 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.55 ns 2.55 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.37 % 2.37 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 43.0 ns 43.0 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 42.5 ns 42.5 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.94 ns 1.94 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 4.50 % 4.50 % 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 4315 ns 4315 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 4214 ns 4214 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 286 ns 286 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 6.64 % 6.64 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 608 ns 608 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 616 ns 616 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 39.0 ns 39.0 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 6.42 % 6.42 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 727 ns 727 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 716 ns 716 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 26.7 ns 26.7 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.67 % 3.67 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 564 ns 564 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 575 ns 575 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 26.0 ns 26.0 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.61 % 4.61 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 466 ns 466 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 470 ns 470 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.7 ns 16.7 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.59 % 3.59 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 391 ns 391 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 390 ns 390 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.49 ns 4.49 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.15 % 1.15 % 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 4263 ns 4263 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4251 ns 4251 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 123 ns 123 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.88 % 2.88 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1852 ns 1852 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1868 ns 1868 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 65.3 ns 65.3 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.53 % 3.53 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 801 ns 801 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 794 ns 794 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 35.1 ns 35.1 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.38 % 4.38 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 707 ns 707 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 706 ns 706 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 35.5 ns 35.5 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.01 % 5.01 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 609 ns 609 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 601 ns 601 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 47.6 ns 47.6 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.81 % 7.81 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 530 ns 530 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 530 ns 530 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.9 ns 23.9 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.51 % 4.51 % 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 223824 ns 223824 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 224385 ns 224385 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 9144 ns 9144 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.09 % 4.09 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 107632 ns 107632 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 108000 ns 108000 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3975 ns 3975 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.69 % 3.69 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 40520 ns 40520 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 40257 ns 40257 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 682 ns 682 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.68 % 1.68 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 37619 ns 37619 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 37456 ns 37456 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1537 ns 1537 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.09 % 4.09 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 36261 ns 36261 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 36226 ns 36226 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 979 ns 979 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.70 % 2.70 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 37537 ns 37542 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 37109 ns 37135 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1440 ns 1439 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.84 % 3.83 % 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 4561 ns 4561 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 4509 ns 4509 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 415 ns 415 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 9.11 % 9.11 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 2331 ns 2331 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 2327 ns 2327 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 84.1 ns 84.1 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 3.61 % 3.61 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1151 ns 1151 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 1137 ns 1137 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 48.6 ns 48.7 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.22 % 4.23 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1032 ns 1032 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 1026 ns 1026 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 37.0 ns 37.0 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.58 % 3.58 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 908 ns 908 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 907 ns 907 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 33.0 ns 33.0 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.63 % 3.63 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 848 ns 848 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 838 ns 838 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 31.1 ns 31.1 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 3.67 % 3.67 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 6485 ns 6485 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 6482 ns 6482 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 283 ns 283 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 4.36 % 4.36 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1595 ns 1595 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1614 ns 1614 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 46.1 ns 46.1 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 2.89 % 2.89 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2803 ns 2804 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2764 ns 2764 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 92.1 ns 91.6 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.28 % 3.27 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 2056 ns 2056 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 2015 ns 2015 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 94.5 ns 94.5 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 4.59 % 4.59 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 3049 ns 3049 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 3032 ns 3032 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 86.5 ns 86.5 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.84 % 2.84 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 2473 ns 2473 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 2458 ns 2458 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 40.3 ns 40.3 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.63 % 1.63 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 588 ns 588 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 592 ns 592 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 28.3 ns 28.3 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 4.81 % 4.81 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 362 ns 362 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 359 ns 359 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 35.8 ns 35.8 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 9.87 % 9.87 % 10
|
|
stringa str = "test = " + k + " times";_mean 556 ns 556 ns 10
|
|
stringa str = "test = " + k + " times";_median 557 ns 557 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 22.7 ns 22.7 ns 10
|
|
stringa str = "test = " + k + " times";_cv 4.08 % 4.08 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 619 ns 619 ns 10
|
|
std::string::find + substr + std::strtol_median 613 ns 613 ns 10
|
|
std::string::find + substr + std::strtol_stddev 29.1 ns 29.1 ns 10
|
|
std::string::find + substr + std::strtol_cv 4.69 % 4.69 % 10
|
|
ssa::splitter + ssa::as_int_mean 274 ns 274 ns 10
|
|
ssa::splitter + ssa::as_int_median 270 ns 270 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 11.7 ns 11.7 ns 10
|
|
ssa::splitter + ssa::as_int_cv 4.27 % 4.28 % 10
|
|
ssa::splitf + functor_mean 332 ns 332 ns 10
|
|
ssa::splitf + functor_median 331 ns 331 ns 10
|
|
ssa::splitf + functor_stddev 5.01 ns 5.01 ns 10
|
|
ssa::splitf + functor_cv 1.51 % 1.51 % 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 2905 ns 2905 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 2875 ns 2875 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 143 ns 143 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 4.92 % 4.92 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 3870 ns 3870 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 3840 ns 3840 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 221 ns 221 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 5.72 % 5.72 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 2942 ns 2942 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 2927 ns 2927 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 72.3 ns 72.3 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.46 % 2.46 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 3121 ns 3121 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 3137 ns 3137 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 138 ns 138 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 4.41 % 4.41 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 2807 ns 2807 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 2754 ns 2754 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 152 ns 152 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 5.41 % 5.41 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 2448 ns 2448 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 2449 ns 2449 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 80.0 ns 80.0 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.27 % 3.27 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 2383 ns 2383 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 2358 ns 2358 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 125 ns 125 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 5.26 % 5.26 % 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 429 ns 429 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 427 ns 427 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 17.1 ns 17.1 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.98 % 3.98 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 526 ns 526 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 522 ns 522 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 23.6 ns 23.6 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 4.49 % 4.49 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 413 ns 413 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 409 ns 409 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 13.6 ns 13.6 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 3.28 % 3.28 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 390 ns 390 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 386 ns 386 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 18.8 ns 18.8 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 4.81 % 4.81 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 403 ns 403 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 402 ns 402 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 17.6 ns 17.6 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 4.37 % 4.37 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 243 ns 243 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 245 ns 245 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 16.2 ns 16.2 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 6.66 % 6.66 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 313 ns 313 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 317 ns 317 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 14.0 ns 14.0 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 4.47 % 4.47 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 382 ns 382 ns 10
|
|
replace bb to ---- in std::string|64_median 375 ns 375 ns 10
|
|
replace bb to ---- in std::string|64_stddev 23.0 ns 23.0 ns 10
|
|
replace bb to ---- in std::string|64_cv 6.03 % 6.03 % 10
|
|
replace bb to ---- in std::string|256_mean 1318 ns 1318 ns 10
|
|
replace bb to ---- in std::string|256_median 1296 ns 1296 ns 10
|
|
replace bb to ---- in std::string|256_stddev 68.0 ns 68.0 ns 10
|
|
replace bb to ---- in std::string|256_cv 5.15 % 5.15 % 10
|
|
replace bb to ---- in std::string|512_mean 2632 ns 2632 ns 10
|
|
replace bb to ---- in std::string|512_median 2569 ns 2569 ns 10
|
|
replace bb to ---- in std::string|512_stddev 195 ns 195 ns 10
|
|
replace bb to ---- in std::string|512_cv 7.43 % 7.43 % 10
|
|
replace bb to ---- in std::string|1024_mean 5262 ns 5262 ns 10
|
|
replace bb to ---- in std::string|1024_median 5236 ns 5236 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 137 ns 137 ns 10
|
|
replace bb to ---- in std::string|1024_cv 2.60 % 2.60 % 10
|
|
replace bb to ---- in std::string|2048_mean 12723 ns 12723 ns 10
|
|
replace bb to ---- in std::string|2048_median 12716 ns 12716 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 459 ns 459 ns 10
|
|
replace bb to ---- in std::string|2048_cv 3.61 % 3.61 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 296 ns 296 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 297 ns 297 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 8.74 ns 8.74 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 2.95 % 2.95 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 1106 ns 1106 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 1111 ns 1111 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 32.8 ns 32.8 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 2.96 % 2.96 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 1998 ns 1998 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 1999 ns 1999 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 80.5 ns 80.5 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 4.03 % 4.03 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 3708 ns 3708 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 3692 ns 3692 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 93.0 ns 93.0 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.51 % 2.51 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 7236 ns 7236 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 7238 ns 7238 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 225 ns 225 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 3.11 % 3.11 % 10
|
|
replace bb to ---- by init stringa|64_mean 208 ns 208 ns 10
|
|
replace bb to ---- by init stringa|64_median 209 ns 209 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 6.08 ns 6.08 ns 10
|
|
replace bb to ---- by init stringa|64_cv 2.92 % 2.92 % 10
|
|
replace bb to ---- by init stringa|256_mean 745 ns 745 ns 10
|
|
replace bb to ---- by init stringa|256_median 738 ns 738 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 29.5 ns 29.5 ns 10
|
|
replace bb to ---- by init stringa|256_cv 3.95 % 3.95 % 10
|
|
replace bb to ---- by init stringa|512_mean 1649 ns 1649 ns 10
|
|
replace bb to ---- by init stringa|512_median 1650 ns 1650 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 23.4 ns 23.4 ns 10
|
|
replace bb to ---- by init stringa|512_cv 1.42 % 1.42 % 10
|
|
replace bb to ---- by init stringa|1024_mean 3458 ns 3458 ns 10
|
|
replace bb to ---- by init stringa|1024_median 3433 ns 3433 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 72.9 ns 72.9 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 2.11 % 2.11 % 10
|
|
replace bb to ---- by init stringa|2048_mean 7119 ns 7119 ns 10
|
|
replace bb to ---- by init stringa|2048_median 7145 ns 7145 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 182 ns 182 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 2.55 % 2.55 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 275 ns 275 ns 10
|
|
replace bb to -- in std::string|64_median 273 ns 273 ns 10
|
|
replace bb to -- in std::string|64_stddev 18.3 ns 18.3 ns 10
|
|
replace bb to -- in std::string|64_cv 6.66 % 6.66 % 10
|
|
replace bb to -- in std::string|256_mean 1017 ns 1017 ns 10
|
|
replace bb to -- in std::string|256_median 1011 ns 1011 ns 10
|
|
replace bb to -- in std::string|256_stddev 49.8 ns 49.8 ns 10
|
|
replace bb to -- in std::string|256_cv 4.90 % 4.90 % 10
|
|
replace bb to -- in std::string|512_mean 1834 ns 1834 ns 10
|
|
replace bb to -- in std::string|512_median 1822 ns 1822 ns 10
|
|
replace bb to -- in std::string|512_stddev 59.6 ns 59.6 ns 10
|
|
replace bb to -- in std::string|512_cv 3.25 % 3.25 % 10
|
|
replace bb to -- in std::string|1024_mean 3524 ns 3524 ns 10
|
|
replace bb to -- in std::string|1024_median 3512 ns 3512 ns 10
|
|
replace bb to -- in std::string|1024_stddev 88.8 ns 88.8 ns 10
|
|
replace bb to -- in std::string|1024_cv 2.52 % 2.52 % 10
|
|
replace bb to -- in std::string|2048_mean 7031 ns 7031 ns 10
|
|
replace bb to -- in std::string|2048_median 7054 ns 7054 ns 10
|
|
replace bb to -- in std::string|2048_stddev 216 ns 216 ns 10
|
|
replace bb to -- in std::string|2048_cv 3.07 % 3.07 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 217 ns 217 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 214 ns 214 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 17.0 ns 17.0 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 7.82 % 7.82 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 764 ns 764 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 764 ns 764 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 29.2 ns 29.2 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 3.82 % 3.82 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 1417 ns 1417 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 1406 ns 1406 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 43.5 ns 43.5 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 3.07 % 3.07 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 2732 ns 2732 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 2686 ns 2686 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 115 ns 115 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 4.22 % 4.22 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 5398 ns 5398 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 5361 ns 5361 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 179 ns 179 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 3.31 % 3.31 % 10
|
|
replace bb to -- by init stringa|64_mean 183 ns 183 ns 10
|
|
replace bb to -- by init stringa|64_median 185 ns 185 ns 10
|
|
replace bb to -- by init stringa|64_stddev 9.36 ns 9.36 ns 10
|
|
replace bb to -- by init stringa|64_cv 5.11 % 5.11 % 10
|
|
replace bb to -- by init stringa|256_mean 637 ns 637 ns 10
|
|
replace bb to -- by init stringa|256_median 635 ns 635 ns 10
|
|
replace bb to -- by init stringa|256_stddev 25.8 ns 25.8 ns 10
|
|
replace bb to -- by init stringa|256_cv 4.04 % 4.04 % 10
|
|
replace bb to -- by init stringa|512_mean 1165 ns 1165 ns 10
|
|
replace bb to -- by init stringa|512_median 1151 ns 1151 ns 10
|
|
replace bb to -- by init stringa|512_stddev 45.4 ns 45.4 ns 10
|
|
replace bb to -- by init stringa|512_cv 3.90 % 3.90 % 10
|
|
replace bb to -- by init stringa|1024_mean 2294 ns 2294 ns 10
|
|
replace bb to -- by init stringa|1024_median 2322 ns 2322 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 103 ns 103 ns 10
|
|
replace bb to -- by init stringa|1024_cv 4.50 % 4.50 % 10
|
|
replace bb to -- by init stringa|2048_mean 4391 ns 4391 ns 10
|
|
replace bb to -- by init stringa|2048_median 4400 ns 4400 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 93.2 ns 93.2 ns 10
|
|
replace bb to -- by init stringa|2048_cv 2.12 % 2.12 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3100858 ns 3100858 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3100858 ns 3100858 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 52535 ns 52535 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.69 % 1.69 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3377674 ns 3377209 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3348837 ns 3346512 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 111796 ns 111831 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 3.31 % 3.31 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3119903 ns 3119903 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3111650 ns 3111650 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 87918 ns 87918 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 2.82 % 2.82 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3635000 ns 3635000 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3635000 ns 3635000 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 95917 ns 95917 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.64 % 2.64 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 2745 ns 2745 ns 10
|
|
Build func full name std::string;_median 2710 ns 2710 ns 10
|
|
Build func full name std::string;_stddev 102 ns 102 ns 10
|
|
Build func full name std::string;_cv 3.72 % 3.72 % 10
|
|
Build func full name std::string 1;_mean 2859 ns 2859 ns 10
|
|
Build func full name std::string 1;_median 2821 ns 2821 ns 10
|
|
Build func full name std::string 1;_stddev 128 ns 128 ns 10
|
|
Build func full name std::string 1;_cv 4.46 % 4.46 % 10
|
|
Build func full name std::stream;_mean 6461 ns 6461 ns 10
|
|
Build func full name std::stream;_median 6527 ns 6527 ns 10
|
|
Build func full name std::stream;_stddev 172 ns 172 ns 10
|
|
Build func full name std::stream;_cv 2.67 % 2.67 % 10
|
|
Build func full name stringa;_mean 1302 ns 1302 ns 10
|
|
Build func full name stringa;_median 1292 ns 1292 ns 10
|
|
Build func full name stringa;_stddev 118 ns 118 ns 10
|
|
Build func full name stringa;_cv 9.05 % 9.05 % 10
|
|
Build func full name stringa 1;_mean 1478 ns 1478 ns 10
|
|
Build func full name stringa 1;_median 1479 ns 1479 ns 10
|
|
Build func full name stringa 1;_stddev 57.9 ns 57.9 ns 10
|
|
Build func full name stringa 1;_cv 3.92 % 3.92 % 10
|