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:15:10+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.24, 0.68, 0.48
|
|
***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 211 ns 211 ns 4
|
|
Concat std::string and number by std to std::string_median 211 ns 211 ns 4
|
|
Concat std::string and number by std to std::string_stddev 5.41 ns 5.41 ns 4
|
|
Concat std::string and number by std to std::string_cv 2.56 % 2.56 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 111 ns 111 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 110 ns 110 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 5.87 ns 5.87 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 5.29 % 5.29 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 72.6 ns 72.6 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 72.8 ns 72.8 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.961 ns 0.961 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 1.33 % 1.33 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 79.0 ns 79.0 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 78.6 ns 78.6 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 2.56 ns 2.56 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 3.24 % 3.24 % 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 653 ns 653 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 643 ns 643 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 33.4 ns 33.4 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 5.12 % 5.12 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 960 ns 960 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 952 ns 952 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 34.6 ns 34.6 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 3.60 % 3.60 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 197 ns 197 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 196 ns 196 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 4.79 ns 4.79 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 2.43 % 2.43 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 127 ns 127 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 126 ns 126 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.52 ns 2.52 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.99 % 1.99 % 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 123 ns 123 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 3.73 ns 3.73 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 3.02 % 3.02 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 134 ns 134 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 132 ns 132 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 5.89 ns 5.89 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 4.39 % 4.39 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 173 ns 173 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 176 ns 176 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 8.74 ns 8.74 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.04 % 5.04 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 284 ns 284 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 282 ns 282 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.50 ns 8.50 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.99 % 2.99 % 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 145 ns 145 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_median 146 ns 146 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_stddev 6.56 ns 6.56 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_cv 4.53 % 4.53 % 4
|
|
std::format("art {:#010o} end", i)_mean 1261 ns 1261 ns 4
|
|
std::format("art {:#010o} end", i)_median 1253 ns 1253 ns 4
|
|
std::format("art {:#010o} end", i)_stddev 88.7 ns 88.7 ns 4
|
|
std::format("art {:#010o} end", i)_cv 7.04 % 7.04 % 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_mean 341 ns 341 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_median 340 ns 340 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_stddev 4.03 ns 4.03 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_cv 1.18 % 1.18 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1132 ns 1132 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1095 ns 1095 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 91.3 ns 91.3 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 8.07 % 8.07 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 52.0 ns 52.0 ns 4
|
|
Concat std::string by std to std::string_median 51.1 ns 51.1 ns 4
|
|
Concat std::string by std to std::string_stddev 3.18 ns 3.18 ns 4
|
|
Concat std::string by std to std::string_cv 6.11 % 6.11 % 4
|
|
Concat std::string by StrExpr to std::string_mean 35.8 ns 35.8 ns 4
|
|
Concat std::string by StrExpr to std::string_median 35.8 ns 35.8 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 0.676 ns 0.676 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.89 % 1.89 % 4
|
|
Concat stringa by StrExpr to stringa_mean 27.7 ns 27.7 ns 4
|
|
Concat stringa by StrExpr to stringa_median 27.8 ns 27.8 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 0.709 ns 0.709 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.56 % 2.56 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 129 ns 129 ns 4
|
|
Find concat three std::string_median 129 ns 129 ns 4
|
|
Find concat three std::string_stddev 4.04 ns 4.04 ns 4
|
|
Find concat three std::string_cv 3.12 % 3.12 % 4
|
|
Find concat three strexpr_mean 54.9 ns 54.9 ns 4
|
|
Find concat three strexpr_median 54.6 ns 54.6 ns 4
|
|
Find concat three strexpr_stddev 0.979 ns 0.979 ns 4
|
|
Find concat three strexpr_cv 1.78 % 1.78 % 4
|
|
Find concat three simstr_mean 33.1 ns 33.1 ns 4
|
|
Find concat three simstr_median 33.3 ns 33.3 ns 4
|
|
Find concat three simstr_stddev 0.512 ns 0.512 ns 4
|
|
Find concat three simstr_cv 1.55 % 1.55 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 10.2 ns 10.2 ns 4
|
|
BuildTypeNameStr 0/0_median 10.3 ns 10.3 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.148 ns 0.148 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.44 % 1.44 % 4
|
|
BuildTypeNameExp 0/0_mean 6.44 ns 6.44 ns 4
|
|
BuildTypeNameExp 0/0_median 6.44 ns 6.44 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.052 ns 0.052 ns 4
|
|
BuildTypeNameExp 0/0_cv 0.81 % 0.81 % 4
|
|
BuildTypeNameSim 0/0_mean 5.14 ns 5.14 ns 4
|
|
BuildTypeNameSim 0/0_median 5.13 ns 5.13 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.095 ns 0.095 ns 4
|
|
BuildTypeNameSim 0/0_cv 1.86 % 1.86 % 4
|
|
BuildTypeNameStr 10/10_mean 85.1 ns 85.1 ns 4
|
|
BuildTypeNameStr 10/10_median 84.0 ns 84.0 ns 4
|
|
BuildTypeNameStr 10/10_stddev 3.42 ns 3.42 ns 4
|
|
BuildTypeNameStr 10/10_cv 4.02 % 4.02 % 4
|
|
BuildTypeNameExp 10/10_mean 26.5 ns 26.5 ns 4
|
|
BuildTypeNameExp 10/10_median 26.6 ns 26.6 ns 4
|
|
BuildTypeNameExp 10/10_stddev 0.336 ns 0.336 ns 4
|
|
BuildTypeNameExp 10/10_cv 1.27 % 1.27 % 4
|
|
BuildTypeNameSim 10/10_mean 22.4 ns 22.4 ns 4
|
|
BuildTypeNameSim 10/10_median 22.4 ns 22.4 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.549 ns 0.549 ns 4
|
|
BuildTypeNameSim 10/10_cv 2.46 % 2.46 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 228 ns 228 ns 4
|
|
Concat with replace str_median 228 ns 228 ns 4
|
|
Concat with replace str_stddev 3.16 ns 3.16 ns 4
|
|
Concat with replace str_cv 1.39 % 1.39 % 4
|
|
Concat with replace exp_mean 133 ns 133 ns 4
|
|
Concat with replace exp_median 135 ns 135 ns 4
|
|
Concat with replace exp_stddev 4.33 ns 4.33 ns 4
|
|
Concat with replace exp_cv 3.25 % 3.25 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.11 ns 1.11 ns 4
|
|
std::string e;_median 1.12 ns 1.12 ns 4
|
|
std::string e;_stddev 0.025 ns 0.025 ns 4
|
|
std::string e;_cv 2.21 % 2.21 % 4
|
|
std::string_view e;_mean 0.733 ns 0.733 ns 4
|
|
std::string_view e;_median 0.733 ns 0.733 ns 4
|
|
std::string_view e;_stddev 0.012 ns 0.012 ns 4
|
|
std::string_view e;_cv 1.58 % 1.58 % 4
|
|
ssa e;_mean 0.182 ns 0.182 ns 4
|
|
ssa e;_median 0.182 ns 0.182 ns 4
|
|
ssa e;_stddev 0.003 ns 0.003 ns 4
|
|
ssa e;_cv 1.59 % 1.59 % 4
|
|
stringa e;_mean 0.738 ns 0.738 ns 4
|
|
stringa e;_median 0.734 ns 0.734 ns 4
|
|
stringa e;_stddev 0.009 ns 0.009 ns 4
|
|
stringa e;_cv 1.16 % 1.16 % 4
|
|
lstringa<20> e;_mean 1.12 ns 1.12 ns 4
|
|
lstringa<20> e;_median 1.12 ns 1.12 ns 4
|
|
lstringa<20> e;_stddev 0.004 ns 0.004 ns 4
|
|
lstringa<20> e;_cv 0.33 % 0.33 % 4
|
|
lstringa<40> e;_mean 1.12 ns 1.12 ns 4
|
|
lstringa<40> e;_median 1.13 ns 1.13 ns 4
|
|
lstringa<40> e;_stddev 0.016 ns 0.016 ns 4
|
|
lstringa<40> e;_cv 1.44 % 1.44 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.99 ns 1.99 ns 4
|
|
std::string e = "Test text";_median 1.94 ns 1.94 ns 4
|
|
std::string e = "Test text";_stddev 0.169 ns 0.169 ns 4
|
|
std::string e = "Test text";_cv 8.49 % 8.49 % 4
|
|
std::string_view e = "Test text";_mean 0.778 ns 0.778 ns 4
|
|
std::string_view e = "Test text";_median 0.777 ns 0.777 ns 4
|
|
std::string_view e = "Test text";_stddev 0.033 ns 0.033 ns 4
|
|
std::string_view e = "Test text";_cv 4.24 % 4.24 % 4
|
|
ssa e = "Test text";_mean 0.747 ns 0.747 ns 4
|
|
ssa e = "Test text";_median 0.738 ns 0.738 ns 4
|
|
ssa e = "Test text";_stddev 0.034 ns 0.034 ns 4
|
|
ssa e = "Test text";_cv 4.53 % 4.53 % 4
|
|
stringa e = "Test text";_mean 1.09 ns 1.09 ns 4
|
|
stringa e = "Test text";_median 1.09 ns 1.09 ns 4
|
|
stringa e = "Test text";_stddev 0.027 ns 0.027 ns 4
|
|
stringa e = "Test text";_cv 2.49 % 2.49 % 4
|
|
lstringa<20> e = "Test text";_mean 1.83 ns 1.83 ns 4
|
|
lstringa<20> e = "Test text";_median 1.83 ns 1.83 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.017 ns 0.017 ns 4
|
|
lstringa<20> e = "Test text";_cv 0.90 % 0.90 % 4
|
|
lstringa<40> e = "Test text";_mean 1.84 ns 1.84 ns 4
|
|
lstringa<40> e = "Test text";_median 1.84 ns 1.84 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.011 ns 0.011 ns 4
|
|
lstringa<40> e = "Test text";_cv 0.60 % 0.60 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 19.0 ns 19.0 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 19.0 ns 19.0 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.328 ns 0.328 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.73 % 1.73 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.735 ns 0.735 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 0.739 ns 0.739 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.012 ns 0.012 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.63 % 1.63 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 0.722 ns 0.722 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 0.722 ns 0.722 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.013 ns 0.013 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 1.82 % 1.82 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 1.09 ns 1.09 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 1.09 ns 1.09 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.017 ns 0.017 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 1.59 % 1.59 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 20.3 ns 20.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 20.3 ns 20.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.751 ns 0.751 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 3.70 % 3.70 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 1.83 ns 1.83 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 1.83 ns 1.83 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.013 ns 0.013 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.70 % 0.70 % 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 4.88 ns 4.88 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 4.86 ns 4.86 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.089 ns 0.089 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 1.83 % 1.83 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.378 ns 0.378 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 0.376 ns 0.376 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.007 ns 0.007 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.92 % 1.92 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 0.371 ns 0.371 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 3.85 % 3.85 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 1.09 ns 1.09 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 1.09 ns 1.09 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.015 ns 0.015 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 1.38 % 1.38 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.52 ns 4.52 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.53 ns 4.53 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.106 ns 0.106 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 2.35 % 2.35 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.45 ns 4.45 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.44 ns 4.44 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.078 ns 0.078 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.75 % 1.75 % 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 23.5 ns 23.5 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 23.4 ns 23.4 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.231 ns 0.231 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 0.98 % 0.98 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.738 ns 0.738 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.737 ns 0.737 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.017 ns 0.017 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.24 % 2.24 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.745 ns 0.745 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.746 ns 0.746 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.028 ns 0.028 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 3.71 % 3.71 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.21 ns 1.21 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.21 ns 1.21 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.051 ns 0.051 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 4.18 % 4.18 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 22.4 ns 22.4 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 22.7 ns 22.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.30 ns 1.30 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 5.79 % 5.79 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.09 ns 5.09 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.05 ns 5.05 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.663 ns 0.663 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 13.03 % 13.03 % 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.94 ns 6.94 ns 4
|
|
std::string::find;_median 6.64 ns 6.64 ns 4
|
|
std::string::find;_stddev 0.631 ns 0.631 ns 4
|
|
std::string::find;_cv 9.09 % 9.09 % 4
|
|
std::string_view::find;_mean 6.66 ns 6.66 ns 4
|
|
std::string_view::find;_median 6.67 ns 6.67 ns 4
|
|
std::string_view::find;_stddev 0.131 ns 0.131 ns 4
|
|
std::string_view::find;_cv 1.97 % 1.97 % 4
|
|
ssa::find;_mean 6.57 ns 6.57 ns 4
|
|
ssa::find;_median 6.40 ns 6.40 ns 4
|
|
ssa::find;_stddev 0.360 ns 0.360 ns 4
|
|
ssa::find;_cv 5.49 % 5.49 % 4
|
|
stringa::find;_mean 6.68 ns 6.68 ns 4
|
|
stringa::find;_median 6.68 ns 6.68 ns 4
|
|
stringa::find;_stddev 0.049 ns 0.049 ns 4
|
|
stringa::find;_cv 0.74 % 0.74 % 4
|
|
lstringa<20>::find;_mean 6.60 ns 6.60 ns 4
|
|
lstringa<20>::find;_median 6.58 ns 6.58 ns 4
|
|
lstringa<20>::find;_stddev 0.137 ns 0.137 ns 4
|
|
lstringa<20>::find;_cv 2.07 % 2.07 % 4
|
|
lstringa<40>::find;_mean 6.83 ns 6.83 ns 4
|
|
lstringa<40>::find;_median 6.79 ns 6.79 ns 4
|
|
lstringa<40>::find;_stddev 0.288 ns 0.288 ns 4
|
|
lstringa<40>::find;_cv 4.21 % 4.21 % 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.53 ns 5.53 ns 4
|
|
std::string copy{str_with_len_N};/15_median 5.59 ns 5.59 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.167 ns 0.167 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 3.01 % 3.01 % 4
|
|
std::string copy{str_with_len_N};/16_mean 23.7 ns 23.7 ns 4
|
|
std::string copy{str_with_len_N};/16_median 23.3 ns 23.3 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 1.12 ns 1.12 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 4.72 % 4.72 % 4
|
|
std::string copy{str_with_len_N};/23_mean 23.4 ns 23.4 ns 4
|
|
std::string copy{str_with_len_N};/23_median 23.3 ns 23.3 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 0.437 ns 0.437 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 1.87 % 1.87 % 4
|
|
std::string copy{str_with_len_N};/24_mean 23.2 ns 23.2 ns 4
|
|
std::string copy{str_with_len_N};/24_median 23.0 ns 23.0 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 0.860 ns 0.860 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 3.70 % 3.70 % 4
|
|
std::string copy{str_with_len_N};/32_mean 23.4 ns 23.4 ns 4
|
|
std::string copy{str_with_len_N};/32_median 22.3 ns 22.3 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 2.37 ns 2.37 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 10.13 % 10.13 % 4
|
|
std::string copy{str_with_len_N};/64_mean 22.4 ns 22.4 ns 4
|
|
std::string copy{str_with_len_N};/64_median 22.5 ns 22.5 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 0.454 ns 0.454 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 2.02 % 2.02 % 4
|
|
std::string copy{str_with_len_N};/128_mean 26.9 ns 26.9 ns 4
|
|
std::string copy{str_with_len_N};/128_median 26.9 ns 26.9 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 2.76 ns 2.76 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 10.25 % 10.25 % 4
|
|
std::string copy{str_with_len_N};/256_mean 24.8 ns 24.8 ns 4
|
|
std::string copy{str_with_len_N};/256_median 24.9 ns 24.9 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 0.469 ns 0.469 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 1.89 % 1.89 % 4
|
|
std::string copy{str_with_len_N};/512_mean 28.5 ns 28.5 ns 4
|
|
std::string copy{str_with_len_N};/512_median 28.6 ns 28.6 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.62 % 2.62 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 46.7 ns 46.7 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 46.4 ns 46.4 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 1.72 ns 1.72 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 3.67 % 3.67 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 127 ns 127 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 125 ns 125 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 11.0 ns 11.0 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 8.73 % 8.73 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 155 ns 155 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 149 ns 149 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 14.0 ns 14.0 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 9.05 % 9.05 % 4
|
|
stringa copy{str_with_len_N};/15_mean 1.14 ns 1.14 ns 4
|
|
stringa copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.038 ns 0.038 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 3.32 % 3.32 % 4
|
|
stringa copy{str_with_len_N};/16_mean 1.14 ns 1.14 ns 4
|
|
stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.058 ns 0.058 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 5.13 % 5.13 % 4
|
|
stringa copy{str_with_len_N};/23_mean 1.12 ns 1.12 ns 4
|
|
stringa copy{str_with_len_N};/23_median 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.029 ns 0.029 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 2.62 % 2.62 % 4
|
|
stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/24_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.186 ns 0.186 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.15 % 1.15 % 4
|
|
stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/32_median 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.131 ns 0.131 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.82 % 0.82 % 4
|
|
stringa copy{str_with_len_N};/64_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/64_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.138 ns 0.138 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.86 % 0.86 % 4
|
|
stringa copy{str_with_len_N};/128_mean 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/128_median 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.115 ns 0.115 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 0.71 % 0.71 % 4
|
|
stringa copy{str_with_len_N};/256_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/256_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.135 ns 0.135 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.84 % 0.84 % 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.3 ns 16.3 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.142 ns 0.142 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.87 % 0.87 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.118 ns 0.118 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.74 % 0.74 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.113 ns 0.113 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.70 % 0.70 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.177 ns 0.177 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 1.09 % 1.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.48 ns 4.48 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.37 ns 4.37 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.299 ns 0.299 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 6.67 % 6.67 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.40 ns 4.40 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.41 ns 4.41 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.065 ns 0.065 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.48 % 1.48 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.56 ns 4.56 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.55 ns 4.55 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.118 ns 0.118 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.58 % 2.58 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 23.7 ns 23.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 23.7 ns 23.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.219 ns 0.219 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 0.92 % 0.92 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 23.4 ns 23.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 23.4 ns 23.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.256 ns 0.256 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.09 % 1.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 25.3 ns 25.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 25.3 ns 25.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.264 ns 0.264 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 1.04 % 1.04 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 26.6 ns 26.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 26.4 ns 26.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.27 ns 1.27 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 4.78 % 4.78 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 28.2 ns 28.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 28.0 ns 28.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 1.92 ns 1.92 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 6.79 % 6.79 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 31.9 ns 31.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 31.4 ns 31.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 2.44 ns 2.44 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 7.65 % 7.65 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 96.4 ns 96.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 95.9 ns 95.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 3.30 ns 3.30 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 3.42 % 3.42 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 107 ns 107 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 108 ns 108 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 3.59 ns 3.59 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 3.36 % 3.36 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 126 ns 126 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 125 ns 125 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 2.08 ns 2.08 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.66 % 1.66 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 5.38 ns 5.38 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 5.38 ns 5.38 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.113 ns 0.113 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 2.10 % 2.10 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 5.51 ns 5.51 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 5.54 ns 5.54 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.116 ns 0.116 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.11 % 2.11 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 5.67 ns 5.67 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 5.40 ns 5.40 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.696 ns 0.696 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 12.26 % 12.26 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 5.45 ns 5.45 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 5.42 ns 5.42 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.238 ns 0.238 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 4.38 % 4.38 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 5.07 ns 5.07 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 5.08 ns 5.08 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.087 ns 0.087 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.72 % 1.72 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.54 ns 6.54 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 6.49 ns 6.49 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.221 ns 0.221 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 3.38 % 3.38 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 7.26 ns 7.26 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 7.24 ns 7.24 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.083 ns 0.083 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 1.15 % 1.15 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 8.60 ns 8.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 8.59 ns 8.59 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.160 ns 0.160 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.86 % 1.86 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 11.5 ns 11.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 11.7 ns 11.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.714 ns 0.714 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 6.23 % 6.23 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 108 ns 108 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 106 ns 106 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 9.58 ns 9.58 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 8.87 % 8.87 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 110 ns 110 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 109 ns 109 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 4.35 ns 4.35 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 3.97 % 3.97 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 135 ns 135 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 137 ns 137 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 6.11 ns 6.11 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 4.53 % 4.53 % 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.9 ns 27.9 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 28.1 ns 28.1 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.637 ns 0.637 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.28 % 2.28 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.5 ns 12.5 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.5 ns 12.5 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.354 ns 0.354 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.82 % 2.82 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.32 ns 8.32 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.29 ns 8.29 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.159 ns 0.159 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.91 % 1.91 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 7.92 ns 7.92 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 7.88 ns 7.88 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.135 ns 0.135 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.70 % 1.70 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.46 ns 8.46 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.44 ns 8.44 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.132 ns 0.132 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.56 % 1.56 % 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 25.5 ns 25.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 26.1 ns 26.1 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.62 ns 1.62 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 6.33 % 6.33 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 10.3 ns 10.3 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 10.2 ns 10.2 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.477 ns 0.477 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 4.64 % 4.64 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.23 ns 8.23 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.17 ns 8.17 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.241 ns 0.241 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.93 % 2.93 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.99 ns 7.99 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.87 ns 7.87 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.332 ns 0.332 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.15 % 4.15 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.36 ns 8.36 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.38 ns 8.38 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.139 ns 0.139 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.66 % 1.66 % 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.8 ns 28.8 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.7 ns 28.7 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.875 ns 0.876 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.04 % 3.04 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 15.1 ns 15.1 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 15.1 ns 15.1 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.221 ns 0.221 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.47 % 1.47 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 10.6 ns 10.6 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 10.7 ns 10.7 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.155 ns 0.155 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.46 % 1.46 % 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 65.1 ns 65.1 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.7 ns 64.7 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 3.90 ns 3.90 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 5.98 % 5.98 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 23.8 ns 23.8 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 23.9 ns 23.9 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.473 ns 0.473 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.99 % 1.99 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.7 ns 24.7 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 24.7 ns 24.7 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.13 ns 1.13 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 4.58 % 4.58 % 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 1335 ns 1335 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1331 ns 1331 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 12.5 ns 12.5 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 0.94 % 0.94 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 380 ns 380 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 382 ns 382 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 6.16 ns 6.16 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 1.62 % 1.62 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 394 ns 394 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 397 ns 397 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 9.24 ns 9.24 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.35 % 2.35 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 272 ns 272 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 277 ns 277 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 16.7 ns 16.7 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 6.15 % 6.15 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 250 ns 250 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 255 ns 255 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.2 ns 16.2 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.48 % 6.48 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 140 ns 140 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 139 ns 139 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.94 ns 2.94 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.09 % 2.09 % 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 1363 ns 1363 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1369 ns 1369 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 49.0 ns 49.0 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.59 % 3.59 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1255 ns 1255 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1230 ns 1230 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 59.0 ns 59.0 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 4.70 % 4.70 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 484 ns 484 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 489 ns 489 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.6 ns 18.6 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.84 % 3.84 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 459 ns 459 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 475 ns 475 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 79.4 ns 79.4 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 17.31 % 17.31 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 354 ns 354 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 365 ns 365 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 39.6 ns 39.6 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 11.18 % 11.18 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 245 ns 245 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 245 ns 245 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.86 ns 2.85 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.16 % 1.16 % 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 73412 ns 73412 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 73498 ns 73498 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 837 ns 837 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.14 % 1.14 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71780 ns 71780 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71835 ns 71836 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1441 ns 1441 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21248 ns 21248 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19854 ns 19854 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3343 ns 3343 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 15.74 % 15.74 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17315 ns 17315 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17245 ns 17245 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 377 ns 377 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.18 % 2.18 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17550 ns 17550 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17561 ns 17561 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 223 ns 223 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.27 % 1.27 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17182 ns 17182 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17107 ns 17107 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 251 ns 251 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.46 % 1.46 % 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 1538 ns 1538 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1580 ns 1580 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 99.5 ns 99.5 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 6.47 % 6.47 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1325 ns 1325 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 1320 ns 1320 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 44.1 ns 44.1 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 3.33 % 3.33 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 567 ns 567 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 562 ns 562 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 28.8 ns 28.8 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 5.08 % 5.08 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 479 ns 479 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 483 ns 483 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 60.5 ns 60.5 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 12.63 % 12.63 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 412 ns 412 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 408 ns 408 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 35.7 ns 35.7 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 8.67 % 8.67 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 315 ns 315 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 315 ns 315 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.60 ns 4.60 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.46 % 1.46 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3323 ns 3323 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 3341 ns 3341 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 238 ns 238 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 7.17 % 7.17 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 474 ns 474 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 471 ns 471 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 37.8 ns 37.8 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 7.98 % 7.98 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1486 ns 1486 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1486 ns 1486 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 43.8 ns 43.8 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.95 % 2.95 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 1312 ns 1312 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 1318 ns 1318 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 16.7 ns 16.7 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 1.27 % 1.27 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1646 ns 1646 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1639 ns 1639 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 22.4 ns 22.4 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 1.36 % 1.36 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1116 ns 1116 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1111 ns 1111 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 23.8 ns 23.8 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 2.13 % 2.13 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 301 ns 301 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 302 ns 302 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 4.54 ns 4.54 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.51 % 1.51 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 146 ns 146 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 147 ns 147 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.21 ns 3.21 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 2.19 % 2.19 % 4
|
|
stringa str = "test = " + k + " times";_mean 163 ns 163 ns 4
|
|
stringa str = "test = " + k + " times";_median 162 ns 162 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 1.98 ns 1.98 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.22 % 1.22 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 278 ns 278 ns 4
|
|
std::string::find + substr + std::strtol_median 278 ns 278 ns 4
|
|
std::string::find + substr + std::strtol_stddev 3.95 ns 3.95 ns 4
|
|
std::string::find + substr + std::strtol_cv 1.42 % 1.42 % 4
|
|
ssa::splitter + ssa::as_int_mean 139 ns 139 ns 4
|
|
ssa::splitter + ssa::as_int_median 137 ns 137 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 5.52 ns 5.52 ns 4
|
|
ssa::splitter + ssa::as_int_cv 3.98 % 3.98 % 4
|
|
ssa::splitf + functor_mean 126 ns 126 ns 4
|
|
ssa::splitf + functor_median 125 ns 125 ns 4
|
|
ssa::splitf + functor_stddev 2.40 ns 2.40 ns 4
|
|
ssa::splitf + functor_cv 1.90 % 1.90 % 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 826 ns 826 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 826 ns 826 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 8.57 ns 8.57 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.04 % 1.04 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2461 ns 2461 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2474 ns 2474 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 42.3 ns 42.3 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 1.72 % 1.72 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 1030 ns 1030 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 1026 ns 1026 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 20.6 ns 20.6 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.00 % 2.00 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1459 ns 1459 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1421 ns 1421 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 87.5 ns 87.5 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 6.00 % 6.00 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1014 ns 1014 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1020 ns 1020 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 19.7 ns 19.7 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 1.94 % 1.94 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1221 ns 1221 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1220 ns 1220 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 7.67 ns 7.67 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 0.63 % 0.63 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 855 ns 855 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 853 ns 853 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 13.8 ns 13.8 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.62 % 1.62 % 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 161 ns 161 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 159 ns 159 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 3.74 ns 3.74 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.33 % 2.33 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 353 ns 353 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 344 ns 344 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 22.3 ns 22.3 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 6.32 % 6.32 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 171 ns 171 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 170 ns 170 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 4.52 ns 4.52 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.65 % 2.65 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 192 ns 192 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 192 ns 192 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.58 ns 3.58 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.86 % 1.86 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 195 ns 195 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 192 ns 192 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 13.9 ns 13.9 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 7.14 % 7.14 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 178 ns 178 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 172 ns 172 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 15.9 ns 15.9 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 8.97 % 8.97 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 181 ns 181 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 180 ns 180 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 22.7 ns 22.7 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 12.58 % 12.58 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 183 ns 183 ns 4
|
|
replace bb to ---- in std::string|64_median 166 ns 166 ns 4
|
|
replace bb to ---- in std::string|64_stddev 40.4 ns 40.4 ns 4
|
|
replace bb to ---- in std::string|64_cv 22.11 % 22.11 % 4
|
|
replace bb to ---- in std::string|256_mean 499 ns 499 ns 4
|
|
replace bb to ---- in std::string|256_median 498 ns 498 ns 4
|
|
replace bb to ---- in std::string|256_stddev 10.6 ns 10.6 ns 4
|
|
replace bb to ---- in std::string|256_cv 2.13 % 2.13 % 4
|
|
replace bb to ---- in std::string|512_mean 1012 ns 1012 ns 4
|
|
replace bb to ---- in std::string|512_median 1019 ns 1019 ns 4
|
|
replace bb to ---- in std::string|512_stddev 61.5 ns 61.5 ns 4
|
|
replace bb to ---- in std::string|512_cv 6.08 % 6.08 % 4
|
|
replace bb to ---- in std::string|1024_mean 2304 ns 2304 ns 4
|
|
replace bb to ---- in std::string|1024_median 2267 ns 2267 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 192 ns 192 ns 4
|
|
replace bb to ---- in std::string|1024_cv 8.32 % 8.32 % 4
|
|
replace bb to ---- in std::string|2048_mean 5796 ns 5796 ns 4
|
|
replace bb to ---- in std::string|2048_median 5843 ns 5843 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 149 ns 149 ns 4
|
|
replace bb to ---- in std::string|2048_cv 2.58 % 2.58 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 154 ns 154 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 153 ns 153 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 2.02 ns 2.02 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 1.32 % 1.32 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 484 ns 484 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 483 ns 483 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 2.28 ns 2.28 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 0.47 % 0.47 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 886 ns 886 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 889 ns 889 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 13.6 ns 13.6 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 1.54 % 1.54 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1917 ns 1917 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1909 ns 1909 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 69.2 ns 69.2 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.61 % 3.61 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3636 ns 3636 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3504 ns 3504 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 298 ns 298 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 8.20 % 8.20 % 4
|
|
replace bb to ---- by init stringa|64_mean 99.5 ns 99.5 ns 4
|
|
replace bb to ---- by init stringa|64_median 99.1 ns 99.1 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.32 ns 2.32 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.33 % 2.33 % 4
|
|
replace bb to ---- by init stringa|256_mean 297 ns 297 ns 4
|
|
replace bb to ---- by init stringa|256_median 298 ns 298 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 4.13 ns 4.13 ns 4
|
|
replace bb to ---- by init stringa|256_cv 1.39 % 1.39 % 4
|
|
replace bb to ---- by init stringa|512_mean 717 ns 717 ns 4
|
|
replace bb to ---- by init stringa|512_median 718 ns 718 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 5.27 ns 5.27 ns 4
|
|
replace bb to ---- by init stringa|512_cv 0.73 % 0.73 % 4
|
|
replace bb to ---- by init stringa|1024_mean 1663 ns 1663 ns 4
|
|
replace bb to ---- by init stringa|1024_median 1655 ns 1655 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 52.2 ns 52.2 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 3.14 % 3.14 % 4
|
|
replace bb to ---- by init stringa|2048_mean 3325 ns 3325 ns 4
|
|
replace bb to ---- by init stringa|2048_median 3327 ns 3327 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 75.7 ns 75.7 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 2.28 % 2.28 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 123 ns 123 ns 4
|
|
replace bb to -- in std::string|64_median 122 ns 122 ns 4
|
|
replace bb to -- in std::string|64_stddev 3.75 ns 3.75 ns 4
|
|
replace bb to -- in std::string|64_cv 3.05 % 3.05 % 4
|
|
replace bb to -- in std::string|256_mean 383 ns 383 ns 4
|
|
replace bb to -- in std::string|256_median 383 ns 383 ns 4
|
|
replace bb to -- in std::string|256_stddev 10.1 ns 10.1 ns 4
|
|
replace bb to -- in std::string|256_cv 2.63 % 2.63 % 4
|
|
replace bb to -- in std::string|512_mean 719 ns 719 ns 4
|
|
replace bb to -- in std::string|512_median 718 ns 718 ns 4
|
|
replace bb to -- in std::string|512_stddev 19.5 ns 19.5 ns 4
|
|
replace bb to -- in std::string|512_cv 2.71 % 2.71 % 4
|
|
replace bb to -- in std::string|1024_mean 1415 ns 1415 ns 4
|
|
replace bb to -- in std::string|1024_median 1414 ns 1414 ns 4
|
|
replace bb to -- in std::string|1024_stddev 19.6 ns 19.6 ns 4
|
|
replace bb to -- in std::string|1024_cv 1.39 % 1.39 % 4
|
|
replace bb to -- in std::string|2048_mean 2838 ns 2838 ns 4
|
|
replace bb to -- in std::string|2048_median 2838 ns 2838 ns 4
|
|
replace bb to -- in std::string|2048_stddev 60.4 ns 60.4 ns 4
|
|
replace bb to -- in std::string|2048_cv 2.13 % 2.13 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 102 ns 102 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 103 ns 103 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 2.22 ns 2.22 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 2.18 % 2.18 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 300 ns 300 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 299 ns 299 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 6.91 ns 6.91 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 2.31 % 2.31 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 562 ns 562 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 547 ns 547 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 39.7 ns 39.7 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 7.06 % 7.06 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1116 ns 1116 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1111 ns 1111 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 26.2 ns 26.2 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 2.35 % 2.35 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2185 ns 2185 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2121 ns 2121 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 153 ns 153 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 6.99 % 6.99 % 4
|
|
replace bb to -- by init stringa|64_mean 97.1 ns 97.1 ns 4
|
|
replace bb to -- by init stringa|64_median 97.0 ns 97.0 ns 4
|
|
replace bb to -- by init stringa|64_stddev 0.731 ns 0.731 ns 4
|
|
replace bb to -- by init stringa|64_cv 0.75 % 0.75 % 4
|
|
replace bb to -- by init stringa|256_mean 274 ns 274 ns 4
|
|
replace bb to -- by init stringa|256_median 267 ns 267 ns 4
|
|
replace bb to -- by init stringa|256_stddev 15.1 ns 15.1 ns 4
|
|
replace bb to -- by init stringa|256_cv 5.53 % 5.53 % 4
|
|
replace bb to -- by init stringa|512_mean 544 ns 544 ns 4
|
|
replace bb to -- by init stringa|512_median 538 ns 538 ns 4
|
|
replace bb to -- by init stringa|512_stddev 47.8 ns 47.8 ns 4
|
|
replace bb to -- by init stringa|512_cv 8.79 % 8.79 % 4
|
|
replace bb to -- by init stringa|1024_mean 1481 ns 1481 ns 4
|
|
replace bb to -- by init stringa|1024_median 1468 ns 1468 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 49.7 ns 49.7 ns 4
|
|
replace bb to -- by init stringa|1024_cv 3.36 % 3.36 % 4
|
|
replace bb to -- by init stringa|2048_mean 2397 ns 2397 ns 4
|
|
replace bb to -- by init stringa|2048_median 2334 ns 2334 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 504 ns 504 ns 4
|
|
replace bb to -- by init stringa|2048_cv 21.02 % 21.02 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3640422 ns 3640436 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3644936 ns 3644950 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 32127 ns 32126 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 0.88 % 0.88 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3537855 ns 3537865 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3520687 ns 3520696 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 63067 ns 63067 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 1.78 % 1.78 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3721221 ns 3721234 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3723511 ns 3723522 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 46546 ns 46546 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.25 % 1.25 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3973701 ns 3973710 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3959340 ns 3959349 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 117238 ns 117239 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 2.95 % 2.95 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 916 ns 916 ns 4
|
|
Build func full name std::string;_median 910 ns 910 ns 4
|
|
Build func full name std::string;_stddev 21.5 ns 21.5 ns 4
|
|
Build func full name std::string;_cv 2.35 % 2.35 % 4
|
|
Build func full name std::string 1;_mean 1081 ns 1081 ns 4
|
|
Build func full name std::string 1;_median 1017 ns 1017 ns 4
|
|
Build func full name std::string 1;_stddev 134 ns 134 ns 4
|
|
Build func full name std::string 1;_cv 12.40 % 12.40 % 4
|
|
Build func full name std::stream;_mean 2581 ns 2581 ns 4
|
|
Build func full name std::stream;_median 2562 ns 2562 ns 4
|
|
Build func full name std::stream;_stddev 61.9 ns 61.9 ns 4
|
|
Build func full name std::stream;_cv 2.40 % 2.40 % 4
|
|
Build func full name stringa;_mean 478 ns 478 ns 4
|
|
Build func full name stringa;_median 479 ns 479 ns 4
|
|
Build func full name stringa;_stddev 29.9 ns 29.9 ns 4
|
|
Build func full name stringa;_cv 6.25 % 6.25 % 4
|
|
Build func full name stringa 1;_mean 710 ns 710 ns 4
|
|
Build func full name stringa 1;_median 705 ns 705 ns 4
|
|
Build func full name stringa 1;_stddev 31.5 ns 31.5 ns 4
|
|
Build func full name stringa 1;_cv 4.44 % 4.44 % 4
|