mirror of https://github.com/orefkov/simstr.git
879 lines
130 KiB
Plaintext
879 lines
130 KiB
Plaintext
2026-01-21T07:43:36+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.23, 0.51
|
|
***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 226 ns 226 ns 10
|
|
Concat std::string and number by std to std::string_median 222 ns 222 ns 10
|
|
Concat std::string and number by std to std::string_stddev 15.0 ns 15.0 ns 10
|
|
Concat std::string and number by std to std::string_cv 6.64 % 6.64 % 10
|
|
Concat std::string and number by StrExpr to std::string_mean 104 ns 104 ns 10
|
|
Concat std::string and number by StrExpr to std::string_median 103 ns 103 ns 10
|
|
Concat std::string and number by StrExpr to std::string_stddev 4.29 ns 4.29 ns 10
|
|
Concat std::string and number by StrExpr to std::string_cv 4.10 % 4.10 % 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 63.7 ns 63.7 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 62.8 ns 62.8 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.92 ns 2.92 ns 10
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 4.59 % 4.59 % 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 681 ns 681 ns 10
|
|
Concat std::string and hex number by std to std::string_median 673 ns 673 ns 10
|
|
Concat std::string and hex number by std to std::string_stddev 19.0 ns 19.0 ns 10
|
|
Concat std::string and hex number by std to std::string_cv 2.80 % 2.80 % 10
|
|
Concat std::string and hex number by StrExpr to std::string_mean 71.7 ns 71.7 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_median 71.6 ns 71.6 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_stddev 1.90 ns 1.90 ns 10
|
|
Concat std::string and hex number by StrExpr to std::string_cv 2.65 % 2.65 % 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_mean 67.9 ns 67.9 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_median 67.5 ns 67.5 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_stddev 1.41 ns 1.41 ns 10
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_cv 2.08 % 2.08 % 10
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 49.7 ns 49.7 ns 10
|
|
Concat std::string by std to std::string_median 49.9 ns 49.9 ns 10
|
|
Concat std::string by std to std::string_stddev 0.890 ns 0.890 ns 10
|
|
Concat std::string by std to std::string_cv 1.79 % 1.79 % 10
|
|
Concat std::string by StrExpr to std::string_mean 40.5 ns 40.5 ns 10
|
|
Concat std::string by StrExpr to std::string_median 40.5 ns 40.5 ns 10
|
|
Concat std::string by StrExpr to std::string_stddev 0.767 ns 0.767 ns 10
|
|
Concat std::string by StrExpr to std::string_cv 1.89 % 1.89 % 10
|
|
Concat stringa by StrExpr to stringa_mean 27.0 ns 27.0 ns 10
|
|
Concat stringa by StrExpr to stringa_median 26.6 ns 26.6 ns 10
|
|
Concat stringa by StrExpr to stringa_stddev 1.50 ns 1.50 ns 10
|
|
Concat stringa by StrExpr to stringa_cv 5.54 % 5.54 % 10
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 116 ns 116 ns 10
|
|
Find concat three std::string_median 116 ns 116 ns 10
|
|
Find concat three std::string_stddev 4.32 ns 4.32 ns 10
|
|
Find concat three std::string_cv 3.72 % 3.72 % 10
|
|
Find concat three strexpr_mean 51.1 ns 51.1 ns 10
|
|
Find concat three strexpr_median 51.0 ns 51.0 ns 10
|
|
Find concat three strexpr_stddev 2.58 ns 2.58 ns 10
|
|
Find concat three strexpr_cv 5.05 % 5.05 % 10
|
|
Find concat three simstr_mean 19.6 ns 19.6 ns 10
|
|
Find concat three simstr_median 19.7 ns 19.7 ns 10
|
|
Find concat three simstr_stddev 0.770 ns 0.770 ns 10
|
|
Find concat three simstr_cv 3.93 % 3.93 % 10
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 7.64 ns 7.64 ns 10
|
|
BuildTypeNameStr 0/0_median 7.63 ns 7.63 ns 10
|
|
BuildTypeNameStr 0/0_stddev 0.241 ns 0.241 ns 10
|
|
BuildTypeNameStr 0/0_cv 3.16 % 3.16 % 10
|
|
BuildTypeNameExp 0/0_mean 6.52 ns 6.52 ns 10
|
|
BuildTypeNameExp 0/0_median 6.54 ns 6.54 ns 10
|
|
BuildTypeNameExp 0/0_stddev 0.149 ns 0.149 ns 10
|
|
BuildTypeNameExp 0/0_cv 2.29 % 2.29 % 10
|
|
BuildTypeNameSim 0/0_mean 4.99 ns 4.99 ns 10
|
|
BuildTypeNameSim 0/0_median 4.92 ns 4.92 ns 10
|
|
BuildTypeNameSim 0/0_stddev 0.280 ns 0.280 ns 10
|
|
BuildTypeNameSim 0/0_cv 5.62 % 5.62 % 10
|
|
BuildTypeNameStr 10/10_mean 56.8 ns 56.8 ns 10
|
|
BuildTypeNameStr 10/10_median 57.0 ns 57.0 ns 10
|
|
BuildTypeNameStr 10/10_stddev 1.62 ns 1.62 ns 10
|
|
BuildTypeNameStr 10/10_cv 2.86 % 2.86 % 10
|
|
BuildTypeNameExp 10/10_mean 30.5 ns 30.5 ns 10
|
|
BuildTypeNameExp 10/10_median 30.3 ns 30.3 ns 10
|
|
BuildTypeNameExp 10/10_stddev 0.808 ns 0.808 ns 10
|
|
BuildTypeNameExp 10/10_cv 2.65 % 2.65 % 10
|
|
BuildTypeNameSim 10/10_mean 22.7 ns 22.7 ns 10
|
|
BuildTypeNameSim 10/10_median 22.6 ns 22.6 ns 10
|
|
BuildTypeNameSim 10/10_stddev 0.330 ns 0.330 ns 10
|
|
BuildTypeNameSim 10/10_cv 1.45 % 1.45 % 10
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 207 ns 207 ns 10
|
|
Concat with replace str_median 203 ns 203 ns 10
|
|
Concat with replace str_stddev 11.4 ns 11.4 ns 10
|
|
Concat with replace str_cv 5.52 % 5.52 % 10
|
|
Concat with replace exp_mean 149 ns 149 ns 10
|
|
Concat with replace exp_median 148 ns 148 ns 10
|
|
Concat with replace exp_stddev 4.78 ns 4.78 ns 10
|
|
Concat with replace exp_cv 3.20 % 3.20 % 10
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.12 ns 1.12 ns 10
|
|
std::string e;_median 1.12 ns 1.12 ns 10
|
|
std::string e;_stddev 0.022 ns 0.022 ns 10
|
|
std::string e;_cv 1.96 % 1.96 % 10
|
|
std::string_view e;_mean 0.373 ns 0.373 ns 10
|
|
std::string_view e;_median 0.369 ns 0.369 ns 10
|
|
std::string_view e;_stddev 0.012 ns 0.012 ns 10
|
|
std::string_view e;_cv 3.14 % 3.14 % 10
|
|
ssa e;_mean 0.367 ns 0.367 ns 10
|
|
ssa e;_median 0.367 ns 0.367 ns 10
|
|
ssa e;_stddev 0.006 ns 0.006 ns 10
|
|
ssa e;_cv 1.54 % 1.54 % 10
|
|
stringa e;_mean 0.753 ns 0.753 ns 10
|
|
stringa e;_median 0.748 ns 0.748 ns 10
|
|
stringa e;_stddev 0.024 ns 0.024 ns 10
|
|
stringa e;_cv 3.14 % 3.14 % 10
|
|
lstringa<20> e;_mean 1.13 ns 1.13 ns 10
|
|
lstringa<20> e;_median 1.12 ns 1.12 ns 10
|
|
lstringa<20> e;_stddev 0.027 ns 0.027 ns 10
|
|
lstringa<20> e;_cv 2.42 % 2.42 % 10
|
|
lstringa<40> e;_mean 1.13 ns 1.13 ns 10
|
|
lstringa<40> e;_median 1.12 ns 1.12 ns 10
|
|
lstringa<40> e;_stddev 0.029 ns 0.029 ns 10
|
|
lstringa<40> e;_cv 2.53 % 2.53 % 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.84 ns 1.84 ns 10
|
|
std::string e = "Test text";_stddev 0.037 ns 0.037 ns 10
|
|
std::string e = "Test text";_cv 2.03 % 2.03 % 10
|
|
std::string_view e = "Test text";_mean 0.750 ns 0.750 ns 10
|
|
std::string_view e = "Test text";_median 0.734 ns 0.734 ns 10
|
|
std::string_view e = "Test text";_stddev 0.030 ns 0.030 ns 10
|
|
std::string_view e = "Test text";_cv 3.99 % 3.99 % 10
|
|
ssa e = "Test text";_mean 0.381 ns 0.381 ns 10
|
|
ssa e = "Test text";_median 0.380 ns 0.380 ns 10
|
|
ssa e = "Test text";_stddev 0.019 ns 0.019 ns 10
|
|
ssa e = "Test text";_cv 5.10 % 5.10 % 10
|
|
stringa e = "Test text";_mean 1.85 ns 1.85 ns 10
|
|
stringa e = "Test text";_median 1.83 ns 1.83 ns 10
|
|
stringa e = "Test text";_stddev 0.058 ns 0.058 ns 10
|
|
stringa e = "Test text";_cv 3.16 % 3.16 % 10
|
|
lstringa<20> e = "Test text";_mean 1.87 ns 1.87 ns 10
|
|
lstringa<20> e = "Test text";_median 1.84 ns 1.84 ns 10
|
|
lstringa<20> e = "Test text";_stddev 0.068 ns 0.068 ns 10
|
|
lstringa<20> e = "Test text";_cv 3.63 % 3.63 % 10
|
|
lstringa<40> e = "Test text";_mean 1.85 ns 1.85 ns 10
|
|
lstringa<40> e = "Test text";_median 1.83 ns 1.83 ns 10
|
|
lstringa<40> e = "Test text";_stddev 0.052 ns 0.052 ns 10
|
|
lstringa<40> e = "Test text";_cv 2.81 % 2.81 % 10
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 18.8 ns 18.8 ns 10
|
|
std::string e = "123456789012345678901234567890";_median 18.6 ns 18.6 ns 10
|
|
std::string e = "123456789012345678901234567890";_stddev 0.658 ns 0.658 ns 10
|
|
std::string e = "123456789012345678901234567890";_cv 3.50 % 3.50 % 10
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.747 ns 0.747 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_median 0.738 ns 0.738 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.027 ns 0.027 ns 10
|
|
std::string_view e = "123456789012345678901234567890";_cv 3.58 % 3.58 % 10
|
|
ssa e = "123456789012345678901234567890";_mean 0.370 ns 0.370 ns 10
|
|
ssa e = "123456789012345678901234567890";_median 0.366 ns 0.366 ns 10
|
|
ssa e = "123456789012345678901234567890";_stddev 0.010 ns 0.010 ns 10
|
|
ssa e = "123456789012345678901234567890";_cv 2.71 % 2.71 % 10
|
|
stringa e = "123456789012345678901234567890";_mean 1.88 ns 1.88 ns 10
|
|
stringa e = "123456789012345678901234567890";_median 1.87 ns 1.87 ns 10
|
|
stringa e = "123456789012345678901234567890";_stddev 0.057 ns 0.057 ns 10
|
|
stringa e = "123456789012345678901234567890";_cv 3.02 % 3.02 % 10
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 21.0 ns 21.0 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_median 21.0 ns 21.0 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.876 ns 0.876 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 4.17 % 4.17 % 10
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.55 ns 2.55 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.54 ns 2.54 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.042 ns 0.042 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 1.63 % 1.63 % 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 4.83 ns 4.83 ns 10
|
|
std::string e = "Test text"; auto c{e};_median 4.80 ns 4.80 ns 10
|
|
std::string e = "Test text"; auto c{e};_stddev 0.091 ns 0.091 ns 10
|
|
std::string e = "Test text"; auto c{e};_cv 1.89 % 1.89 % 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.010 ns 0.010 ns 10
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.62 % 2.62 % 10
|
|
ssa e = "Test text"; auto c{e};_mean 0.368 ns 0.368 ns 10
|
|
ssa e = "Test text"; auto c{e};_median 0.367 ns 0.367 ns 10
|
|
ssa e = "Test text"; auto c{e};_stddev 0.007 ns 0.007 ns 10
|
|
ssa e = "Test text"; auto c{e};_cv 1.99 % 1.99 % 10
|
|
stringa e = "Test text"; auto c{e};_mean 1.11 ns 1.11 ns 10
|
|
stringa e = "Test text"; auto c{e};_median 1.11 ns 1.11 ns 10
|
|
stringa e = "Test text"; auto c{e};_stddev 0.025 ns 0.025 ns 10
|
|
stringa e = "Test text"; auto c{e};_cv 2.29 % 2.29 % 10
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.18 ns 4.18 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.15 ns 4.15 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.134 ns 0.134 ns 10
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 3.20 % 3.20 % 10
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.47 ns 4.47 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.39 ns 4.39 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.381 ns 0.381 ns 10
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 8.52 % 8.52 % 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 19.8 ns 19.8 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 19.4 ns 19.4 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.903 ns 0.903 ns 10
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.56 % 4.56 % 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.752 ns 0.752 ns 10
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.744 ns 0.744 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.23 % 3.23 % 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.375 ns 0.375 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.371 ns 0.371 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.010 ns 0.010 ns 10
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.67 % 2.67 % 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.89 ns 1.89 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.89 ns 1.89 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.049 ns 0.049 ns 10
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.60 % 2.60 % 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.0 ns 21.0 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.2 ns 21.2 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.965 ns 0.965 ns 10
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 4.60 % 4.60 % 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.53 ns 4.53 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.49 ns 4.49 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.118 ns 0.118 ns 10
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.60 % 2.60 % 10
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 7.86 ns 7.86 ns 10
|
|
std::string::find;_median 7.80 ns 7.80 ns 10
|
|
std::string::find;_stddev 0.292 ns 0.292 ns 10
|
|
std::string::find;_cv 3.72 % 3.72 % 10
|
|
std::string_view::find;_mean 7.36 ns 7.36 ns 10
|
|
std::string_view::find;_median 7.15 ns 7.15 ns 10
|
|
std::string_view::find;_stddev 0.780 ns 0.780 ns 10
|
|
std::string_view::find;_cv 10.60 % 10.60 % 10
|
|
ssa::find;_mean 7.03 ns 7.03 ns 10
|
|
ssa::find;_median 7.02 ns 7.02 ns 10
|
|
ssa::find;_stddev 0.355 ns 0.355 ns 10
|
|
ssa::find;_cv 5.06 % 5.06 % 10
|
|
stringa::find;_mean 7.17 ns 7.17 ns 10
|
|
stringa::find;_median 7.16 ns 7.16 ns 10
|
|
stringa::find;_stddev 0.148 ns 0.148 ns 10
|
|
stringa::find;_cv 2.06 % 2.06 % 10
|
|
lstringa<20>::find;_mean 6.43 ns 6.43 ns 10
|
|
lstringa<20>::find;_median 6.42 ns 6.42 ns 10
|
|
lstringa<20>::find;_stddev 0.163 ns 0.163 ns 10
|
|
lstringa<20>::find;_cv 2.53 % 2.53 % 10
|
|
lstringa<40>::find;_mean 6.56 ns 6.56 ns 10
|
|
lstringa<40>::find;_median 6.31 ns 6.31 ns 10
|
|
lstringa<40>::find;_stddev 0.479 ns 0.479 ns 10
|
|
lstringa<40>::find;_cv 7.30 % 7.30 % 10
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string copy{str_with_len_N};/15_mean 5.69 ns 5.69 ns 10
|
|
std::string copy{str_with_len_N};/15_median 5.60 ns 5.60 ns 10
|
|
std::string copy{str_with_len_N};/15_stddev 0.168 ns 0.168 ns 10
|
|
std::string copy{str_with_len_N};/15_cv 2.95 % 2.95 % 10
|
|
std::string copy{str_with_len_N};/16_mean 23.6 ns 23.6 ns 10
|
|
std::string copy{str_with_len_N};/16_median 23.2 ns 23.2 ns 10
|
|
std::string copy{str_with_len_N};/16_stddev 0.963 ns 0.963 ns 10
|
|
std::string copy{str_with_len_N};/16_cv 4.08 % 4.08 % 10
|
|
std::string copy{str_with_len_N};/23_mean 24.0 ns 24.0 ns 10
|
|
std::string copy{str_with_len_N};/23_median 23.9 ns 23.9 ns 10
|
|
std::string copy{str_with_len_N};/23_stddev 0.815 ns 0.815 ns 10
|
|
std::string copy{str_with_len_N};/23_cv 3.40 % 3.40 % 10
|
|
std::string copy{str_with_len_N};/24_mean 23.3 ns 23.3 ns 10
|
|
std::string copy{str_with_len_N};/24_median 23.1 ns 23.1 ns 10
|
|
std::string copy{str_with_len_N};/24_stddev 0.657 ns 0.657 ns 10
|
|
std::string copy{str_with_len_N};/24_cv 2.83 % 2.83 % 10
|
|
std::string copy{str_with_len_N};/32_mean 23.2 ns 23.2 ns 10
|
|
std::string copy{str_with_len_N};/32_median 23.0 ns 23.0 ns 10
|
|
std::string copy{str_with_len_N};/32_stddev 0.736 ns 0.736 ns 10
|
|
std::string copy{str_with_len_N};/32_cv 3.17 % 3.17 % 10
|
|
std::string copy{str_with_len_N};/64_mean 23.3 ns 23.3 ns 10
|
|
std::string copy{str_with_len_N};/64_median 23.1 ns 23.1 ns 10
|
|
std::string copy{str_with_len_N};/64_stddev 0.632 ns 0.632 ns 10
|
|
std::string copy{str_with_len_N};/64_cv 2.71 % 2.71 % 10
|
|
std::string copy{str_with_len_N};/128_mean 25.2 ns 25.2 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 0.448 ns 0.448 ns 10
|
|
std::string copy{str_with_len_N};/128_cv 1.78 % 1.78 % 10
|
|
std::string copy{str_with_len_N};/256_mean 25.4 ns 25.4 ns 10
|
|
std::string copy{str_with_len_N};/256_median 25.1 ns 25.1 ns 10
|
|
std::string copy{str_with_len_N};/256_stddev 0.854 ns 0.854 ns 10
|
|
std::string copy{str_with_len_N};/256_cv 3.36 % 3.36 % 10
|
|
std::string copy{str_with_len_N};/512_mean 29.9 ns 29.9 ns 10
|
|
std::string copy{str_with_len_N};/512_median 29.5 ns 29.5 ns 10
|
|
std::string copy{str_with_len_N};/512_stddev 1.73 ns 1.73 ns 10
|
|
std::string copy{str_with_len_N};/512_cv 5.79 % 5.79 % 10
|
|
std::string copy{str_with_len_N};/1024_mean 44.1 ns 44.1 ns 10
|
|
std::string copy{str_with_len_N};/1024_median 44.1 ns 44.1 ns 10
|
|
std::string copy{str_with_len_N};/1024_stddev 0.355 ns 0.355 ns 10
|
|
std::string copy{str_with_len_N};/1024_cv 0.81 % 0.81 % 10
|
|
std::string copy{str_with_len_N};/2048_mean 130 ns 130 ns 10
|
|
std::string copy{str_with_len_N};/2048_median 132 ns 132 ns 10
|
|
std::string copy{str_with_len_N};/2048_stddev 8.33 ns 8.33 ns 10
|
|
std::string copy{str_with_len_N};/2048_cv 6.39 % 6.39 % 10
|
|
std::string copy{str_with_len_N};/4096_mean 153 ns 153 ns 10
|
|
std::string copy{str_with_len_N};/4096_median 154 ns 154 ns 10
|
|
std::string copy{str_with_len_N};/4096_stddev 9.49 ns 9.49 ns 10
|
|
std::string copy{str_with_len_N};/4096_cv 6.19 % 6.19 % 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.09 ns 1.09 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.13 % 2.13 % 10
|
|
stringa copy{str_with_len_N};/16_mean 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/16_median 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/16_stddev 0.021 ns 0.021 ns 10
|
|
stringa copy{str_with_len_N};/16_cv 1.87 % 1.87 % 10
|
|
stringa copy{str_with_len_N};/23_mean 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/23_median 1.10 ns 1.10 ns 10
|
|
stringa copy{str_with_len_N};/23_stddev 0.020 ns 0.020 ns 10
|
|
stringa copy{str_with_len_N};/23_cv 1.77 % 1.77 % 10
|
|
stringa copy{str_with_len_N};/24_mean 16.7 ns 16.7 ns 10
|
|
stringa copy{str_with_len_N};/24_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/24_stddev 2.22 ns 2.22 ns 10
|
|
stringa copy{str_with_len_N};/24_cv 13.29 % 13.29 % 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.274 ns 0.274 ns 10
|
|
stringa copy{str_with_len_N};/32_cv 1.71 % 1.71 % 10
|
|
stringa copy{str_with_len_N};/64_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/64_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/64_stddev 0.140 ns 0.140 ns 10
|
|
stringa copy{str_with_len_N};/64_cv 0.87 % 0.87 % 10
|
|
stringa copy{str_with_len_N};/128_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/128_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/128_stddev 0.101 ns 0.101 ns 10
|
|
stringa copy{str_with_len_N};/128_cv 0.63 % 0.63 % 10
|
|
stringa copy{str_with_len_N};/256_mean 16.0 ns 16.0 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.199 ns 0.199 ns 10
|
|
stringa copy{str_with_len_N};/256_cv 1.24 % 1.24 % 10
|
|
stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/512_stddev 0.116 ns 0.116 ns 10
|
|
stringa copy{str_with_len_N};/512_cv 0.72 % 0.72 % 10
|
|
stringa copy{str_with_len_N};/1024_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/1024_median 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/1024_stddev 0.086 ns 0.086 ns 10
|
|
stringa copy{str_with_len_N};/1024_cv 0.54 % 0.54 % 10
|
|
stringa copy{str_with_len_N};/2048_mean 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/2048_median 16.1 ns 16.1 ns 10
|
|
stringa copy{str_with_len_N};/2048_stddev 0.231 ns 0.231 ns 10
|
|
stringa copy{str_with_len_N};/2048_cv 1.43 % 1.43 % 10
|
|
stringa copy{str_with_len_N};/4096_mean 16.0 ns 16.0 ns 10
|
|
stringa copy{str_with_len_N};/4096_median 15.9 ns 15.9 ns 10
|
|
stringa copy{str_with_len_N};/4096_stddev 0.137 ns 0.137 ns 10
|
|
stringa copy{str_with_len_N};/4096_cv 0.86 % 0.86 % 10
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.12 ns 4.12 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.06 ns 4.06 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.151 ns 0.151 ns 10
|
|
lstringa<16> copy{str_with_len_N};/15_cv 3.68 % 3.68 % 10
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.09 ns 4.09 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.04 ns 4.04 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.099 ns 0.099 ns 10
|
|
lstringa<16> copy{str_with_len_N};/16_cv 2.42 % 2.42 % 10
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.04 ns 4.04 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.02 ns 4.02 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.087 ns 0.087 ns 10
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.16 % 2.16 % 10
|
|
lstringa<16> copy{str_with_len_N};/24_mean 22.9 ns 22.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_median 22.9 ns 22.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.276 ns 0.276 ns 10
|
|
lstringa<16> copy{str_with_len_N};/24_cv 1.20 % 1.20 % 10
|
|
lstringa<16> copy{str_with_len_N};/32_mean 22.9 ns 22.9 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_median 23.0 ns 23.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.429 ns 0.429 ns 10
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.87 % 1.87 % 10
|
|
lstringa<16> copy{str_with_len_N};/64_mean 24.1 ns 24.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_median 23.8 ns 23.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.966 ns 0.966 ns 10
|
|
lstringa<16> copy{str_with_len_N};/64_cv 4.01 % 4.01 % 10
|
|
lstringa<16> copy{str_with_len_N};/128_mean 24.8 ns 24.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_median 24.8 ns 24.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 0.671 ns 0.671 ns 10
|
|
lstringa<16> copy{str_with_len_N};/128_cv 2.70 % 2.70 % 10
|
|
lstringa<16> copy{str_with_len_N};/256_mean 26.0 ns 26.0 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_median 25.8 ns 25.8 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.889 ns 0.889 ns 10
|
|
lstringa<16> copy{str_with_len_N};/256_cv 3.42 % 3.42 % 10
|
|
lstringa<16> copy{str_with_len_N};/512_mean 28.5 ns 28.5 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_median 28.4 ns 28.4 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 0.294 ns 0.294 ns 10
|
|
lstringa<16> copy{str_with_len_N};/512_cv 1.03 % 1.03 % 10
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 93.2 ns 93.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_median 96.2 ns 96.2 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 10.7 ns 10.7 ns 10
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 11.44 % 11.44 % 10
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 113 ns 113 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_median 114 ns 114 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 12.1 ns 12.1 ns 10
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 10.70 % 10.70 % 10
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 127 ns 127 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_median 126 ns 126 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 8.40 ns 8.40 ns 10
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 6.63 % 6.63 % 10
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.48 ns 4.48 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.38 ns 4.38 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.311 ns 0.311 ns 10
|
|
lstringa<512> copy{str_with_len_N};/15_cv 6.94 % 6.94 % 10
|
|
lstringa<512> copy{str_with_len_N};/16_mean 4.49 ns 4.49 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_median 4.48 ns 4.48 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.123 ns 0.123 ns 10
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.75 % 2.75 % 10
|
|
lstringa<512> copy{str_with_len_N};/23_mean 4.43 ns 4.43 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_median 4.40 ns 4.40 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.107 ns 0.107 ns 10
|
|
lstringa<512> copy{str_with_len_N};/23_cv 2.42 % 2.42 % 10
|
|
lstringa<512> copy{str_with_len_N};/24_mean 4.55 ns 4.55 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_median 4.53 ns 4.53 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.112 ns 0.112 ns 10
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.47 % 2.47 % 10
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.12 ns 4.12 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.09 ns 4.09 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.123 ns 0.123 ns 10
|
|
lstringa<512> copy{str_with_len_N};/32_cv 3.00 % 3.00 % 10
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.30 ns 6.30 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_median 6.16 ns 6.16 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.337 ns 0.337 ns 10
|
|
lstringa<512> copy{str_with_len_N};/64_cv 5.35 % 5.35 % 10
|
|
lstringa<512> copy{str_with_len_N};/128_mean 6.07 ns 6.07 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_median 6.00 ns 6.00 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.226 ns 0.226 ns 10
|
|
lstringa<512> copy{str_with_len_N};/128_cv 3.73 % 3.73 % 10
|
|
lstringa<512> copy{str_with_len_N};/256_mean 7.87 ns 7.87 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_median 7.88 ns 7.88 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.159 ns 0.159 ns 10
|
|
lstringa<512> copy{str_with_len_N};/256_cv 2.02 % 2.02 % 10
|
|
lstringa<512> copy{str_with_len_N};/512_mean 10.2 ns 10.2 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_median 10.1 ns 10.1 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.401 ns 0.401 ns 10
|
|
lstringa<512> copy{str_with_len_N};/512_cv 3.95 % 3.95 % 10
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 95.5 ns 95.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_median 95.8 ns 95.8 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 10.0 ns 10.0 ns 10
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 10.48 % 10.48 % 10
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 116 ns 116 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_median 119 ns 119 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 12.9 ns 12.9 ns 10
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 11.09 % 11.09 % 10
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 130 ns 130 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_median 126 ns 126 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 13.5 ns 13.5 ns 10
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 10.37 % 10.37 % 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 27.5 ns 27.5 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.7 ns 27.7 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.02 ns 1.02 ns 10
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 3.69 % 3.69 % 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 15.1 ns 15.1 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 15.1 ns 15.1 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.395 ns 0.395 ns 10
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.62 % 2.62 % 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.4 ns 12.4 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.4 ns 12.4 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.134 ns 0.134 ns 10
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.08 % 1.08 % 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.2 ns 12.2 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.2 ns 12.2 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.135 ns 0.135 ns 10
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.11 % 1.11 % 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.4 ns 12.4 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.4 ns 12.4 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.212 ns 0.212 ns 10
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.71 % 1.71 % 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 24.1 ns 24.1 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.9 ns 23.9 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.739 ns 0.739 ns 10
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.07 % 3.07 % 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.60 ns 9.60 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.56 ns 9.56 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.196 ns 0.196 ns 10
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.05 % 2.05 % 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.7 ns 12.7 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.388 ns 0.388 ns 10
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.05 % 3.05 % 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.1 ns 13.1 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.0 ns 13.0 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.717 ns 0.717 ns 10
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 5.46 % 5.46 % 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.7 ns 12.7 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.416 ns 0.416 ns 10
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.26 % 3.26 % 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 28.9 ns 28.9 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.7 ns 28.7 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.802 ns 0.802 ns 10
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.77 % 2.77 % 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.4 ns 18.4 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.4 ns 18.4 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.236 ns 0.236 ns 10
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.28 % 1.28 % 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 15.3 ns 15.3 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 15.2 ns 15.2 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.387 ns 0.387 ns 10
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.54 % 2.54 % 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 65.7 ns 65.7 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.6 ns 64.6 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.02 ns 2.02 ns 10
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.08 % 3.08 % 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.6 ns 24.6 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.4 ns 24.4 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.496 ns 0.496 ns 10
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.02 % 2.02 % 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.780 ns 0.780 ns 10
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.99 % 2.99 % 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 1354 ns 1354 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1341 ns 1341 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 34.1 ns 34.1 ns 10
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.52 % 2.52 % 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 372 ns 372 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 375 ns 375 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 16.4 ns 16.4 ns 10
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 4.42 % 4.42 % 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 361 ns 361 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 364 ns 364 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 10
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 4.02 % 4.02 % 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 272 ns 272 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 267 ns 267 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 13.2 ns 13.2 ns 10
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.83 % 4.83 % 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 228 ns 228 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 221 ns 221 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.3 ns 16.3 ns 10
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.16 % 7.16 % 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 136 ns 136 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 135 ns 135 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.82 ns 2.82 ns 10
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.07 % 2.07 % 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 1363 ns 1363 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1349 ns 1349 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 40.2 ns 40.2 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.95 % 2.95 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1282 ns 1282 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1276 ns 1276 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 31.1 ns 31.1 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.43 % 2.43 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 445 ns 445 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 447 ns 447 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.1 ns 15.1 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.41 % 3.41 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 386 ns 386 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 380 ns 380 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 21.8 ns 21.8 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.66 % 5.66 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 323 ns 323 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 311 ns 311 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.3 ns 23.3 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.22 % 7.22 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 204 ns 204 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 202 ns 202 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.94 ns 4.94 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.42 % 2.42 % 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 76544 ns 76545 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 75664 ns 75664 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2769 ns 2769 ns 10
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.62 % 3.62 % 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 72458 ns 72459 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 72032 ns 72033 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2580 ns 2580 ns 10
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.56 % 3.56 % 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19689 ns 19689 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19666 ns 19666 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 596 ns 596 ns 10
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.03 % 3.03 % 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15956 ns 15956 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15932 ns 15933 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 321 ns 321 ns 10
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15837 ns 15837 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15670 ns 15670 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 366 ns 366 ns 10
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.31 % 2.31 % 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17811 ns 17812 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17760 ns 17760 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 344 ns 344 ns 10
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.93 % 1.93 % 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 1397 ns 1397 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1390 ns 1390 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 58.0 ns 58.0 ns 10
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 4.15 % 4.15 % 10
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1354 ns 1354 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_median 1353 ns 1353 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 19.0 ns 19.0 ns 10
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.41 % 1.41 % 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 524 ns 524 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 522 ns 522 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 37.6 ns 37.6 ns 10
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 7.18 % 7.18 % 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 449 ns 449 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 445 ns 445 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 20.3 ns 20.3 ns 10
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.52 % 4.52 % 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 385 ns 385 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 387 ns 387 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 15.8 ns 15.8 ns 10
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.11 % 4.11 % 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 305 ns 305 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 303 ns 303 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 7.25 ns 7.25 ns 10
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.38 % 2.38 % 10
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3102 ns 3102 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_median 3021 ns 3021 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 206 ns 206 ns 10
|
|
std::stringstream str; str << "test = " << k << " times";_cv 6.65 % 6.65 % 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 471 ns 471 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 468 ns 468 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 14.6 ns 14.6 ns 10
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.10 % 3.10 % 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1395 ns 1395 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1384 ns 1384 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 43.0 ns 43.0 ns 10
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.08 % 3.08 % 10
|
|
std::string str = std::format("test = {} times", k);_mean 1205 ns 1205 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 86.3 ns 86.3 ns 10
|
|
std::string str = std::format("test = {} times", k);_cv 7.16 % 7.16 % 10
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1377 ns 1377 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1348 ns 1348 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 75.8 ns 75.8 ns 10
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 5.51 % 5.51 % 10
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 979 ns 979 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_median 969 ns 969 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 25.7 ns 25.7 ns 10
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 2.62 % 2.62 % 10
|
|
lstringa<8> str = "test = " + k + " times";_mean 295 ns 295 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_median 292 ns 292 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_stddev 9.63 ns 9.63 ns 10
|
|
lstringa<8> str = "test = " + k + " times";_cv 3.26 % 3.26 % 10
|
|
lstringa<32> str = "test = " + k + " times";_mean 152 ns 152 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_median 152 ns 152 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.23 ns 3.23 ns 10
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.12 % 2.12 % 10
|
|
stringa str = "test = " + k + " times";_mean 150 ns 150 ns 10
|
|
stringa str = "test = " + k + " times";_median 149 ns 149 ns 10
|
|
stringa str = "test = " + k + " times";_stddev 3.69 ns 3.69 ns 10
|
|
stringa str = "test = " + k + " times";_cv 2.46 % 2.46 % 10
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 270 ns 270 ns 10
|
|
std::string::find + substr + std::strtol_median 268 ns 268 ns 10
|
|
std::string::find + substr + std::strtol_stddev 7.74 ns 7.74 ns 10
|
|
std::string::find + substr + std::strtol_cv 2.86 % 2.86 % 10
|
|
ssa::splitter + ssa::as_int_mean 154 ns 154 ns 10
|
|
ssa::splitter + ssa::as_int_median 153 ns 153 ns 10
|
|
ssa::splitter + ssa::as_int_stddev 4.53 ns 4.53 ns 10
|
|
ssa::splitter + ssa::as_int_cv 2.94 % 2.94 % 10
|
|
ssa::splitf + functor_mean 212 ns 212 ns 10
|
|
ssa::splitf + functor_median 212 ns 212 ns 10
|
|
ssa::splitf + functor_stddev 6.59 ns 6.59 ns 10
|
|
ssa::splitf + functor_cv 3.11 % 3.11 % 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 865 ns 865 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 867 ns 867 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 28.3 ns 28.3 ns 10
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 3.27 % 3.27 % 10
|
|
replace symbols with std::string find_first_of + replace_mean 2400 ns 2400 ns 10
|
|
replace symbols with std::string find_first_of + replace_median 2390 ns 2390 ns 10
|
|
replace symbols with std::string find_first_of + replace_stddev 57.5 ns 57.5 ns 10
|
|
replace symbols with std::string find_first_of + replace_cv 2.39 % 2.39 % 10
|
|
replace symbols with std::string_view find_first_of + copy_mean 1100 ns 1100 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_median 1099 ns 1099 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_stddev 22.3 ns 22.3 ns 10
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.03 % 2.03 % 10
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1290 ns 1290 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1279 ns 1279 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 41.5 ns 41.5 ns 10
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 3.22 % 3.22 % 10
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1039 ns 1039 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_median 1037 ns 1037 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 18.2 ns 18.2 ns 10
|
|
replace runtime symbols with simstr and memorization of all search results_cv 1.75 % 1.75 % 10
|
|
replace const symbols with string expressions and without remembering all search results_mean 1034 ns 1034 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_median 1019 ns 1019 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_stddev 35.2 ns 35.2 ns 10
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.40 % 3.40 % 10
|
|
replace const symbols with string expressions and memorization of all search results_mean 892 ns 892 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_median 878 ns 878 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_stddev 24.3 ns 24.3 ns 10
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.72 % 2.72 % 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 156 ns 156 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 157 ns 157 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 3.45 ns 3.45 ns 10
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.21 % 2.21 % 10
|
|
Short replace symbols with std::string find_first_of + replace_mean 343 ns 343 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_median 348 ns 348 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_stddev 23.7 ns 23.7 ns 10
|
|
Short replace symbols with std::string find_first_of + replace_cv 6.91 % 6.91 % 10
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 167 ns 167 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_median 165 ns 165 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 6.66 ns 6.66 ns 10
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 3.98 % 3.98 % 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 191 ns 191 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 189 ns 189 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 7.06 ns 7.06 ns 10
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 3.70 % 3.70 % 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 185 ns 185 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 183 ns 183 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 5.32 ns 5.32 ns 10
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.88 % 2.88 % 10
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 132 ns 132 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_median 130 ns 130 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 4.94 ns 4.94 ns 10
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.73 % 3.73 % 10
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 149 ns 149 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_median 148 ns 148 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 3.65 ns 3.65 ns 10
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.46 % 2.46 % 10
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 161 ns 161 ns 10
|
|
replace bb to ---- in std::string|64_median 160 ns 160 ns 10
|
|
replace bb to ---- in std::string|64_stddev 5.40 ns 5.40 ns 10
|
|
replace bb to ---- in std::string|64_cv 3.36 % 3.36 % 10
|
|
replace bb to ---- in std::string|256_mean 543 ns 543 ns 10
|
|
replace bb to ---- in std::string|256_median 529 ns 529 ns 10
|
|
replace bb to ---- in std::string|256_stddev 35.9 ns 35.9 ns 10
|
|
replace bb to ---- in std::string|256_cv 6.61 % 6.61 % 10
|
|
replace bb to ---- in std::string|512_mean 1041 ns 1041 ns 10
|
|
replace bb to ---- in std::string|512_median 1042 ns 1042 ns 10
|
|
replace bb to ---- in std::string|512_stddev 16.1 ns 16.1 ns 10
|
|
replace bb to ---- in std::string|512_cv 1.55 % 1.55 % 10
|
|
replace bb to ---- in std::string|1024_mean 2329 ns 2329 ns 10
|
|
replace bb to ---- in std::string|1024_median 2239 ns 2239 ns 10
|
|
replace bb to ---- in std::string|1024_stddev 205 ns 205 ns 10
|
|
replace bb to ---- in std::string|1024_cv 8.81 % 8.81 % 10
|
|
replace bb to ---- in std::string|2048_mean 5815 ns 5815 ns 10
|
|
replace bb to ---- in std::string|2048_median 5657 ns 5657 ns 10
|
|
replace bb to ---- in std::string|2048_stddev 338 ns 338 ns 10
|
|
replace bb to ---- in std::string|2048_cv 5.82 % 5.82 % 10
|
|
replace bb to ---- in lstringa<8>|64_mean 143 ns 143 ns 10
|
|
replace bb to ---- in lstringa<8>|64_median 142 ns 142 ns 10
|
|
replace bb to ---- in lstringa<8>|64_stddev 3.02 ns 3.02 ns 10
|
|
replace bb to ---- in lstringa<8>|64_cv 2.12 % 2.12 % 10
|
|
replace bb to ---- in lstringa<8>|256_mean 439 ns 439 ns 10
|
|
replace bb to ---- in lstringa<8>|256_median 437 ns 437 ns 10
|
|
replace bb to ---- in lstringa<8>|256_stddev 9.49 ns 9.49 ns 10
|
|
replace bb to ---- in lstringa<8>|256_cv 2.16 % 2.16 % 10
|
|
replace bb to ---- in lstringa<8>|512_mean 833 ns 833 ns 10
|
|
replace bb to ---- in lstringa<8>|512_median 839 ns 839 ns 10
|
|
replace bb to ---- in lstringa<8>|512_stddev 25.8 ns 25.8 ns 10
|
|
replace bb to ---- in lstringa<8>|512_cv 3.10 % 3.10 % 10
|
|
replace bb to ---- in lstringa<8>|1024_mean 1669 ns 1669 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_median 1646 ns 1646 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_stddev 54.6 ns 54.6 ns 10
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.27 % 3.27 % 10
|
|
replace bb to ---- in lstringa<8>|2048_mean 3123 ns 3123 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_median 3111 ns 3111 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_stddev 54.4 ns 54.4 ns 10
|
|
replace bb to ---- in lstringa<8>|2048_cv 1.74 % 1.74 % 10
|
|
replace bb to ---- by init stringa|64_mean 98.9 ns 98.9 ns 10
|
|
replace bb to ---- by init stringa|64_median 98.0 ns 98.0 ns 10
|
|
replace bb to ---- by init stringa|64_stddev 3.52 ns 3.52 ns 10
|
|
replace bb to ---- by init stringa|64_cv 3.56 % 3.56 % 10
|
|
replace bb to ---- by init stringa|256_mean 300 ns 300 ns 10
|
|
replace bb to ---- by init stringa|256_median 298 ns 298 ns 10
|
|
replace bb to ---- by init stringa|256_stddev 6.55 ns 6.55 ns 10
|
|
replace bb to ---- by init stringa|256_cv 2.18 % 2.18 % 10
|
|
replace bb to ---- by init stringa|512_mean 706 ns 706 ns 10
|
|
replace bb to ---- by init stringa|512_median 701 ns 701 ns 10
|
|
replace bb to ---- by init stringa|512_stddev 17.5 ns 17.5 ns 10
|
|
replace bb to ---- by init stringa|512_cv 2.47 % 2.47 % 10
|
|
replace bb to ---- by init stringa|1024_mean 1511 ns 1512 ns 10
|
|
replace bb to ---- by init stringa|1024_median 1510 ns 1510 ns 10
|
|
replace bb to ---- by init stringa|1024_stddev 22.4 ns 22.4 ns 10
|
|
replace bb to ---- by init stringa|1024_cv 1.48 % 1.48 % 10
|
|
replace bb to ---- by init stringa|2048_mean 3078 ns 3078 ns 10
|
|
replace bb to ---- by init stringa|2048_median 3038 ns 3038 ns 10
|
|
replace bb to ---- by init stringa|2048_stddev 113 ns 113 ns 10
|
|
replace bb to ---- by init stringa|2048_cv 3.68 % 3.68 % 10
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 121 ns 121 ns 10
|
|
replace bb to -- in std::string|64_median 119 ns 119 ns 10
|
|
replace bb to -- in std::string|64_stddev 4.36 ns 4.36 ns 10
|
|
replace bb to -- in std::string|64_cv 3.62 % 3.62 % 10
|
|
replace bb to -- in std::string|256_mean 411 ns 411 ns 10
|
|
replace bb to -- in std::string|256_median 411 ns 411 ns 10
|
|
replace bb to -- in std::string|256_stddev 23.4 ns 23.4 ns 10
|
|
replace bb to -- in std::string|256_cv 5.69 % 5.69 % 10
|
|
replace bb to -- in std::string|512_mean 759 ns 759 ns 10
|
|
replace bb to -- in std::string|512_median 760 ns 760 ns 10
|
|
replace bb to -- in std::string|512_stddev 19.8 ns 19.8 ns 10
|
|
replace bb to -- in std::string|512_cv 2.60 % 2.60 % 10
|
|
replace bb to -- in std::string|1024_mean 1460 ns 1460 ns 10
|
|
replace bb to -- in std::string|1024_median 1449 ns 1449 ns 10
|
|
replace bb to -- in std::string|1024_stddev 54.1 ns 54.1 ns 10
|
|
replace bb to -- in std::string|1024_cv 3.70 % 3.70 % 10
|
|
replace bb to -- in std::string|2048_mean 3052 ns 3052 ns 10
|
|
replace bb to -- in std::string|2048_median 3033 ns 3033 ns 10
|
|
replace bb to -- in std::string|2048_stddev 74.6 ns 74.6 ns 10
|
|
replace bb to -- in std::string|2048_cv 2.44 % 2.44 % 10
|
|
replace bb to -- in lstringa<8>|64_mean 99.0 ns 99.0 ns 10
|
|
replace bb to -- in lstringa<8>|64_median 98.1 ns 98.1 ns 10
|
|
replace bb to -- in lstringa<8>|64_stddev 2.91 ns 2.91 ns 10
|
|
replace bb to -- in lstringa<8>|64_cv 2.94 % 2.94 % 10
|
|
replace bb to -- in lstringa<8>|256_mean 300 ns 300 ns 10
|
|
replace bb to -- in lstringa<8>|256_median 299 ns 299 ns 10
|
|
replace bb to -- in lstringa<8>|256_stddev 13.2 ns 13.2 ns 10
|
|
replace bb to -- in lstringa<8>|256_cv 4.39 % 4.39 % 10
|
|
replace bb to -- in lstringa<8>|512_mean 552 ns 552 ns 10
|
|
replace bb to -- in lstringa<8>|512_median 551 ns 551 ns 10
|
|
replace bb to -- in lstringa<8>|512_stddev 12.0 ns 12.0 ns 10
|
|
replace bb to -- in lstringa<8>|512_cv 2.17 % 2.17 % 10
|
|
replace bb to -- in lstringa<8>|1024_mean 1147 ns 1147 ns 10
|
|
replace bb to -- in lstringa<8>|1024_median 1154 ns 1154 ns 10
|
|
replace bb to -- in lstringa<8>|1024_stddev 30.5 ns 30.5 ns 10
|
|
replace bb to -- in lstringa<8>|1024_cv 2.66 % 2.66 % 10
|
|
replace bb to -- in lstringa<8>|2048_mean 2183 ns 2183 ns 10
|
|
replace bb to -- in lstringa<8>|2048_median 2167 ns 2167 ns 10
|
|
replace bb to -- in lstringa<8>|2048_stddev 65.9 ns 65.9 ns 10
|
|
replace bb to -- in lstringa<8>|2048_cv 3.02 % 3.02 % 10
|
|
replace bb to -- by init stringa|64_mean 82.4 ns 82.4 ns 10
|
|
replace bb to -- by init stringa|64_median 81.8 ns 81.8 ns 10
|
|
replace bb to -- by init stringa|64_stddev 2.20 ns 2.20 ns 10
|
|
replace bb to -- by init stringa|64_cv 2.67 % 2.67 % 10
|
|
replace bb to -- by init stringa|256_mean 244 ns 244 ns 10
|
|
replace bb to -- by init stringa|256_median 240 ns 240 ns 10
|
|
replace bb to -- by init stringa|256_stddev 11.1 ns 11.1 ns 10
|
|
replace bb to -- by init stringa|256_cv 4.53 % 4.53 % 10
|
|
replace bb to -- by init stringa|512_mean 444 ns 444 ns 10
|
|
replace bb to -- by init stringa|512_median 444 ns 444 ns 10
|
|
replace bb to -- by init stringa|512_stddev 18.2 ns 18.2 ns 10
|
|
replace bb to -- by init stringa|512_cv 4.11 % 4.11 % 10
|
|
replace bb to -- by init stringa|1024_mean 886 ns 886 ns 10
|
|
replace bb to -- by init stringa|1024_median 868 ns 868 ns 10
|
|
replace bb to -- by init stringa|1024_stddev 32.1 ns 32.1 ns 10
|
|
replace bb to -- by init stringa|1024_cv 3.62 % 3.62 % 10
|
|
replace bb to -- by init stringa|2048_mean 1707 ns 1707 ns 10
|
|
replace bb to -- by init stringa|2048_median 1696 ns 1696 ns 10
|
|
replace bb to -- by init stringa|2048_stddev 55.5 ns 55.5 ns 10
|
|
replace bb to -- by init stringa|2048_cv 3.25 % 3.25 % 10
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3625242 ns 3625255 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3613086 ns 3613099 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 56566 ns 56566 ns 10
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.56 % 1.56 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3517784 ns 3517795 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3487503 ns 3487513 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 77853 ns 77854 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.21 % 2.21 % 10
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3618716 ns 3618730 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3594424 ns 3594438 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 62317 ns 62318 ns 10
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.72 % 1.72 % 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4166457 ns 4166472 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4166618 ns 4166634 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 80853 ns 80854 ns 10
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.94 % 1.94 % 10
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 708 ns 708 ns 10
|
|
Build func full name std::string;_median 710 ns 710 ns 10
|
|
Build func full name std::string;_stddev 23.6 ns 23.6 ns 10
|
|
Build func full name std::string;_cv 3.33 % 3.33 % 10
|
|
Build func full name std::string 1;_mean 846 ns 846 ns 10
|
|
Build func full name std::string 1;_median 834 ns 834 ns 10
|
|
Build func full name std::string 1;_stddev 26.7 ns 26.7 ns 10
|
|
Build func full name std::string 1;_cv 3.15 % 3.15 % 10
|
|
Build func full name std::stream;_mean 2571 ns 2571 ns 10
|
|
Build func full name std::stream;_median 2542 ns 2542 ns 10
|
|
Build func full name std::stream;_stddev 73.7 ns 73.7 ns 10
|
|
Build func full name std::stream;_cv 2.87 % 2.87 % 10
|
|
Build func full name stringa;_mean 508 ns 508 ns 10
|
|
Build func full name stringa;_median 504 ns 504 ns 10
|
|
Build func full name stringa;_stddev 22.6 ns 22.6 ns 10
|
|
Build func full name stringa;_cv 4.45 % 4.45 % 10
|
|
Build func full name stringa 1;_mean 648 ns 648 ns 10
|
|
Build func full name stringa 1;_median 642 ns 642 ns 10
|
|
Build func full name stringa 1;_stddev 15.7 ns 15.7 ns 10
|
|
Build func full name stringa 1;_cv 2.43 % 2.43 % 10
|