mirror of https://github.com/orefkov/simstr.git
924 lines
136 KiB
Plaintext
924 lines
136 KiB
Plaintext
Benchmarks of simstr, version 1.6.3
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-03T17:02:44+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 234 ns 234 ns 4
|
|
Concat std::string and number by std to std::string_median 233 ns 233 ns 4
|
|
Concat std::string and number by std to std::string_stddev 28.1 ns 28.1 ns 4
|
|
Concat std::string and number by std to std::string_cv 12.02 % 12.02 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 104 ns 104 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 103 ns 103 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 3.27 ns 3.27 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 3.14 % 3.14 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 62.4 ns 62.4 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 62.5 ns 62.5 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.757 ns 0.757 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 1.21 % 1.21 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 67.8 ns 67.8 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 67.6 ns 67.6 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.49 ns 1.49 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 2.20 % 2.20 % 4
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and format hex number and literal to std::string_mean 684 ns 684 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 686 ns 686 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 5.97 ns 5.97 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 0.87 % 0.87 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 872 ns 872 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 875 ns 875 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 41.0 ns 41.0 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 4.70 % 4.70 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 203 ns 203 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 199 ns 199 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 10.7 ns 10.7 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 5.25 % 5.25 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 142 ns 142 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 141 ns 141 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 8.25 ns 8.25 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 5.83 % 5.83 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 124 ns 124 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 120 ns 120 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 8.24 ns 8.24 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 6.67 % 6.67 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 126 ns 126 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 126 ns 126 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.91 ns 1.91 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.52 % 1.52 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 216 ns 216 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 215 ns 215 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.43 ns 4.43 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.05 % 2.05 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 321 ns 321 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 322 ns 322 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.61 ns 6.61 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.06 % 2.06 % 4
|
|
----- format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_mean 168 ns 168 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_median 167 ns 167 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_stddev 4.50 ns 4.50 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_cv 2.68 % 2.68 % 4
|
|
std::format("art {:#010o} end", i)_mean 1004 ns 1004 ns 4
|
|
std::format("art {:#010o} end", i)_median 1002 ns 1002 ns 4
|
|
std::format("art {:#010o} end", i)_stddev 29.5 ns 29.5 ns 4
|
|
std::format("art {:#010o} end", i)_cv 2.94 % 2.94 % 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_mean 363 ns 363 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_median 363 ns 363 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_stddev 6.96 ns 6.95 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_cv 1.92 % 1.92 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1024 ns 1024 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1010 ns 1010 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 68.7 ns 68.7 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 6.71 % 6.71 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 55.8 ns 55.8 ns 4
|
|
Concat std::string by std to std::string_median 55.2 ns 55.2 ns 4
|
|
Concat std::string by std to std::string_stddev 1.46 ns 1.46 ns 4
|
|
Concat std::string by std to std::string_cv 2.62 % 2.62 % 4
|
|
Concat std::string by StrExpr to std::string_mean 39.5 ns 39.5 ns 4
|
|
Concat std::string by StrExpr to std::string_median 39.5 ns 39.5 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 0.736 ns 0.736 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.87 % 1.87 % 4
|
|
Concat stringa by StrExpr to stringa_mean 26.1 ns 26.1 ns 4
|
|
Concat stringa by StrExpr to stringa_median 26.0 ns 26.0 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 0.638 ns 0.638 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.44 % 2.44 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 113 ns 113 ns 4
|
|
Find concat three std::string_median 112 ns 112 ns 4
|
|
Find concat three std::string_stddev 2.38 ns 2.38 ns 4
|
|
Find concat three std::string_cv 2.11 % 2.11 % 4
|
|
Find concat three strexpr_mean 48.0 ns 48.0 ns 4
|
|
Find concat three strexpr_median 48.0 ns 48.0 ns 4
|
|
Find concat three strexpr_stddev 0.611 ns 0.611 ns 4
|
|
Find concat three strexpr_cv 1.27 % 1.27 % 4
|
|
Find concat three simstr_mean 19.7 ns 19.7 ns 4
|
|
Find concat three simstr_median 19.2 ns 19.2 ns 4
|
|
Find concat three simstr_stddev 1.31 ns 1.31 ns 4
|
|
Find concat three simstr_cv 6.65 % 6.65 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 7.51 ns 7.51 ns 4
|
|
BuildTypeNameStr 0/0_median 7.48 ns 7.48 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.102 ns 0.102 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.36 % 1.36 % 4
|
|
BuildTypeNameExp 0/0_mean 6.39 ns 6.39 ns 4
|
|
BuildTypeNameExp 0/0_median 6.40 ns 6.40 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.080 ns 0.080 ns 4
|
|
BuildTypeNameExp 0/0_cv 1.25 % 1.25 % 4
|
|
BuildTypeNameSim 0/0_mean 4.20 ns 4.20 ns 4
|
|
BuildTypeNameSim 0/0_median 4.20 ns 4.20 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.207 ns 0.207 ns 4
|
|
BuildTypeNameSim 0/0_cv 4.92 % 4.92 % 4
|
|
BuildTypeNameStr 10/10_mean 65.6 ns 65.6 ns 4
|
|
BuildTypeNameStr 10/10_median 66.5 ns 66.5 ns 4
|
|
BuildTypeNameStr 10/10_stddev 3.75 ns 3.75 ns 4
|
|
BuildTypeNameStr 10/10_cv 5.72 % 5.72 % 4
|
|
BuildTypeNameExp 10/10_mean 33.7 ns 33.7 ns 4
|
|
BuildTypeNameExp 10/10_median 34.0 ns 34.0 ns 4
|
|
BuildTypeNameExp 10/10_stddev 3.54 ns 3.54 ns 4
|
|
BuildTypeNameExp 10/10_cv 10.52 % 10.52 % 4
|
|
BuildTypeNameSim 10/10_mean 23.1 ns 23.1 ns 4
|
|
BuildTypeNameSim 10/10_median 22.9 ns 22.9 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.811 ns 0.811 ns 4
|
|
BuildTypeNameSim 10/10_cv 3.51 % 3.51 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 210 ns 210 ns 4
|
|
Concat with replace str_median 210 ns 210 ns 4
|
|
Concat with replace str_stddev 3.29 ns 3.29 ns 4
|
|
Concat with replace str_cv 1.57 % 1.57 % 4
|
|
Concat with replace exp_mean 138 ns 138 ns 4
|
|
Concat with replace exp_median 138 ns 138 ns 4
|
|
Concat with replace exp_stddev 0.823 ns 0.823 ns 4
|
|
Concat with replace exp_cv 0.60 % 0.60 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.09 ns 1.09 ns 4
|
|
std::string e;_median 1.09 ns 1.09 ns 4
|
|
std::string e;_stddev 0.006 ns 0.006 ns 4
|
|
std::string e;_cv 0.59 % 0.59 % 4
|
|
std::string_view e;_mean 0.365 ns 0.365 ns 4
|
|
std::string_view e;_median 0.364 ns 0.364 ns 4
|
|
std::string_view e;_stddev 0.005 ns 0.005 ns 4
|
|
std::string_view e;_cv 1.45 % 1.45 % 4
|
|
ssa e;_mean 0.363 ns 0.363 ns 4
|
|
ssa e;_median 0.364 ns 0.364 ns 4
|
|
ssa e;_stddev 0.004 ns 0.004 ns 4
|
|
ssa e;_cv 1.24 % 1.24 % 4
|
|
stringa e;_mean 0.730 ns 0.730 ns 4
|
|
stringa e;_median 0.729 ns 0.729 ns 4
|
|
stringa e;_stddev 0.008 ns 0.008 ns 4
|
|
stringa e;_cv 1.05 % 1.05 % 4
|
|
lstringa<20> e;_mean 1.13 ns 1.13 ns 4
|
|
lstringa<20> e;_median 1.12 ns 1.12 ns 4
|
|
lstringa<20> e;_stddev 0.066 ns 0.066 ns 4
|
|
lstringa<20> e;_cv 5.83 % 5.83 % 4
|
|
lstringa<40> e;_mean 1.14 ns 1.14 ns 4
|
|
lstringa<40> e;_median 1.13 ns 1.13 ns 4
|
|
lstringa<40> e;_stddev 0.044 ns 0.044 ns 4
|
|
lstringa<40> e;_cv 3.90 % 3.90 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.83 ns 1.83 ns 4
|
|
std::string e = "Test text";_median 1.83 ns 1.83 ns 4
|
|
std::string e = "Test text";_stddev 0.030 ns 0.030 ns 4
|
|
std::string e = "Test text";_cv 1.64 % 1.64 % 4
|
|
std::string_view e = "Test text";_mean 0.734 ns 0.734 ns 4
|
|
std::string_view e = "Test text";_median 0.733 ns 0.733 ns 4
|
|
std::string_view e = "Test text";_stddev 0.012 ns 0.012 ns 4
|
|
std::string_view e = "Test text";_cv 1.60 % 1.60 % 4
|
|
ssa e = "Test text";_mean 0.372 ns 0.372 ns 4
|
|
ssa e = "Test text";_median 0.371 ns 0.371 ns 4
|
|
ssa e = "Test text";_stddev 0.004 ns 0.004 ns 4
|
|
ssa e = "Test text";_cv 1.11 % 1.11 % 4
|
|
stringa e = "Test text";_mean 1.11 ns 1.11 ns 4
|
|
stringa e = "Test text";_median 1.11 ns 1.11 ns 4
|
|
stringa e = "Test text";_stddev 0.011 ns 0.011 ns 4
|
|
stringa e = "Test text";_cv 0.97 % 0.97 % 4
|
|
lstringa<20> e = "Test text";_mean 1.85 ns 1.85 ns 4
|
|
lstringa<20> e = "Test text";_median 1.85 ns 1.85 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.009 ns 0.009 ns 4
|
|
lstringa<20> e = "Test text";_cv 0.50 % 0.50 % 4
|
|
lstringa<40> e = "Test text";_mean 1.89 ns 1.89 ns 4
|
|
lstringa<40> e = "Test text";_median 1.89 ns 1.89 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.038 ns 0.038 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.99 % 1.99 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 19.3 ns 19.3 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 19.1 ns 19.1 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.521 ns 0.521 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 2.70 % 2.70 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.739 ns 0.739 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 0.739 ns 0.739 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.021 ns 0.021 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 2.88 % 2.88 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 0.386 ns 0.386 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 0.373 ns 0.373 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.028 ns 0.028 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 7.37 % 7.37 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.046 ns 0.046 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 4.12 % 4.12 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 21.7 ns 21.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 20.9 ns 20.9 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 2.22 ns 2.22 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 10.23 % 10.23 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.60 ns 2.60 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.56 ns 2.56 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.127 ns 0.127 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 4.86 % 4.86 % 4
|
|
----- 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 6.07 ns 6.07 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.87 ns 5.87 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.557 ns 0.557 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 9.19 % 9.19 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.382 ns 0.382 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 0.375 ns 0.375 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.025 ns 0.025 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 6.63 % 6.63 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 0.367 ns 0.367 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 0.366 ns 0.366 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.98 % 0.98 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.021 ns 0.021 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 1.87 % 1.87 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.12 ns 4.12 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.11 ns 4.11 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.050 ns 0.050 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.22 % 1.22 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.37 ns 4.37 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.25 ns 4.25 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.297 ns 0.297 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 6.81 % 6.81 % 4
|
|
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 20.1 ns 20.1 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 20.0 ns 20.0 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.957 ns 0.958 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.76 % 4.76 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.732 ns 0.732 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.731 ns 0.731 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.014 ns 0.014 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.88 % 1.88 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.376 ns 0.376 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.373 ns 0.373 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.39 % 2.39 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.15 ns 1.15 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.13 ns 1.13 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.050 ns 0.050 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 4.39 % 4.39 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.5 ns 21.5 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.4 ns 21.4 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.959 ns 0.959 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 4.46 % 4.46 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.04 ns 4.04 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.05 ns 4.05 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.083 ns 0.083 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.05 % 2.05 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 6.67 ns 6.67 ns 4
|
|
std::string::find;_median 6.71 ns 6.71 ns 4
|
|
std::string::find;_stddev 0.109 ns 0.109 ns 4
|
|
std::string::find;_cv 1.64 % 1.64 % 4
|
|
std::string_view::find;_mean 7.81 ns 7.81 ns 4
|
|
std::string_view::find;_median 7.79 ns 7.79 ns 4
|
|
std::string_view::find;_stddev 0.460 ns 0.460 ns 4
|
|
std::string_view::find;_cv 5.89 % 5.89 % 4
|
|
ssa::find;_mean 7.11 ns 7.11 ns 4
|
|
ssa::find;_median 7.12 ns 7.12 ns 4
|
|
ssa::find;_stddev 0.120 ns 0.120 ns 4
|
|
ssa::find;_cv 1.69 % 1.69 % 4
|
|
stringa::find;_mean 7.18 ns 7.18 ns 4
|
|
stringa::find;_median 7.22 ns 7.22 ns 4
|
|
stringa::find;_stddev 0.122 ns 0.122 ns 4
|
|
stringa::find;_cv 1.69 % 1.69 % 4
|
|
lstringa<20>::find;_mean 7.10 ns 7.10 ns 4
|
|
lstringa<20>::find;_median 7.00 ns 7.00 ns 4
|
|
lstringa<20>::find;_stddev 0.410 ns 0.410 ns 4
|
|
lstringa<20>::find;_cv 5.77 % 5.77 % 4
|
|
lstringa<40>::find;_mean 6.69 ns 6.69 ns 4
|
|
lstringa<40>::find;_median 6.67 ns 6.67 ns 4
|
|
lstringa<40>::find;_stddev 0.123 ns 0.123 ns 4
|
|
lstringa<40>::find;_cv 1.84 % 1.84 % 4
|
|
------- 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.61 ns 5.61 ns 4
|
|
std::string copy{str_with_len_N};/15_median 5.60 ns 5.60 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.097 ns 0.097 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 1.72 % 1.72 % 4
|
|
std::string copy{str_with_len_N};/16_mean 23.0 ns 23.0 ns 4
|
|
std::string copy{str_with_len_N};/16_median 23.0 ns 23.0 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 0.539 ns 0.539 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 2.35 % 2.35 % 4
|
|
std::string copy{str_with_len_N};/23_mean 23.0 ns 23.0 ns 4
|
|
std::string copy{str_with_len_N};/23_median 23.2 ns 23.2 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 0.607 ns 0.607 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 2.64 % 2.64 % 4
|
|
std::string copy{str_with_len_N};/24_mean 22.9 ns 22.9 ns 4
|
|
std::string copy{str_with_len_N};/24_median 22.7 ns 22.7 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 0.831 ns 0.831 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 3.62 % 3.62 % 4
|
|
std::string copy{str_with_len_N};/32_mean 22.4 ns 22.4 ns 4
|
|
std::string copy{str_with_len_N};/32_median 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 0.449 ns 0.449 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 2.00 % 2.00 % 4
|
|
std::string copy{str_with_len_N};/64_mean 23.1 ns 23.1 ns 4
|
|
std::string copy{str_with_len_N};/64_median 22.7 ns 22.7 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 0.959 ns 0.959 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 4.15 % 4.15 % 4
|
|
std::string copy{str_with_len_N};/128_mean 24.2 ns 24.2 ns 4
|
|
std::string copy{str_with_len_N};/128_median 24.1 ns 24.1 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 0.593 ns 0.593 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 2.46 % 2.46 % 4
|
|
std::string copy{str_with_len_N};/256_mean 24.7 ns 24.7 ns 4
|
|
std::string copy{str_with_len_N};/256_median 24.2 ns 24.2 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 1.11 ns 1.11 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 4.51 % 4.51 % 4
|
|
std::string copy{str_with_len_N};/512_mean 29.2 ns 29.2 ns 4
|
|
std::string copy{str_with_len_N};/512_median 29.2 ns 29.2 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 0.746 ns 0.746 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 2.55 % 2.55 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 45.3 ns 45.3 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 45.4 ns 45.4 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 1.10 ns 1.10 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 2.43 % 2.43 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 121 ns 121 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 8.43 ns 8.43 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 6.84 % 6.84 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 153 ns 153 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 154 ns 154 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 5.35 ns 5.35 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 3.49 % 3.49 % 4
|
|
stringa copy{str_with_len_N};/15_mean 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.021 ns 0.021 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 1.90 % 1.90 % 4
|
|
stringa copy{str_with_len_N};/16_mean 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/16_median 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.024 ns 0.024 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 2.19 % 2.19 % 4
|
|
stringa copy{str_with_len_N};/23_mean 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/23_median 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.009 ns 0.009 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 0.84 % 0.84 % 4
|
|
stringa copy{str_with_len_N};/24_mean 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/24_median 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.129 ns 0.129 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 0.80 % 0.80 % 4
|
|
stringa copy{str_with_len_N};/32_mean 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/32_median 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.093 ns 0.093 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.57 % 0.57 % 4
|
|
stringa copy{str_with_len_N};/64_mean 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/64_median 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.154 ns 0.154 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.94 % 0.94 % 4
|
|
stringa copy{str_with_len_N};/128_mean 16.6 ns 16.6 ns 4
|
|
stringa copy{str_with_len_N};/128_median 16.7 ns 16.7 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.246 ns 0.246 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 1.48 % 1.48 % 4
|
|
stringa copy{str_with_len_N};/256_mean 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/256_median 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.213 ns 0.213 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 1.31 % 1.31 % 4
|
|
stringa copy{str_with_len_N};/512_mean 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/512_median 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.110 ns 0.110 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.68 % 0.68 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.146 ns 0.146 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.89 % 0.89 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.054 ns 0.054 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.33 % 0.33 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 16.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.037 ns 0.037 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.23 % 0.23 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.19 ns 4.19 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.20 ns 4.20 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.032 ns 0.032 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 0.78 % 0.78 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.23 ns 4.23 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.24 ns 4.24 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.155 ns 0.155 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 3.66 % 3.66 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.11 ns 4.11 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.11 ns 4.11 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.074 ns 0.074 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.80 % 1.80 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 23.4 ns 23.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 23.3 ns 23.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.277 ns 0.277 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 1.18 % 1.18 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 23.2 ns 23.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 23.1 ns 23.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.575 ns 0.575 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.48 % 2.48 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 24.4 ns 24.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 24.4 ns 24.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.655 ns 0.655 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 2.68 % 2.68 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 24.4 ns 24.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 24.5 ns 24.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 0.639 ns 0.639 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 2.62 % 2.62 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 26.2 ns 26.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 26.1 ns 26.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.329 ns 0.329 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.26 % 1.26 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 28.9 ns 28.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 28.8 ns 28.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 0.706 ns 0.706 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 2.44 % 2.44 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 93.7 ns 93.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 93.8 ns 93.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 1.58 ns 1.58 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 1.69 % 1.69 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 107 ns 107 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 106 ns 106 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 3.77 ns 3.77 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 3.53 % 3.53 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 121 ns 121 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 120 ns 120 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 4.12 ns 4.12 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 3.40 % 3.40 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.49 ns 4.49 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.50 ns 4.50 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.124 ns 0.124 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 2.77 % 2.77 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 4.61 ns 4.61 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 4.45 ns 4.45 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.401 ns 0.401 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 8.68 % 8.68 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 4.75 ns 4.75 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 4.54 ns 4.54 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.598 ns 0.598 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 12.59 % 12.59 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 5.41 ns 5.41 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 5.38 ns 5.38 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.399 ns 0.399 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 7.37 % 7.37 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.77 ns 4.77 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.67 ns 4.67 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.600 ns 0.600 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 12.59 % 12.59 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.39 ns 6.39 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 6.24 ns 6.24 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.669 ns 0.669 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 10.46 % 10.46 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 6.25 ns 6.25 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 6.23 ns 6.23 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.134 ns 0.134 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.14 % 2.14 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 8.31 ns 8.31 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 8.26 ns 8.26 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.430 ns 0.430 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 5.17 % 5.17 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 10.1 ns 10.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 10.2 ns 10.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.229 ns 0.229 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 2.27 % 2.27 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 94.6 ns 94.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 95.6 ns 95.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.89 ns 2.89 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 3.05 % 3.05 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 106 ns 106 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 105 ns 105 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 5.63 ns 5.63 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 5.29 % 5.29 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 127 ns 127 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 128 ns 128 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 3.87 ns 3.87 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 3.05 % 3.05 % 4
|
|
----- 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.1 ns 27.1 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.3 ns 27.3 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.694 ns 0.695 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.56 % 2.56 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 15.3 ns 15.3 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 15.2 ns 15.2 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.592 ns 0.592 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.86 % 3.86 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.9 ns 12.9 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.9 ns 12.9 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.284 ns 0.284 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.21 % 2.21 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.6 ns 12.6 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.5 ns 12.5 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.448 ns 0.448 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.57 % 3.57 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.4 ns 12.4 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.4 ns 12.4 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.119 ns 0.119 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.96 % 0.96 % 4
|
|
----- 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.8 ns 23.8 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.8 ns 23.8 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.551 ns 0.551 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.31 % 2.31 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.64 ns 9.64 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.62 ns 9.62 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.149 ns 0.149 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.55 % 1.55 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.5 ns 13.5 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.3 ns 13.3 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.941 ns 0.941 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 6.95 % 6.95 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.3 ns 13.3 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.0 ns 13.0 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.941 ns 0.941 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 7.05 % 7.05 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.3 ns 12.3 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.3 ns 12.3 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.159 ns 0.159 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.29 % 1.29 % 4
|
|
----- 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.5 ns 28.5 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.6 ns 28.6 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.214 ns 0.214 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 0.75 % 0.75 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 19.1 ns 19.1 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.7 ns 18.7 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 1.13 ns 1.13 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 5.93 % 5.93 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 15.4 ns 15.4 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 15.4 ns 15.4 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.235 ns 0.235 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.52 % 1.52 % 4
|
|
----- 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 66.3 ns 66.3 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.0 ns 66.0 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.891 ns 0.890 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.34 % 1.34 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 23.9 ns 23.9 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.0 ns 24.0 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.276 ns 0.276 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.15 % 1.15 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.8 ns 25.8 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 26.0 ns 26.0 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.584 ns 0.584 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.26 % 2.26 % 4
|
|
-- 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 1343 ns 1343 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1333 ns 1333 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 29.9 ns 29.9 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.23 % 2.23 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 400 ns 400 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 398 ns 398 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 12.4 ns 12.4 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 3.12 % 3.12 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 384 ns 384 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 384 ns 384 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 1.22 ns 1.22 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.32 % 0.32 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 282 ns 282 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 283 ns 283 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 8.25 ns 8.25 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.92 % 2.92 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 255 ns 255 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 261 ns 261 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 14.8 ns 14.8 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.80 % 5.80 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 154 ns 154 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 154 ns 154 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.31 ns 1.31 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.85 % 0.85 % 4
|
|
-- 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 1440 ns 1440 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1434 ns 1434 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 35.5 ns 35.5 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.46 % 2.46 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1221 ns 1221 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1224 ns 1224 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 28.8 ns 28.8 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.36 % 2.36 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 444 ns 444 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 434 ns 434 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 40.4 ns 40.4 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 9.12 % 9.12 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 366 ns 367 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 368 ns 368 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.59 ns 9.59 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.62 % 2.62 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 297 ns 297 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 303 ns 303 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.2 ns 18.2 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.13 % 6.13 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 201 ns 201 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 198 ns 198 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.16 ns 8.16 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.07 % 4.07 % 4
|
|
-- 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 77169 ns 77169 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 76502 ns 76502 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2391 ns 2391 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.10 % 3.10 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73735 ns 73735 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73638 ns 73638 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2379 ns 2379 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.23 % 3.23 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23209 ns 23209 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21203 ns 21203 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4334 ns 4334 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 18.68 % 18.68 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18060 ns 18060 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17598 ns 17598 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1438 ns 1438 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.96 % 7.96 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19949 ns 19949 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19751 ns 19751 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1436 ns 1436 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.20 % 7.20 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20464 ns 20464 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20348 ns 20348 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1584 ns 1584 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.74 % 7.74 % 4
|
|
-- 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 1527 ns 1527 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1532 ns 1532 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 35.2 ns 35.1 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.30 % 2.30 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1467 ns 1467 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 1444 ns 1444 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 59.7 ns 59.7 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 4.07 % 4.07 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 532 ns 532 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 533 ns 533 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.68 ns 8.68 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.63 % 1.63 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 466 ns 466 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 464 ns 464 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 9.92 ns 9.92 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.13 % 2.13 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 413 ns 413 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 416 ns 416 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.1 ns 12.1 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.94 % 2.94 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 314 ns 314 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 316 ns 316 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 10.5 ns 10.5 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 3.34 % 3.34 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3076 ns 3076 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 3066 ns 3066 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 98.4 ns 98.4 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 3.20 % 3.20 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 494 ns 494 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 496 ns 496 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 11.5 ns 11.5 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 2.33 % 2.33 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1421 ns 1421 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1426 ns 1426 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 29.9 ns 29.9 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.10 % 2.10 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 1118 ns 1118 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 1118 ns 1118 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 4.01 ns 4.01 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 0.36 % 0.36 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1374 ns 1374 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1364 ns 1364 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 46.6 ns 46.6 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 3.39 % 3.39 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 974 ns 974 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 981 ns 981 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 21.3 ns 21.3 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 2.19 % 2.19 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 296 ns 296 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 296 ns 296 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 6.67 ns 6.67 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 2.25 % 2.25 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 155 ns 155 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 154 ns 154 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.30 ns 3.30 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.14 % 2.14 % 4
|
|
stringa str = "test = " + k + " times";_mean 153 ns 153 ns 4
|
|
stringa str = "test = " + k + " times";_median 154 ns 154 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 2.68 ns 2.68 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.76 % 1.76 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 281 ns 281 ns 4
|
|
std::string::find + substr + std::strtol_median 280 ns 280 ns 4
|
|
std::string::find + substr + std::strtol_stddev 8.26 ns 8.26 ns 4
|
|
std::string::find + substr + std::strtol_cv 2.94 % 2.94 % 4
|
|
ssa::splitter + ssa::as_int_mean 157 ns 157 ns 4
|
|
ssa::splitter + ssa::as_int_median 155 ns 155 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 8.15 ns 8.15 ns 4
|
|
ssa::splitter + ssa::as_int_cv 5.18 % 5.18 % 4
|
|
ssa::splitf + functor_mean 215 ns 215 ns 4
|
|
ssa::splitf + functor_median 214 ns 214 ns 4
|
|
ssa::splitf + functor_stddev 4.23 ns 4.23 ns 4
|
|
ssa::splitf + functor_cv 1.97 % 1.97 % 4
|
|
-- 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 1000 ns 1000 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 982 ns 982 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 51.7 ns 51.7 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 5.17 % 5.17 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2679 ns 2679 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2668 ns 2668 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 50.4 ns 50.4 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 1.88 % 1.88 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 1109 ns 1109 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 1107 ns 1107 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 33.7 ns 33.7 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 3.04 % 3.04 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1267 ns 1267 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1281 ns 1281 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 44.6 ns 44.6 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 3.52 % 3.52 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1002 ns 1002 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1010 ns 1010 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 21.0 ns 21.0 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.09 % 2.09 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1150 ns 1150 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1143 ns 1143 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 40.6 ns 40.6 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 3.53 % 3.53 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 870 ns 870 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 870 ns 870 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 20.7 ns 20.7 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.38 % 2.38 % 4
|
|
-- 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 172 ns 172 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 171 ns 171 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 4.80 ns 4.80 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.79 % 2.79 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 322 ns 322 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 330 ns 330 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 17.2 ns 17.2 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 5.32 % 5.32 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 167 ns 167 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 166 ns 166 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 1.52 ns 1.52 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 0.91 % 0.91 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 181 ns 181 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 180 ns 180 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 5.33 ns 5.33 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.94 % 2.94 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 185 ns 185 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 183 ns 183 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 4.78 ns 4.78 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.59 % 2.59 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 144 ns 144 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 143 ns 143 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 2.68 ns 2.68 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 1.85 % 1.85 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 143 ns 143 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 143 ns 143 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 0.641 ns 0.641 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 0.45 % 0.45 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 156 ns 156 ns 4
|
|
replace bb to ---- in std::string|64_median 155 ns 155 ns 4
|
|
replace bb to ---- in std::string|64_stddev 2.62 ns 2.62 ns 4
|
|
replace bb to ---- in std::string|64_cv 1.68 % 1.68 % 4
|
|
replace bb to ---- in std::string|256_mean 525 ns 525 ns 4
|
|
replace bb to ---- in std::string|256_median 524 ns 524 ns 4
|
|
replace bb to ---- in std::string|256_stddev 11.1 ns 11.1 ns 4
|
|
replace bb to ---- in std::string|256_cv 2.11 % 2.11 % 4
|
|
replace bb to ---- in std::string|512_mean 1042 ns 1042 ns 4
|
|
replace bb to ---- in std::string|512_median 1042 ns 1042 ns 4
|
|
replace bb to ---- in std::string|512_stddev 5.69 ns 5.69 ns 4
|
|
replace bb to ---- in std::string|512_cv 0.55 % 0.55 % 4
|
|
replace bb to ---- in std::string|1024_mean 2418 ns 2418 ns 4
|
|
replace bb to ---- in std::string|1024_median 2373 ns 2373 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 174 ns 174 ns 4
|
|
replace bb to ---- in std::string|1024_cv 7.18 % 7.18 % 4
|
|
replace bb to ---- in std::string|2048_mean 5883 ns 5883 ns 4
|
|
replace bb to ---- in std::string|2048_median 5916 ns 5916 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 106 ns 106 ns 4
|
|
replace bb to ---- in std::string|2048_cv 1.79 % 1.79 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 144 ns 144 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 141 ns 141 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 9.16 ns 9.16 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 6.38 % 6.38 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 529 ns 529 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 528 ns 528 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 49.3 ns 49.3 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 9.32 % 9.32 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 880 ns 880 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 883 ns 883 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 97.4 ns 97.4 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 11.07 % 11.07 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1805 ns 1805 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1790 ns 1790 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 54.4 ns 54.4 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.01 % 3.01 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3265 ns 3265 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3245 ns 3245 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 76.3 ns 76.3 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.34 % 2.34 % 4
|
|
replace bb to ---- by init stringa|64_mean 107 ns 107 ns 4
|
|
replace bb to ---- by init stringa|64_median 107 ns 107 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.42 ns 2.42 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.25 % 2.25 % 4
|
|
replace bb to ---- by init stringa|256_mean 313 ns 313 ns 4
|
|
replace bb to ---- by init stringa|256_median 310 ns 310 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 10.2 ns 10.2 ns 4
|
|
replace bb to ---- by init stringa|256_cv 3.27 % 3.27 % 4
|
|
replace bb to ---- by init stringa|512_mean 751 ns 751 ns 4
|
|
replace bb to ---- by init stringa|512_median 757 ns 757 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 28.0 ns 28.0 ns 4
|
|
replace bb to ---- by init stringa|512_cv 3.72 % 3.72 % 4
|
|
replace bb to ---- by init stringa|1024_mean 1657 ns 1657 ns 4
|
|
replace bb to ---- by init stringa|1024_median 1620 ns 1620 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 105 ns 105 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 6.36 % 6.36 % 4
|
|
replace bb to ---- by init stringa|2048_mean 3126 ns 3126 ns 4
|
|
replace bb to ---- by init stringa|2048_median 3128 ns 3128 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 28.8 ns 28.8 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 0.92 % 0.92 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 120 ns 120 ns 4
|
|
replace bb to -- in std::string|64_median 119 ns 119 ns 4
|
|
replace bb to -- in std::string|64_stddev 7.11 ns 7.11 ns 4
|
|
replace bb to -- in std::string|64_cv 5.91 % 5.91 % 4
|
|
replace bb to -- in std::string|256_mean 404 ns 404 ns 4
|
|
replace bb to -- in std::string|256_median 403 ns 403 ns 4
|
|
replace bb to -- in std::string|256_stddev 11.8 ns 11.8 ns 4
|
|
replace bb to -- in std::string|256_cv 2.91 % 2.91 % 4
|
|
replace bb to -- in std::string|512_mean 761 ns 761 ns 4
|
|
replace bb to -- in std::string|512_median 761 ns 761 ns 4
|
|
replace bb to -- in std::string|512_stddev 7.59 ns 7.59 ns 4
|
|
replace bb to -- in std::string|512_cv 1.00 % 1.00 % 4
|
|
replace bb to -- in std::string|1024_mean 1606 ns 1606 ns 4
|
|
replace bb to -- in std::string|1024_median 1588 ns 1588 ns 4
|
|
replace bb to -- in std::string|1024_stddev 50.1 ns 50.1 ns 4
|
|
replace bb to -- in std::string|1024_cv 3.12 % 3.12 % 4
|
|
replace bb to -- in std::string|2048_mean 3280 ns 3280 ns 4
|
|
replace bb to -- in std::string|2048_median 3170 ns 3170 ns 4
|
|
replace bb to -- in std::string|2048_stddev 360 ns 360 ns 4
|
|
replace bb to -- in std::string|2048_cv 10.99 % 10.99 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 104 ns 104 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 105 ns 105 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 2.19 ns 2.19 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 2.10 % 2.10 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 312 ns 312 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 312 ns 312 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 4.57 ns 4.57 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 1.46 % 1.46 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 591 ns 591 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 590 ns 590 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 13.8 ns 13.8 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 2.33 % 2.33 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1139 ns 1139 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1142 ns 1142 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 54.0 ns 54.0 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 4.75 % 4.75 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2679 ns 2679 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2623 ns 2623 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 185 ns 185 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 6.92 % 6.92 % 4
|
|
replace bb to -- by init stringa|64_mean 91.0 ns 91.0 ns 4
|
|
replace bb to -- by init stringa|64_median 88.0 ns 88.0 ns 4
|
|
replace bb to -- by init stringa|64_stddev 7.52 ns 7.52 ns 4
|
|
replace bb to -- by init stringa|64_cv 8.26 % 8.26 % 4
|
|
replace bb to -- by init stringa|256_mean 242 ns 242 ns 4
|
|
replace bb to -- by init stringa|256_median 237 ns 237 ns 4
|
|
replace bb to -- by init stringa|256_stddev 10.3 ns 10.3 ns 4
|
|
replace bb to -- by init stringa|256_cv 4.25 % 4.25 % 4
|
|
replace bb to -- by init stringa|512_mean 431 ns 431 ns 4
|
|
replace bb to -- by init stringa|512_median 431 ns 431 ns 4
|
|
replace bb to -- by init stringa|512_stddev 6.57 ns 6.57 ns 4
|
|
replace bb to -- by init stringa|512_cv 1.52 % 1.52 % 4
|
|
replace bb to -- by init stringa|1024_mean 914 ns 914 ns 4
|
|
replace bb to -- by init stringa|1024_median 922 ns 922 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 26.2 ns 26.2 ns 4
|
|
replace bb to -- by init stringa|1024_cv 2.87 % 2.87 % 4
|
|
replace bb to -- by init stringa|2048_mean 1647 ns 1647 ns 4
|
|
replace bb to -- by init stringa|2048_median 1640 ns 1640 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 14.5 ns 14.5 ns 4
|
|
replace bb to -- by init stringa|2048_cv 0.88 % 0.88 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3546428 ns 3546439 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3546580 ns 3546589 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 43528 ns 43526 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.23 % 1.23 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3486975 ns 3486985 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3486065 ns 3486073 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 24031 ns 24029 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 0.69 % 0.69 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3592544 ns 3592555 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3606299 ns 3606309 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 69390 ns 69388 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.93 % 1.93 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3988653 ns 3988647 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3992327 ns 3992299 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 57485 ns 57473 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.44 % 1.44 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 697 ns 697 ns 4
|
|
Build func full name std::string;_median 693 ns 693 ns 4
|
|
Build func full name std::string;_stddev 11.6 ns 11.6 ns 4
|
|
Build func full name std::string;_cv 1.66 % 1.66 % 4
|
|
Build func full name std::string 1;_mean 803 ns 803 ns 4
|
|
Build func full name std::string 1;_median 807 ns 807 ns 4
|
|
Build func full name std::string 1;_stddev 17.5 ns 17.5 ns 4
|
|
Build func full name std::string 1;_cv 2.18 % 2.18 % 4
|
|
Build func full name std::stream;_mean 2540 ns 2540 ns 4
|
|
Build func full name std::stream;_median 2513 ns 2513 ns 4
|
|
Build func full name std::stream;_stddev 72.6 ns 72.5 ns 4
|
|
Build func full name std::stream;_cv 2.86 % 2.86 % 4
|
|
Build func full name stringa;_mean 507 ns 507 ns 4
|
|
Build func full name stringa;_median 506 ns 506 ns 4
|
|
Build func full name stringa;_stddev 27.8 ns 27.8 ns 4
|
|
Build func full name stringa;_cv 5.48 % 5.48 % 4
|
|
Build func full name stringa 1;_mean 655 ns 655 ns 4
|
|
Build func full name stringa 1;_median 657 ns 657 ns 4
|
|
Build func full name stringa 1;_stddev 8.18 ns 8.18 ns 4
|
|
Build func full name stringa 1;_cv 1.25 % 1.25 % 4
|