mirror of https://github.com/orefkov/simstr.git
891 lines
133 KiB
Plaintext
891 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 947 ns 947 ns 10
|
|
Concat std::string and number by std to std::string_median 924 ns 924 ns 10
|
|
Concat std::string and number by std to std::string_stddev 73.2 ns 73.2 ns 10
|
|
Concat std::string and number by std to std::string_cv 7.73 % 7.73 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 409 ns 409 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 406 ns 406 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 4.77 % 4.77 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 225 ns 225 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 23.9 ns 23.9 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 10.60 % 10.60 % 10
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 221 ns 221 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 16.1 ns 16.1 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 7.25 % 7.25 % 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 1426 ns 1426 ns 10
|
|
Concat std::string and format hex number and literal to std::string_median 1439 ns 1439 ns 10
|
|
Concat std::string and format hex number and literal to std::string_stddev 54.3 ns 54.3 ns 10
|
|
Concat std::string and format hex number and literal to std::string_cv 3.81 % 3.81 % 10
|
|
std::format std::string and hex number by literal to std::string_mean 1603 ns 1603 ns 10
|
|
std::format std::string and hex number by literal to std::string_median 1584 ns 1584 ns 10
|
|
std::format std::string and hex number by literal to std::string_stddev 58.6 ns 58.6 ns 10
|
|
std::format std::string and hex number by literal to std::string_cv 3.65 % 3.65 % 10
|
|
Concat std::string and std::tochars and string to std::string_mean 669 ns 669 ns 10
|
|
Concat std::string and std::tochars and string to std::string_median 662 ns 662 ns 10
|
|
Concat std::string and std::tochars and string to std::string_stddev 39.5 ns 39.5 ns 10
|
|
Concat std::string and std::tochars and string to std::string_cv 5.90 % 5.90 % 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 414 ns 414 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 408 ns 408 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 26.3 ns 26.3 ns 10
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 6.35 % 6.35 % 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 208 ns 208 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 10.1 ns 10.1 ns 10
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.84 % 4.84 % 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 219 ns 219 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 217 ns 217 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 14.4 ns 14.4 ns 10
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 6.60 % 6.60 % 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 464 ns 464 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 452 ns 452 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 43.8 ns 43.8 ns 10
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 9.44 % 9.44 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 97.5 ns 97.5 ns 10
|
|
Concat std::string by std to std::string_median 96.6 ns 96.6 ns 10
|
|
Concat std::string by std to std::string_stddev 6.77 ns 6.77 ns 10
|
|
Concat std::string by std to std::string_cv 6.94 % 6.94 % 10
|
|
Concat std::string by StrExpr to std::string_mean 110 ns 110 ns 10
|
|
Concat std::string by StrExpr to std::string_median 110 ns 110 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 8.38 ns 8.38 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 7.64 % 7.64 % 10
|
|
Concat stringa by StrExpr to stringa_mean 96.3 ns 96.3 ns 10
|
|
Concat stringa by StrExpr to stringa_median 95.7 ns 95.7 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 3.61 ns 3.64 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 3.75 % 3.78 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 190 ns 190 ns 10
|
|
Find concat three std::string_median 189 ns 189 ns 10
|
|
Find concat three std::string_stddev 13.0 ns 13.0 ns 10
|
|
Find concat three std::string_cv 6.84 % 6.84 % 10
|
|
Find concat three strexpr_mean 106 ns 106 ns 10
|
|
Find concat three strexpr_median 105 ns 105 ns 10
|
|
Find concat three strexpr_stddev 3.03 ns 3.03 ns 10
|
|
Find concat three strexpr_cv 2.86 % 2.86 % 10
|
|
Find concat three simstr_mean 76.2 ns 76.2 ns 10
|
|
Find concat three simstr_median 75.9 ns 75.9 ns 10
|
|
Find concat three simstr_stddev 2.70 ns 2.70 ns 10
|
|
Find concat three simstr_cv 3.54 % 3.54 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 18.1 ns 18.1 ns 10
|
|
BuildTypeNameStr 0/0_median 17.8 ns 17.8 ns 10
|
|
BuildTypeNameStr 0/0_stddev 1.52 ns 1.52 ns 10
|
|
BuildTypeNameStr 0/0_cv 8.40 % 8.40 % 10
|
|
BuildTypeNameExp 0/0_mean 17.7 ns 17.7 ns 10
|
|
BuildTypeNameExp 0/0_median 17.7 ns 17.7 ns 10
|
|
BuildTypeNameExp 0/0_stddev 1.21 ns 1.21 ns 10
|
|
BuildTypeNameExp 0/0_cv 6.83 % 6.83 % 10
|
|
BuildTypeNameSim 0/0_mean 16.7 ns 16.7 ns 10
|
|
BuildTypeNameSim 0/0_median 16.7 ns 16.7 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.443 ns 0.443 ns 10
|
|
BuildTypeNameSim 0/0_cv 2.65 % 2.65 % 10
|
|
BuildTypeNameStr 10/10_mean 282 ns 282 ns 10
|
|
BuildTypeNameStr 10/10_median 281 ns 281 ns 10
|
|
BuildTypeNameStr 10/10_stddev 24.1 ns 24.1 ns 10
|
|
BuildTypeNameStr 10/10_cv 8.54 % 8.54 % 10
|
|
BuildTypeNameExp 10/10_mean 99.9 ns 99.9 ns 10
|
|
BuildTypeNameExp 10/10_median 101 ns 101 ns 10
|
|
BuildTypeNameExp 10/10_stddev 5.05 ns 5.06 ns 10
|
|
BuildTypeNameExp 10/10_cv 5.05 % 5.06 % 10
|
|
BuildTypeNameSim 10/10_mean 69.9 ns 69.9 ns 10
|
|
BuildTypeNameSim 10/10_median 68.3 ns 68.3 ns 10
|
|
BuildTypeNameSim 10/10_stddev 4.43 ns 4.43 ns 10
|
|
BuildTypeNameSim 10/10_cv 6.34 % 6.34 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 475 ns 475 ns 10
|
|
Concat with replace str_median 478 ns 478 ns 10
|
|
Concat with replace str_stddev 29.4 ns 29.4 ns 10
|
|
Concat with replace str_cv 6.18 % 6.18 % 10
|
|
Concat with replace exp_mean 256 ns 256 ns 10
|
|
Concat with replace exp_median 255 ns 255 ns 10
|
|
Concat with replace exp_stddev 14.0 ns 14.0 ns 10
|
|
Concat with replace exp_cv 5.45 % 5.48 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.16 ns 2.16 ns 10
|
|
std::string e;_median 2.15 ns 2.15 ns 10
|
|
std::string e;_stddev 0.038 ns 0.038 ns 10
|
|
std::string e;_cv 1.76 % 1.76 % 10
|
|
std::string_view e;_mean 0.973 ns 0.973 ns 10
|
|
std::string_view e;_median 0.972 ns 0.972 ns 10
|
|
std::string_view e;_stddev 0.018 ns 0.018 ns 10
|
|
std::string_view e;_cv 1.87 % 1.87 % 10
|
|
ssa e;_mean 0.942 ns 0.942 ns 10
|
|
ssa e;_median 0.939 ns 0.939 ns 10
|
|
ssa e;_stddev 0.008 ns 0.008 ns 10
|
|
ssa e;_cv 0.87 % 0.87 % 10
|
|
stringa e;_mean 2.17 ns 2.17 ns 10
|
|
stringa e;_median 2.16 ns 2.16 ns 10
|
|
stringa e;_stddev 0.042 ns 0.042 ns 10
|
|
stringa e;_cv 1.95 % 1.95 % 10
|
|
lstringa<20> e;_mean 2.22 ns 2.22 ns 10
|
|
lstringa<20> e;_median 2.21 ns 2.21 ns 10
|
|
lstringa<20> e;_stddev 0.057 ns 0.057 ns 10
|
|
lstringa<20> e;_cv 2.57 % 2.57 % 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.30 ns 2.30 ns 10
|
|
std::string e = "Test text";_stddev 0.092 ns 0.092 ns 10
|
|
std::string e = "Test text";_cv 3.94 % 3.94 % 10
|
|
std::string_view e = "Test text";_mean 1.25 ns 1.25 ns 10
|
|
std::string_view e = "Test text";_median 1.25 ns 1.25 ns 10
|
|
std::string_view e = "Test text";_stddev 0.034 ns 0.034 ns 10
|
|
std::string_view e = "Test text";_cv 2.74 % 2.74 % 10
|
|
ssa e = "Test text";_mean 0.999 ns 0.999 ns 10
|
|
ssa e = "Test text";_median 0.994 ns 0.994 ns 10
|
|
ssa e = "Test text";_stddev 0.035 ns 0.035 ns 10
|
|
ssa e = "Test text";_cv 3.50 % 3.50 % 10
|
|
stringa e = "Test text";_mean 2.19 ns 2.19 ns 10
|
|
stringa e = "Test text";_median 2.18 ns 2.18 ns 10
|
|
stringa e = "Test text";_stddev 0.045 ns 0.045 ns 10
|
|
stringa e = "Test text";_cv 2.04 % 2.04 % 10
|
|
lstringa<20> e = "Test text";_mean 2.67 ns 2.67 ns 10
|
|
lstringa<20> e = "Test text";_median 2.66 ns 2.66 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.047 ns 0.047 ns 10
|
|
lstringa<20> e = "Test text";_cv 1.77 % 1.77 % 10
|
|
lstringa<40> e = "Test text";_mean 2.82 ns 2.82 ns 10
|
|
lstringa<40> e = "Test text";_median 2.77 ns 2.77 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.145 ns 0.145 ns 10
|
|
lstringa<40> e = "Test text";_cv 5.13 % 5.13 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 16.2 ns 16.2 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 16.1 ns 16.1 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 0.433 ns 0.433 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 2.67 % 2.67 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.27 ns 1.27 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 1.28 ns 1.28 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.042 ns 0.042 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 3.32 % 3.32 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 0.995 ns 0.995 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 1.00 ns 1.00 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.023 ns 0.023 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 2.31 % 2.31 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 2.24 ns 2.24 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 2.23 ns 2.23 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.066 ns 0.066 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 2.95 % 2.95 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 16.5 ns 16.5 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 16.5 ns 16.5 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.310 ns 0.310 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.88 % 1.88 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.96 ns 2.96 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.96 ns 2.96 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.069 ns 0.069 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.34 % 2.34 % 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.22 ns 2.22 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.038 ns 0.038 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 1.71 % 1.71 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 1.23 ns 1.23 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 1.22 ns 1.22 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.023 ns 0.023 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.84 % 1.84 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 1.23 ns 1.23 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.019 ns 0.019 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 1.56 % 1.56 % 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.54 ns 2.54 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.032 ns 0.032 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 1.27 % 1.27 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 15.3 ns 15.3 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 15.0 ns 15.0 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.965 ns 0.965 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 6.31 % 6.31 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 14.6 ns 14.6 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 14.6 ns 14.6 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.848 ns 0.848 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 5.80 % 5.80 % 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 35.5 ns 35.5 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 35.0 ns 35.0 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.15 ns 2.15 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 6.07 % 6.07 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.24 ns 1.24 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.22 ns 1.22 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.035 ns 0.035 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.83 % 2.83 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.02 ns 1.02 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 1.02 ns 1.02 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.041 ns 0.041 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 4.06 % 4.06 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.21 ns 2.21 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.21 ns 2.21 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.036 ns 0.036 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.62 % 1.62 % 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.2 ns 16.2 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.657 ns 0.657 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 4.03 % 4.03 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 14.3 ns 14.3 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 14.4 ns 14.4 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.394 ns 0.390 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.75 % 2.73 % 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.7 ns 45.7 ns 10
|
|
std::string::find;_median 45.7 ns 45.7 ns 10
|
|
std::string::find;_stddev 0.933 ns 0.933 ns 10
|
|
std::string::find;_cv 2.04 % 2.04 % 10
|
|
std::string_view::find;_mean 53.5 ns 53.5 ns 10
|
|
std::string_view::find;_median 53.3 ns 53.3 ns 10
|
|
std::string_view::find;_stddev 2.49 ns 2.50 ns 10
|
|
std::string_view::find;_cv 4.66 % 4.68 % 10
|
|
ssa::find;_mean 51.0 ns 51.0 ns 10
|
|
ssa::find;_median 51.1 ns 51.1 ns 10
|
|
ssa::find;_stddev 1.53 ns 1.53 ns 10
|
|
ssa::find;_cv 3.00 % 3.00 % 10
|
|
stringa::find;_mean 51.7 ns 51.7 ns 10
|
|
stringa::find;_median 51.9 ns 51.9 ns 10
|
|
stringa::find;_stddev 0.987 ns 0.987 ns 10
|
|
stringa::find;_cv 1.91 % 1.91 % 10
|
|
lstringa<20>::find;_mean 44.5 ns 44.5 ns 10
|
|
lstringa<20>::find;_median 44.6 ns 44.6 ns 10
|
|
lstringa<20>::find;_stddev 1.25 ns 1.25 ns 10
|
|
lstringa<20>::find;_cv 2.81 % 2.81 % 10
|
|
lstringa<40>::find;_mean 44.2 ns 44.2 ns 10
|
|
lstringa<40>::find;_median 44.2 ns 44.2 ns 10
|
|
lstringa<40>::find;_stddev 1.60 ns 1.60 ns 10
|
|
lstringa<40>::find;_cv 3.63 % 3.63 % 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 36.2 ns 36.2 ns 10
|
|
std::string copy{str_with_len_N};/15_median 36.3 ns 36.3 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 1.31 ns 1.31 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 3.61 % 3.61 % 10
|
|
std::string copy{str_with_len_N};/16_mean 36.3 ns 36.3 ns 10
|
|
std::string copy{str_with_len_N};/16_median 35.6 ns 35.6 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 1.88 ns 1.88 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 5.20 % 5.20 % 10
|
|
std::string copy{str_with_len_N};/23_mean 35.6 ns 35.6 ns 10
|
|
std::string copy{str_with_len_N};/23_median 35.1 ns 35.1 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.90 % 3.90 % 10
|
|
std::string copy{str_with_len_N};/24_mean 36.4 ns 36.4 ns 10
|
|
std::string copy{str_with_len_N};/24_median 36.3 ns 36.3 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 0.706 ns 0.706 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 1.94 % 1.94 % 10
|
|
std::string copy{str_with_len_N};/32_mean 40.9 ns 40.9 ns 10
|
|
std::string copy{str_with_len_N};/32_median 40.1 ns 40.1 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 2.03 ns 2.04 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 4.97 % 5.00 % 10
|
|
std::string copy{str_with_len_N};/64_mean 40.6 ns 40.6 ns 10
|
|
std::string copy{str_with_len_N};/64_median 40.9 ns 40.9 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 1.95 ns 1.95 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 4.82 % 4.82 % 10
|
|
std::string copy{str_with_len_N};/128_mean 42.3 ns 42.3 ns 10
|
|
std::string copy{str_with_len_N};/128_median 41.3 ns 41.3 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 5.32 ns 5.32 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 12.58 % 12.58 % 10
|
|
std::string copy{str_with_len_N};/256_mean 62.6 ns 62.6 ns 10
|
|
std::string copy{str_with_len_N};/256_median 65.7 ns 65.7 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 8.79 ns 8.79 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 14.03 % 14.03 % 10
|
|
std::string copy{str_with_len_N};/512_mean 62.1 ns 62.1 ns 10
|
|
std::string copy{str_with_len_N};/512_median 63.1 ns 63.1 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 8.65 ns 8.65 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 13.93 % 13.93 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 66.3 ns 66.3 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 66.8 ns 66.8 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 9.19 ns 9.19 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 13.85 % 13.85 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 99.3 ns 99.3 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 101 ns 101 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 13.1 ns 13.1 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 13.17 % 13.17 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 153 ns 153 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 158 ns 158 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 10.3 ns 10.3 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 6.69 % 6.69 % 10
|
|
stringa copy{str_with_len_N};/15_mean 2.55 ns 2.55 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.071 ns 0.071 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 2.78 % 2.78 % 10
|
|
stringa copy{str_with_len_N};/16_mean 4.83 ns 4.83 ns 10
|
|
stringa copy{str_with_len_N};/16_median 4.80 ns 4.80 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.079 ns 0.079 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 1.64 % 1.64 % 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.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.089 ns 0.089 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 1.84 % 1.84 % 10
|
|
stringa copy{str_with_len_N};/24_mean 4.97 ns 4.97 ns 10
|
|
stringa copy{str_with_len_N};/24_median 4.91 ns 4.91 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.136 ns 0.136 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 2.73 % 2.73 % 10
|
|
stringa copy{str_with_len_N};/32_mean 4.92 ns 4.92 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.113 ns 0.113 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 2.30 % 2.30 % 10
|
|
stringa copy{str_with_len_N};/64_mean 4.85 ns 4.85 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.108 ns 0.108 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 2.23 % 2.23 % 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.85 ns 4.85 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.078 ns 0.078 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 1.60 % 1.60 % 10
|
|
stringa copy{str_with_len_N};/256_mean 4.89 ns 4.89 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.091 ns 0.091 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.86 % 1.86 % 10
|
|
stringa copy{str_with_len_N};/512_mean 4.84 ns 4.84 ns 10
|
|
stringa copy{str_with_len_N};/512_median 4.81 ns 4.81 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.107 ns 0.107 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 2.20 % 2.20 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 4.89 ns 4.89 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 4.86 ns 4.86 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.207 ns 0.207 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 4.23 % 4.23 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 4.88 ns 4.88 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 4.86 ns 4.86 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.134 ns 0.134 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 2.76 % 2.76 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 4.93 ns 4.93 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 4.92 ns 4.92 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.139 ns 0.139 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 2.82 % 2.82 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 14.5 ns 14.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 14.6 ns 14.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.809 ns 0.809 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 5.59 % 5.59 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 14.2 ns 14.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 14.1 ns 14.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.716 ns 0.716 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 5.06 % 5.06 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 29.5 ns 29.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 29.5 ns 29.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 2.05 ns 2.05 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 6.94 % 6.94 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 30.1 ns 30.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 29.4 ns 29.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 2.16 ns 2.16 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 7.18 % 7.18 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 32.1 ns 32.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 31.8 ns 31.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.07 ns 1.07 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 3.33 % 3.33 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 32.6 ns 32.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 32.5 ns 32.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 1.03 ns 1.03 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 3.17 % 3.17 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 37.0 ns 37.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 34.9 ns 34.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 6.99 ns 6.99 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 18.88 % 18.88 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 55.7 ns 55.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 59.9 ns 59.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 9.51 ns 9.51 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 17.08 % 17.08 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 55.7 ns 55.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 57.3 ns 57.3 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 9.28 ns 9.28 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 16.67 % 16.67 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 61.8 ns 61.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 63.4 ns 63.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 8.00 ns 8.00 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 12.94 % 12.94 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 92.0 ns 92.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 92.6 ns 92.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 12.0 ns 12.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 13.08 % 13.08 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 142 ns 142 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 143 ns 143 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 6.13 ns 6.13 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 4.32 % 4.32 % 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.0 ns 14.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 1.21 ns 1.21 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 8.42 % 8.42 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 14.5 ns 14.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 14.4 ns 14.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.600 ns 0.600 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 4.15 % 4.15 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 15.3 ns 15.3 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 15.6 ns 15.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 1.25 ns 1.25 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 8.15 % 8.15 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 14.6 ns 14.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 14.5 ns 14.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.938 ns 0.938 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 6.40 % 6.40 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 18.1 ns 18.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 18.1 ns 18.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.940 ns 0.940 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 5.21 % 5.21 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 17.6 ns 17.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 17.7 ns 17.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.458 ns 0.458 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.60 % 2.60 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 18.2 ns 18.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 18.1 ns 18.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.654 ns 0.654 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 3.58 % 3.58 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 19.8 ns 19.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 19.8 ns 19.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.843 ns 0.843 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 4.25 % 4.25 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 22.1 ns 22.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 22.0 ns 22.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 1.09 ns 1.09 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 4.93 % 4.93 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 62.6 ns 62.6 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 63.4 ns 63.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 8.04 ns 8.04 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 12.84 % 12.84 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 92.1 ns 92.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 94.1 ns 94.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 11.7 ns 11.7 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 12.70 % 12.70 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 147 ns 147 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 151 ns 151 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 10.5 ns 10.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 7.14 % 7.14 % 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 71.1 ns 71.1 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 70.7 ns 70.7 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.42 ns 1.42 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.99 % 1.99 % 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 26.9 ns 26.9 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 1.12 ns 1.12 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 4.09 % 4.09 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 19.1 ns 19.1 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.814 ns 0.814 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.26 % 4.26 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.2 ns 17.2 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.572 ns 0.572 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.33 % 3.33 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 17.2 ns 17.2 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 17.0 ns 17.0 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.749 ns 0.749 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.36 % 4.36 % 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.9 ns 54.9 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 54.9 ns 54.9 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.713 ns 0.713 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.30 % 1.30 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 28.6 ns 28.6 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 28.5 ns 28.5 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.387 ns 0.387 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.35 % 1.35 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 17.5 ns 17.5 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 17.5 ns 17.5 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.405 ns 0.405 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.32 % 2.32 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 17.2 ns 17.2 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 16.8 ns 16.8 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.14 ns 1.14 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 6.64 % 6.64 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 16.1 ns 16.1 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.405 ns 0.405 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.51 % 2.51 % 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.8 ns 77.8 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 77.7 ns 77.7 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.60 ns 1.60 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.06 % 2.06 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 24.0 ns 24.0 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.204 ns 0.204 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 0.85 % 0.85 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 22.7 ns 22.7 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 22.6 ns 22.6 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.684 ns 0.684 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 3.01 % 3.01 % 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 207 ns 207 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 207 ns 207 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 8.89 ns 8.89 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 4.30 % 4.30 % 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 107 ns 107 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.78 ns 1.78 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.65 % 1.65 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 42.2 ns 42.2 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 42.1 ns 42.1 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.830 ns 0.830 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.97 % 1.97 % 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 4462 ns 4462 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 4448 ns 4448 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 133 ns 133 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.97 % 2.97 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 629 ns 629 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 630 ns 630 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 30.1 ns 30.1 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 4.79 % 4.79 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 780 ns 780 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 767 ns 767 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 48.3 ns 48.3 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 6.18 % 6.18 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 625 ns 625 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 610 ns 610 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 66.9 ns 66.9 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 10.70 % 10.70 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 499 ns 499 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 469 ns 469 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 71.5 ns 71.5 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 14.33 % 14.33 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 395 ns 395 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 393 ns 393 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 5.71 ns 5.71 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.44 % 1.44 % 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 4589 ns 4589 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4499 ns 4499 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 218 ns 218 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.75 % 4.75 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1962 ns 1962 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1973 ns 1973 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 71.1 ns 71.1 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.62 % 3.62 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 905 ns 905 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 884 ns 884 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 67.1 ns 67.1 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.41 % 7.41 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 768 ns 768 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 745 ns 745 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 95.2 ns 95.2 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 12.40 % 12.40 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 648 ns 648 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 644 ns 644 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 52.9 ns 52.9 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 8.18 % 8.18 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 533 ns 533 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 539 ns 539 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 29.8 ns 29.8 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.60 % 5.60 % 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 225107 ns 225107 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 222971 ns 222971 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 7206 ns 7206 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.20 % 3.20 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 105312 ns 105312 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 104105 ns 104105 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 7466 ns 7466 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.09 % 7.09 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 43046 ns 43046 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 42951 ns 42951 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2686 ns 2686 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.24 % 6.24 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 39544 ns 39549 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 39142 ns 39142 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1926 ns 1923 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.87 % 4.86 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 38237 ns 38237 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 37844 ns 37844 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1811 ns 1811 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.74 % 4.74 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 38420 ns 38420 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38690 ns 38690 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1960 ns 1960 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.10 % 5.10 % 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 4614 ns 4614 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 4596 ns 4596 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 104 ns 104 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.25 % 2.25 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 2454 ns 2454 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 2459 ns 2459 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 95.4 ns 95.4 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 3.89 % 3.89 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1218 ns 1218 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 1230 ns 1230 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 72.6 ns 72.6 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 5.96 % 5.96 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1105 ns 1105 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 1120 ns 1120 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 42.5 ns 42.5 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.85 % 3.85 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 945 ns 945 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 937 ns 937 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 43.9 ns 43.9 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.64 % 4.64 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 897 ns 897 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 913 ns 913 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 49.3 ns 49.3 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 5.49 % 5.49 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 6454 ns 6454 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 6441 ns 6441 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 308 ns 308 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 4.77 % 4.77 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1599 ns 1599 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1587 ns 1587 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 60.1 ns 60.1 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.76 % 3.76 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2891 ns 2891 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2902 ns 2902 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 71.1 ns 71.1 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.46 % 2.46 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 2003 ns 2003 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 2004 ns 2004 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 67.1 ns 67.1 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 3.35 % 3.35 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 3067 ns 3067 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 3072 ns 3072 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 112 ns 112 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 3.65 % 3.65 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 2448 ns 2448 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 2446 ns 2446 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 47.9 ns 47.3 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.96 % 1.93 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 591 ns 591 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 591 ns 591 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 30.7 ns 30.7 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 5.20 % 5.20 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 364 ns 364 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 357 ns 357 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 20.8 ns 20.8 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 5.72 % 5.73 % 10
|
|
stringa str = "test = " + k + " times";_mean 565 ns 565 ns 10
|
|
stringa str = "test = " + k + " times";_median 569 ns 569 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 27.7 ns 27.7 ns 10
|
|
stringa str = "test = " + k + " times";_cv 4.91 % 4.91 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 637 ns 637 ns 10
|
|
std::string::find + substr + std::strtol_median 625 ns 625 ns 10
|
|
std::string::find + substr + std::strtol_stddev 33.0 ns 33.0 ns 10
|
|
std::string::find + substr + std::strtol_cv 5.18 % 5.18 % 10
|
|
ssa::splitter + ssa::as_int_mean 291 ns 291 ns 10
|
|
ssa::splitter + ssa::as_int_median 288 ns 288 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 15.5 ns 15.5 ns 10
|
|
ssa::splitter + ssa::as_int_cv 5.33 % 5.33 % 10
|
|
ssa::splitf + functor_mean 324 ns 324 ns 10
|
|
ssa::splitf + functor_median 323 ns 323 ns 10
|
|
ssa::splitf + functor_stddev 9.71 ns 9.71 ns 10
|
|
ssa::splitf + functor_cv 3.00 % 3.00 % 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 3008 ns 3008 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 3026 ns 3026 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 129 ns 129 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 4.28 % 4.28 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 4019 ns 4019 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 3978 ns 3978 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 205 ns 205 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 5.11 % 5.11 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 3001 ns 3001 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 2990 ns 2990 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 158 ns 158 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 5.26 % 5.26 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 3241 ns 3241 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 3248 ns 3248 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 59.6 ns 59.6 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.84 % 1.84 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 2783 ns 2783 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 2760 ns 2760 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 109 ns 109 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 3.91 % 3.91 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 2521 ns 2521 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 2522 ns 2522 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 81.7 ns 81.7 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.24 % 3.24 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 2447 ns 2447 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 2429 ns 2429 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 77.6 ns 77.6 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 3.17 % 3.17 % 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 436 ns 436 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 433 ns 433 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 16.7 ns 16.7 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.82 % 3.82 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 480 ns 480 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 475 ns 475 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 18.0 ns 18.0 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 3.76 % 3.76 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 409 ns 409 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 410 ns 410 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 12.5 ns 12.5 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 3.05 % 3.05 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 396 ns 396 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 396 ns 396 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.74 % 4.74 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 427 ns 427 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 423 ns 423 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 20.5 ns 20.5 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 4.81 % 4.81 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 261 ns 261 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 260 ns 260 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 20.7 ns 20.7 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 7.92 % 7.92 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 299 ns 299 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 297 ns 297 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 12.6 ns 12.6 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 4.22 % 4.22 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 370 ns 370 ns 10
|
|
replace bb to ---- in std::string|64_median 372 ns 372 ns 10
|
|
replace bb to ---- in std::string|64_stddev 11.1 ns 11.1 ns 10
|
|
replace bb to ---- in std::string|64_cv 2.99 % 2.99 % 10
|
|
replace bb to ---- in std::string|256_mean 1328 ns 1328 ns 10
|
|
replace bb to ---- in std::string|256_median 1317 ns 1317 ns 10
|
|
replace bb to ---- in std::string|256_stddev 54.1 ns 54.1 ns 10
|
|
replace bb to ---- in std::string|256_cv 4.07 % 4.07 % 10
|
|
replace bb to ---- in std::string|512_mean 2633 ns 2633 ns 10
|
|
replace bb to ---- in std::string|512_median 2612 ns 2612 ns 10
|
|
replace bb to ---- in std::string|512_stddev 94.2 ns 94.2 ns 10
|
|
replace bb to ---- in std::string|512_cv 3.58 % 3.58 % 10
|
|
replace bb to ---- in std::string|1024_mean 5569 ns 5569 ns 10
|
|
replace bb to ---- in std::string|1024_median 5605 ns 5605 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 321 ns 321 ns 10
|
|
replace bb to ---- in std::string|1024_cv 5.76 % 5.76 % 10
|
|
replace bb to ---- in std::string|2048_mean 12248 ns 12248 ns 10
|
|
replace bb to ---- in std::string|2048_median 12198 ns 12198 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 434 ns 434 ns 10
|
|
replace bb to ---- in std::string|2048_cv 3.54 % 3.54 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 298 ns 298 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 296 ns 296 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 9.58 ns 9.58 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 3.21 % 3.21 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 1121 ns 1121 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 1122 ns 1122 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 73.6 ns 73.6 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 6.56 % 6.56 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 2117 ns 2117 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 2124 ns 2124 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 106 ns 106 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 5.00 % 5.00 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 3949 ns 3949 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 3960 ns 3960 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 92.0 ns 92.0 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.33 % 2.33 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 7688 ns 7688 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 7720 ns 7720 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 343 ns 343 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 4.46 % 4.46 % 10
|
|
replace bb to ---- by init stringa|64_mean 204 ns 204 ns 10
|
|
replace bb to ---- by init stringa|64_median 201 ns 201 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 7.83 ns 7.83 ns 10
|
|
replace bb to ---- by init stringa|64_cv 3.83 % 3.83 % 10
|
|
replace bb to ---- by init stringa|256_mean 730 ns 730 ns 10
|
|
replace bb to ---- by init stringa|256_median 731 ns 731 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 28.8 ns 28.8 ns 10
|
|
replace bb to ---- by init stringa|256_cv 3.95 % 3.95 % 10
|
|
replace bb to ---- by init stringa|512_mean 1709 ns 1709 ns 10
|
|
replace bb to ---- by init stringa|512_median 1704 ns 1704 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 71.5 ns 71.5 ns 10
|
|
replace bb to ---- by init stringa|512_cv 4.19 % 4.19 % 10
|
|
replace bb to ---- by init stringa|1024_mean 3566 ns 3566 ns 10
|
|
replace bb to ---- by init stringa|1024_median 3553 ns 3553 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 129 ns 129 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 3.61 % 3.61 % 10
|
|
replace bb to ---- by init stringa|2048_mean 7174 ns 7174 ns 10
|
|
replace bb to ---- by init stringa|2048_median 7203 ns 7203 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 190 ns 190 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 2.65 % 2.65 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 262 ns 262 ns 10
|
|
replace bb to -- in std::string|64_median 262 ns 262 ns 10
|
|
replace bb to -- in std::string|64_stddev 8.44 ns 8.44 ns 10
|
|
replace bb to -- in std::string|64_cv 3.22 % 3.22 % 10
|
|
replace bb to -- in std::string|256_mean 964 ns 964 ns 10
|
|
replace bb to -- in std::string|256_median 962 ns 962 ns 10
|
|
replace bb to -- in std::string|256_stddev 42.4 ns 42.4 ns 10
|
|
replace bb to -- in std::string|256_cv 4.40 % 4.40 % 10
|
|
replace bb to -- in std::string|512_mean 1891 ns 1891 ns 10
|
|
replace bb to -- in std::string|512_median 1891 ns 1891 ns 10
|
|
replace bb to -- in std::string|512_stddev 74.6 ns 74.6 ns 10
|
|
replace bb to -- in std::string|512_cv 3.95 % 3.95 % 10
|
|
replace bb to -- in std::string|1024_mean 3703 ns 3703 ns 10
|
|
replace bb to -- in std::string|1024_median 3751 ns 3751 ns 10
|
|
replace bb to -- in std::string|1024_stddev 134 ns 134 ns 10
|
|
replace bb to -- in std::string|1024_cv 3.61 % 3.61 % 10
|
|
replace bb to -- in std::string|2048_mean 7154 ns 7154 ns 10
|
|
replace bb to -- in std::string|2048_median 6991 ns 6991 ns 10
|
|
replace bb to -- in std::string|2048_stddev 341 ns 341 ns 10
|
|
replace bb to -- in std::string|2048_cv 4.77 % 4.77 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 223 ns 223 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 219 ns 219 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 9.41 ns 9.41 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 4.22 % 4.22 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 775 ns 775 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 779 ns 779 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 22.7 ns 22.7 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 2.93 % 2.93 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 1462 ns 1462 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 1441 ns 1441 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 69.1 ns 69.1 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 4.72 % 4.72 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 2825 ns 2825 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 2804 ns 2804 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 66.7 ns 66.7 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 2.36 % 2.36 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 5495 ns 5495 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 5481 ns 5481 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 185 ns 185 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 3.37 % 3.37 % 10
|
|
replace bb to -- by init stringa|64_mean 181 ns 181 ns 10
|
|
replace bb to -- by init stringa|64_median 182 ns 182 ns 10
|
|
replace bb to -- by init stringa|64_stddev 5.66 ns 5.66 ns 10
|
|
replace bb to -- by init stringa|64_cv 3.13 % 3.13 % 10
|
|
replace bb to -- by init stringa|256_mean 646 ns 646 ns 10
|
|
replace bb to -- by init stringa|256_median 651 ns 651 ns 10
|
|
replace bb to -- by init stringa|256_stddev 36.4 ns 36.4 ns 10
|
|
replace bb to -- by init stringa|256_cv 5.63 % 5.64 % 10
|
|
replace bb to -- by init stringa|512_mean 1197 ns 1197 ns 10
|
|
replace bb to -- by init stringa|512_median 1177 ns 1177 ns 10
|
|
replace bb to -- by init stringa|512_stddev 78.8 ns 78.8 ns 10
|
|
replace bb to -- by init stringa|512_cv 6.58 % 6.58 % 10
|
|
replace bb to -- by init stringa|1024_mean 2229 ns 2229 ns 10
|
|
replace bb to -- by init stringa|1024_median 2228 ns 2228 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 78.5 ns 78.5 ns 10
|
|
replace bb to -- by init stringa|1024_cv 3.52 % 3.52 % 10
|
|
replace bb to -- by init stringa|2048_mean 4482 ns 4482 ns 10
|
|
replace bb to -- by init stringa|2048_median 4523 ns 4523 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 201 ns 201 ns 10
|
|
replace bb to -- by init stringa|2048_cv 4.50 % 4.50 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3099563 ns 3099563 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3074236 ns 3074236 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 57632 ns 57632 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.86 % 1.86 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3404147 ns 3404147 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3405530 ns 3405530 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 71228 ns 71228 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.09 % 2.09 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3137768 ns 3137768 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3124464 ns 3124464 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 64503 ns 64503 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 2.06 % 2.06 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3690206 ns 3690206 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3667526 ns 3667526 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 107590 ns 107590 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.92 % 2.92 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 2929 ns 2929 ns 10
|
|
Build func full name std::string;_median 2958 ns 2958 ns 10
|
|
Build func full name std::string;_stddev 181 ns 181 ns 10
|
|
Build func full name std::string;_cv 6.18 % 6.18 % 10
|
|
Build func full name std::string 1;_mean 3048 ns 3048 ns 10
|
|
Build func full name std::string 1;_median 3034 ns 3034 ns 10
|
|
Build func full name std::string 1;_stddev 115 ns 115 ns 10
|
|
Build func full name std::string 1;_cv 3.78 % 3.78 % 10
|
|
Build func full name std::stream;_mean 6964 ns 6964 ns 10
|
|
Build func full name std::stream;_median 6961 ns 6961 ns 10
|
|
Build func full name std::stream;_stddev 371 ns 371 ns 10
|
|
Build func full name std::stream;_cv 5.32 % 5.32 % 10
|
|
Build func full name stringa;_mean 1410 ns 1410 ns 10
|
|
Build func full name stringa;_median 1408 ns 1408 ns 10
|
|
Build func full name stringa;_stddev 74.0 ns 74.0 ns 10
|
|
Build func full name stringa;_cv 5.25 % 5.25 % 10
|
|
Build func full name stringa 1;_mean 1605 ns 1605 ns 10
|
|
Build func full name stringa 1;_median 1597 ns 1597 ns 10
|
|
Build func full name stringa 1;_stddev 56.9 ns 56.9 ns 10
|
|
Build func full name stringa 1;_cv 3.54 % 3.54 % 10
|