mirror of https://github.com/orefkov/simstr.git
932 lines
138 KiB
Plaintext
932 lines
138 KiB
Plaintext
Benchmarks of simstr, version 1.6.4
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-04T16:52:12+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.53, 0.18, 0.32
|
|
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 226 ns 226 ns 4
|
|
Concat std::string and number by std to std::string_median 216 ns 216 ns 4
|
|
Concat std::string and number by std to std::string_stddev 20.8 ns 20.8 ns 4
|
|
Concat std::string and number by std to std::string_cv 9.21 % 9.21 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 105 ns 105 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 104 ns 104 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 1.33 ns 1.33 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 1.27 % 1.27 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 62.8 ns 62.8 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 62.9 ns 62.9 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 0.596 ns 0.596 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 0.95 % 0.95 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 70.6 ns 70.6 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 67.4 ns 67.4 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 7.97 ns 7.97 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 11.30 % 11.30 % 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 681 ns 681 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 684 ns 684 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 6.51 ns 6.51 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 0.96 % 0.96 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 863 ns 863 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 857 ns 857 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 22.4 ns 22.4 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 2.60 % 2.60 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 199 ns 199 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 200 ns 200 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 3.35 ns 3.35 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.68 % 1.68 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 133 ns 133 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 132 ns 132 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.32 ns 2.32 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.75 % 1.75 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 122 ns 122 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 5.02 ns 5.02 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.13 % 4.13 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 129 ns 129 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 129 ns 129 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 7.79 ns 7.79 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 6.04 % 6.04 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 180 ns 180 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 180 ns 180 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.42 ns 4.42 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.45 % 2.45 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 312 ns 312 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 312 ns 312 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.75 ns 3.75 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.20 % 1.20 % 4
|
|
----- format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
"art "_ss + i / 0x8a010_fmt + " end"_mean 99.1 ns 99.1 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_median 96.0 ns 96.0 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_stddev 6.88 ns 6.88 ns 4
|
|
"art "_ss + i / 0x8a010_fmt + " end"_cv 6.94 % 6.94 % 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_mean 159 ns 159 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_median 158 ns 158 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_stddev 2.47 ns 2.47 ns 4
|
|
e_subst("art {} end", i / 0x8a010_fmt)_cv 1.56 % 1.56 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 347 ns 347 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 344 ns 344 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 10.5 ns 10.5 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 3.04 % 3.04 % 4
|
|
std::format("art {:#010o} end", i)_mean 988 ns 988 ns 4
|
|
std::format("art {:#010o} end", i)_median 989 ns 989 ns 4
|
|
std::format("art {:#010o} end", i)_stddev 7.46 ns 7.46 ns 4
|
|
std::format("art {:#010o} end", i)_cv 0.75 % 0.75 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1046 ns 1046 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1046 ns 1046 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 52.1 ns 52.1 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 4.98 % 4.98 % 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2020 ns 2020 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2021 ns 2021 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 50.6 ns 50.6 ns 4
|
|
strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.50 % 2.50 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 45.4 ns 45.4 ns 4
|
|
Concat std::string by std to std::string_median 44.2 ns 44.2 ns 4
|
|
Concat std::string by std to std::string_stddev 2.92 ns 2.92 ns 4
|
|
Concat std::string by std to std::string_cv 6.42 % 6.42 % 4
|
|
Concat std::string by StrExpr to std::string_mean 33.7 ns 33.7 ns 4
|
|
Concat std::string by StrExpr to std::string_median 34.3 ns 34.3 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 1.48 ns 1.48 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 4.38 % 4.38 % 4
|
|
Concat stringa by StrExpr to stringa_mean 28.7 ns 28.7 ns 4
|
|
Concat stringa by StrExpr to stringa_median 28.5 ns 28.5 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 0.925 ns 0.925 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 3.23 % 3.23 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 121 ns 121 ns 4
|
|
Find concat three std::string_median 117 ns 117 ns 4
|
|
Find concat three std::string_stddev 10.7 ns 10.7 ns 4
|
|
Find concat three std::string_cv 8.88 % 8.88 % 4
|
|
Find concat three strexpr_mean 50.8 ns 50.8 ns 4
|
|
Find concat three strexpr_median 50.6 ns 50.6 ns 4
|
|
Find concat three strexpr_stddev 0.766 ns 0.766 ns 4
|
|
Find concat three strexpr_cv 1.51 % 1.51 % 4
|
|
Find concat three simstr_mean 51.6 ns 51.6 ns 4
|
|
Find concat three simstr_median 51.3 ns 51.3 ns 4
|
|
Find concat three simstr_stddev 0.491 ns 0.491 ns 4
|
|
Find concat three simstr_cv 0.95 % 0.95 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 7.08 ns 7.08 ns 4
|
|
BuildTypeNameStr 0/0_median 7.08 ns 7.08 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.139 ns 0.139 ns 4
|
|
BuildTypeNameStr 0/0_cv 1.96 % 1.96 % 4
|
|
BuildTypeNameExp 0/0_mean 6.67 ns 6.67 ns 4
|
|
BuildTypeNameExp 0/0_median 6.61 ns 6.61 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.199 ns 0.199 ns 4
|
|
BuildTypeNameExp 0/0_cv 2.99 % 2.99 % 4
|
|
BuildTypeNameSim 0/0_mean 5.11 ns 5.11 ns 4
|
|
BuildTypeNameSim 0/0_median 4.96 ns 4.96 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.443 ns 0.443 ns 4
|
|
BuildTypeNameSim 0/0_cv 8.68 % 8.68 % 4
|
|
BuildTypeNameStr 10/10_mean 63.1 ns 63.1 ns 4
|
|
BuildTypeNameStr 10/10_median 63.3 ns 63.3 ns 4
|
|
BuildTypeNameStr 10/10_stddev 4.16 ns 4.16 ns 4
|
|
BuildTypeNameStr 10/10_cv 6.59 % 6.59 % 4
|
|
BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4
|
|
BuildTypeNameExp 10/10_median 30.1 ns 30.1 ns 4
|
|
BuildTypeNameExp 10/10_stddev 2.10 ns 2.10 ns 4
|
|
BuildTypeNameExp 10/10_cv 6.79 % 6.79 % 4
|
|
BuildTypeNameSim 10/10_mean 22.7 ns 22.7 ns 4
|
|
BuildTypeNameSim 10/10_median 22.5 ns 22.5 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.855 ns 0.855 ns 4
|
|
BuildTypeNameSim 10/10_cv 3.77 % 3.77 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 211 ns 211 ns 4
|
|
Concat with replace str_median 213 ns 213 ns 4
|
|
Concat with replace str_stddev 14.1 ns 14.1 ns 4
|
|
Concat with replace str_cv 6.69 % 6.69 % 4
|
|
Concat with replace exp_mean 163 ns 163 ns 4
|
|
Concat with replace exp_median 154 ns 154 ns 4
|
|
Concat with replace exp_stddev 30.1 ns 30.1 ns 4
|
|
Concat with replace exp_cv 18.50 % 18.50 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.13 ns 1.13 ns 4
|
|
std::string e;_median 1.11 ns 1.11 ns 4
|
|
std::string e;_stddev 0.047 ns 0.047 ns 4
|
|
std::string e;_cv 4.17 % 4.17 % 4
|
|
std::string_view e;_mean 0.369 ns 0.369 ns 4
|
|
std::string_view e;_median 0.368 ns 0.368 ns 4
|
|
std::string_view e;_stddev 0.012 ns 0.012 ns 4
|
|
std::string_view e;_cv 3.31 % 3.31 % 4
|
|
ssa e;_mean 0.363 ns 0.363 ns 4
|
|
ssa e;_median 0.361 ns 0.361 ns 4
|
|
ssa e;_stddev 0.004 ns 0.004 ns 4
|
|
ssa e;_cv 1.17 % 1.17 % 4
|
|
stringa e;_mean 0.758 ns 0.758 ns 4
|
|
stringa e;_median 0.750 ns 0.750 ns 4
|
|
stringa e;_stddev 0.033 ns 0.033 ns 4
|
|
stringa e;_cv 4.34 % 4.34 % 4
|
|
lstringa<20> e;_mean 1.13 ns 1.13 ns 4
|
|
lstringa<20> e;_median 1.13 ns 1.13 ns 4
|
|
lstringa<20> e;_stddev 0.023 ns 0.023 ns 4
|
|
lstringa<20> e;_cv 2.06 % 2.06 % 4
|
|
lstringa<40> e;_mean 1.13 ns 1.13 ns 4
|
|
lstringa<40> e;_median 1.13 ns 1.13 ns 4
|
|
lstringa<40> e;_stddev 0.011 ns 0.011 ns 4
|
|
lstringa<40> e;_cv 0.96 % 0.96 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.83 ns 1.83 ns 4
|
|
std::string e = "Test text";_median 1.83 ns 1.83 ns 4
|
|
std::string e = "Test text";_stddev 0.021 ns 0.021 ns 4
|
|
std::string e = "Test text";_cv 1.13 % 1.13 % 4
|
|
std::string_view e = "Test text";_mean 0.735 ns 0.735 ns 4
|
|
std::string_view e = "Test text";_median 0.734 ns 0.734 ns 4
|
|
std::string_view e = "Test text";_stddev 0.006 ns 0.006 ns 4
|
|
std::string_view e = "Test text";_cv 0.77 % 0.77 % 4
|
|
ssa e = "Test text";_mean 0.392 ns 0.392 ns 4
|
|
ssa e = "Test text";_median 0.392 ns 0.392 ns 4
|
|
ssa e = "Test text";_stddev 0.020 ns 0.020 ns 4
|
|
ssa e = "Test text";_cv 5.00 % 5.00 % 4
|
|
stringa e = "Test text";_mean 1.21 ns 1.21 ns 4
|
|
stringa e = "Test text";_median 1.23 ns 1.23 ns 4
|
|
stringa e = "Test text";_stddev 0.049 ns 0.049 ns 4
|
|
stringa e = "Test text";_cv 4.06 % 4.06 % 4
|
|
lstringa<20> e = "Test text";_mean 2.03 ns 2.03 ns 4
|
|
lstringa<20> e = "Test text";_median 2.00 ns 2.00 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.120 ns 0.120 ns 4
|
|
lstringa<20> e = "Test text";_cv 5.92 % 5.92 % 4
|
|
lstringa<40> e = "Test text";_mean 1.84 ns 1.84 ns 4
|
|
lstringa<40> e = "Test text";_median 1.85 ns 1.85 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.032 ns 0.032 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.71 % 1.71 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 18.9 ns 18.9 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 18.8 ns 18.8 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.352 ns 0.352 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.86 % 1.86 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.733 ns 0.733 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 0.733 ns 0.733 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 0.89 % 0.89 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 0.368 ns 0.368 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 0.368 ns 0.368 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 1.83 % 1.83 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 1.10 ns 1.10 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 1.10 ns 1.10 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.019 ns 0.019 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 1.73 % 1.73 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 20.2 ns 20.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.360 ns 0.360 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.78 % 1.78 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.56 ns 2.56 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.55 ns 2.55 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.045 ns 0.045 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 1.75 % 1.75 % 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.38 ns 5.38 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.39 ns 5.39 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.035 ns 0.035 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 0.66 % 0.66 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 0.374 ns 0.374 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.25 % 2.25 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 0.364 ns 0.364 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 0.364 ns 0.364 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 1.18 % 1.18 % 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.019 ns 0.019 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 1.75 % 1.75 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.57 ns 4.57 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.54 ns 4.54 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.149 ns 0.149 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 3.26 % 3.26 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.52 ns 4.52 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.188 ns 0.188 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 4.16 % 4.16 % 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 18.8 ns 18.8 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 18.8 ns 18.8 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.224 ns 0.224 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.19 % 1.19 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.731 ns 0.731 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.733 ns 0.733 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.27 % 1.27 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.368 ns 0.368 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.369 ns 0.369 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.004 ns 0.004 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.08 % 1.08 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.11 ns 1.11 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.048 ns 0.048 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 4.27 % 4.27 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.5 ns 19.5 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.6 ns 19.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.183 ns 0.183 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.94 % 0.94 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.50 ns 4.50 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.42 ns 4.42 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.184 ns 0.184 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.10 % 4.10 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 7.00 ns 7.00 ns 4
|
|
std::string::find;_median 6.76 ns 6.76 ns 4
|
|
std::string::find;_stddev 0.509 ns 0.509 ns 4
|
|
std::string::find;_cv 7.27 % 7.27 % 4
|
|
std::string_view::find;_mean 8.27 ns 8.27 ns 4
|
|
std::string_view::find;_median 8.39 ns 8.39 ns 4
|
|
std::string_view::find;_stddev 0.561 ns 0.561 ns 4
|
|
std::string_view::find;_cv 6.78 % 6.78 % 4
|
|
ssa::find;_mean 7.68 ns 7.68 ns 4
|
|
ssa::find;_median 7.78 ns 7.78 ns 4
|
|
ssa::find;_stddev 0.543 ns 0.543 ns 4
|
|
ssa::find;_cv 7.07 % 7.07 % 4
|
|
stringa::find;_mean 7.92 ns 7.92 ns 4
|
|
stringa::find;_median 8.07 ns 8.07 ns 4
|
|
stringa::find;_stddev 0.349 ns 0.349 ns 4
|
|
stringa::find;_cv 4.41 % 4.41 % 4
|
|
lstringa<20>::find;_mean 6.91 ns 6.91 ns 4
|
|
lstringa<20>::find;_median 7.00 ns 7.00 ns 4
|
|
lstringa<20>::find;_stddev 0.432 ns 0.432 ns 4
|
|
lstringa<20>::find;_cv 6.25 % 6.25 % 4
|
|
lstringa<40>::find;_mean 7.14 ns 7.14 ns 4
|
|
lstringa<40>::find;_median 7.16 ns 7.16 ns 4
|
|
lstringa<40>::find;_stddev 0.493 ns 0.493 ns 4
|
|
lstringa<40>::find;_cv 6.90 % 6.90 % 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.34 ns 5.34 ns 4
|
|
std::string copy{str_with_len_N};/15_median 5.27 ns 5.27 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.450 ns 0.450 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 8.42 % 8.42 % 4
|
|
std::string copy{str_with_len_N};/16_mean 24.6 ns 24.6 ns 4
|
|
std::string copy{str_with_len_N};/16_median 24.9 ns 24.9 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 1.50 ns 1.50 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 6.10 % 6.10 % 4
|
|
std::string copy{str_with_len_N};/23_mean 26.2 ns 26.2 ns 4
|
|
std::string copy{str_with_len_N};/23_median 27.1 ns 27.1 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 2.02 ns 2.02 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 7.71 % 7.71 % 4
|
|
std::string copy{str_with_len_N};/24_mean 28.6 ns 28.6 ns 4
|
|
std::string copy{str_with_len_N};/24_median 28.1 ns 28.1 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 2.58 ns 2.58 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 9.02 % 9.02 % 4
|
|
std::string copy{str_with_len_N};/32_mean 25.5 ns 25.5 ns 4
|
|
std::string copy{str_with_len_N};/32_median 25.4 ns 25.4 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 1.77 ns 1.77 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 6.93 % 6.93 % 4
|
|
std::string copy{str_with_len_N};/64_mean 23.9 ns 23.9 ns 4
|
|
std::string copy{str_with_len_N};/64_median 22.9 ns 22.9 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 2.16 ns 2.16 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 9.05 % 9.05 % 4
|
|
std::string copy{str_with_len_N};/128_mean 25.4 ns 25.4 ns 4
|
|
std::string copy{str_with_len_N};/128_median 24.8 ns 24.8 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 1.30 ns 1.30 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 5.15 % 5.15 % 4
|
|
std::string copy{str_with_len_N};/256_mean 25.1 ns 25.1 ns 4
|
|
std::string copy{str_with_len_N};/256_median 25.0 ns 25.0 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 0.433 ns 0.433 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 1.73 % 1.73 % 4
|
|
std::string copy{str_with_len_N};/512_mean 28.7 ns 28.7 ns 4
|
|
std::string copy{str_with_len_N};/512_median 28.7 ns 28.7 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 0.564 ns 0.564 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 1.96 % 1.96 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 46.9 ns 46.9 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 46.0 ns 46.0 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 2.42 ns 2.42 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 5.17 % 5.17 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 69.5 ns 69.5 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 68.3 ns 68.3 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 7.70 ns 7.70 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 11.07 % 11.07 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 118 ns 118 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 5.69 ns 5.69 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 4.82 % 4.82 % 4
|
|
stringa copy{str_with_len_N};/15_mean 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.027 ns 0.027 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 2.42 % 2.42 % 4
|
|
stringa copy{str_with_len_N};/16_mean 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.013 ns 0.013 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 1.18 % 1.18 % 4
|
|
stringa copy{str_with_len_N};/23_mean 1.13 ns 1.13 ns 4
|
|
stringa copy{str_with_len_N};/23_median 1.12 ns 1.12 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.022 ns 0.022 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 1.94 % 1.94 % 4
|
|
stringa copy{str_with_len_N};/24_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/24_median 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.087 ns 0.087 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 0.54 % 0.54 % 4
|
|
stringa copy{str_with_len_N};/32_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/32_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.086 ns 0.086 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.53 % 0.53 % 4
|
|
stringa copy{str_with_len_N};/64_mean 16.0 ns 16.0 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.080 ns 0.080 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.50 % 0.50 % 4
|
|
stringa copy{str_with_len_N};/128_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/128_median 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.288 ns 0.288 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 1.80 % 1.80 % 4
|
|
stringa copy{str_with_len_N};/256_mean 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/256_median 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.151 ns 0.151 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 0.94 % 0.94 % 4
|
|
stringa copy{str_with_len_N};/512_mean 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/512_median 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.043 ns 0.043 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.27 % 0.27 % 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.192 ns 0.192 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 1.20 % 1.20 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 16.1 ns 16.1 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.034 ns 0.034 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.21 % 0.21 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 16.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.046 ns 0.046 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.29 % 0.29 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.45 ns 4.45 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.42 ns 4.42 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.094 ns 0.094 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 2.10 % 2.10 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.60 ns 4.60 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.431 ns 0.431 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 9.38 % 9.38 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.53 ns 4.53 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.50 ns 4.50 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.095 ns 0.095 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 2.09 % 2.09 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 24.4 ns 24.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.254 ns 0.254 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 1.04 % 1.04 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 23.5 ns 23.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 23.6 ns 23.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.375 ns 0.375 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.60 % 1.60 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 25.7 ns 25.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 25.8 ns 25.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.246 ns 0.246 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 0.96 % 0.96 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 26.2 ns 26.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 26.2 ns 26.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 0.718 ns 0.718 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 2.74 % 2.74 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 27.1 ns 27.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 26.9 ns 26.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.473 ns 0.473 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.75 % 1.75 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 32.1 ns 32.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 31.6 ns 31.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 2.66 ns 2.66 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 8.28 % 8.28 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 54.7 ns 54.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 54.6 ns 54.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 2.72 ns 2.72 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 4.97 % 4.97 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 62.1 ns 62.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 62.1 ns 62.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 1.03 ns 1.03 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 1.66 % 1.66 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 87.4 ns 87.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 85.0 ns 85.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 4.92 ns 4.92 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 5.63 % 5.63 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.78 ns 4.78 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.80 ns 4.80 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.057 ns 0.057 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.20 % 1.19 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 4.84 ns 4.84 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 4.84 ns 4.84 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.029 ns 0.029 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 0.60 % 0.60 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 4.93 ns 4.93 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 4.86 ns 4.86 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.200 ns 0.200 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 4.06 % 4.06 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 4.79 ns 4.79 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 4.80 ns 4.80 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.090 ns 0.090 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 1.87 % 1.87 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.56 ns 4.56 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.55 ns 4.55 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.191 ns 0.191 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 4.19 % 4.19 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.35 ns 6.35 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 6.44 ns 6.44 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.314 ns 0.314 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 4.95 % 4.95 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 6.59 ns 6.59 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 6.33 ns 6.33 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.589 ns 0.589 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 8.94 % 8.94 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 17.2 ns 17.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 17.1 ns 17.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.067 ns 0.067 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 0.39 % 0.39 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 10.1 ns 10.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 10.1 ns 10.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.141 ns 0.141 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.40 % 1.40 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 56.4 ns 56.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 56.8 ns 56.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 1.89 ns 1.89 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 3.35 % 3.35 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 67.1 ns 67.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 65.5 ns 65.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 3.62 ns 3.62 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 5.40 % 5.40 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 88.7 ns 88.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 88.7 ns 88.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 0.924 ns 0.924 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 1.04 % 1.04 % 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 26.4 ns 26.4 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.4 ns 26.4 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.181 ns 0.181 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.68 % 0.68 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.7 ns 14.7 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.6 ns 14.6 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.292 ns 0.292 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.98 % 1.98 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.7 ns 12.7 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.6 ns 12.6 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.195 ns 0.195 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.54 % 1.54 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 13.1 ns 13.1 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 13.2 ns 13.2 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.454 ns 0.454 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.45 % 3.45 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.6 ns 12.6 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.7 ns 12.7 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.078 ns 0.078 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.62 % 0.62 % 4
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.2 ns 23.2 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.3 ns 23.3 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.347 ns 0.347 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.49 % 1.49 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.53 ns 9.53 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.55 ns 9.55 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.142 ns 0.142 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.49 % 1.49 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 11.4 ns 11.4 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 11.4 ns 11.4 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.258 ns 0.258 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.26 % 2.26 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 11.2 ns 11.2 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 11.1 ns 11.1 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.524 ns 0.524 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 4.68 % 4.68 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 11.3 ns 11.3 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 11.2 ns 11.2 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.238 ns 0.238 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.11 % 2.11 % 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.9 ns 28.9 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.5 ns 28.5 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.39 ns 1.39 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 4.81 % 4.81 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.9 ns 18.9 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.9 ns 18.9 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.150 ns 0.150 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 0.79 % 0.79 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 14.9 ns 14.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 14.8 ns 14.8 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.215 ns 0.215 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.44 % 1.44 % 4
|
|
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 66.7 ns 66.7 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.4 ns 64.4 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 5.07 ns 5.07 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 7.59 % 7.59 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.9 ns 24.9 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.0 ns 25.0 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.357 ns 0.357 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.44 % 1.44 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.4 ns 25.4 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 25.5 ns 25.5 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.469 ns 0.469 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.85 % 1.85 % 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 1382 ns 1382 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1383 ns 1384 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 26.3 ns 26.3 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.90 % 1.90 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 347 ns 347 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 345 ns 345 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 9.44 ns 9.44 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.72 % 2.72 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 363 ns 363 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 348 ns 348 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 38.6 ns 38.6 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 10.63 % 10.63 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 249 ns 249 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 237 ns 237 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 26.4 ns 26.4 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 10.60 % 10.60 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 213 ns 213 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 216 ns 216 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 21.7 ns 21.7 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 10.17 % 10.17 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 135 ns 135 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 135 ns 135 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.578 ns 0.578 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.43 % 0.43 % 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 1371 ns 1371 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1376 ns 1376 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 17.3 ns 17.3 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.26 % 1.26 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1266 ns 1266 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1236 ns 1236 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 69.6 ns 69.6 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 5.50 % 5.50 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 413 ns 413 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 411 ns 411 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.7 ns 12.7 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.07 % 3.07 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 315 ns 315 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 315 ns 315 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.49 ns 5.49 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.74 % 1.74 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 287 ns 287 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 284 ns 284 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.43 ns 9.43 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.29 % 3.29 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 231 ns 231 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 232 ns 232 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.36 ns 4.36 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.88 % 1.88 % 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 116458 ns 116458 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 116426 ns 116426 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 5311 ns 5311 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.56 % 4.56 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71688 ns 71688 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71654 ns 71655 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 510 ns 510 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.71 % 0.71 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 40461 ns 40462 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 40387 ns 40387 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 626 ns 626 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.55 % 1.55 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24967 ns 24967 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 25352 ns 25352 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1046 ns 1046 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.19 % 4.19 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17099 ns 17099 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16390 ns 16390 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2371 ns 2371 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 13.87 % 13.87 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18583 ns 18583 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18486 ns 18486 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 932 ns 932 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.01 % 5.01 % 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 1515 ns 1515 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1508 ns 1508 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 76.5 ns 76.5 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 5.05 % 5.05 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1485 ns 1485 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 1443 ns 1443 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 111 ns 111 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 7.49 % 7.49 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 470 ns 470 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 472 ns 472 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.83 ns 8.83 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.88 % 1.88 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 418 ns 418 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 400 ns 400 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 37.2 ns 37.2 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 8.88 % 8.88 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 367 ns 367 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 366 ns 366 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.59 ns 8.59 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.34 % 2.34 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 290 ns 290 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 290 ns 290 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 2.88 ns 2.88 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 0.99 % 0.99 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3014 ns 3014 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 3007 ns 3007 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 76.9 ns 76.9 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.55 % 2.55 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 472 ns 472 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 4.39 ns 4.39 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 0.93 % 0.93 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1422 ns 1422 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1406 ns 1406 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 56.2 ns 56.2 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.95 % 3.95 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 1174 ns 1174 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 1166 ns 1166 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 44.0 ns 44.0 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 3.75 % 3.75 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1387 ns 1387 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1366 ns 1366 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 63.5 ns 63.5 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 4.58 % 4.58 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1056 ns 1056 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1051 ns 1051 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 33.1 ns 33.1 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 3.13 % 3.13 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 294 ns 294 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 289 ns 289 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 16.0 ns 16.0 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 5.44 % 5.44 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 151 ns 151 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 152 ns 152 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 2.76 ns 2.76 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.83 % 1.83 % 4
|
|
stringa str = "test = " + k + " times";_mean 145 ns 145 ns 4
|
|
stringa str = "test = " + k + " times";_median 146 ns 146 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 1.59 ns 1.59 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.09 % 1.09 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 271 ns 271 ns 4
|
|
std::string::find + substr + std::strtol_median 267 ns 267 ns 4
|
|
std::string::find + substr + std::strtol_stddev 7.51 ns 7.51 ns 4
|
|
std::string::find + substr + std::strtol_cv 2.77 % 2.77 % 4
|
|
ssa::splitter + ssa::as_int_mean 152 ns 152 ns 4
|
|
ssa::splitter + ssa::as_int_median 153 ns 153 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 1.22 ns 1.22 ns 4
|
|
ssa::splitter + ssa::as_int_cv 0.80 % 0.80 % 4
|
|
ssa::splitf + functor_mean 200 ns 200 ns 4
|
|
ssa::splitf + functor_median 199 ns 199 ns 4
|
|
ssa::splitf + functor_stddev 5.26 ns 5.26 ns 4
|
|
ssa::splitf + functor_cv 2.63 % 2.63 % 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 846 ns 846 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 850 ns 850 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 9.77 ns 9.77 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.15 % 1.15 % 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 2404 ns 2404 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 166 ns 166 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 6.73 % 6.73 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 1085 ns 1085 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 1086 ns 1086 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 15.3 ns 15.3 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.41 % 1.41 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1294 ns 1294 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1298 ns 1298 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 20.7 ns 20.7 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.60 % 1.60 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1076 ns 1076 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1051 ns 1051 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 71.8 ns 71.8 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 6.68 % 6.68 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1042 ns 1042 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1008 ns 1008 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 73.1 ns 73.1 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 7.01 % 7.01 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 889 ns 889 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 891 ns 891 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 9.30 ns 9.30 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.05 % 1.05 % 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 170 ns 170 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 168 ns 168 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 10.2 ns 10.2 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 5.97 % 5.97 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 314 ns 314 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 312 ns 312 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 4.98 ns 4.98 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 1.59 % 1.59 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 165 ns 165 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 166 ns 166 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 2.45 ns 2.45 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 1.48 % 1.48 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 193 ns 193 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 193 ns 193 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.08 ns 3.08 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.59 % 1.59 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 186 ns 186 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 187 ns 187 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 3.78 ns 3.78 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 2.03 % 2.03 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 135 ns 135 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 133 ns 133 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 6.73 ns 6.73 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 4.98 % 4.98 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 152 ns 152 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 151 ns 151 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 1.55 ns 1.55 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 1.02 % 1.02 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 160 ns 160 ns 4
|
|
replace bb to ---- in std::string|64_median 160 ns 160 ns 4
|
|
replace bb to ---- in std::string|64_stddev 3.48 ns 3.48 ns 4
|
|
replace bb to ---- in std::string|64_cv 2.17 % 2.17 % 4
|
|
replace bb to ---- in std::string|256_mean 522 ns 522 ns 4
|
|
replace bb to ---- in std::string|256_median 524 ns 524 ns 4
|
|
replace bb to ---- in std::string|256_stddev 8.48 ns 8.48 ns 4
|
|
replace bb to ---- in std::string|256_cv 1.63 % 1.63 % 4
|
|
replace bb to ---- in std::string|512_mean 1021 ns 1021 ns 4
|
|
replace bb to ---- in std::string|512_median 1022 ns 1022 ns 4
|
|
replace bb to ---- in std::string|512_stddev 31.8 ns 31.8 ns 4
|
|
replace bb to ---- in std::string|512_cv 3.11 % 3.11 % 4
|
|
replace bb to ---- in std::string|1024_mean 2275 ns 2275 ns 4
|
|
replace bb to ---- in std::string|1024_median 2255 ns 2255 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 187 ns 187 ns 4
|
|
replace bb to ---- in std::string|1024_cv 8.21 % 8.21 % 4
|
|
replace bb to ---- in std::string|2048_mean 6028 ns 6028 ns 4
|
|
replace bb to ---- in std::string|2048_median 5940 ns 5940 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 544 ns 544 ns 4
|
|
replace bb to ---- in std::string|2048_cv 9.02 % 9.02 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 136 ns 136 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 134 ns 134 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 4.74 ns 4.74 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 3.48 % 3.48 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 449 ns 449 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 438 ns 438 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 25.2 ns 25.2 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 5.60 % 5.60 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 864 ns 864 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 837 ns 837 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 71.1 ns 71.1 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 8.23 % 8.23 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1732 ns 1732 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1735 ns 1735 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 83.6 ns 83.6 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 4.82 % 4.82 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3799 ns 3799 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3777 ns 3777 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 191 ns 191 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 5.04 % 5.04 % 4
|
|
replace bb to ---- by init stringa|64_mean 100 ns 100 ns 4
|
|
replace bb to ---- by init stringa|64_median 96.5 ns 96.5 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 9.09 ns 9.09 ns 4
|
|
replace bb to ---- by init stringa|64_cv 9.06 % 9.06 % 4
|
|
replace bb to ---- by init stringa|256_mean 304 ns 304 ns 4
|
|
replace bb to ---- by init stringa|256_median 301 ns 301 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 11.6 ns 11.6 ns 4
|
|
replace bb to ---- by init stringa|256_cv 3.83 % 3.83 % 4
|
|
replace bb to ---- by init stringa|512_mean 693 ns 693 ns 4
|
|
replace bb to ---- by init stringa|512_median 691 ns 691 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 7.00 ns 7.00 ns 4
|
|
replace bb to ---- by init stringa|512_cv 1.01 % 1.01 % 4
|
|
replace bb to ---- by init stringa|1024_mean 1461 ns 1461 ns 4
|
|
replace bb to ---- by init stringa|1024_median 1468 ns 1468 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 21.7 ns 21.7 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 1.48 % 1.48 % 4
|
|
replace bb to ---- by init stringa|2048_mean 2974 ns 2974 ns 4
|
|
replace bb to ---- by init stringa|2048_median 2987 ns 2987 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 30.1 ns 30.1 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 1.01 % 1.01 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 122 ns 122 ns 4
|
|
replace bb to -- in std::string|64_median 123 ns 123 ns 4
|
|
replace bb to -- in std::string|64_stddev 2.46 ns 2.46 ns 4
|
|
replace bb to -- in std::string|64_cv 2.01 % 2.01 % 4
|
|
replace bb to -- in std::string|256_mean 403 ns 403 ns 4
|
|
replace bb to -- in std::string|256_median 394 ns 394 ns 4
|
|
replace bb to -- in std::string|256_stddev 26.1 ns 26.1 ns 4
|
|
replace bb to -- in std::string|256_cv 6.48 % 6.48 % 4
|
|
replace bb to -- in std::string|512_mean 759 ns 759 ns 4
|
|
replace bb to -- in std::string|512_median 765 ns 765 ns 4
|
|
replace bb to -- in std::string|512_stddev 18.8 ns 18.8 ns 4
|
|
replace bb to -- in std::string|512_cv 2.47 % 2.47 % 4
|
|
replace bb to -- in std::string|1024_mean 1521 ns 1521 ns 4
|
|
replace bb to -- in std::string|1024_median 1486 ns 1486 ns 4
|
|
replace bb to -- in std::string|1024_stddev 91.7 ns 91.7 ns 4
|
|
replace bb to -- in std::string|1024_cv 6.03 % 6.03 % 4
|
|
replace bb to -- in std::string|2048_mean 3014 ns 3014 ns 4
|
|
replace bb to -- in std::string|2048_median 2974 ns 2974 ns 4
|
|
replace bb to -- in std::string|2048_stddev 213 ns 213 ns 4
|
|
replace bb to -- in std::string|2048_cv 7.07 % 7.07 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 97.8 ns 97.8 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 97.5 ns 97.5 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 0.990 ns 0.990 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 1.01 % 1.01 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 284 ns 284 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 282 ns 282 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 5.33 ns 5.33 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 1.87 % 1.87 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 526 ns 526 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 526 ns 526 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 8.20 ns 8.20 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 1.56 % 1.56 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1125 ns 1125 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1125 ns 1125 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 18.4 ns 18.4 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 1.63 % 1.63 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2182 ns 2182 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2173 ns 2173 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 215 ns 215 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 9.83 % 9.83 % 4
|
|
replace bb to -- by init stringa|64_mean 89.7 ns 89.7 ns 4
|
|
replace bb to -- by init stringa|64_median 86.0 ns 86.0 ns 4
|
|
replace bb to -- by init stringa|64_stddev 9.16 ns 9.16 ns 4
|
|
replace bb to -- by init stringa|64_cv 10.21 % 10.21 % 4
|
|
replace bb to -- by init stringa|256_mean 238 ns 238 ns 4
|
|
replace bb to -- by init stringa|256_median 237 ns 237 ns 4
|
|
replace bb to -- by init stringa|256_stddev 6.85 ns 6.85 ns 4
|
|
replace bb to -- by init stringa|256_cv 2.89 % 2.89 % 4
|
|
replace bb to -- by init stringa|512_mean 436 ns 436 ns 4
|
|
replace bb to -- by init stringa|512_median 435 ns 435 ns 4
|
|
replace bb to -- by init stringa|512_stddev 11.6 ns 11.6 ns 4
|
|
replace bb to -- by init stringa|512_cv 2.66 % 2.66 % 4
|
|
replace bb to -- by init stringa|1024_mean 853 ns 853 ns 4
|
|
replace bb to -- by init stringa|1024_median 855 ns 855 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 8.52 ns 8.52 ns 4
|
|
replace bb to -- by init stringa|1024_cv 1.00 % 1.00 % 4
|
|
replace bb to -- by init stringa|2048_mean 1625 ns 1625 ns 4
|
|
replace bb to -- by init stringa|2048_median 1622 ns 1622 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 27.9 ns 27.9 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.72 % 1.72 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3560953 ns 3560963 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3558506 ns 3558516 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 34250 ns 34251 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 0.96 % 0.96 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3521968 ns 3521978 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3521321 ns 3521331 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 124468 ns 124468 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 3.53 % 3.53 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3547635 ns 3547646 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3552663 ns 3552673 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 56011 ns 56012 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.58 % 1.58 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4113520 ns 4113532 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4037073 ns 4037087 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 185659 ns 185657 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 4.51 % 4.51 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 714 ns 714 ns 4
|
|
Build func full name std::string;_median 714 ns 714 ns 4
|
|
Build func full name std::string;_stddev 6.84 ns 6.84 ns 4
|
|
Build func full name std::string;_cv 0.96 % 0.96 % 4
|
|
Build func full name std::string 1;_mean 821 ns 821 ns 4
|
|
Build func full name std::string 1;_median 821 ns 821 ns 4
|
|
Build func full name std::string 1;_stddev 4.59 ns 4.59 ns 4
|
|
Build func full name std::string 1;_cv 0.56 % 0.56 % 4
|
|
Build func full name std::stream;_mean 2538 ns 2538 ns 4
|
|
Build func full name std::stream;_median 2554 ns 2554 ns 4
|
|
Build func full name std::stream;_stddev 41.6 ns 41.6 ns 4
|
|
Build func full name std::stream;_cv 1.64 % 1.64 % 4
|
|
Build func full name stringa;_mean 510 ns 510 ns 4
|
|
Build func full name stringa;_median 507 ns 507 ns 4
|
|
Build func full name stringa;_stddev 16.1 ns 16.1 ns 4
|
|
Build func full name stringa;_cv 3.16 % 3.16 % 4
|
|
Build func full name stringa 1;_mean 640 ns 640 ns 4
|
|
Build func full name stringa 1;_median 635 ns 635 ns 4
|
|
Build func full name stringa 1;_stddev 11.7 ns 11.7 ns 4
|
|
Build func full name stringa 1;_cv 1.82 % 1.82 % 4
|