mirror of https://github.com/orefkov/simstr.git
922 lines
136 KiB
Plaintext
922 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-03T16:50:53+03:00
|
|
Running benchStr.exe
|
|
Run on (32 X 2494 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)
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
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 315 ns 315 ns 4
|
|
Concat std::string and number by std to std::string_median 313 ns 311 ns 4
|
|
Concat std::string and number by std to std::string_stddev 7.91 ns 10.4 ns 4
|
|
Concat std::string and number by std to std::string_cv 2.51 % 3.29 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 213 ns 211 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 210 ns 208 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 10.1 ns 9.24 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 4.72 % 4.38 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 121 ns 121 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 121 ns 122 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 13.4 ns 12.8 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 11.04 % 10.63 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 119 ns 120 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 119 ns 120 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 9.85 ns 9.97 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 8.25 % 8.33 % 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 1033 ns 1038 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 1013 ns 1013 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 58.8 ns 58.1 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 5.69 % 5.60 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 1841 ns 1842 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 1845 ns 1842 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 32.2 ns 34.2 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 1.75 % 1.86 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 251 ns 251 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 251 ns 251 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 1.96 ns 4.56 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 0.78 % 1.81 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 119 ns 118 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 118 ns 118 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 3.75 ns 4.17 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.15 % 3.54 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 99.3 ns 99.4 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 99.4 ns 99.4 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.76 ns 2.70 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.77 % 2.72 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 104 ns 104 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 104 ns 104 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.86 ns 3.15 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.70 % 3.04 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 175 ns 176 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 175 ns 175 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.58 ns 3.67 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.48 % 2.09 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 349 ns 349 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 349 ns 349 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 4.17 ns 4.43 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.19 % 1.27 % 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 206 ns 205 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_median 206 ns 206 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_stddev 7.82 ns 9.35 ns 4
|
|
e_subst("art {} end", e_int<8, f::w<10> | f::p | f::z>(i))_cv 3.81 % 4.56 % 4
|
|
std::format("art {:#010o} end", i)_mean 1678 ns 1685 ns 4
|
|
std::format("art {:#010o} end", i)_median 1666 ns 1674 ns 4
|
|
std::format("art {:#010o} end", i)_stddev 35.6 ns 62.8 ns 4
|
|
std::format("art {:#010o} end", i)_cv 2.12 % 3.73 % 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_mean 354 ns 353 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_median 352 ns 353 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_stddev 12.9 ns 12.2 ns 4
|
|
e_vsubst(pattern, e_int<8, f::w<10> | f::p | f::z>(i))_cv 3.64 % 3.44 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1656 ns 1657 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1661 ns 1657 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 21.1 ns 20.1 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 1.27 % 1.22 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 55.0 ns 55.1 ns 4
|
|
Concat std::string by std to std::string_median 55.2 ns 54.7 ns 4
|
|
Concat std::string by std to std::string_stddev 1.96 ns 2.34 ns 4
|
|
Concat std::string by std to std::string_cv 3.57 % 4.26 % 4
|
|
Concat std::string by StrExpr to std::string_mean 75.6 ns 75.9 ns 4
|
|
Concat std::string by StrExpr to std::string_median 75.5 ns 76.7 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 1.50 ns 1.74 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.98 % 2.30 % 4
|
|
Concat stringa by StrExpr to stringa_mean 52.0 ns 52.0 ns 4
|
|
Concat stringa by StrExpr to stringa_median 52.2 ns 51.6 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 1.02 ns 0.698 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 1.96 % 1.34 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 230 ns 231 ns 4
|
|
Find concat three std::string_median 232 ns 234 ns 4
|
|
Find concat three std::string_stddev 14.1 ns 15.1 ns 4
|
|
Find concat three std::string_cv 6.15 % 6.55 % 4
|
|
Find concat three strexpr_mean 129 ns 130 ns 4
|
|
Find concat three strexpr_median 126 ns 126 ns 4
|
|
Find concat three strexpr_stddev 10.3 ns 10.6 ns 4
|
|
Find concat three strexpr_cv 7.93 % 8.14 % 4
|
|
Find concat three simstr_mean 28.3 ns 28.3 ns 4
|
|
Find concat three simstr_median 28.5 ns 28.5 ns 4
|
|
Find concat three simstr_stddev 0.538 ns 0.834 ns 4
|
|
Find concat three simstr_cv 1.90 % 2.94 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 17.6 ns 17.6 ns 4
|
|
BuildTypeNameStr 0/0_median 17.6 ns 17.6 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.231 ns 0.000 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.32 % 0.00 % 4
|
|
BuildTypeNameExp 0/0_mean 14.0 ns 14.0 ns 4
|
|
BuildTypeNameExp 0/0_median 14.0 ns 14.0 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.119 ns 0.181 ns 4
|
|
BuildTypeNameExp 0/0_cv 0.85 % 1.30 % 4
|
|
BuildTypeNameSim 0/0_mean 14.8 ns 14.7 ns 4
|
|
BuildTypeNameSim 0/0_median 14.8 ns 14.8 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.225 ns 0.334 ns 4
|
|
BuildTypeNameSim 0/0_cv 1.52 % 2.27 % 4
|
|
BuildTypeNameStr 10/10_mean 79.7 ns 79.3 ns 4
|
|
BuildTypeNameStr 10/10_median 77.6 ns 77.6 ns 4
|
|
BuildTypeNameStr 10/10_stddev 4.82 ns 5.42 ns 4
|
|
BuildTypeNameStr 10/10_cv 6.05 % 6.83 % 4
|
|
BuildTypeNameExp 10/10_mean 37.9 ns 37.9 ns 4
|
|
BuildTypeNameExp 10/10_median 37.6 ns 37.7 ns 4
|
|
BuildTypeNameExp 10/10_stddev 0.976 ns 1.05 ns 4
|
|
BuildTypeNameExp 10/10_cv 2.58 % 2.78 % 4
|
|
BuildTypeNameSim 10/10_mean 37.6 ns 37.7 ns 4
|
|
BuildTypeNameSim 10/10_median 37.1 ns 37.3 ns 4
|
|
BuildTypeNameSim 10/10_stddev 1.27 ns 1.13 ns 4
|
|
BuildTypeNameSim 10/10_cv 3.37 % 3.01 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 341 ns 339 ns 4
|
|
Concat with replace str_median 341 ns 337 ns 4
|
|
Concat with replace str_stddev 6.43 ns 3.66 ns 4
|
|
Concat with replace str_cv 1.89 % 1.08 % 4
|
|
Concat with replace exp_mean 224 ns 221 ns 4
|
|
Concat with replace exp_median 224 ns 220 ns 4
|
|
Concat with replace exp_stddev 7.32 ns 4.34 ns 4
|
|
Concat with replace exp_cv 3.27 % 1.96 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.22 ns 2.22 ns 4
|
|
std::string e;_median 2.19 ns 2.20 ns 4
|
|
std::string e;_stddev 0.068 ns 0.093 ns 4
|
|
std::string e;_cv 3.08 % 4.21 % 4
|
|
std::string_view e;_mean 1.88 ns 1.87 ns 4
|
|
std::string_view e;_median 1.87 ns 1.86 ns 4
|
|
std::string_view e;_stddev 0.108 ns 0.105 ns 4
|
|
std::string_view e;_cv 5.75 % 5.59 % 4
|
|
ssa e;_mean 1.47 ns 1.47 ns 4
|
|
ssa e;_median 1.46 ns 1.46 ns 4
|
|
ssa e;_stddev 0.043 ns 0.030 ns 4
|
|
ssa e;_cv 2.94 % 2.05 % 4
|
|
stringa e;_mean 2.20 ns 2.20 ns 4
|
|
stringa e;_median 2.18 ns 2.20 ns 4
|
|
stringa e;_stddev 0.044 ns 0.040 ns 4
|
|
stringa e;_cv 2.02 % 1.81 % 4
|
|
lstringa<20> e;_mean 2.55 ns 2.56 ns 4
|
|
lstringa<20> e;_median 2.55 ns 2.58 ns 4
|
|
lstringa<20> e;_stddev 0.048 ns 0.057 ns 4
|
|
lstringa<20> e;_cv 1.90 % 2.21 % 4
|
|
lstringa<40> e;_mean 2.57 ns 2.54 ns 4
|
|
lstringa<40> e;_median 2.57 ns 2.54 ns 4
|
|
lstringa<40> e;_stddev 0.020 ns 0.032 ns 4
|
|
lstringa<40> e;_cv 0.78 % 1.27 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 2.60 ns 2.61 ns 4
|
|
std::string e = "Test text";_median 2.60 ns 2.59 ns 4
|
|
std::string e = "Test text";_stddev 0.029 ns 0.053 ns 4
|
|
std::string e = "Test text";_cv 1.13 % 2.05 % 4
|
|
std::string_view e = "Test text";_mean 1.79 ns 1.79 ns 4
|
|
std::string_view e = "Test text";_median 1.80 ns 1.80 ns 4
|
|
std::string_view e = "Test text";_stddev 0.020 ns 0.021 ns 4
|
|
std::string_view e = "Test text";_cv 1.10 % 1.17 % 4
|
|
ssa e = "Test text";_mean 1.79 ns 1.80 ns 4
|
|
ssa e = "Test text";_median 1.80 ns 1.80 ns 4
|
|
ssa e = "Test text";_stddev 0.029 ns 0.034 ns 4
|
|
ssa e = "Test text";_cv 1.60 % 1.90 % 4
|
|
stringa e = "Test text";_mean 2.21 ns 2.21 ns 4
|
|
stringa e = "Test text";_median 2.21 ns 2.22 ns 4
|
|
stringa e = "Test text";_stddev 0.018 ns 0.023 ns 4
|
|
stringa e = "Test text";_cv 0.82 % 1.03 % 4
|
|
lstringa<20> e = "Test text";_mean 2.62 ns 2.62 ns 4
|
|
lstringa<20> e = "Test text";_median 2.62 ns 2.61 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.057 ns 0.060 ns 4
|
|
lstringa<20> e = "Test text";_cv 2.18 % 2.29 % 4
|
|
lstringa<40> e = "Test text";_mean 2.57 ns 2.58 ns 4
|
|
lstringa<40> e = "Test text";_median 2.56 ns 2.57 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.055 ns 0.070 ns 4
|
|
lstringa<40> e = "Test text";_cv 2.14 % 2.72 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 80.2 ns 80.2 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 80.5 ns 80.2 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.767 ns 0.000 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 0.96 % 0.00 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 1.82 ns 1.81 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 1.83 ns 1.80 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.027 ns 0.021 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.48 % 1.16 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 1.84 ns 1.84 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 1.83 ns 1.82 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.027 ns 0.059 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 1.47 % 3.21 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 2.52 ns 2.51 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 2.52 ns 2.51 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.032 ns 0.000 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 1.28 % 0.00 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 77.3 ns 76.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 76.4 ns 75.9 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 3.53 ns 1.67 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 4.57 % 2.19 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 3.30 ns 3.31 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 3.31 ns 3.31 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.012 ns 0.040 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.38 % 1.22 % 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 5.24 ns 5.27 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.26 ns 5.31 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.076 ns 0.078 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 1.46 % 1.48 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 2.91 ns 2.90 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 2.89 ns 2.92 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.077 ns 0.033 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.65 % 1.14 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 2.88 ns 2.89 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 2.88 ns 2.89 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.022 ns 0.000 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.75 % 0.00 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 4.09 ns 4.10 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 4.04 ns 4.05 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.115 ns 0.123 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 2.81 % 3.01 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 7.60 ns 7.60 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 7.61 ns 7.60 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.034 ns 0.081 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 0.44 % 1.06 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 8.37 ns 8.33 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 8.43 ns 8.28 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.129 ns 0.167 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.55 % 2.01 % 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 77.9 ns 77.2 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 77.3 ns 77.6 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.77 ns 1.67 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.27 % 2.16 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 2.04 ns 2.04 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 2.03 ns 2.04 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.000 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.44 % 0.00 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 2.07 ns 2.06 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 2.06 ns 2.06 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.042 ns 0.059 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.04 % 2.84 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.94 ns 2.93 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.94 ns 2.93 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.060 ns 0.000 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.03 % 0.00 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 80.5 ns 80.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 80.5 ns 80.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 3.16 ns 3.60 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.92 % 4.46 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 6.81 ns 6.80 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 6.75 ns 6.77 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.289 ns 0.238 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.24 % 3.50 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 43.7 ns 43.7 ns 4
|
|
std::string::find;_median 44.0 ns 44.4 ns 4
|
|
std::string::find;_stddev 2.22 ns 2.46 ns 4
|
|
std::string::find;_cv 5.08 % 5.63 % 4
|
|
std::string_view::find;_mean 42.1 ns 42.1 ns 4
|
|
std::string_view::find;_median 42.4 ns 42.4 ns 4
|
|
std::string_view::find;_stddev 2.36 ns 2.62 ns 4
|
|
std::string_view::find;_cv 5.60 % 6.21 % 4
|
|
ssa::find;_mean 22.2 ns 22.1 ns 4
|
|
ssa::find;_median 22.0 ns 22.2 ns 4
|
|
ssa::find;_stddev 0.556 ns 0.568 ns 4
|
|
ssa::find;_cv 2.51 % 2.57 % 4
|
|
stringa::find;_mean 30.3 ns 30.3 ns 4
|
|
stringa::find;_median 30.2 ns 30.2 ns 4
|
|
stringa::find;_stddev 1.36 ns 1.13 ns 4
|
|
stringa::find;_cv 4.49 % 3.73 % 4
|
|
lstringa<20>::find;_mean 20.4 ns 20.4 ns 4
|
|
lstringa<20>::find;_median 20.4 ns 20.4 ns 4
|
|
lstringa<20>::find;_stddev 0.386 ns 0.370 ns 4
|
|
lstringa<20>::find;_cv 1.89 % 1.81 % 4
|
|
lstringa<40>::find;_mean 22.4 ns 22.2 ns 4
|
|
lstringa<40>::find;_median 22.5 ns 22.5 ns 4
|
|
lstringa<40>::find;_stddev 0.556 ns 0.906 ns 4
|
|
lstringa<40>::find;_cv 2.48 % 4.08 % 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.04 ns 5.04 ns 4
|
|
std::string copy{str_with_len_N};/15_median 5.05 ns 5.08 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.091 ns 0.150 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 1.81 % 2.97 % 4
|
|
std::string copy{str_with_len_N};/16_mean 81.5 ns 81.5 ns 4
|
|
std::string copy{str_with_len_N};/16_median 81.3 ns 81.1 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 1.54 ns 1.67 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 1.89 % 2.05 % 4
|
|
std::string copy{str_with_len_N};/23_mean 81.8 ns 81.5 ns 4
|
|
std::string copy{str_with_len_N};/23_median 82.3 ns 81.1 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 2.31 ns 2.98 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 2.82 % 3.65 % 4
|
|
std::string copy{str_with_len_N};/24_mean 82.5 ns 82.4 ns 4
|
|
std::string copy{str_with_len_N};/24_median 82.3 ns 82.0 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 2.02 ns 2.62 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 2.45 % 3.17 % 4
|
|
std::string copy{str_with_len_N};/32_mean 86.1 ns 86.3 ns 4
|
|
std::string copy{str_with_len_N};/32_median 86.4 ns 86.3 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 1.55 ns 1.01 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 1.80 % 1.17 % 4
|
|
std::string copy{str_with_len_N};/64_mean 87.9 ns 88.1 ns 4
|
|
std::string copy{str_with_len_N};/64_median 87.3 ns 88.1 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 2.18 ns 2.25 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 2.48 % 2.56 % 4
|
|
std::string copy{str_with_len_N};/128_mean 90.1 ns 90.0 ns 4
|
|
std::string copy{str_with_len_N};/128_median 90.0 ns 90.0 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 1.15 ns 1.71 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 1.28 % 1.90 % 4
|
|
std::string copy{str_with_len_N};/256_mean 88.2 ns 88.1 ns 4
|
|
std::string copy{str_with_len_N};/256_median 88.0 ns 88.1 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 2.89 ns 2.25 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 3.27 % 2.56 % 4
|
|
std::string copy{str_with_len_N};/512_mean 89.4 ns 89.5 ns 4
|
|
std::string copy{str_with_len_N};/512_median 89.2 ns 88.9 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 1.32 ns 2.00 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 1.48 % 2.24 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 95.2 ns 95.2 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 95.4 ns 95.2 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 1.20 ns 1.21 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 1.26 % 1.27 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 134 ns 133 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 130 ns 129 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 9.78 ns 9.42 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 7.32 % 7.06 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 184 ns 184 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 183 ns 184 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 1.71 ns 3.42 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 0.93 % 1.86 % 4
|
|
stringa copy{str_with_len_N};/15_mean 4.01 ns 4.01 ns 4
|
|
stringa copy{str_with_len_N};/15_median 4.02 ns 4.04 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.119 ns 0.187 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 2.96 % 4.66 % 4
|
|
stringa copy{str_with_len_N};/16_mean 3.99 ns 3.99 ns 4
|
|
stringa copy{str_with_len_N};/16_median 3.97 ns 3.99 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.044 ns 0.074 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 1.11 % 1.86 % 4
|
|
stringa copy{str_with_len_N};/23_mean 4.11 ns 4.12 ns 4
|
|
stringa copy{str_with_len_N};/23_median 4.06 ns 4.05 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.134 ns 0.152 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 3.27 % 3.68 % 4
|
|
stringa copy{str_with_len_N};/24_mean 18.4 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/24_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.184 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.00 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/32_mean 18.6 ns 18.6 ns 4
|
|
stringa copy{str_with_len_N};/32_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.686 ns 0.419 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 3.69 % 2.25 % 4
|
|
stringa copy{str_with_len_N};/64_mean 18.8 ns 18.7 ns 4
|
|
stringa copy{str_with_len_N};/64_median 18.7 ns 18.6 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.314 ns 0.401 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 1.67 % 2.14 % 4
|
|
stringa copy{str_with_len_N};/128_mean 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/128_median 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.075 ns 0.000 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 0.41 % 0.00 % 4
|
|
stringa copy{str_with_len_N};/256_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/256_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.155 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.85 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/512_mean 18.4 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/512_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.091 ns 0.342 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.50 % 1.86 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.033 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.18 % 1.05 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.3 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 18.3 ns 18.4 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.096 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.52 % 1.14 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 19.6 ns 19.5 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 19.5 ns 19.3 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 1.61 ns 1.74 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 8.20 % 8.90 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 7.23 ns 7.24 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.26 ns 7.24 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.077 ns 0.101 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 1.07 % 1.39 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 7.89 ns 7.89 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 7.83 ns 7.85 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.449 ns 0.387 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 5.70 % 4.90 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 7.64 ns 7.60 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 7.46 ns 7.46 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.453 ns 0.434 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 5.93 % 5.70 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 83.5 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 83.2 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 5.35 ns 5.70 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 6.40 % 6.80 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 87.1 ns 87.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 85.8 ns 85.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 4.63 ns 4.93 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 5.32 % 5.66 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 83.7 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 83.1 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 2.54 ns 2.85 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 3.03 % 3.40 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 84.1 ns 83.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 84.1 ns 83.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 1.38 ns 0.872 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 1.64 % 1.05 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 85.9 ns 85.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 85.7 ns 85.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 1.07 ns 1.42 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.25 % 1.67 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 87.4 ns 86.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 86.8 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 3.43 ns 2.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 3.92 % 3.43 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 96.4 ns 96.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 95.7 ns 96.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 2.30 ns 1.05 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 2.39 % 1.08 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 131 ns 132 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 134 ns 134 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 7.41 ns 6.19 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 5.64 % 4.69 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 193 ns 193 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 191 ns 190 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 7.22 ns 5.92 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 3.74 % 3.07 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 8.05 ns 8.02 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 8.09 ns 8.02 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.113 ns 0.201 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.41 % 2.51 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 8.06 ns 8.07 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 8.13 ns 8.11 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.162 ns 0.167 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.01 % 2.07 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 8.24 ns 8.24 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 8.16 ns 8.20 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.319 ns 0.360 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 3.87 % 4.36 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 8.02 ns 7.95 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 8.02 ns 7.95 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.037 ns 0.171 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 0.46 % 2.15 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 10.9 ns 10.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 10.9 ns 11.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.124 ns 0.122 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.14 % 1.12 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 10.8 ns 10.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 10.8 ns 10.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.153 ns 0.200 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.41 % 1.85 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 11.4 ns 11.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 11.5 ns 11.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.287 ns 0.366 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.51 % 3.21 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 12.4 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 12.3 ns 12.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.188 ns 0.419 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.52 % 3.39 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 14.2 ns 14.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 14.1 ns 14.0 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.527 ns 0.604 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 3.70 % 4.28 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 99.5 ns 99.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 102 ns 101 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 6.10 ns 5.40 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 6.14 % 5.41 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 132 ns 132 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 132 ns 133 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 2.12 ns 2.67 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 1.60 % 2.03 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 194 ns 195 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 194 ns 195 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 1.94 ns 2.42 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 1.00 % 1.24 % 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 32.1 ns 32.0 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 32.4 ns 32.2 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.599 ns 0.384 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.87 % 1.20 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.7 ns 13.7 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.7 ns 13.7 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.045 ns 0.228 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.33 % 1.67 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 14.6 ns 14.6 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 14.6 ns 14.6 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.397 ns 0.523 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.72 % 3.59 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.1 ns 15.1 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.2 ns 15.1 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.220 ns 0.362 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.45 % 2.41 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 15.1 ns 15.1 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 15.1 ns 15.2 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.194 ns 0.334 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.29 % 2.21 % 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 35.5 ns 35.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 35.3 ns 35.3 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.30 ns 1.15 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.67 % 3.24 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 13.2 ns 13.1 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 13.3 ns 13.2 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.630 ns 0.647 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 4.78 % 4.94 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 14.0 ns 14.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 14.0 ns 14.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.291 ns 0.285 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.08 % 2.04 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.8 ns 13.7 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.8 ns 13.7 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.665 ns 0.785 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.82 % 5.71 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.1 ns 13.0 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.1 ns 13.0 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.146 ns 0.181 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.12 % 1.39 % 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 44.6 ns 44.6 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 44.8 ns 44.9 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.507 ns 0.924 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.14 % 2.07 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 19.0 ns 18.8 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 19.0 ns 18.8 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.258 ns 0.585 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.36 % 3.11 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 17.5 ns 17.6 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 17.5 ns 17.5 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.280 ns 0.367 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.60 % 2.09 % 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 99.7 ns 98.9 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 101 ns 98.9 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.63 ns 3.15 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.64 % 3.19 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 80.0 ns 79.8 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 79.4 ns 79.3 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.12 ns 2.98 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.65 % 3.73 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.1 ns 36.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 36.4 ns 36.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.631 ns 0.655 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.75 % 1.81 % 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 5533 ns 5511 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 5544 ns 5511 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 62.7 ns 80.5 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.13 % 1.46 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1309 ns 1311 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1288 ns 1287 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 85.6 ns 74.2 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 6.54 % 5.66 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 947 ns 942 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 947 ns 942 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 30.9 ns 17.1 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.26 % 1.81 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 523 ns 523 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 525 ns 523 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 16.5 ns 18.0 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.16 % 3.44 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 348 ns 347 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 348 ns 347 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 2.05 ns 4.83 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.59 % 1.39 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 234 ns 234 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 233 ns 234 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 3.17 ns 0.000 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.36 % 0.00 % 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 5823 ns 5824 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5766 ns 5790 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 448 ns 461 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 7.69 % 7.91 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4097 ns 4054 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4137 ns 4098 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 114 ns 87.2 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.77 % 2.15 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 880 ns 879 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 819 ns 818 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 133 ns 131 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 15.11 % 14.87 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 561 ns 559 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 563 ns 555 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 43.2 ns 43.0 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.69 % 7.70 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 380 ns 379 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 372 ns 372 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 22.7 ns 15.8 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.96 % 4.18 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 277 ns 276 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 279 ns 279 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.3 ns 11.4 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.07 % 4.12 % 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 307647 ns 306974 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 305430 ns 303137 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 26607 ns 24268 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 8.65 % 7.91 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 186310 ns 186058 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 186578 ns 187976 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1905 ns 3836 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.02 % 2.06 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24024 ns 23934 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23950 ns 23803 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 534 ns 501 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.22 % 2.09 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22287 ns 22234 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22299 ns 22234 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 336 ns 302 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.51 % 1.36 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22240 ns 22095 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22125 ns 21973 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 661 ns 732 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.97 % 3.31 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21810 ns 21851 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22001 ns 21973 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 429 ns 244 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.97 % 1.12 % 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 5193 ns 5197 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 5202 ns 5162 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 35.2 ns 69.8 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 0.68 % 1.34 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 4025 ns 4013 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 3971 ns 3945 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 198 ns 172 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 4.93 % 4.28 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 909 ns 910 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 905 ns 900 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 14.6 ns 20.9 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.61 % 2.30 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 645 ns 638 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 633 ns 628 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 40.1 ns 41.7 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.22 % 6.53 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 457 ns 458 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 457 ns 455 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 14.9 ns 12.7 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.26 % 2.78 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 358 ns 357 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 357 ns 357 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 9.35 ns 9.91 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.61 % 2.78 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11158 ns 11143 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 11212 ns 11143 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 190 ns 181 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 1.70 % 1.63 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1231 ns 1221 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1230 ns 1214 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 21.2 ns 26.7 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 1.72 % 2.19 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2861 ns 2841 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2846 ns 2825 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 50.2 ns 79.0 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.76 % 2.78 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 2540 ns 2537 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 2496 ns 2485 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 146 ns 174 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 5.75 % 6.84 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2756 ns 2762 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2724 ns 2734 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 221 ns 230 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 8.03 % 8.33 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1528 ns 1517 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1539 ns 1517 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 29.5 ns 45.0 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.93 % 2.97 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 910 ns 909 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 910 ns 903 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 6.61 ns 12.2 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 0.73 % 1.34 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 183 ns 183 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 181 ns 182 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 7.29 ns 7.15 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 3.97 % 3.90 % 4
|
|
stringa str = "test = " + k + " times";_mean 238 ns 238 ns 4
|
|
stringa str = "test = " + k + " times";_median 234 ns 234 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 8.99 ns 7.32 ns 4
|
|
stringa str = "test = " + k + " times";_cv 3.77 % 3.08 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 542 ns 543 ns 4
|
|
std::string::find + substr + std::strtol_median 542 ns 547 ns 4
|
|
std::string::find + substr + std::strtol_stddev 12.2 ns 23.4 ns 4
|
|
std::string::find + substr + std::strtol_cv 2.24 % 4.32 % 4
|
|
ssa::splitter + ssa::as_int_mean 294 ns 293 ns 4
|
|
ssa::splitter + ssa::as_int_median 294 ns 292 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 4.63 ns 3.31 ns 4
|
|
ssa::splitter + ssa::as_int_cv 1.57 % 1.13 % 4
|
|
ssa::splitf + functor_mean 214 ns 214 ns 4
|
|
ssa::splitf + functor_median 213 ns 212 ns 4
|
|
ssa::splitf + functor_stddev 2.82 ns 4.67 ns 4
|
|
ssa::splitf + functor_cv 1.32 % 2.19 % 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 1301 ns 1304 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1298 ns 1297 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 16.6 ns 26.7 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.27 % 2.05 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2225 ns 2234 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2218 ns 2222 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 61.9 ns 46.7 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 2.78 % 2.09 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 2546 ns 2550 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 2535 ns 2563 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 44.0 ns 65.8 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.73 % 2.58 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1619 ns 1622 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1609 ns 1604 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 45.9 ns 60.4 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 2.83 % 3.72 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1434 ns 1428 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1423 ns 1428 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 37.1 ns 40.5 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.59 % 2.84 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1277 ns 1282 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1279 ns 1282 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 21.4 ns 14.1 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.67 % 1.10 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 1218 ns 1221 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 1218 ns 1221 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 15.0 ns 19.9 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.23 % 1.63 % 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 332 ns 331 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 334 ns 333 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 8.55 ns 7.01 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.57 % 2.12 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 428 ns 427 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 427 ns 425 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 11.6 ns 9.35 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 2.71 % 2.19 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 356 ns 357 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 353 ns 357 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 7.69 ns 10.4 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.16 % 2.90 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 319 ns 319 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 318 ns 319 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.07 ns 8.84 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.90 % 2.78 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 383 ns 383 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 378 ns 381 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 9.40 ns 8.01 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.46 % 2.09 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 267 ns 267 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 268 ns 270 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 7.10 ns 8.39 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 2.66 % 3.14 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 355 ns 355 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 356 ns 357 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 9.85 ns 7.68 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.78 % 2.16 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 275 ns 276 ns 4
|
|
replace bb to ---- in std::string|64_median 276 ns 277 ns 4
|
|
replace bb to ---- in std::string|64_stddev 30.3 ns 30.6 ns 4
|
|
replace bb to ---- in std::string|64_cv 10.99 % 11.09 % 4
|
|
replace bb to ---- in std::string|256_mean 899 ns 902 ns 4
|
|
replace bb to ---- in std::string|256_median 901 ns 898 ns 4
|
|
replace bb to ---- in std::string|256_stddev 76.9 ns 71.7 ns 4
|
|
replace bb to ---- in std::string|256_cv 8.55 % 7.95 % 4
|
|
replace bb to ---- in std::string|512_mean 1632 ns 1632 ns 4
|
|
replace bb to ---- in std::string|512_median 1547 ns 1549 ns 4
|
|
replace bb to ---- in std::string|512_stddev 227 ns 227 ns 4
|
|
replace bb to ---- in std::string|512_cv 13.92 % 13.89 % 4
|
|
replace bb to ---- in std::string|1024_mean 3318 ns 3331 ns 4
|
|
replace bb to ---- in std::string|1024_median 3242 ns 3244 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 179 ns 200 ns 4
|
|
replace bb to ---- in std::string|1024_cv 5.41 % 6.02 % 4
|
|
replace bb to ---- in std::string|2048_mean 8116 ns 8109 ns 4
|
|
replace bb to ---- in std::string|2048_median 8086 ns 8109 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 248 ns 225 ns 4
|
|
replace bb to ---- in std::string|2048_cv 3.05 % 2.78 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 235 ns 234 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 236 ns 235 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 7.94 ns 7.85 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 3.38 % 3.35 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 686 ns 687 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 691 ns 691 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 31.6 ns 38.4 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 4.60 % 5.59 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 1108 ns 1111 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 1106 ns 1111 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 24.8 ns 31.5 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 2.24 % 2.84 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 2042 ns 2039 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 2041 ns 2026 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 57.7 ns 46.7 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.83 % 2.29 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3933 ns 3902 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3907 ns 3880 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 91.9 ns 83.5 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.34 % 2.14 % 4
|
|
replace bb to ---- by init stringa|64_mean 205 ns 204 ns 4
|
|
replace bb to ---- by init stringa|64_median 205 ns 203 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 4.57 ns 4.67 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.23 % 2.29 % 4
|
|
replace bb to ---- by init stringa|256_mean 475 ns 476 ns 4
|
|
replace bb to ---- by init stringa|256_median 481 ns 481 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 17.0 ns 15.3 ns 4
|
|
replace bb to ---- by init stringa|256_cv 3.59 % 3.21 % 4
|
|
replace bb to ---- by init stringa|512_mean 1039 ns 1038 ns 4
|
|
replace bb to ---- by init stringa|512_median 1039 ns 1025 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 18.7 ns 24.4 ns 4
|
|
replace bb to ---- by init stringa|512_cv 1.80 % 2.35 % 4
|
|
replace bb to ---- by init stringa|1024_mean 2165 ns 2171 ns 4
|
|
replace bb to ---- by init stringa|1024_median 2172 ns 2171 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 50.5 ns 30.2 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 2.33 % 1.39 % 4
|
|
replace bb to ---- by init stringa|2048_mean 4423 ns 4425 ns 4
|
|
replace bb to ---- by init stringa|2048_median 4421 ns 4450 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 19.9 ns 50.6 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 0.45 % 1.14 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 212 ns 210 ns 4
|
|
replace bb to -- in std::string|64_median 212 ns 210 ns 4
|
|
replace bb to -- in std::string|64_stddev 4.53 ns 5.64 ns 4
|
|
replace bb to -- in std::string|64_cv 2.13 % 2.69 % 4
|
|
replace bb to -- in std::string|256_mean 528 ns 527 ns 4
|
|
replace bb to -- in std::string|256_median 531 ns 530 ns 4
|
|
replace bb to -- in std::string|256_stddev 11.9 ns 6.98 ns 4
|
|
replace bb to -- in std::string|256_cv 2.26 % 1.32 % 4
|
|
replace bb to -- in std::string|512_mean 969 ns 963 ns 4
|
|
replace bb to -- in std::string|512_median 955 ns 952 ns 4
|
|
replace bb to -- in std::string|512_stddev 39.2 ns 29.6 ns 4
|
|
replace bb to -- in std::string|512_cv 4.04 % 3.07 % 4
|
|
replace bb to -- in std::string|1024_mean 1820 ns 1822 ns 4
|
|
replace bb to -- in std::string|1024_median 1829 ns 1822 ns 4
|
|
replace bb to -- in std::string|1024_stddev 32.4 ns 49.5 ns 4
|
|
replace bb to -- in std::string|1024_cv 1.78 % 2.72 % 4
|
|
replace bb to -- in std::string|2048_mean 3585 ns 3578 ns 4
|
|
replace bb to -- in std::string|2048_median 3600 ns 3599 ns 4
|
|
replace bb to -- in std::string|2048_stddev 99.3 ns 105 ns 4
|
|
replace bb to -- in std::string|2048_cv 2.77 % 2.94 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 190 ns 188 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 189 ns 188 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 2.81 ns 3.42 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 1.48 % 1.81 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 475 ns 474 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 449 ns 449 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 61.9 ns 62.5 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 13.05 % 13.20 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 904 ns 902 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 891 ns 889 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 82.8 ns 84.7 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 9.16 % 9.38 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1626 ns 1631 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1618 ns 1631 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 37.4 ns 22.2 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 2.30 % 1.36 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 3152 ns 3155 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 3071 ns 3076 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 260 ns 296 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 8.26 % 9.39 % 4
|
|
replace bb to -- by init stringa|64_mean 172 ns 172 ns 4
|
|
replace bb to -- by init stringa|64_median 171 ns 172 ns 4
|
|
replace bb to -- by init stringa|64_stddev 3.09 ns 3.42 ns 4
|
|
replace bb to -- by init stringa|64_cv 1.79 % 1.99 % 4
|
|
replace bb to -- by init stringa|256_mean 397 ns 398 ns 4
|
|
replace bb to -- by init stringa|256_median 395 ns 398 ns 4
|
|
replace bb to -- by init stringa|256_stddev 15.3 ns 19.9 ns 4
|
|
replace bb to -- by init stringa|256_cv 3.86 % 5.01 % 4
|
|
replace bb to -- by init stringa|512_mean 673 ns 676 ns 4
|
|
replace bb to -- by init stringa|512_median 681 ns 680 ns 4
|
|
replace bb to -- by init stringa|512_stddev 21.3 ns 15.0 ns 4
|
|
replace bb to -- by init stringa|512_cv 3.16 % 2.21 % 4
|
|
replace bb to -- by init stringa|1024_mean 1258 ns 1257 ns 4
|
|
replace bb to -- by init stringa|1024_median 1238 ns 1233 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 58.8 ns 58.1 ns 4
|
|
replace bb to -- by init stringa|1024_cv 4.68 % 4.62 % 4
|
|
replace bb to -- by init stringa|2048_mean 2330 ns 2341 ns 4
|
|
replace bb to -- by init stringa|2048_median 2329 ns 2328 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 36.6 ns 50.1 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.57 % 2.14 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 4361265 ns 4370117 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 4319146 ns 4345703 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 171896 ns 166780 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 3.94 % 3.82 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5878463 ns 5859375 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5875393 ns 5815972 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 196309 ns 166220 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 3.34 % 2.84 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3945892 ns 3929782 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3963375 ns 3953313 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 56988 ns 47063 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.44 % 1.20 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6313765 ns 6289062 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6295877 ns 6328125 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 60913 ns 149598 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 0.96 % 2.38 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 1644 ns 1639 ns 4
|
|
Build func full name std::string;_median 1639 ns 1639 ns 4
|
|
Build func full name std::string;_stddev 14.4 ns 0.000 ns 4
|
|
Build func full name std::string;_cv 0.88 % 0.00 % 4
|
|
Build func full name std::string 1;_mean 1749 ns 1735 ns 4
|
|
Build func full name std::string 1;_median 1743 ns 1726 ns 4
|
|
Build func full name std::string 1;_stddev 40.7 ns 33.4 ns 4
|
|
Build func full name std::string 1;_cv 2.33 % 1.92 % 4
|
|
Build func full name std::stream;_mean 9940 ns 9940 ns 4
|
|
Build func full name std::stream;_median 9939 ns 9835 ns 4
|
|
Build func full name std::stream;_stddev 126 ns 209 ns 4
|
|
Build func full name std::stream;_cv 1.26 % 2.11 % 4
|
|
Build func full name stringa;_mean 937 ns 936 ns 4
|
|
Build func full name stringa;_median 913 ns 910 ns 4
|
|
Build func full name stringa;_stddev 54.7 ns 60.1 ns 4
|
|
Build func full name stringa;_cv 5.83 % 6.42 % 4
|
|
Build func full name stringa 1;_mean 1058 ns 1057 ns 4
|
|
Build func full name stringa 1;_median 1052 ns 1057 ns 4
|
|
Build func full name stringa 1;_stddev 15.4 ns 27.0 ns 4
|
|
Build func full name stringa 1;_cv 1.45 % 2.56 % 4
|