mirror of https://github.com/orefkov/simstr.git
891 lines
132 KiB
Plaintext
891 lines
132 KiB
Plaintext
2026-01-29T21:42:24+03:00
|
|
Running ./benchStr
|
|
Run on (32 X 2494.22 MHz CPU s)
|
|
CPU Caches:
|
|
L1 Data 32 KiB (x16)
|
|
L1 Instruction 32 KiB (x16)
|
|
L2 Unified 256 KiB (x16)
|
|
L3 Unified 40960 KiB (x1)
|
|
Load Average: 0.00, 0.00, 0.00
|
|
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
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 219 ns 219 ns 10
|
|
Concat std::string and number by std to std::string_median 219 ns 219 ns 10
|
|
Concat std::string and number by std to std::string_stddev 7.64 ns 7.64 ns 10
|
|
Concat std::string and number by std to std::string_cv 3.48 % 3.48 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 105 ns 105 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 106 ns 106 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 3.39 ns 3.39 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 3.22 % 3.22 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 66.3 ns 66.3 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 65.7 ns 65.7 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 5.27 ns 5.27 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 7.95 % 7.95 % 10
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 68.8 ns 68.8 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_median 68.7 ns 68.7 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 2.59 ns 2.59 ns 10
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 3.77 % 3.77 % 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 861 ns 861 ns 10
|
|
Concat std::string and hex number by std to std::string_median 854 ns 854 ns 10
|
|
Concat std::string and hex number by std to std::string_stddev 27.1 ns 27.1 ns 10
|
|
Concat std::string and hex number by std to std::string_cv 3.14 % 3.14 % 10
|
|
Concat std::string and hex number by StrExpr to std::string_mean 86.4 ns 86.4 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_median 86.1 ns 86.1 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_stddev 1.94 ns 1.94 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_cv 2.25 % 2.25 % 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_mean 75.8 ns 75.8 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_median 73.7 ns 73.7 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_stddev 5.87 ns 5.87 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_cv 7.75 % 7.75 % 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_mean 75.0 ns 75.0 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_median 74.7 ns 74.7 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_stddev 2.46 ns 2.46 ns 10
|
|
Concat stringa and hex number by e_concat to simstr::stringa_cv 3.28 % 3.28 % 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_mean 150 ns 150 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_median 149 ns 149 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_stddev 2.62 ns 2.62 ns 10
|
|
Concat stringa and hex number by e_subst to simstr::stringa_cv 1.76 % 1.76 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 45.2 ns 45.2 ns 10
|
|
Concat std::string by std to std::string_median 44.3 ns 44.3 ns 10
|
|
Concat std::string by std to std::string_stddev 2.46 ns 2.46 ns 10
|
|
Concat std::string by std to std::string_cv 5.44 % 5.44 % 10
|
|
Concat std::string by StrExpr to std::string_mean 33.9 ns 33.9 ns 10
|
|
Concat std::string by StrExpr to std::string_median 34.2 ns 34.2 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 1.25 ns 1.25 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 3.70 % 3.70 % 10
|
|
Concat stringa by StrExpr to stringa_mean 29.1 ns 29.1 ns 10
|
|
Concat stringa by StrExpr to stringa_median 29.1 ns 29.1 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 0.746 ns 0.746 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 2.57 % 2.57 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 112 ns 112 ns 10
|
|
Find concat three std::string_median 112 ns 112 ns 10
|
|
Find concat three std::string_stddev 4.77 ns 4.77 ns 10
|
|
Find concat three std::string_cv 4.27 % 4.27 % 10
|
|
Find concat three strexpr_mean 50.6 ns 50.6 ns 10
|
|
Find concat three strexpr_median 48.9 ns 48.9 ns 10
|
|
Find concat three strexpr_stddev 4.38 ns 4.38 ns 10
|
|
Find concat three strexpr_cv 8.65 % 8.65 % 10
|
|
Find concat three simstr_mean 22.8 ns 22.8 ns 10
|
|
Find concat three simstr_median 21.6 ns 21.6 ns 10
|
|
Find concat three simstr_stddev 3.57 ns 3.57 ns 10
|
|
Find concat three simstr_cv 15.69 % 15.69 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 7.17 ns 7.17 ns 10
|
|
BuildTypeNameStr 0/0_median 7.16 ns 7.16 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.171 ns 0.171 ns 10
|
|
BuildTypeNameStr 0/0_cv 2.39 % 2.39 % 10
|
|
BuildTypeNameExp 0/0_mean 6.73 ns 6.73 ns 10
|
|
BuildTypeNameExp 0/0_median 6.73 ns 6.73 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.126 ns 0.126 ns 10
|
|
BuildTypeNameExp 0/0_cv 1.87 % 1.87 % 10
|
|
BuildTypeNameSim 0/0_mean 5.57 ns 5.57 ns 10
|
|
BuildTypeNameSim 0/0_median 5.56 ns 5.56 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.263 ns 0.263 ns 10
|
|
BuildTypeNameSim 0/0_cv 4.72 % 4.72 % 10
|
|
BuildTypeNameStr 10/10_mean 57.2 ns 57.2 ns 10
|
|
BuildTypeNameStr 10/10_median 56.1 ns 56.1 ns 10
|
|
BuildTypeNameStr 10/10_stddev 2.44 ns 2.44 ns 10
|
|
BuildTypeNameStr 10/10_cv 4.25 % 4.25 % 10
|
|
BuildTypeNameExp 10/10_mean 31.1 ns 31.1 ns 10
|
|
BuildTypeNameExp 10/10_median 31.2 ns 31.2 ns 10
|
|
BuildTypeNameExp 10/10_stddev 0.983 ns 0.983 ns 10
|
|
BuildTypeNameExp 10/10_cv 3.16 % 3.16 % 10
|
|
BuildTypeNameSim 10/10_mean 24.7 ns 24.7 ns 10
|
|
BuildTypeNameSim 10/10_median 23.6 ns 23.6 ns 10
|
|
BuildTypeNameSim 10/10_stddev 2.07 ns 2.07 ns 10
|
|
BuildTypeNameSim 10/10_cv 8.41 % 8.41 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 202 ns 202 ns 10
|
|
Concat with replace str_median 199 ns 199 ns 10
|
|
Concat with replace str_stddev 12.0 ns 12.0 ns 10
|
|
Concat with replace str_cv 5.93 % 5.93 % 10
|
|
Concat with replace exp_mean 151 ns 151 ns 10
|
|
Concat with replace exp_median 150 ns 150 ns 10
|
|
Concat with replace exp_stddev 13.4 ns 13.4 ns 10
|
|
Concat with replace exp_cv 8.89 % 8.89 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.16 ns 1.16 ns 10
|
|
std::string e;_median 1.14 ns 1.14 ns 10
|
|
std::string e;_stddev 0.069 ns 0.069 ns 10
|
|
std::string e;_cv 5.95 % 5.95 % 10
|
|
std::string_view e;_mean 0.384 ns 0.384 ns 10
|
|
std::string_view e;_median 0.386 ns 0.386 ns 10
|
|
std::string_view e;_stddev 0.017 ns 0.017 ns 10
|
|
std::string_view e;_cv 4.36 % 4.36 % 10
|
|
ssa e;_mean 0.378 ns 0.378 ns 10
|
|
ssa e;_median 0.375 ns 0.375 ns 10
|
|
ssa e;_stddev 0.016 ns 0.016 ns 10
|
|
ssa e;_cv 4.10 % 4.10 % 10
|
|
stringa e;_mean 0.762 ns 0.762 ns 10
|
|
stringa e;_median 0.738 ns 0.738 ns 10
|
|
stringa e;_stddev 0.049 ns 0.049 ns 10
|
|
stringa e;_cv 6.40 % 6.40 % 10
|
|
lstringa<20> e;_mean 1.14 ns 1.14 ns 10
|
|
lstringa<20> e;_median 1.14 ns 1.14 ns 10
|
|
lstringa<20> e;_stddev 0.037 ns 0.037 ns 10
|
|
lstringa<20> e;_cv 3.27 % 3.27 % 10
|
|
lstringa<40> e;_mean 1.12 ns 1.12 ns 10
|
|
lstringa<40> e;_median 1.12 ns 1.12 ns 10
|
|
lstringa<40> e;_stddev 0.036 ns 0.036 ns 10
|
|
lstringa<40> e;_cv 3.24 % 3.24 % 10
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.84 ns 1.84 ns 10
|
|
std::string e = "Test text";_median 1.83 ns 1.83 ns 10
|
|
std::string e = "Test text";_stddev 0.049 ns 0.049 ns 10
|
|
std::string e = "Test text";_cv 2.68 % 2.68 % 10
|
|
std::string_view e = "Test text";_mean 0.739 ns 0.739 ns 10
|
|
std::string_view e = "Test text";_median 0.729 ns 0.729 ns 10
|
|
std::string_view e = "Test text";_stddev 0.020 ns 0.020 ns 10
|
|
std::string_view e = "Test text";_cv 2.72 % 2.72 % 10
|
|
ssa e = "Test text";_mean 0.369 ns 0.369 ns 10
|
|
ssa e = "Test text";_median 0.366 ns 0.366 ns 10
|
|
ssa e = "Test text";_stddev 0.013 ns 0.013 ns 10
|
|
ssa e = "Test text";_cv 3.47 % 3.47 % 10
|
|
stringa e = "Test text";_mean 1.15 ns 1.15 ns 10
|
|
stringa e = "Test text";_median 1.16 ns 1.16 ns 10
|
|
stringa e = "Test text";_stddev 0.053 ns 0.053 ns 10
|
|
stringa e = "Test text";_cv 4.61 % 4.61 % 10
|
|
lstringa<20> e = "Test text";_mean 1.94 ns 1.94 ns 10
|
|
lstringa<20> e = "Test text";_median 1.92 ns 1.92 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.064 ns 0.064 ns 10
|
|
lstringa<20> e = "Test text";_cv 3.31 % 3.31 % 10
|
|
lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 10
|
|
lstringa<40> e = "Test text";_median 1.87 ns 1.87 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.055 ns 0.055 ns 10
|
|
lstringa<40> e = "Test text";_cv 2.93 % 2.93 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 19.6 ns 19.6 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 19.4 ns 19.4 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 0.396 ns 0.396 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 2.02 % 2.02 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.771 ns 0.771 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 0.755 ns 0.755 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.049 ns 0.049 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 6.32 % 6.32 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 0.382 ns 0.382 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 0.377 ns 0.377 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.022 ns 0.022 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 5.66 % 5.66 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 1.13 ns 1.13 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 1.12 ns 1.12 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.046 ns 0.046 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 4.08 % 4.08 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 24.3 ns 24.3 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 23.9 ns 23.9 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 3.08 ns 3.08 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 12.68 % 12.68 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.60 ns 2.60 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.60 ns 2.60 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.067 ns 0.067 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.56 % 2.56 % 10
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text"; auto c{e};_mean 5.67 ns 5.67 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 5.67 ns 5.67 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.159 ns 0.159 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 2.80 % 2.80 % 10
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.377 ns 0.377 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_median 0.376 ns 0.376 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.24 % 2.24 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 0.387 ns 0.387 ns 10
|
|
ssa e = "Test text"; auto c{e};_median 0.387 ns 0.387 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 2.00 % 2.00 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 1.14 ns 1.14 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 1.14 ns 1.14 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.055 ns 0.055 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 4.80 % 4.80 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.29 ns 4.29 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.26 ns 4.26 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.170 ns 0.170 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 3.97 % 3.97 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.20 ns 4.20 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.20 ns 4.20 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.170 ns 0.170 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 4.05 % 4.05 % 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 21.2 ns 21.2 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 20.3 ns 20.3 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.42 ns 2.42 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 11.40 % 11.40 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.737 ns 0.737 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.728 ns 0.728 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.024 ns 0.024 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.24 % 3.24 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.379 ns 0.379 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.377 ns 0.377 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.016 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 4.14 % 4.14 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.13 ns 1.13 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.13 ns 1.13 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.036 ns 0.036 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 3.20 % 3.20 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 20.7 ns 20.7 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.5 ns 20.5 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.08 ns 1.08 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 5.23 % 5.23 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.48 ns 4.48 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.43 ns 4.43 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.125 ns 0.125 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.79 % 2.79 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 8.53 ns 8.53 ns 10
|
|
std::string::find;_median 8.27 ns 8.27 ns 10
|
|
std::string::find;_stddev 1.14 ns 1.14 ns 10
|
|
std::string::find;_cv 13.40 % 13.40 % 10
|
|
std::string_view::find;_mean 7.92 ns 7.92 ns 10
|
|
std::string_view::find;_median 7.88 ns 7.88 ns 10
|
|
std::string_view::find;_stddev 0.268 ns 0.268 ns 10
|
|
std::string_view::find;_cv 3.38 % 3.38 % 10
|
|
ssa::find;_mean 7.08 ns 7.08 ns 10
|
|
ssa::find;_median 6.99 ns 6.99 ns 10
|
|
ssa::find;_stddev 0.395 ns 0.395 ns 10
|
|
ssa::find;_cv 5.57 % 5.57 % 10
|
|
stringa::find;_mean 7.65 ns 7.65 ns 10
|
|
stringa::find;_median 7.61 ns 7.61 ns 10
|
|
stringa::find;_stddev 0.347 ns 0.347 ns 10
|
|
stringa::find;_cv 4.54 % 4.54 % 10
|
|
lstringa<20>::find;_mean 7.06 ns 7.06 ns 10
|
|
lstringa<20>::find;_median 7.07 ns 7.07 ns 10
|
|
lstringa<20>::find;_stddev 0.276 ns 0.276 ns 10
|
|
lstringa<20>::find;_cv 3.90 % 3.90 % 10
|
|
lstringa<40>::find;_mean 6.79 ns 6.79 ns 10
|
|
lstringa<40>::find;_median 6.70 ns 6.70 ns 10
|
|
lstringa<40>::find;_stddev 0.234 ns 0.234 ns 10
|
|
lstringa<40>::find;_cv 3.45 % 3.45 % 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 4.98 ns 4.98 ns 10
|
|
std::string copy{str_with_len_N};/15_median 4.86 ns 4.86 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 0.463 ns 0.463 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 9.28 % 9.28 % 10
|
|
std::string copy{str_with_len_N};/16_mean 23.5 ns 23.5 ns 10
|
|
std::string copy{str_with_len_N};/16_median 23.1 ns 23.1 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 6.83 % 6.83 % 10
|
|
std::string copy{str_with_len_N};/23_mean 23.1 ns 23.1 ns 10
|
|
std::string copy{str_with_len_N};/23_median 22.8 ns 22.8 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 1.17 ns 1.17 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 5.07 % 5.07 % 10
|
|
std::string copy{str_with_len_N};/24_mean 23.1 ns 23.1 ns 10
|
|
std::string copy{str_with_len_N};/24_median 22.7 ns 22.7 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 1.30 ns 1.30 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 5.62 % 5.62 % 10
|
|
std::string copy{str_with_len_N};/32_mean 25.3 ns 25.3 ns 10
|
|
std::string copy{str_with_len_N};/32_median 24.8 ns 24.8 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 2.23 ns 2.23 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 8.81 % 8.81 % 10
|
|
std::string copy{str_with_len_N};/64_mean 22.7 ns 22.7 ns 10
|
|
std::string copy{str_with_len_N};/64_median 22.4 ns 22.4 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 0.714 ns 0.714 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 3.15 % 3.15 % 10
|
|
std::string copy{str_with_len_N};/128_mean 25.8 ns 25.8 ns 10
|
|
std::string copy{str_with_len_N};/128_median 25.3 ns 25.3 ns 10
|
|
std::string copy{str_with_len_N};/128_stddev 1.81 ns 1.81 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 7.01 % 7.01 % 10
|
|
std::string copy{str_with_len_N};/256_mean 24.6 ns 24.6 ns 10
|
|
std::string copy{str_with_len_N};/256_median 24.4 ns 24.4 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 0.598 ns 0.598 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 2.43 % 2.43 % 10
|
|
std::string copy{str_with_len_N};/512_mean 28.6 ns 28.6 ns 10
|
|
std::string copy{str_with_len_N};/512_median 28.3 ns 28.3 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 0.884 ns 0.884 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 3.09 % 3.09 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 47.0 ns 47.0 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 46.2 ns 46.2 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 1.46 ns 1.46 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 3.11 % 3.11 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 124 ns 124 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 124 ns 124 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 8.58 ns 8.58 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 6.94 % 6.94 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 168 ns 168 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 164 ns 164 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 11.7 ns 11.7 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 7.01 % 7.01 % 10
|
|
stringa copy{str_with_len_N};/15_mean 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/15_stddev 0.023 ns 0.023 ns 10
|
|
stringa copy{str_with_len_N};/15_cv 2.06 % 2.06 % 10
|
|
stringa copy{str_with_len_N};/16_mean 1.11 ns 1.11 ns 10
|
|
stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.020 ns 0.020 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 1.82 % 1.82 % 10
|
|
stringa copy{str_with_len_N};/23_mean 1.12 ns 1.12 ns 10
|
|
stringa copy{str_with_len_N};/23_median 1.11 ns 1.11 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.053 ns 0.053 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 4.72 % 4.72 % 10
|
|
stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/24_median 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 0.228 ns 0.228 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 1.41 % 1.41 % 10
|
|
stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/32_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/32_stddev 0.161 ns 0.161 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 1.00 % 1.00 % 10
|
|
stringa copy{str_with_len_N};/64_mean 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/64_median 15.9 ns 15.9 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.400 ns 0.400 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 2.48 % 2.48 % 10
|
|
stringa copy{str_with_len_N};/128_mean 16.3 ns 16.3 ns 10
|
|
stringa copy{str_with_len_N};/128_median 16.3 ns 16.3 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.312 ns 0.312 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 1.91 % 1.91 % 10
|
|
stringa copy{str_with_len_N};/256_mean 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/256_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/256_stddev 0.202 ns 0.202 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.26 % 1.26 % 10
|
|
stringa copy{str_with_len_N};/512_mean 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/512_median 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.129 ns 0.129 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 0.80 % 0.80 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 16.2 ns 16.2 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 16.2 ns 16.2 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.215 ns 0.215 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 1.33 % 1.33 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 16.2 ns 16.2 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 16.2 ns 16.2 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.230 ns 0.230 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 1.43 % 1.43 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 16.5 ns 16.5 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 16.4 ns 16.4 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.442 ns 0.442 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 2.68 % 2.68 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.72 ns 4.72 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.58 ns 4.58 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.484 ns 0.484 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 10.25 % 10.25 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.56 ns 4.56 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.59 ns 4.59 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.086 ns 0.086 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.88 % 1.88 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.73 ns 4.73 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.59 ns 4.59 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.475 ns 0.475 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 10.05 % 10.05 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 25.6 ns 25.6 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 24.9 ns 24.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 1.86 ns 1.86 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 7.29 % 7.29 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 24.1 ns 24.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 24.0 ns 24.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.967 ns 0.967 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 4.01 % 4.01 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 25.5 ns 25.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 25.2 ns 25.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.977 ns 0.977 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 3.82 % 3.82 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 29.0 ns 29.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 29.0 ns 29.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 3.03 ns 3.03 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 10.44 % 10.44 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 27.2 ns 27.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 27.0 ns 27.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.851 ns 0.851 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 3.13 % 3.13 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 30.4 ns 30.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 29.7 ns 29.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 2.05 ns 2.05 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 6.75 % 6.75 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 105 ns 105 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 105 ns 105 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 17.4 ns 17.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 16.65 % 16.65 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 120 ns 120 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 124 ns 124 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 13.8 ns 13.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 11.51 % 11.51 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 134 ns 134 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 132 ns 132 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 11.0 ns 11.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 8.20 % 8.20 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.93 ns 4.93 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.90 ns 4.90 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.296 ns 0.296 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 6.01 % 6.01 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 5.05 ns 5.05 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 4.97 ns 4.97 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.334 ns 0.334 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 6.61 % 6.61 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 5.29 ns 5.29 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 5.18 ns 5.18 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.438 ns 0.438 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 8.27 % 8.27 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 5.07 ns 5.07 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 4.89 ns 4.89 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.533 ns 0.533 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 10.51 % 10.51 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.54 ns 4.54 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.48 ns 4.48 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.147 ns 0.147 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 3.25 % 3.25 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.08 ns 6.08 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 5.99 ns 5.99 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.258 ns 0.258 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 4.25 % 4.25 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 6.39 ns 6.39 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 6.41 ns 6.41 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.132 ns 0.132 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.07 % 2.07 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 8.42 ns 8.42 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 8.12 ns 8.12 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.746 ns 0.746 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 8.85 % 8.85 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 11.5 ns 11.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 11.4 ns 11.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.398 ns 0.398 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 3.46 % 3.46 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 94.1 ns 94.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 99.1 ns 99.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 10.4 ns 10.4 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 11.10 % 11.10 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 112 ns 112 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 115 ns 115 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 11.1 ns 11.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 9.89 % 9.89 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 129 ns 129 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 128 ns 128 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 9.90 ns 9.90 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 7.69 % 7.69 % 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 26.8 ns 26.8 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.8 ns 26.8 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.657 ns 0.657 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.45 % 2.45 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 15.0 ns 15.0 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 15.0 ns 15.0 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.419 ns 0.419 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.79 % 2.79 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.6 ns 12.6 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.5 ns 12.5 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.332 ns 0.332 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.63 % 2.63 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.6 ns 12.6 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.4 ns 12.4 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.694 ns 0.694 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 5.52 % 5.52 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.3 ns 12.3 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.2 ns 12.2 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.340 ns 0.340 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.78 % 2.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 23.4 ns 23.4 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.2 ns 23.2 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.586 ns 0.586 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.50 % 2.50 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.80 ns 9.80 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.53 ns 9.53 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.691 ns 0.691 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 7.05 % 7.05 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.5 ns 12.5 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.5 ns 12.5 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.229 ns 0.229 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.83 % 1.83 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.6 ns 12.6 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.5 ns 12.5 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.354 ns 0.354 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.81 % 2.81 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.0 ns 13.0 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.6 ns 12.6 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.789 ns 0.789 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 6.06 % 6.06 % 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 29.7 ns 29.7 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.0 ns 29.0 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 2.44 ns 2.44 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 8.22 % 8.22 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.3 ns 18.3 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.3 ns 18.3 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.336 ns 0.336 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.83 % 1.83 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 15.0 ns 15.0 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 15.0 ns 15.0 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.355 ns 0.355 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.36 % 2.36 % 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 64.7 ns 64.7 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 63.7 ns 63.7 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.43 ns 2.43 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.75 % 3.75 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 27.5 ns 27.5 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 26.0 ns 26.0 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 3.09 ns 3.09 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 11.25 % 11.25 % 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 26.1 ns 26.1 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 25.7 ns 25.7 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.987 ns 0.987 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 3.79 % 3.79 % 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 1587 ns 1587 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1593 ns 1593 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 94.3 ns 94.3 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 5.94 % 5.94 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 378 ns 378 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 371 ns 371 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 19.9 ns 19.9 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 5.26 % 5.26 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 402 ns 402 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 400 ns 400 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 23.5 ns 23.5 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 5.86 % 5.86 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 264 ns 264 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 262 ns 262 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 11.1 ns 11.1 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.22 % 4.22 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 257 ns 257 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 257 ns 257 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 15.2 ns 15.2 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.90 % 5.90 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 157 ns 157 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 154 ns 154 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 7.74 ns 7.74 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 4.93 % 4.93 % 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 1441 ns 1441 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1425 ns 1425 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 40.6 ns 40.6 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.81 % 2.81 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1266 ns 1266 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1233 ns 1233 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 98.9 ns 98.9 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 7.81 % 7.81 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 482 ns 482 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 470 ns 470 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 30.8 ns 30.8 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.38 % 6.38 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 366 ns 366 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 349 ns 349 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 38.6 ns 38.6 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 10.54 % 10.54 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 325 ns 325 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 320 ns 320 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 19.7 ns 19.7 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.05 % 6.05 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 235 ns 235 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 233 ns 233 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.61 ns 3.61 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.54 % 1.54 % 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 75359 ns 75359 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 75326 ns 75326 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2344 ns 2344 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.11 % 3.11 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 75620 ns 75620 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 75688 ns 75688 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1479 ns 1479 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.96 % 1.96 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18777 ns 18777 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18725 ns 18725 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 512 ns 512 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.73 % 2.73 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20186 ns 20186 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20050 ns 20050 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2408 ns 2408 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 11.93 % 11.93 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16028 ns 16028 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15991 ns 15991 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 363 ns 363 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.26 % 2.26 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15798 ns 15798 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15807 ns 15807 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 472 ns 472 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.99 % 2.99 % 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 1439 ns 1439 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1434 ns 1434 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 41.3 ns 41.3 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.87 % 2.87 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1398 ns 1398 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 1402 ns 1402 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 49.6 ns 49.6 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 540 ns 540 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 525 ns 525 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 44.6 ns 44.6 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 8.26 % 8.26 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 465 ns 465 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 466 ns 466 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 14.6 ns 14.6 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.14 % 3.14 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 398 ns 398 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 397 ns 397 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 19.7 ns 19.7 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.94 % 4.94 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 323 ns 323 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 308 ns 308 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 34.8 ns 34.8 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 10.77 % 10.77 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3053 ns 3053 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 3054 ns 3054 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 76.1 ns 76.1 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.49 % 2.49 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 479 ns 479 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 472 ns 472 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 21.1 ns 21.1 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 4.39 % 4.39 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1412 ns 1412 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1394 ns 1394 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 60.3 ns 60.3 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 4.27 % 4.27 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 1208 ns 1208 ns 10
|
|
std::string str = std::format("test = {} times", k);_median 1179 ns 1179 ns 10
|
|
std::string str = std::format("test = {} times", k);_stddev 67.9 ns 67.9 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 5.62 % 5.62 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1379 ns 1379 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1399 ns 1399 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 53.1 ns 53.1 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 3.85 % 3.85 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1079 ns 1079 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1081 ns 1081 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 42.4 ns 42.4 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 3.93 % 3.93 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 313 ns 313 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 311 ns 311 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 34.1 ns 34.1 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 10.90 % 10.90 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 154 ns 154 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 155 ns 155 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.82 ns 3.82 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.48 % 2.48 % 10
|
|
stringa str = "test = " + k + " times";_mean 145 ns 145 ns 10
|
|
stringa str = "test = " + k + " times";_median 143 ns 143 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 4.31 ns 4.31 ns 10
|
|
stringa str = "test = " + k + " times";_cv 2.97 % 2.97 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 283 ns 283 ns 10
|
|
std::string::find + substr + std::strtol_median 275 ns 275 ns 10
|
|
std::string::find + substr + std::strtol_stddev 28.4 ns 28.4 ns 10
|
|
std::string::find + substr + std::strtol_cv 10.03 % 10.03 % 10
|
|
ssa::splitter + ssa::as_int_mean 159 ns 159 ns 10
|
|
ssa::splitter + ssa::as_int_median 159 ns 159 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 6.77 ns 6.77 ns 10
|
|
ssa::splitter + ssa::as_int_cv 4.26 % 4.26 % 10
|
|
ssa::splitf + functor_mean 204 ns 204 ns 10
|
|
ssa::splitf + functor_median 203 ns 203 ns 10
|
|
ssa::splitf + functor_stddev 5.90 ns 5.90 ns 10
|
|
ssa::splitf + functor_cv 2.89 % 2.89 % 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 848 ns 848 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 834 ns 834 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 41.8 ns 41.8 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 4.93 % 4.93 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 2432 ns 2432 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 2400 ns 2400 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 135 ns 135 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 5.53 % 5.53 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 1070 ns 1070 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 1059 ns 1059 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 37.2 ns 37.2 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 3.47 % 3.47 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1309 ns 1309 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1313 ns 1313 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 35.5 ns 35.5 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 2.71 % 2.71 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1066 ns 1066 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 1067 ns 1067 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 61.5 ns 61.5 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 5.77 % 5.77 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 1030 ns 1030 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 1005 ns 1005 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 57.4 ns 57.4 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 5.58 % 5.58 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 898 ns 898 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 892 ns 892 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 21.7 ns 21.7 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.42 % 2.42 % 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 155 ns 155 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 154 ns 154 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 3.88 ns 3.88 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.50 % 2.50 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 337 ns 337 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 322 ns 322 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 36.8 ns 36.8 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 10.90 % 10.90 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 164 ns 164 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 164 ns 164 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 4.23 ns 4.23 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.59 % 2.59 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 193 ns 193 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 187 ns 187 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 15.2 ns 15.2 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 7.85 % 7.85 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 205 ns 205 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 196 ns 196 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 21.5 ns 21.5 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 10.51 % 10.51 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 139 ns 139 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 139 ns 139 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 3.57 ns 3.57 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 2.57 % 2.57 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 144 ns 144 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 144 ns 144 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 5.29 ns 5.29 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 3.66 % 3.66 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 160 ns 160 ns 10
|
|
replace bb to ---- in std::string|64_median 155 ns 155 ns 10
|
|
replace bb to ---- in std::string|64_stddev 9.70 ns 9.70 ns 10
|
|
replace bb to ---- in std::string|64_cv 6.08 % 6.08 % 10
|
|
replace bb to ---- in std::string|256_mean 568 ns 568 ns 10
|
|
replace bb to ---- in std::string|256_median 559 ns 559 ns 10
|
|
replace bb to ---- in std::string|256_stddev 31.3 ns 31.3 ns 10
|
|
replace bb to ---- in std::string|256_cv 5.51 % 5.51 % 10
|
|
replace bb to ---- in std::string|512_mean 1177 ns 1177 ns 10
|
|
replace bb to ---- in std::string|512_median 1137 ns 1137 ns 10
|
|
replace bb to ---- in std::string|512_stddev 108 ns 108 ns 10
|
|
replace bb to ---- in std::string|512_cv 9.19 % 9.19 % 10
|
|
replace bb to ---- in std::string|1024_mean 2294 ns 2294 ns 10
|
|
replace bb to ---- in std::string|1024_median 2265 ns 2265 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 125 ns 125 ns 10
|
|
replace bb to ---- in std::string|1024_cv 5.45 % 5.45 % 10
|
|
replace bb to ---- in std::string|2048_mean 5903 ns 5903 ns 10
|
|
replace bb to ---- in std::string|2048_median 5701 ns 5701 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 509 ns 509 ns 10
|
|
replace bb to ---- in std::string|2048_cv 8.62 % 8.62 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 245 ns 245 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 245 ns 245 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 5.86 ns 5.86 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 2.39 % 2.39 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 777 ns 777 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 779 ns 779 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 18.7 ns 18.7 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 2.41 % 2.41 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 1500 ns 1500 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 1488 ns 1488 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 58.7 ns 58.7 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 3.92 % 3.92 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 2907 ns 2907 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 2913 ns 2913 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 61.2 ns 61.2 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.11 % 2.11 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 5929 ns 5930 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 5754 ns 5754 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 544 ns 544 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 9.18 % 9.18 % 10
|
|
replace bb to ---- by init stringa|64_mean 129 ns 129 ns 10
|
|
replace bb to ---- by init stringa|64_median 128 ns 128 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 4.89 ns 4.89 ns 10
|
|
replace bb to ---- by init stringa|64_cv 3.80 % 3.80 % 10
|
|
replace bb to ---- by init stringa|256_mean 356 ns 356 ns 10
|
|
replace bb to ---- by init stringa|256_median 354 ns 354 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 13.9 ns 13.9 ns 10
|
|
replace bb to ---- by init stringa|256_cv 3.90 % 3.90 % 10
|
|
replace bb to ---- by init stringa|512_mean 774 ns 774 ns 10
|
|
replace bb to ---- by init stringa|512_median 767 ns 767 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 19.5 ns 19.5 ns 10
|
|
replace bb to ---- by init stringa|512_cv 2.52 % 2.52 % 10
|
|
replace bb to ---- by init stringa|1024_mean 1583 ns 1583 ns 10
|
|
replace bb to ---- by init stringa|1024_median 1569 ns 1569 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 59.1 ns 59.1 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 3.74 % 3.74 % 10
|
|
replace bb to ---- by init stringa|2048_mean 3395 ns 3395 ns 10
|
|
replace bb to ---- by init stringa|2048_median 3386 ns 3386 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 258 ns 258 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 7.59 % 7.59 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 119 ns 119 ns 10
|
|
replace bb to -- in std::string|64_median 119 ns 119 ns 10
|
|
replace bb to -- in std::string|64_stddev 3.85 ns 3.85 ns 10
|
|
replace bb to -- in std::string|64_cv 3.24 % 3.24 % 10
|
|
replace bb to -- in std::string|256_mean 451 ns 451 ns 10
|
|
replace bb to -- in std::string|256_median 439 ns 439 ns 10
|
|
replace bb to -- in std::string|256_stddev 55.9 ns 55.9 ns 10
|
|
replace bb to -- in std::string|256_cv 12.40 % 12.40 % 10
|
|
replace bb to -- in std::string|512_mean 782 ns 782 ns 10
|
|
replace bb to -- in std::string|512_median 776 ns 776 ns 10
|
|
replace bb to -- in std::string|512_stddev 22.5 ns 22.5 ns 10
|
|
replace bb to -- in std::string|512_cv 2.88 % 2.88 % 10
|
|
replace bb to -- in std::string|1024_mean 1492 ns 1492 ns 10
|
|
replace bb to -- in std::string|1024_median 1468 ns 1468 ns 10
|
|
replace bb to -- in std::string|1024_stddev 71.8 ns 71.8 ns 10
|
|
replace bb to -- in std::string|1024_cv 4.81 % 4.81 % 10
|
|
replace bb to -- in std::string|2048_mean 3010 ns 3010 ns 10
|
|
replace bb to -- in std::string|2048_median 2960 ns 2960 ns 10
|
|
replace bb to -- in std::string|2048_stddev 131 ns 131 ns 10
|
|
replace bb to -- in std::string|2048_cv 4.35 % 4.35 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 209 ns 209 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 210 ns 210 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 7.59 ns 7.59 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 3.62 % 3.62 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 855 ns 855 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 847 ns 847 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 27.5 ns 27.5 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 3.22 % 3.22 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 1828 ns 1828 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 1820 ns 1820 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 41.2 ns 41.2 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 2.25 % 2.25 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 3661 ns 3661 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 3653 ns 3653 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 55.7 ns 55.7 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 1.52 % 1.52 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 7670 ns 7670 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 7481 ns 7481 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 531 ns 531 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 6.92 % 6.92 % 10
|
|
replace bb to -- by init stringa|64_mean 83.8 ns 83.8 ns 10
|
|
replace bb to -- by init stringa|64_median 80.2 ns 80.2 ns 10
|
|
replace bb to -- by init stringa|64_stddev 7.49 ns 7.49 ns 10
|
|
replace bb to -- by init stringa|64_cv 8.94 % 8.94 % 10
|
|
replace bb to -- by init stringa|256_mean 236 ns 236 ns 10
|
|
replace bb to -- by init stringa|256_median 234 ns 234 ns 10
|
|
replace bb to -- by init stringa|256_stddev 5.30 ns 5.30 ns 10
|
|
replace bb to -- by init stringa|256_cv 2.24 % 2.24 % 10
|
|
replace bb to -- by init stringa|512_mean 485 ns 485 ns 10
|
|
replace bb to -- by init stringa|512_median 479 ns 479 ns 10
|
|
replace bb to -- by init stringa|512_stddev 55.3 ns 55.3 ns 10
|
|
replace bb to -- by init stringa|512_cv 11.40 % 11.40 % 10
|
|
replace bb to -- by init stringa|1024_mean 883 ns 883 ns 10
|
|
replace bb to -- by init stringa|1024_median 879 ns 879 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 28.6 ns 28.6 ns 10
|
|
replace bb to -- by init stringa|1024_cv 3.25 % 3.24 % 10
|
|
replace bb to -- by init stringa|2048_mean 1717 ns 1717 ns 10
|
|
replace bb to -- by init stringa|2048_median 1739 ns 1739 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 63.3 ns 63.3 ns 10
|
|
replace bb to -- by init stringa|2048_cv 3.69 % 3.69 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3595592 ns 3595607 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3572533 ns 3572549 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 57151 ns 57153 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.59 % 1.59 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3599286 ns 3599290 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3580740 ns 3580719 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 155107 ns 155106 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 4.31 % 4.31 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3741065 ns 3741070 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3672854 ns 3672865 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 202922 ns 202917 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 5.42 % 5.42 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4188176 ns 4188182 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4154276 ns 4154293 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 229445 ns 229453 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 5.48 % 5.48 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 709 ns 709 ns 10
|
|
Build func full name std::string;_median 696 ns 696 ns 10
|
|
Build func full name std::string;_stddev 42.5 ns 42.5 ns 10
|
|
Build func full name std::string;_cv 5.99 % 5.99 % 10
|
|
Build func full name std::string 1;_mean 829 ns 829 ns 10
|
|
Build func full name std::string 1;_median 813 ns 813 ns 10
|
|
Build func full name std::string 1;_stddev 38.0 ns 38.0 ns 10
|
|
Build func full name std::string 1;_cv 4.59 % 4.59 % 10
|
|
Build func full name std::stream;_mean 2552 ns 2552 ns 10
|
|
Build func full name std::stream;_median 2527 ns 2527 ns 10
|
|
Build func full name std::stream;_stddev 73.8 ns 73.8 ns 10
|
|
Build func full name std::stream;_cv 2.89 % 2.89 % 10
|
|
Build func full name stringa;_mean 503 ns 503 ns 10
|
|
Build func full name stringa;_median 505 ns 505 ns 10
|
|
Build func full name stringa;_stddev 17.5 ns 17.5 ns 10
|
|
Build func full name stringa;_cv 3.47 % 3.47 % 10
|
|
Build func full name stringa 1;_mean 670 ns 670 ns 10
|
|
Build func full name stringa 1;_median 655 ns 655 ns 10
|
|
Build func full name stringa 1;_stddev 37.3 ns 37.3 ns 10
|
|
Build func full name stringa 1;_cv 5.57 % 5.57 % 10
|