mirror of https://github.com/orefkov/simstr.git
883 lines
132 KiB
Plaintext
883 lines
132 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 862 ns 862 ns 10
|
|
Concat std::string and number by std to std::string_median 868 ns 868 ns 10
|
|
Concat std::string and number by std to std::string_stddev 26.5 ns 26.5 ns 10
|
|
Concat std::string and number by std to std::string_cv 3.07 % 3.07 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 384 ns 384 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 382 ns 382 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 19.5 ns 19.5 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 5.09 % 5.09 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 196 ns 196 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 195 ns 195 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 9.25 ns 9.25 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 4.71 % 4.71 % 10
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 193 ns 193 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_median 194 ns 194 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 3.88 ns 3.88 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 2.01 % 2.01 % 10
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and hex number by std to std::string_mean 1594 ns 1594 ns 10
|
|
Concat std::string and hex number by std to std::string_median 1589 ns 1589 ns 10
|
|
Concat std::string and hex number by std to std::string_stddev 28.2 ns 28.2 ns 10
|
|
Concat std::string and hex number by std to std::string_cv 1.77 % 1.77 % 10
|
|
Concat std::string and hex number by StrExpr to std::string_mean 371 ns 371 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_median 370 ns 370 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_stddev 7.74 ns 7.72 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_cv 2.08 % 2.08 % 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_mean 185 ns 185 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_median 182 ns 182 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_stddev 10.6 ns 10.6 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_cv 5.71 % 5.71 % 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_mean 197 ns 197 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_median 193 ns 193 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_stddev 15.5 ns 15.5 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_cv 7.84 % 7.84 % 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_mean 402 ns 402 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_median 399 ns 399 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_stddev 13.2 ns 13.2 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_cv 3.28 % 3.28 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 87.7 ns 87.7 ns 10
|
|
Concat std::string by std to std::string_median 87.3 ns 87.3 ns 10
|
|
Concat std::string by std to std::string_stddev 2.91 ns 2.91 ns 10
|
|
Concat std::string by std to std::string_cv 3.32 % 3.32 % 10
|
|
Concat std::string by StrExpr to std::string_mean 97.9 ns 97.9 ns 10
|
|
Concat std::string by StrExpr to std::string_median 97.4 ns 97.4 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 2.40 ns 2.40 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 2.45 % 2.45 % 10
|
|
Concat stringa by StrExpr to stringa_mean 91.9 ns 91.9 ns 10
|
|
Concat stringa by StrExpr to stringa_median 91.3 ns 91.3 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 2.61 ns 2.61 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 2.84 % 2.84 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 173 ns 173 ns 10
|
|
Find concat three std::string_median 174 ns 174 ns 10
|
|
Find concat three std::string_stddev 5.37 ns 5.37 ns 10
|
|
Find concat three std::string_cv 3.10 % 3.10 % 10
|
|
Find concat three strexpr_mean 110 ns 110 ns 10
|
|
Find concat three strexpr_median 108 ns 108 ns 10
|
|
Find concat three strexpr_stddev 8.76 ns 8.76 ns 10
|
|
Find concat three strexpr_cv 7.97 % 7.97 % 10
|
|
Find concat three simstr_mean 76.2 ns 76.2 ns 10
|
|
Find concat three simstr_median 74.2 ns 74.2 ns 10
|
|
Find concat three simstr_stddev 5.68 ns 5.68 ns 10
|
|
Find concat three simstr_cv 7.46 % 7.46 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 15.2 ns 15.2 ns 10
|
|
BuildTypeNameStr 0/0_median 15.2 ns 15.2 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.301 ns 0.301 ns 10
|
|
BuildTypeNameStr 0/0_cv 1.97 % 1.97 % 10
|
|
BuildTypeNameExp 0/0_mean 15.8 ns 15.8 ns 10
|
|
BuildTypeNameExp 0/0_median 15.7 ns 15.7 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.531 ns 0.531 ns 10
|
|
BuildTypeNameExp 0/0_cv 3.35 % 3.35 % 10
|
|
BuildTypeNameSim 0/0_mean 15.6 ns 15.6 ns 10
|
|
BuildTypeNameSim 0/0_median 15.5 ns 15.5 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.458 ns 0.458 ns 10
|
|
BuildTypeNameSim 0/0_cv 2.94 % 2.94 % 10
|
|
BuildTypeNameStr 10/10_mean 253 ns 253 ns 10
|
|
BuildTypeNameStr 10/10_median 251 ns 251 ns 10
|
|
BuildTypeNameStr 10/10_stddev 16.1 ns 16.1 ns 10
|
|
BuildTypeNameStr 10/10_cv 6.36 % 6.36 % 10
|
|
BuildTypeNameExp 10/10_mean 92.7 ns 92.7 ns 10
|
|
BuildTypeNameExp 10/10_median 89.0 ns 89.0 ns 10
|
|
BuildTypeNameExp 10/10_stddev 7.74 ns 7.74 ns 10
|
|
BuildTypeNameExp 10/10_cv 8.35 % 8.35 % 10
|
|
BuildTypeNameSim 10/10_mean 65.5 ns 65.5 ns 10
|
|
BuildTypeNameSim 10/10_median 62.8 ns 62.8 ns 10
|
|
BuildTypeNameSim 10/10_stddev 5.31 ns 5.31 ns 10
|
|
BuildTypeNameSim 10/10_cv 8.11 % 8.11 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 411 ns 411 ns 10
|
|
Concat with replace str_median 406 ns 406 ns 10
|
|
Concat with replace str_stddev 11.3 ns 11.3 ns 10
|
|
Concat with replace str_cv 2.74 % 2.74 % 10
|
|
Concat with replace exp_mean 243 ns 243 ns 10
|
|
Concat with replace exp_median 240 ns 240 ns 10
|
|
Concat with replace exp_stddev 7.23 ns 7.23 ns 10
|
|
Concat with replace exp_cv 2.98 % 2.98 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.14 ns 2.14 ns 10
|
|
std::string e;_median 2.13 ns 2.13 ns 10
|
|
std::string e;_stddev 0.033 ns 0.033 ns 10
|
|
std::string e;_cv 1.54 % 1.54 % 10
|
|
std::string_view e;_mean 0.972 ns 0.972 ns 10
|
|
std::string_view e;_median 0.965 ns 0.965 ns 10
|
|
std::string_view e;_stddev 0.021 ns 0.021 ns 10
|
|
std::string_view e;_cv 2.16 % 2.16 % 10
|
|
ssa e;_mean 0.939 ns 0.939 ns 10
|
|
ssa e;_median 0.936 ns 0.936 ns 10
|
|
ssa e;_stddev 0.014 ns 0.014 ns 10
|
|
ssa e;_cv 1.51 % 1.51 % 10
|
|
stringa e;_mean 2.15 ns 2.15 ns 10
|
|
stringa e;_median 2.14 ns 2.14 ns 10
|
|
stringa e;_stddev 0.040 ns 0.040 ns 10
|
|
stringa e;_cv 1.84 % 1.84 % 10
|
|
lstringa<20> e;_mean 2.19 ns 2.19 ns 10
|
|
lstringa<20> e;_median 2.17 ns 2.17 ns 10
|
|
lstringa<20> e;_stddev 0.042 ns 0.042 ns 10
|
|
lstringa<20> e;_cv 1.91 % 1.91 % 10
|
|
lstringa<40> e;_mean 2.58 ns 2.58 ns 10
|
|
lstringa<40> e;_median 2.55 ns 2.55 ns 10
|
|
lstringa<40> e;_stddev 0.085 ns 0.085 ns 10
|
|
lstringa<40> e;_cv 3.28 % 3.28 % 10
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.33 ns 2.33 ns 10
|
|
std::string e = "Test text";_median 2.28 ns 2.28 ns 10
|
|
std::string e = "Test text";_stddev 0.103 ns 0.103 ns 10
|
|
std::string e = "Test text";_cv 4.44 % 4.44 % 10
|
|
std::string_view e = "Test text";_mean 1.24 ns 1.24 ns 10
|
|
std::string_view e = "Test text";_median 1.24 ns 1.24 ns 10
|
|
std::string_view e = "Test text";_stddev 0.033 ns 0.033 ns 10
|
|
std::string_view e = "Test text";_cv 2.66 % 2.66 % 10
|
|
ssa e = "Test text";_mean 0.968 ns 0.968 ns 10
|
|
ssa e = "Test text";_median 0.970 ns 0.970 ns 10
|
|
ssa e = "Test text";_stddev 0.013 ns 0.013 ns 10
|
|
ssa e = "Test text";_cv 1.32 % 1.35 % 10
|
|
stringa e = "Test text";_mean 2.16 ns 2.16 ns 10
|
|
stringa e = "Test text";_median 2.16 ns 2.16 ns 10
|
|
stringa e = "Test text";_stddev 0.021 ns 0.021 ns 10
|
|
stringa e = "Test text";_cv 0.99 % 0.99 % 10
|
|
lstringa<20> e = "Test text";_mean 2.65 ns 2.65 ns 10
|
|
lstringa<20> e = "Test text";_median 2.63 ns 2.63 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.073 ns 0.073 ns 10
|
|
lstringa<20> e = "Test text";_cv 2.74 % 2.74 % 10
|
|
lstringa<40> e = "Test text";_mean 2.61 ns 2.61 ns 10
|
|
lstringa<40> e = "Test text";_median 2.59 ns 2.59 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.059 ns 0.059 ns 10
|
|
lstringa<40> e = "Test text";_cv 2.25 % 2.25 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 16.0 ns 16.0 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 15.9 ns 15.9 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 0.497 ns 0.497 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 3.10 % 3.10 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.28 ns 1.28 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 1.28 ns 1.28 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.039 ns 0.039 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 3.02 % 3.02 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 0.971 ns 0.971 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 0.971 ns 0.971 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.020 ns 0.020 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 2.03 % 2.03 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 2.18 ns 2.18 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 2.16 ns 2.16 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.043 ns 0.042 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 1.97 % 1.92 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 16.5 ns 16.5 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 16.4 ns 16.4 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.319 ns 0.319 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.94 % 1.94 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.00 ns 3.00 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.97 ns 2.97 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.111 ns 0.111 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 3.70 % 3.70 % 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.21 ns 2.21 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 2.21 ns 2.21 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.053 ns 0.053 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 2.39 % 2.39 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 1.26 ns 1.26 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 1.24 ns 1.24 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.067 ns 0.067 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 5.29 % 5.29 % 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.24 ns 1.24 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.031 ns 0.031 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 2.46 % 2.46 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 2.55 ns 2.55 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 2.53 ns 2.53 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.047 ns 0.047 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 1.84 % 1.84 % 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.1 ns 15.1 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.760 ns 0.760 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 4.99 % 4.99 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 14.5 ns 14.5 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 14.3 ns 14.3 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 1.50 ns 1.50 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 10.34 % 10.34 % 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.3 ns 33.3 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 33.1 ns 33.1 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.32 ns 1.32 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.96 % 3.96 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.27 ns 1.27 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.062 ns 0.062 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 4.85 % 4.85 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.981 ns 0.981 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.976 ns 0.976 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.022 ns 0.022 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.21 % 2.21 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.19 ns 2.19 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.17 ns 2.17 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.053 ns 0.053 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.41 % 2.41 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 15.7 ns 15.7 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 15.6 ns 15.6 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.562 ns 0.562 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.57 % 3.57 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 14.2 ns 14.2 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 14.1 ns 14.1 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.971 ns 0.971 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 6.85 % 6.85 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 54.4 ns 54.4 ns 10
|
|
std::string::find;_median 53.5 ns 53.5 ns 10
|
|
std::string::find;_stddev 3.42 ns 3.42 ns 10
|
|
std::string::find;_cv 6.30 % 6.30 % 10
|
|
std::string_view::find;_mean 56.9 ns 56.9 ns 10
|
|
std::string_view::find;_median 56.5 ns 56.5 ns 10
|
|
std::string_view::find;_stddev 1.38 ns 1.38 ns 10
|
|
std::string_view::find;_cv 2.42 % 2.42 % 10
|
|
ssa::find;_mean 56.5 ns 56.5 ns 10
|
|
ssa::find;_median 55.9 ns 55.9 ns 10
|
|
ssa::find;_stddev 1.78 ns 1.78 ns 10
|
|
ssa::find;_cv 3.15 % 3.15 % 10
|
|
stringa::find;_mean 60.3 ns 60.3 ns 10
|
|
stringa::find;_median 60.4 ns 60.4 ns 10
|
|
stringa::find;_stddev 2.93 ns 2.93 ns 10
|
|
stringa::find;_cv 4.85 % 4.85 % 10
|
|
lstringa<20>::find;_mean 52.4 ns 52.4 ns 10
|
|
lstringa<20>::find;_median 52.4 ns 52.4 ns 10
|
|
lstringa<20>::find;_stddev 1.79 ns 1.79 ns 10
|
|
lstringa<20>::find;_cv 3.42 % 3.42 % 10
|
|
lstringa<40>::find;_mean 51.0 ns 51.0 ns 10
|
|
lstringa<40>::find;_median 50.5 ns 50.5 ns 10
|
|
lstringa<40>::find;_stddev 1.15 ns 1.15 ns 10
|
|
lstringa<40>::find;_cv 2.26 % 2.26 % 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.4 ns 34.4 ns 10
|
|
std::string copy{str_with_len_N};/15_median 34.6 ns 34.6 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 0.999 ns 0.999 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 2.90 % 2.90 % 10
|
|
std::string copy{str_with_len_N};/16_mean 34.6 ns 34.6 ns 10
|
|
std::string copy{str_with_len_N};/16_median 34.4 ns 34.4 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 1.60 ns 1.60 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 4.62 % 4.62 % 10
|
|
std::string copy{str_with_len_N};/23_mean 35.2 ns 35.2 ns 10
|
|
std::string copy{str_with_len_N};/23_median 34.7 ns 34.7 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 1.39 ns 1.39 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 3.94 % 3.94 % 10
|
|
std::string copy{str_with_len_N};/24_mean 34.8 ns 34.8 ns 10
|
|
std::string copy{str_with_len_N};/24_median 34.4 ns 34.4 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 1.29 ns 1.29 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 3.71 % 3.71 % 10
|
|
std::string copy{str_with_len_N};/32_mean 41.2 ns 41.2 ns 10
|
|
std::string copy{str_with_len_N};/32_median 41.2 ns 41.2 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 2.51 ns 2.51 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 6.07 % 6.07 % 10
|
|
std::string copy{str_with_len_N};/64_mean 37.9 ns 37.9 ns 10
|
|
std::string copy{str_with_len_N};/64_median 37.8 ns 37.8 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 1.26 ns 1.26 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 3.32 % 3.32 % 10
|
|
std::string copy{str_with_len_N};/128_mean 39.8 ns 39.8 ns 10
|
|
std::string copy{str_with_len_N};/128_median 39.7 ns 39.7 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 1.49 ns 1.49 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 3.75 % 3.75 % 10
|
|
std::string copy{str_with_len_N};/256_mean 59.6 ns 59.6 ns 10
|
|
std::string copy{str_with_len_N};/256_median 65.9 ns 65.9 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 13.9 ns 13.9 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 23.29 % 23.29 % 10
|
|
std::string copy{str_with_len_N};/512_mean 57.3 ns 57.3 ns 10
|
|
std::string copy{str_with_len_N};/512_median 57.0 ns 57.0 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 13.0 ns 13.0 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 22.77 % 22.77 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 59.5 ns 59.5 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 60.6 ns 60.6 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 6.40 ns 6.40 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 10.74 % 10.74 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 82.2 ns 82.2 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 79.7 ns 79.7 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 11.1 ns 11.1 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 13.46 % 13.46 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 111 ns 111 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 116 ns 116 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 14.4 ns 14.4 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 12.95 % 12.95 % 10
|
|
stringa copy{str_with_len_N};/15_mean 2.54 ns 2.54 ns 10
|
|
stringa copy{str_with_len_N};/15_median 2.52 ns 2.52 ns 10
|
|
stringa copy{str_with_len_N};/15_stddev 0.042 ns 0.042 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 1.66 % 1.66 % 10
|
|
stringa copy{str_with_len_N};/16_mean 4.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/16_median 4.77 ns 4.77 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.102 ns 0.102 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 2.13 % 2.13 % 10
|
|
stringa copy{str_with_len_N};/23_mean 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/23_median 4.80 ns 4.80 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.102 ns 0.102 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 2.11 % 2.11 % 10
|
|
stringa copy{str_with_len_N};/24_mean 4.89 ns 4.89 ns 10
|
|
stringa copy{str_with_len_N};/24_median 4.87 ns 4.87 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.117 ns 0.117 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 2.39 % 2.39 % 10
|
|
stringa copy{str_with_len_N};/32_mean 4.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/32_median 4.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/32_stddev 0.095 ns 0.095 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 1.95 % 1.95 % 10
|
|
stringa copy{str_with_len_N};/64_mean 4.83 ns 4.83 ns 10
|
|
stringa copy{str_with_len_N};/64_median 4.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.049 ns 0.049 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 1.01 % 1.01 % 10
|
|
stringa copy{str_with_len_N};/128_mean 4.93 ns 4.93 ns 10
|
|
stringa copy{str_with_len_N};/128_median 4.87 ns 4.87 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.219 ns 0.219 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 4.43 % 4.43 % 10
|
|
stringa copy{str_with_len_N};/256_mean 4.97 ns 4.97 ns 10
|
|
stringa copy{str_with_len_N};/256_median 4.92 ns 4.92 ns 10
|
|
stringa copy{str_with_len_N};/256_stddev 0.172 ns 0.172 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 3.46 % 3.46 % 10
|
|
stringa copy{str_with_len_N};/512_mean 5.06 ns 5.06 ns 10
|
|
stringa copy{str_with_len_N};/512_median 4.98 ns 4.98 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.242 ns 0.242 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 4.78 % 4.78 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 4.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 4.75 ns 4.75 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.134 ns 0.134 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 2.79 % 2.79 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 4.86 ns 4.86 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 4.77 ns 4.77 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.167 ns 0.167 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 3.44 % 3.44 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 4.76 ns 4.76 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 4.72 ns 4.72 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.085 ns 0.085 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 1.79 % 1.79 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 14.1 ns 14.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 14.0 ns 14.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.730 ns 0.730 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 5.17 % 5.17 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 13.9 ns 13.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 13.9 ns 13.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 1.03 ns 1.03 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 7.46 % 7.44 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 28.7 ns 28.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 28.4 ns 28.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.790 ns 0.787 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.75 % 2.74 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 29.4 ns 29.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 29.5 ns 29.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 1.20 ns 1.20 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 4.09 % 4.09 % 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 31.5 ns 31.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.91 ns 1.91 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 6.00 % 6.00 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 32.0 ns 32.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 32.0 ns 32.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.922 ns 0.922 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 2.88 % 2.88 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 32.6 ns 32.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 32.5 ns 32.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.68 ns 1.68 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 5.15 % 5.15 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 55.0 ns 55.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 62.8 ns 62.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 14.9 ns 14.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 27.01 % 27.01 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 51.9 ns 51.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 53.9 ns 53.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 13.3 ns 13.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 25.56 % 25.56 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 54.2 ns 54.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 56.7 ns 56.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 6.95 ns 6.95 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 12.83 % 12.83 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 79.1 ns 79.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 78.0 ns 78.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 9.81 ns 9.81 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 12.40 % 12.40 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 106 ns 106 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 109 ns 109 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 13.9 ns 13.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 13.10 % 13.10 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 15.4 ns 15.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 15.3 ns 15.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.790 ns 0.790 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 5.14 % 5.14 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 15.5 ns 15.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 15.6 ns 15.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.812 ns 0.812 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 5.24 % 5.24 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 15.2 ns 15.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 15.2 ns 15.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.914 ns 0.914 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 6.01 % 6.01 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 15.0 ns 15.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 14.7 ns 14.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.730 ns 0.730 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 4.86 % 4.86 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 18.3 ns 18.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 18.3 ns 18.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.844 ns 0.844 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 4.62 % 4.62 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 17.7 ns 17.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 17.8 ns 17.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.642 ns 0.642 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 3.63 % 3.63 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 18.1 ns 18.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 17.9 ns 17.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 1.19 ns 1.19 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 6.57 % 6.57 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 20.7 ns 20.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 20.5 ns 20.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 1.27 ns 1.27 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 6.13 % 6.13 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 21.8 ns 21.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 21.5 ns 21.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 1.27 ns 1.27 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 5.82 % 5.82 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 52.9 ns 52.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 54.8 ns 54.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 5.68 ns 5.68 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 10.73 % 10.73 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 76.5 ns 76.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 75.0 ns 75.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 8.56 ns 8.56 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 11.19 % 11.19 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 105 ns 105 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 111 ns 111 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 13.7 ns 13.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 13.00 % 13.00 % 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 73.0 ns 73.0 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 72.8 ns 72.8 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 3.50 ns 3.50 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 4.80 % 4.80 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 27.8 ns 27.8 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 27.5 ns 27.5 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.926 ns 0.926 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.33 % 3.33 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 19.0 ns 19.0 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 18.9 ns 18.9 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.420 ns 0.420 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.21 % 2.21 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.0 ns 17.0 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.8 ns 16.8 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.388 ns 0.388 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.29 % 2.29 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.0 ns 17.0 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 16.9 ns 16.9 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.302 ns 0.302 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.78 % 1.78 % 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 56.5 ns 56.5 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 56.4 ns 56.4 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.24 ns 2.24 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.97 % 3.97 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 28.3 ns 28.3 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 27.9 ns 27.9 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 1.03 ns 1.03 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.64 % 3.64 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 17.3 ns 17.3 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 17.1 ns 17.1 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.548 ns 0.548 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.16 % 3.16 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.2 ns 16.2 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.2 ns 16.2 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.141 ns 0.141 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.87 % 0.87 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.7 ns 16.7 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.2 ns 16.2 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.00 ns 1.00 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 5.99 % 5.99 % 10
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 77.7 ns 77.7 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 78.0 ns 78.0 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 2.26 ns 2.26 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.91 % 2.91 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 24.6 ns 24.6 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 24.7 ns 24.7 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.605 ns 0.605 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 2.46 % 2.46 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 23.6 ns 23.6 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 23.2 ns 23.2 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 1.29 ns 1.29 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 5.46 % 5.46 % 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 196 ns 196 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 194 ns 194 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.37 ns 4.37 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.23 % 2.23 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 106 ns 106 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 1.03 ns 1.03 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.97 % 0.97 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 43.1 ns 43.1 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.58 ns 1.58 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 3.67 % 3.67 % 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 4557 ns 4557 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 4565 ns 4565 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 189 ns 189 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 4.14 % 4.14 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 598 ns 598 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 591 ns 591 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 37.5 ns 37.5 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 6.28 % 6.28 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 705 ns 705 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 707 ns 707 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 19.5 ns 19.5 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.77 % 2.77 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 564 ns 564 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 560 ns 560 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 30.2 ns 30.2 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.35 % 5.35 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 472 ns 472 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 474 ns 474 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.7 ns 16.7 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.53 % 3.53 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 396 ns 396 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 391 ns 391 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 9.22 ns 9.22 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.33 % 2.33 % 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 4433 ns 4433 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4365 ns 4365 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 180 ns 180 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.06 % 4.06 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1926 ns 1926 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1941 ns 1941 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 79.8 ns 79.8 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 4.14 % 4.14 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 804 ns 804 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 799 ns 799 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 61.3 ns 61.3 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.63 % 7.63 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 726 ns 726 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 713 ns 713 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 52.6 ns 52.6 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.24 % 7.24 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 597 ns 597 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 587 ns 587 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 33.1 ns 33.1 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.55 % 5.55 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 523 ns 523 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 513 ns 513 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 25.4 ns 25.4 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.86 % 4.86 % 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 218832 ns 218832 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 217525 ns 217525 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4729 ns 4729 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.16 % 2.16 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 104650 ns 104650 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 104179 ns 104179 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4753 ns 4753 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.54 % 4.54 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 39563 ns 39563 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38899 ns 38899 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1909 ns 1909 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.83 % 4.83 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 38589 ns 38589 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38157 ns 38157 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1799 ns 1799 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.66 % 4.66 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 37622 ns 37622 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 37332 ns 37332 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1772 ns 1772 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.71 % 4.71 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 38473 ns 38473 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38927 ns 38927 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1938 ns 1938 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.04 % 5.04 % 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 4648 ns 4648 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 4459 ns 4459 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 319 ns 319 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 6.87 % 6.87 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 2346 ns 2346 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 2351 ns 2351 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 83.3 ns 83.3 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 3.55 % 3.55 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1150 ns 1150 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 1133 ns 1133 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 84.2 ns 84.2 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 7.32 % 7.32 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1100 ns 1100 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 1084 ns 1084 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 70.7 ns 70.7 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.43 % 6.43 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 934 ns 934 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 951 ns 951 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 76.9 ns 76.9 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 8.24 % 8.24 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 867 ns 867 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 874 ns 874 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 52.8 ns 52.8 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 6.09 % 6.09 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 6486 ns 6486 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 6485 ns 6485 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 403 ns 403 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 6.21 % 6.21 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1576 ns 1576 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1562 ns 1562 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 69.5 ns 69.5 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 4.41 % 4.41 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2894 ns 2894 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2879 ns 2879 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 93.1 ns 93.1 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.22 % 3.22 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 2063 ns 2063 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 2031 ns 2031 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 98.0 ns 98.0 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 4.75 % 4.75 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 3409 ns 3409 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 3354 ns 3354 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 236 ns 236 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 6.91 % 6.91 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 2460 ns 2460 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 2424 ns 2424 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 99.3 ns 99.3 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 4.04 % 4.04 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 611 ns 611 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 620 ns 620 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 26.4 ns 26.4 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 4.32 % 4.32 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 345 ns 345 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 327 ns 327 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 42.0 ns 42.0 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 12.19 % 12.19 % 10
|
|
stringa str = "test = " + k + " times";_mean 541 ns 541 ns 10
|
|
stringa str = "test = " + k + " times";_median 536 ns 536 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 29.8 ns 29.8 ns 10
|
|
stringa str = "test = " + k + " times";_cv 5.51 % 5.51 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 609 ns 609 ns 10
|
|
std::string::find + substr + std::strtol_median 616 ns 616 ns 10
|
|
std::string::find + substr + std::strtol_stddev 23.9 ns 23.9 ns 10
|
|
std::string::find + substr + std::strtol_cv 3.93 % 3.93 % 10
|
|
ssa::splitter + ssa::as_int_mean 269 ns 269 ns 10
|
|
ssa::splitter + ssa::as_int_median 263 ns 263 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 14.1 ns 14.1 ns 10
|
|
ssa::splitter + ssa::as_int_cv 5.25 % 5.25 % 10
|
|
ssa::splitf + functor_mean 338 ns 338 ns 10
|
|
ssa::splitf + functor_median 330 ns 330 ns 10
|
|
ssa::splitf + functor_stddev 23.1 ns 23.1 ns 10
|
|
ssa::splitf + functor_cv 6.82 % 6.82 % 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 3726 ns 3726 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 3773 ns 3773 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 174 ns 174 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 4.67 % 4.67 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 5016 ns 5016 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 4980 ns 4980 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 316 ns 316 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 6.30 % 6.30 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 3479 ns 3479 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 3504 ns 3504 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 138 ns 138 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 3.96 % 3.96 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 3472 ns 3472 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 3473 ns 3473 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 117 ns 117 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 3.36 % 3.36 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 3043 ns 3043 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 3054 ns 3054 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 89.1 ns 89.1 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.93 % 2.93 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 2845 ns 2845 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 2832 ns 2832 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 111 ns 111 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.91 % 3.91 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 2739 ns 2739 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 2679 ns 2679 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 178 ns 178 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 6.50 % 6.50 % 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 470 ns 470 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 472 ns 472 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 24.7 ns 24.7 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 5.25 % 5.25 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 494 ns 494 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 485 ns 485 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 34.2 ns 34.2 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 6.92 % 6.92 % 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 420 ns 420 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 28.4 ns 28.4 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 6.86 % 6.86 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 380 ns 380 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 378 ns 378 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 16.7 ns 16.7 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 4.40 % 4.40 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 401 ns 401 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 396 ns 396 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 20.1 ns 20.0 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 5.01 % 5.00 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 257 ns 257 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 255 ns 255 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 10.0 ns 10.0 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.89 % 3.89 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 302 ns 302 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 300 ns 300 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 13.1 ns 13.1 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 4.32 % 4.32 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 371 ns 371 ns 10
|
|
replace bb to ---- in std::string|64_median 369 ns 369 ns 10
|
|
replace bb to ---- in std::string|64_stddev 18.6 ns 18.6 ns 10
|
|
replace bb to ---- in std::string|64_cv 5.01 % 5.01 % 10
|
|
replace bb to ---- in std::string|256_mean 1351 ns 1351 ns 10
|
|
replace bb to ---- in std::string|256_median 1339 ns 1339 ns 10
|
|
replace bb to ---- in std::string|256_stddev 71.1 ns 71.1 ns 10
|
|
replace bb to ---- in std::string|256_cv 5.26 % 5.26 % 10
|
|
replace bb to ---- in std::string|512_mean 2646 ns 2646 ns 10
|
|
replace bb to ---- in std::string|512_median 2675 ns 2675 ns 10
|
|
replace bb to ---- in std::string|512_stddev 139 ns 139 ns 10
|
|
replace bb to ---- in std::string|512_cv 5.26 % 5.26 % 10
|
|
replace bb to ---- in std::string|1024_mean 5606 ns 5607 ns 10
|
|
replace bb to ---- in std::string|1024_median 5440 ns 5440 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 337 ns 336 ns 10
|
|
replace bb to ---- in std::string|1024_cv 6.00 % 5.99 % 10
|
|
replace bb to ---- in std::string|2048_mean 12254 ns 12254 ns 10
|
|
replace bb to ---- in std::string|2048_median 12308 ns 12308 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 329 ns 329 ns 10
|
|
replace bb to ---- in std::string|2048_cv 2.68 % 2.68 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 332 ns 332 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 329 ns 329 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 13.8 ns 13.8 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 4.16 % 4.16 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 1116 ns 1116 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 1121 ns 1121 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 50.8 ns 50.8 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 4.55 % 4.55 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 2117 ns 2117 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 2104 ns 2104 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 87.2 ns 87.2 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 4.12 % 4.12 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 4092 ns 4092 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 4093 ns 4093 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 157 ns 157 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.83 % 3.83 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 7783 ns 7783 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 7722 ns 7722 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 312 ns 312 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 4.01 % 4.01 % 10
|
|
replace bb to ---- by init stringa|64_mean 212 ns 212 ns 10
|
|
replace bb to ---- by init stringa|64_median 211 ns 211 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 7.68 ns 7.68 ns 10
|
|
replace bb to ---- by init stringa|64_cv 3.62 % 3.62 % 10
|
|
replace bb to ---- by init stringa|256_mean 725 ns 725 ns 10
|
|
replace bb to ---- by init stringa|256_median 728 ns 728 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 17.3 ns 17.3 ns 10
|
|
replace bb to ---- by init stringa|256_cv 2.39 % 2.39 % 10
|
|
replace bb to ---- by init stringa|512_mean 1687 ns 1687 ns 10
|
|
replace bb to ---- by init stringa|512_median 1694 ns 1694 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 59.8 ns 59.8 ns 10
|
|
replace bb to ---- by init stringa|512_cv 3.55 % 3.55 % 10
|
|
replace bb to ---- by init stringa|1024_mean 3720 ns 3720 ns 10
|
|
replace bb to ---- by init stringa|1024_median 3746 ns 3746 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 181 ns 181 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 4.86 % 4.86 % 10
|
|
replace bb to ---- by init stringa|2048_mean 7469 ns 7469 ns 10
|
|
replace bb to ---- by init stringa|2048_median 7375 ns 7375 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 456 ns 456 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 6.10 % 6.10 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 259 ns 259 ns 10
|
|
replace bb to -- in std::string|64_median 255 ns 255 ns 10
|
|
replace bb to -- in std::string|64_stddev 12.7 ns 12.7 ns 10
|
|
replace bb to -- in std::string|64_cv 4.89 % 4.89 % 10
|
|
replace bb to -- in std::string|256_mean 941 ns 941 ns 10
|
|
replace bb to -- in std::string|256_median 944 ns 944 ns 10
|
|
replace bb to -- in std::string|256_stddev 28.9 ns 28.9 ns 10
|
|
replace bb to -- in std::string|256_cv 3.07 % 3.07 % 10
|
|
replace bb to -- in std::string|512_mean 1842 ns 1842 ns 10
|
|
replace bb to -- in std::string|512_median 1831 ns 1831 ns 10
|
|
replace bb to -- in std::string|512_stddev 39.0 ns 39.0 ns 10
|
|
replace bb to -- in std::string|512_cv 2.12 % 2.12 % 10
|
|
replace bb to -- in std::string|1024_mean 3695 ns 3695 ns 10
|
|
replace bb to -- in std::string|1024_median 3634 ns 3634 ns 10
|
|
replace bb to -- in std::string|1024_stddev 209 ns 209 ns 10
|
|
replace bb to -- in std::string|1024_cv 5.65 % 5.65 % 10
|
|
replace bb to -- in std::string|2048_mean 6890 ns 6890 ns 10
|
|
replace bb to -- in std::string|2048_median 6853 ns 6853 ns 10
|
|
replace bb to -- in std::string|2048_stddev 231 ns 231 ns 10
|
|
replace bb to -- in std::string|2048_cv 3.35 % 3.35 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 219 ns 219 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 216 ns 216 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 7.29 ns 7.29 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 3.34 % 3.34 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 797 ns 797 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 772 ns 772 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 73.2 ns 73.2 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 9.19 % 9.19 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 1465 ns 1465 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 1469 ns 1469 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 93.1 ns 93.1 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 6.35 % 6.35 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 2845 ns 2845 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 2804 ns 2804 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 135 ns 135 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 4.73 % 4.73 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 5530 ns 5530 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 5473 ns 5473 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 224 ns 224 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 4.05 % 4.05 % 10
|
|
replace bb to -- by init stringa|64_mean 178 ns 178 ns 10
|
|
replace bb to -- by init stringa|64_median 177 ns 177 ns 10
|
|
replace bb to -- by init stringa|64_stddev 7.73 ns 7.73 ns 10
|
|
replace bb to -- by init stringa|64_cv 4.34 % 4.34 % 10
|
|
replace bb to -- by init stringa|256_mean 634 ns 634 ns 10
|
|
replace bb to -- by init stringa|256_median 636 ns 636 ns 10
|
|
replace bb to -- by init stringa|256_stddev 15.0 ns 15.0 ns 10
|
|
replace bb to -- by init stringa|256_cv 2.37 % 2.37 % 10
|
|
replace bb to -- by init stringa|512_mean 1214 ns 1214 ns 10
|
|
replace bb to -- by init stringa|512_median 1204 ns 1204 ns 10
|
|
replace bb to -- by init stringa|512_stddev 54.1 ns 54.1 ns 10
|
|
replace bb to -- by init stringa|512_cv 4.45 % 4.45 % 10
|
|
replace bb to -- by init stringa|1024_mean 2270 ns 2269 ns 10
|
|
replace bb to -- by init stringa|1024_median 2256 ns 2254 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 50.4 ns 50.5 ns 10
|
|
replace bb to -- by init stringa|1024_cv 2.22 % 2.23 % 10
|
|
replace bb to -- by init stringa|2048_mean 4529 ns 4529 ns 10
|
|
replace bb to -- by init stringa|2048_median 4505 ns 4505 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 139 ns 139 ns 10
|
|
replace bb to -- by init stringa|2048_cv 3.07 % 3.07 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3204846 ns 3204846 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3165198 ns 3165198 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 130570 ns 130570 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 4.07 % 4.07 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3332883 ns 3332883 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3326577 ns 3326577 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 66320 ns 66320 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 1.99 % 1.99 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3197797 ns 3197797 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3180617 ns 3180617 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 109562 ns 109562 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 3.43 % 3.43 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3669143 ns 3669143 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3685714 ns 3685714 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 54174 ns 54174 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.48 % 1.48 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 2854 ns 2854 ns 10
|
|
Build func full name std::string;_median 2816 ns 2816 ns 10
|
|
Build func full name std::string;_stddev 165 ns 165 ns 10
|
|
Build func full name std::string;_cv 5.76 % 5.76 % 10
|
|
Build func full name std::string 1;_mean 2988 ns 2988 ns 10
|
|
Build func full name std::string 1;_median 2971 ns 2971 ns 10
|
|
Build func full name std::string 1;_stddev 124 ns 124 ns 10
|
|
Build func full name std::string 1;_cv 4.15 % 4.15 % 10
|
|
Build func full name std::stream;_mean 6634 ns 6634 ns 10
|
|
Build func full name std::stream;_median 6563 ns 6563 ns 10
|
|
Build func full name std::stream;_stddev 398 ns 398 ns 10
|
|
Build func full name std::stream;_cv 6.01 % 6.01 % 10
|
|
Build func full name stringa;_mean 1333 ns 1333 ns 10
|
|
Build func full name stringa;_median 1339 ns 1339 ns 10
|
|
Build func full name stringa;_stddev 77.7 ns 77.7 ns 10
|
|
Build func full name stringa;_cv 5.83 % 5.83 % 10
|
|
Build func full name stringa 1;_mean 1547 ns 1547 ns 10
|
|
Build func full name stringa 1;_median 1558 ns 1558 ns 10
|
|
Build func full name stringa 1;_stddev 73.9 ns 73.9 ns 10
|
|
Build func full name stringa 1;_cv 4.77 % 4.77 % 10
|