mirror of https://github.com/orefkov/simstr.git
940 lines
139 KiB
Plaintext
940 lines
139 KiB
Plaintext
Benchmarks of simstr, version 1.6.7
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-12T15:14:20+03:00
|
|
Running ./benchStr
|
|
Run on (32 X 2494.22 MHz CPU s)
|
|
CPU Caches:
|
|
L1 Data 32 KiB (x16)
|
|
L1 Instruction 32 KiB (x16)
|
|
L2 Unified 256 KiB (x16)
|
|
L3 Unified 40960 KiB (x1)
|
|
Load Average: 0.00, 0.00, 0.00
|
|
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 211 ns 211 ns 4
|
|
Concat std::string and number by std to std::string_median 211 ns 211 ns 4
|
|
Concat std::string and number by std to std::string_stddev 2.33 ns 2.33 ns 4
|
|
Concat std::string and number by std to std::string_cv 1.10 % 1.10 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 102 ns 102 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 102 ns 102 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 1.47 ns 1.47 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 1.44 % 1.44 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 63.1 ns 63.1 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 63.1 ns 63.1 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 1.98 ns 1.98 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 3.14 % 3.14 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 69.5 ns 69.5 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 69.5 ns 69.5 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.68 ns 1.68 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 2.42 % 2.42 % 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 680 ns 680 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 666 ns 666 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 34.3 ns 34.3 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 5.04 % 5.04 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 865 ns 865 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 844 ns 844 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 57.6 ns 57.6 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 6.66 % 6.66 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 198 ns 198 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 198 ns 198 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 3.20 ns 3.20 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.62 % 1.62 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 131 ns 131 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 1.47 ns 1.47 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.12 % 1.12 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 115 ns 115 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 114 ns 114 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.65 ns 1.65 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.44 % 1.44 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 121 ns 121 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 121 ns 121 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 0.573 ns 0.573 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 0.47 % 0.47 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 183 ns 183 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 182 ns 182 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 3.80 ns 3.80 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.08 % 2.08 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 308 ns 308 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 310 ns 310 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.99 ns 3.99 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.30 % 1.30 % 4
|
|
---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 276 ns 276 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 273 ns 273 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 10.5 ns 10.5 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.80 % 3.80 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 354 ns 354 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 349 ns 349 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 11.6 ns 11.6 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 3.27 % 3.27 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 618 ns 618 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 615 ns 615 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 14.3 ns 14.3 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.31 % 2.31 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 882 ns 882 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 881 ns 881 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 5.47 ns 5.47 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 0.62 % 0.62 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 819 ns 819 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 825 ns 825 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 15.0 ns 15.0 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.83 % 1.83 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 952 ns 952 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 959 ns 959 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 18.8 ns 18.8 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.97 % 1.97 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 957 ns 957 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 963 ns 963 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 34.8 ns 34.8 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 3.63 % 3.63 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2019 ns 2019 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2022 ns 2022 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 33.4 ns 33.4 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.65 % 1.65 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 45.1 ns 45.1 ns 4
|
|
Concat std::string by std to std::string_median 45.0 ns 45.0 ns 4
|
|
Concat std::string by std to std::string_stddev 0.744 ns 0.744 ns 4
|
|
Concat std::string by std to std::string_cv 1.65 % 1.65 % 4
|
|
Concat std::string by StrExpr to std::string_mean 34.8 ns 34.8 ns 4
|
|
Concat std::string by StrExpr to std::string_median 35.2 ns 35.2 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 2.56 ns 2.56 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 7.34 % 7.34 % 4
|
|
Concat stringa by StrExpr to stringa_mean 28.3 ns 28.3 ns 4
|
|
Concat stringa by StrExpr to stringa_median 28.2 ns 28.2 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 0.824 ns 0.824 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.92 % 2.92 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 111 ns 111 ns 4
|
|
Find concat three std::string_median 111 ns 111 ns 4
|
|
Find concat three std::string_stddev 4.64 ns 4.64 ns 4
|
|
Find concat three std::string_cv 4.17 % 4.17 % 4
|
|
Find concat three strexpr_mean 49.2 ns 49.2 ns 4
|
|
Find concat three strexpr_median 48.8 ns 48.8 ns 4
|
|
Find concat three strexpr_stddev 1.41 ns 1.41 ns 4
|
|
Find concat three strexpr_cv 2.87 % 2.87 % 4
|
|
Find concat three simstr_mean 19.1 ns 19.1 ns 4
|
|
Find concat three simstr_median 19.1 ns 19.1 ns 4
|
|
Find concat three simstr_stddev 0.472 ns 0.472 ns 4
|
|
Find concat three simstr_cv 2.47 % 2.47 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 7.02 ns 7.02 ns 4
|
|
BuildTypeNameStr 0/0_median 7.02 ns 7.02 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.143 ns 0.143 ns 4
|
|
BuildTypeNameStr 0/0_cv 2.04 % 2.04 % 4
|
|
BuildTypeNameExp 0/0_mean 7.31 ns 7.31 ns 4
|
|
BuildTypeNameExp 0/0_median 7.28 ns 7.28 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.148 ns 0.148 ns 4
|
|
BuildTypeNameExp 0/0_cv 2.02 % 2.02 % 4
|
|
BuildTypeNameSim 0/0_mean 4.80 ns 4.80 ns 4
|
|
BuildTypeNameSim 0/0_median 4.78 ns 4.78 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.146 ns 0.146 ns 4
|
|
BuildTypeNameSim 0/0_cv 3.03 % 3.03 % 4
|
|
BuildTypeNameStr 10/10_mean 54.8 ns 54.8 ns 4
|
|
BuildTypeNameStr 10/10_median 54.9 ns 54.9 ns 4
|
|
BuildTypeNameStr 10/10_stddev 2.34 ns 2.34 ns 4
|
|
BuildTypeNameStr 10/10_cv 4.28 % 4.28 % 4
|
|
BuildTypeNameExp 10/10_mean 30.2 ns 30.2 ns 4
|
|
BuildTypeNameExp 10/10_median 30.2 ns 30.2 ns 4
|
|
BuildTypeNameExp 10/10_stddev 0.435 ns 0.435 ns 4
|
|
BuildTypeNameExp 10/10_cv 1.44 % 1.44 % 4
|
|
BuildTypeNameSim 10/10_mean 22.5 ns 22.5 ns 4
|
|
BuildTypeNameSim 10/10_median 22.4 ns 22.4 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.524 ns 0.524 ns 4
|
|
BuildTypeNameSim 10/10_cv 2.33 % 2.33 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 207 ns 207 ns 4
|
|
Concat with replace str_median 207 ns 207 ns 4
|
|
Concat with replace str_stddev 3.33 ns 3.33 ns 4
|
|
Concat with replace str_cv 1.61 % 1.61 % 4
|
|
Concat with replace exp_mean 138 ns 138 ns 4
|
|
Concat with replace exp_median 139 ns 139 ns 4
|
|
Concat with replace exp_stddev 1.77 ns 1.77 ns 4
|
|
Concat with replace exp_cv 1.28 % 1.28 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.10 ns 1.10 ns 4
|
|
std::string e;_median 1.10 ns 1.10 ns 4
|
|
std::string e;_stddev 0.021 ns 0.021 ns 4
|
|
std::string e;_cv 1.87 % 1.87 % 4
|
|
std::string_view e;_mean 0.372 ns 0.372 ns 4
|
|
std::string_view e;_median 0.369 ns 0.369 ns 4
|
|
std::string_view e;_stddev 0.005 ns 0.005 ns 4
|
|
std::string_view e;_cv 1.42 % 1.42 % 4
|
|
ssa e;_mean 0.363 ns 0.363 ns 4
|
|
ssa e;_median 0.363 ns 0.363 ns 4
|
|
ssa e;_stddev 0.004 ns 0.004 ns 4
|
|
ssa e;_cv 1.23 % 1.23 % 4
|
|
stringa e;_mean 0.735 ns 0.735 ns 4
|
|
stringa e;_median 0.735 ns 0.735 ns 4
|
|
stringa e;_stddev 0.009 ns 0.009 ns 4
|
|
stringa e;_cv 1.16 % 1.16 % 4
|
|
lstringa<20> e;_mean 1.10 ns 1.10 ns 4
|
|
lstringa<20> e;_median 1.10 ns 1.10 ns 4
|
|
lstringa<20> e;_stddev 0.012 ns 0.012 ns 4
|
|
lstringa<20> e;_cv 1.07 % 1.07 % 4
|
|
lstringa<40> e;_mean 1.10 ns 1.10 ns 4
|
|
lstringa<40> e;_median 1.08 ns 1.08 ns 4
|
|
lstringa<40> e;_stddev 0.047 ns 0.047 ns 4
|
|
lstringa<40> e;_cv 4.21 % 4.21 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.84 ns 1.84 ns 4
|
|
std::string e = "Test text";_median 1.85 ns 1.85 ns 4
|
|
std::string e = "Test text";_stddev 0.036 ns 0.036 ns 4
|
|
std::string e = "Test text";_cv 1.93 % 1.93 % 4
|
|
std::string_view e = "Test text";_mean 0.739 ns 0.739 ns 4
|
|
std::string_view e = "Test text";_median 0.738 ns 0.738 ns 4
|
|
std::string_view e = "Test text";_stddev 0.009 ns 0.009 ns 4
|
|
std::string_view e = "Test text";_cv 1.24 % 1.24 % 4
|
|
ssa e = "Test text";_mean 0.363 ns 0.363 ns 4
|
|
ssa e = "Test text";_median 0.363 ns 0.363 ns 4
|
|
ssa e = "Test text";_stddev 0.005 ns 0.005 ns 4
|
|
ssa e = "Test text";_cv 1.48 % 1.48 % 4
|
|
stringa e = "Test text";_mean 1.11 ns 1.11 ns 4
|
|
stringa e = "Test text";_median 1.11 ns 1.11 ns 4
|
|
stringa e = "Test text";_stddev 0.025 ns 0.025 ns 4
|
|
stringa e = "Test text";_cv 2.26 % 2.26 % 4
|
|
lstringa<20> e = "Test text";_mean 1.87 ns 1.87 ns 4
|
|
lstringa<20> e = "Test text";_median 1.87 ns 1.87 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.047 ns 0.047 ns 4
|
|
lstringa<20> e = "Test text";_cv 2.53 % 2.53 % 4
|
|
lstringa<40> e = "Test text";_mean 1.90 ns 1.90 ns 4
|
|
lstringa<40> e = "Test text";_median 1.90 ns 1.90 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.076 ns 0.076 ns 4
|
|
lstringa<40> e = "Test text";_cv 3.98 % 3.98 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 19.9 ns 19.9 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 19.3 ns 19.3 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 1.95 ns 1.95 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 9.82 % 9.82 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.729 ns 0.729 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 0.728 ns 0.728 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.011 ns 0.011 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.45 % 1.45 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 0.366 ns 0.366 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 0.365 ns 0.365 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.008 ns 0.008 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 2.10 % 2.10 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.022 ns 0.022 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 1.99 % 1.99 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 20.3 ns 20.3 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 20.2 ns 20.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.533 ns 0.533 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.63 % 2.63 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.54 ns 2.54 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.53 ns 2.53 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.032 ns 0.032 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 1.27 % 1.27 % 4
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text"; auto c{e};_mean 4.78 ns 4.78 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 4.78 ns 4.78 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.060 ns 0.060 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 1.25 % 1.25 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.363 ns 0.363 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 0.365 ns 0.365 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.39 % 1.39 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 0.368 ns 0.368 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 0.368 ns 0.368 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.97 % 0.97 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 1.08 ns 1.08 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.009 ns 0.009 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 0.84 % 0.84 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 1.47 ns 1.47 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 1.47 ns 1.47 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.033 ns 0.033 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 2.24 % 2.24 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 1.47 ns 1.47 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 1.47 ns 1.47 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.027 ns 0.027 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.87 % 1.87 % 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.4 ns 18.4 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 18.4 ns 18.4 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.458 ns 0.458 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.49 % 2.49 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.738 ns 0.738 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.738 ns 0.738 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.002 ns 0.002 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.29 % 0.29 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.367 ns 0.367 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.363 ns 0.363 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.51 % 2.51 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.10 ns 1.10 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.10 ns 1.10 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.015 ns 0.015 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.34 % 1.34 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.4 ns 19.4 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.5 ns 19.5 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.443 ns 0.443 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.28 % 2.28 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.47 ns 4.47 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.47 ns 4.47 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.083 ns 0.083 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.85 % 1.85 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 6.79 ns 6.79 ns 4
|
|
std::string::find;_median 6.76 ns 6.76 ns 4
|
|
std::string::find;_stddev 0.180 ns 0.180 ns 4
|
|
std::string::find;_cv 2.65 % 2.65 % 4
|
|
std::string_view::find;_mean 7.09 ns 7.09 ns 4
|
|
std::string_view::find;_median 7.11 ns 7.11 ns 4
|
|
std::string_view::find;_stddev 0.163 ns 0.163 ns 4
|
|
std::string_view::find;_cv 2.30 % 2.30 % 4
|
|
ssa::find;_mean 6.79 ns 6.79 ns 4
|
|
ssa::find;_median 6.80 ns 6.80 ns 4
|
|
ssa::find;_stddev 0.088 ns 0.088 ns 4
|
|
ssa::find;_cv 1.30 % 1.30 % 4
|
|
stringa::find;_mean 7.43 ns 7.43 ns 4
|
|
stringa::find;_median 7.33 ns 7.33 ns 4
|
|
stringa::find;_stddev 0.301 ns 0.301 ns 4
|
|
stringa::find;_cv 4.05 % 4.05 % 4
|
|
lstringa<20>::find;_mean 6.26 ns 6.26 ns 4
|
|
lstringa<20>::find;_median 6.31 ns 6.31 ns 4
|
|
lstringa<20>::find;_stddev 0.110 ns 0.110 ns 4
|
|
lstringa<20>::find;_cv 1.75 % 1.75 % 4
|
|
lstringa<40>::find;_mean 6.26 ns 6.26 ns 4
|
|
lstringa<40>::find;_median 6.20 ns 6.20 ns 4
|
|
lstringa<40>::find;_stddev 0.179 ns 0.179 ns 4
|
|
lstringa<40>::find;_cv 2.85 % 2.85 % 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 4.74 ns 4.74 ns 4
|
|
std::string copy{str_with_len_N};/15_median 4.74 ns 4.74 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.123 ns 0.123 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 2.59 % 2.59 % 4
|
|
std::string copy{str_with_len_N};/16_mean 22.8 ns 22.8 ns 4
|
|
std::string copy{str_with_len_N};/16_median 23.0 ns 23.0 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 0.514 ns 0.514 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 2.25 % 2.25 % 4
|
|
std::string copy{str_with_len_N};/23_mean 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/23_median 22.7 ns 22.7 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 0.330 ns 0.330 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 1.46 % 1.46 % 4
|
|
std::string copy{str_with_len_N};/24_mean 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/24_median 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 0.293 ns 0.293 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 1.29 % 1.29 % 4
|
|
std::string copy{str_with_len_N};/32_mean 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/32_median 22.6 ns 22.6 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 0.497 ns 0.497 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 2.20 % 2.20 % 4
|
|
std::string copy{str_with_len_N};/64_mean 21.9 ns 21.9 ns 4
|
|
std::string copy{str_with_len_N};/64_median 22.0 ns 22.0 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 0.185 ns 0.185 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 0.84 % 0.84 % 4
|
|
std::string copy{str_with_len_N};/128_mean 24.2 ns 24.2 ns 4
|
|
std::string copy{str_with_len_N};/128_median 24.6 ns 24.6 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 0.689 ns 0.689 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 2.84 % 2.84 % 4
|
|
std::string copy{str_with_len_N};/256_mean 24.4 ns 24.4 ns 4
|
|
std::string copy{str_with_len_N};/256_median 24.3 ns 24.3 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 0.352 ns 0.352 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 1.44 % 1.45 % 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.6 ns 28.6 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 0.461 ns 0.461 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 1.61 % 1.61 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 44.7 ns 44.7 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 44.6 ns 44.6 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 0.414 ns 0.414 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 0.93 % 0.93 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 122 ns 122 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 121 ns 121 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 3.03 ns 3.03 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 2.49 % 2.49 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 158 ns 158 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 158 ns 158 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 8.73 ns 8.73 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 5.52 % 5.52 % 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.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.017 ns 0.017 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 1.51 % 1.51 % 4
|
|
stringa copy{str_with_len_N};/16_mean 1.10 ns 1.10 ns 4
|
|
stringa copy{str_with_len_N};/16_median 1.11 ns 1.11 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.023 ns 0.023 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 2.09 % 2.09 % 4
|
|
stringa copy{str_with_len_N};/23_mean 1.09 ns 1.09 ns 4
|
|
stringa copy{str_with_len_N};/23_median 1.09 ns 1.09 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.013 ns 0.013 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 1.17 % 1.17 % 4
|
|
stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/24_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.225 ns 0.225 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.40 % 1.40 % 4
|
|
stringa copy{str_with_len_N};/32_mean 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/32_median 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.043 ns 0.043 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 0.27 % 0.27 % 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.0 ns 16.0 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.096 ns 0.096 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 0.60 % 0.60 % 4
|
|
stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/128_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.186 ns 0.186 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 1.16 % 1.16 % 4
|
|
stringa copy{str_with_len_N};/256_mean 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/256_median 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.326 ns 0.326 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 2.01 % 2.01 % 4
|
|
stringa copy{str_with_len_N};/512_mean 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/512_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.085 ns 0.085 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 0.53 % 0.53 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 15.9 ns 15.9 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.067 ns 0.067 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.42 % 0.42 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 16.2 ns 16.2 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 16.1 ns 16.1 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.209 ns 0.209 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 1.29 % 1.29 % 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.087 ns 0.087 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.54 % 0.54 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 1.46 ns 1.46 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 1.45 ns 1.45 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.025 ns 0.025 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 1.72 % 1.72 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 5.21 ns 5.21 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 5.22 ns 5.22 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.078 ns 0.078 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 1.49 % 1.49 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 5.09 ns 5.09 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 5.08 ns 5.08 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.082 ns 0.082 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.60 % 1.60 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 22.9 ns 22.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 22.8 ns 22.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.229 ns 0.229 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 1.00 % 1.00 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 22.6 ns 22.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 22.6 ns 22.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.395 ns 0.395 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.75 % 1.75 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 24.1 ns 24.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 24.2 ns 24.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.583 ns 0.583 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 2.42 % 2.42 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 24.7 ns 24.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 24.8 ns 24.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 0.232 ns 0.232 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 0.94 % 0.94 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 25.9 ns 25.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 25.8 ns 25.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.492 ns 0.492 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 1.90 % 1.90 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 29.2 ns 29.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 29.1 ns 29.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 0.960 ns 0.960 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 3.29 % 3.29 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 102 ns 102 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 101 ns 101 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 3.30 ns 3.30 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 3.25 % 3.25 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 115 ns 115 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 114 ns 114 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 4.40 ns 4.40 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 3.84 % 3.84 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 127 ns 127 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 127 ns 127 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 1.00 ns 1.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 0.79 % 0.79 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 1.51 ns 1.51 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 1.51 ns 1.51 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.034 ns 0.034 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 2.22 % 2.22 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 5.17 ns 5.17 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 5.13 ns 5.13 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.136 ns 0.136 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.63 % 2.63 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 5.16 ns 5.16 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 5.15 ns 5.15 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.081 ns 0.081 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 1.58 % 1.58 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 4.89 ns 4.89 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 4.88 ns 4.88 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.061 ns 0.061 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 1.25 % 1.25 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.78 ns 4.78 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.77 ns 4.77 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.061 ns 0.061 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.28 % 1.28 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 6.27 ns 6.27 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 6.24 ns 6.24 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.161 ns 0.161 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.56 % 2.56 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 6.65 ns 6.65 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 6.67 ns 6.67 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.073 ns 0.073 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 1.10 % 1.10 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 8.26 ns 8.26 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 8.19 ns 8.19 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.250 ns 0.250 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 3.03 % 3.03 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 10.5 ns 10.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 10.6 ns 10.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.164 ns 0.164 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.56 % 1.56 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 105 ns 105 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 105 ns 105 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.09 ns 2.09 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.00 % 2.00 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 116 ns 116 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 113 ns 113 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 7.60 ns 7.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 6.57 % 6.57 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 128 ns 128 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 128 ns 128 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 4.65 ns 4.65 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 3.62 % 3.62 % 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.306 ns 0.306 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.16 % 1.16 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.9 ns 14.9 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.9 ns 14.9 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.194 ns 0.194 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.30 % 1.30 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.6 ns 12.6 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.5 ns 12.5 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.219 ns 0.220 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.74 % 1.74 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.3 ns 12.3 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.4 ns 12.4 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.054 ns 0.054 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 0.44 % 0.44 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 12.2 ns 12.2 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 12.2 ns 12.2 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.281 ns 0.281 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.31 % 2.31 % 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.5 ns 23.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.5 ns 23.5 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.418 ns 0.418 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.78 % 1.78 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.65 ns 9.65 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.68 ns 9.68 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.191 ns 0.191 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.98 % 1.98 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.5 ns 12.5 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.4 ns 12.4 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.283 ns 0.283 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 13.0 ns 13.0 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.9 ns 12.9 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.492 ns 0.492 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.79 % 3.79 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.5 ns 12.5 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.5 ns 12.5 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.182 ns 0.182 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.45 % 1.45 % 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.6 ns 28.6 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.3 ns 28.3 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.673 ns 0.673 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.36 % 2.36 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.5 ns 18.5 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.5 ns 18.5 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.260 ns 0.260 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.41 % 1.41 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 15.5 ns 15.5 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 15.5 ns 15.5 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.424 ns 0.424 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.74 % 2.74 % 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 63.7 ns 63.7 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 63.1 ns 63.1 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.17 ns 2.17 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.40 % 3.40 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 25.0 ns 25.0 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.2 ns 25.2 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.489 ns 0.489 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.95 % 1.95 % 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.4 ns 25.4 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.377 ns 0.377 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.49 % 1.49 % 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 1351 ns 1351 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1349 ns 1349 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 31.3 ns 31.3 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.32 % 2.32 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 383 ns 383 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 384 ns 384 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 8.39 ns 8.39 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.19 % 2.19 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 378 ns 378 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 376 ns 376 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 12.3 ns 12.3 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.26 % 3.26 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 253 ns 253 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 256 ns 256 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 9.34 ns 9.34 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.69 % 3.69 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 223 ns 223 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 229 ns 229 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.0 ns 16.0 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.20 % 7.20 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 136 ns 136 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 136 ns 136 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.55 ns 1.55 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.14 % 1.14 % 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 1337 ns 1337 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1340 ns 1340 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 21.2 ns 21.2 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.59 % 1.59 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1269 ns 1269 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1261 ns 1261 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 40.7 ns 40.7 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.21 % 3.21 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 479 ns 479 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 478 ns 478 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.5 ns 11.5 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.41 % 2.41 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 354 ns 354 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 352 ns 352 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 35.7 ns 35.7 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 10.09 % 10.09 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 329 ns 329 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 335 ns 335 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.8 ns 18.8 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.72 % 5.72 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 236 ns 236 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 236 ns 236 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.51 ns 6.51 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.76 % 2.76 % 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 73877 ns 73878 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 74052 ns 74052 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1595 ns 1595 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.16 % 2.16 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71203 ns 71203 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71803 ns 71804 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2013 ns 2013 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.83 % 2.83 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18653 ns 18653 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18523 ns 18523 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 442 ns 442 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.37 % 2.37 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19018 ns 19018 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18745 ns 18745 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 814 ns 814 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.28 % 4.28 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15905 ns 15905 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15943 ns 15943 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 190 ns 190 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.20 % 1.20 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15724 ns 15724 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15719 ns 15719 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 178 ns 178 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.13 % 1.13 % 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 1399 ns 1399 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1402 ns 1402 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 29.5 ns 29.5 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.11 % 2.11 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1356 ns 1356 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 1353 ns 1353 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 20.3 ns 20.3 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.49 % 1.49 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 536 ns 536 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 536 ns 536 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 1.18 ns 1.18 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 0.22 % 0.22 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 431 ns 431 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 439 ns 439 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 20.9 ns 20.9 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.85 % 4.85 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 404 ns 404 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 408 ns 408 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 20.2 ns 20.2 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.01 % 5.01 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 283 ns 283 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 280 ns 280 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.83 ns 5.83 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.06 % 2.06 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 2975 ns 2975 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 2976 ns 2976 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 44.2 ns 44.3 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 1.49 % 1.49 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 470 ns 470 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 468 ns 468 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 9.94 ns 9.94 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 2.12 % 2.12 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1363 ns 1363 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1370 ns 1370 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 26.7 ns 26.7 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.96 % 1.96 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 1112 ns 1112 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 1119 ns 1119 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 31.5 ns 31.5 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 2.83 % 2.83 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1306 ns 1306 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1305 ns 1305 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 28.1 ns 28.1 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.15 % 2.15 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 946 ns 946 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 947 ns 947 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 12.7 ns 12.7 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.34 % 1.34 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 292 ns 292 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 290 ns 290 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 16.1 ns 16.1 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 5.52 % 5.52 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 151 ns 151 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 151 ns 151 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 0.838 ns 0.838 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 0.55 % 0.55 % 4
|
|
stringa str = "test = " + k + " times";_mean 154 ns 154 ns 4
|
|
stringa str = "test = " + k + " times";_median 153 ns 153 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 8.03 ns 8.03 ns 4
|
|
stringa str = "test = " + k + " times";_cv 5.21 % 5.21 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 287 ns 287 ns 4
|
|
std::string::find + substr + std::strtol_median 278 ns 278 ns 4
|
|
std::string::find + substr + std::strtol_stddev 23.8 ns 23.8 ns 4
|
|
std::string::find + substr + std::strtol_cv 8.28 % 8.28 % 4
|
|
ssa::splitter + ssa::as_int_mean 150 ns 150 ns 4
|
|
ssa::splitter + ssa::as_int_median 150 ns 150 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 2.59 ns 2.59 ns 4
|
|
ssa::splitter + ssa::as_int_cv 1.72 % 1.72 % 4
|
|
ssa::splitf + functor_mean 204 ns 204 ns 4
|
|
ssa::splitf + functor_median 206 ns 206 ns 4
|
|
ssa::splitf + functor_stddev 4.33 ns 4.33 ns 4
|
|
ssa::splitf + functor_cv 2.12 % 2.12 % 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 847 ns 847 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 851 ns 851 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 12.0 ns 12.0 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.41 % 1.41 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2405 ns 2405 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2387 ns 2387 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 56.7 ns 56.7 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 2.36 % 2.36 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 1081 ns 1081 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 1077 ns 1077 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 16.1 ns 16.1 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.49 % 1.49 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1234 ns 1234 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1226 ns 1226 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 29.9 ns 29.9 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 2.42 % 2.42 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 989 ns 989 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 993 ns 993 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 14.6 ns 14.6 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 1.47 % 1.47 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1099 ns 1099 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1097 ns 1097 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 15.6 ns 15.6 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.42 % 1.42 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 862 ns 862 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 856 ns 856 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 19.9 ns 19.9 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.31 % 2.31 % 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 163 ns 163 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 163 ns 163 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 2.97 ns 2.97 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.82 % 1.82 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 319 ns 319 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 320 ns 320 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 6.76 ns 6.76 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 2.12 % 2.12 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 162 ns 162 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 163 ns 163 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 3.49 ns 3.49 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.15 % 2.15 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 175 ns 175 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 176 ns 176 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.30 ns 3.30 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.89 % 1.89 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 180 ns 180 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 181 ns 181 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 2.01 ns 2.01 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 1.12 % 1.12 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 137 ns 137 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 134 ns 134 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 7.35 ns 7.35 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 5.37 % 5.37 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 142 ns 142 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 143 ns 143 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 3.49 ns 3.49 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.45 % 2.45 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 158 ns 158 ns 4
|
|
replace bb to ---- in std::string|64_median 159 ns 159 ns 4
|
|
replace bb to ---- in std::string|64_stddev 3.78 ns 3.78 ns 4
|
|
replace bb to ---- in std::string|64_cv 2.40 % 2.40 % 4
|
|
replace bb to ---- in std::string|256_mean 532 ns 532 ns 4
|
|
replace bb to ---- in std::string|256_median 532 ns 532 ns 4
|
|
replace bb to ---- in std::string|256_stddev 5.39 ns 5.39 ns 4
|
|
replace bb to ---- in std::string|256_cv 1.01 % 1.01 % 4
|
|
replace bb to ---- in std::string|512_mean 1023 ns 1023 ns 4
|
|
replace bb to ---- in std::string|512_median 1023 ns 1023 ns 4
|
|
replace bb to ---- in std::string|512_stddev 6.21 ns 6.21 ns 4
|
|
replace bb to ---- in std::string|512_cv 0.61 % 0.61 % 4
|
|
replace bb to ---- in std::string|1024_mean 2357 ns 2357 ns 4
|
|
replace bb to ---- in std::string|1024_median 2323 ns 2323 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 186 ns 186 ns 4
|
|
replace bb to ---- in std::string|1024_cv 7.88 % 7.88 % 4
|
|
replace bb to ---- in std::string|2048_mean 5789 ns 5789 ns 4
|
|
replace bb to ---- in std::string|2048_median 5704 ns 5704 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 243 ns 243 ns 4
|
|
replace bb to ---- in std::string|2048_cv 4.20 % 4.20 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 141 ns 141 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 141 ns 141 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 5.96 ns 5.96 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 4.21 % 4.21 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 441 ns 441 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 442 ns 442 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 3.42 ns 3.42 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 0.78 % 0.78 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 828 ns 828 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 828 ns 828 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 7.01 ns 6.98 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 0.85 % 0.84 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1689 ns 1689 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1678 ns 1678 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 40.6 ns 40.6 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.40 % 2.40 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3162 ns 3162 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3153 ns 3153 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 101 ns 101 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 3.20 % 3.20 % 4
|
|
replace bb to ---- by init stringa|64_mean 95.5 ns 95.5 ns 4
|
|
replace bb to ---- by init stringa|64_median 95.5 ns 95.5 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.06 ns 2.06 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.15 % 2.15 % 4
|
|
replace bb to ---- by init stringa|256_mean 305 ns 305 ns 4
|
|
replace bb to ---- by init stringa|256_median 301 ns 301 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 8.27 ns 8.27 ns 4
|
|
replace bb to ---- by init stringa|256_cv 2.72 % 2.72 % 4
|
|
replace bb to ---- by init stringa|512_mean 729 ns 729 ns 4
|
|
replace bb to ---- by init stringa|512_median 723 ns 723 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 18.8 ns 18.8 ns 4
|
|
replace bb to ---- by init stringa|512_cv 2.58 % 2.58 % 4
|
|
replace bb to ---- by init stringa|1024_mean 1502 ns 1502 ns 4
|
|
replace bb to ---- by init stringa|1024_median 1506 ns 1506 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 19.5 ns 19.5 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 1.30 % 1.30 % 4
|
|
replace bb to ---- by init stringa|2048_mean 3150 ns 3150 ns 4
|
|
replace bb to ---- by init stringa|2048_median 3107 ns 3107 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 158 ns 158 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 5.03 % 5.03 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 125 ns 125 ns 4
|
|
replace bb to -- in std::string|64_median 122 ns 122 ns 4
|
|
replace bb to -- in std::string|64_stddev 9.24 ns 9.24 ns 4
|
|
replace bb to -- in std::string|64_cv 7.41 % 7.41 % 4
|
|
replace bb to -- in std::string|256_mean 392 ns 392 ns 4
|
|
replace bb to -- in std::string|256_median 393 ns 393 ns 4
|
|
replace bb to -- in std::string|256_stddev 9.41 ns 9.41 ns 4
|
|
replace bb to -- in std::string|256_cv 2.40 % 2.40 % 4
|
|
replace bb to -- in std::string|512_mean 758 ns 758 ns 4
|
|
replace bb to -- in std::string|512_median 759 ns 759 ns 4
|
|
replace bb to -- in std::string|512_stddev 20.3 ns 20.3 ns 4
|
|
replace bb to -- in std::string|512_cv 2.68 % 2.68 % 4
|
|
replace bb to -- in std::string|1024_mean 1415 ns 1415 ns 4
|
|
replace bb to -- in std::string|1024_median 1417 ns 1417 ns 4
|
|
replace bb to -- in std::string|1024_stddev 21.3 ns 21.3 ns 4
|
|
replace bb to -- in std::string|1024_cv 1.50 % 1.50 % 4
|
|
replace bb to -- in std::string|2048_mean 3032 ns 3032 ns 4
|
|
replace bb to -- in std::string|2048_median 3047 ns 3047 ns 4
|
|
replace bb to -- in std::string|2048_stddev 39.0 ns 39.0 ns 4
|
|
replace bb to -- in std::string|2048_cv 1.29 % 1.29 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 97.7 ns 97.7 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 97.6 ns 97.6 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 0.342 ns 0.342 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 0.35 % 0.35 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 290 ns 290 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 285 ns 285 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 12.1 ns 12.1 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 4.17 % 4.17 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 551 ns 551 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 548 ns 548 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 12.8 ns 12.8 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 2.33 % 2.33 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1129 ns 1129 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1131 ns 1131 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 18.7 ns 18.7 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 1.66 % 1.66 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2146 ns 2146 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2138 ns 2138 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 58.0 ns 58.0 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 2.70 % 2.70 % 4
|
|
replace bb to -- by init stringa|64_mean 84.5 ns 84.5 ns 4
|
|
replace bb to -- by init stringa|64_median 84.7 ns 84.7 ns 4
|
|
replace bb to -- by init stringa|64_stddev 2.16 ns 2.16 ns 4
|
|
replace bb to -- by init stringa|64_cv 2.56 % 2.56 % 4
|
|
replace bb to -- by init stringa|256_mean 239 ns 239 ns 4
|
|
replace bb to -- by init stringa|256_median 239 ns 239 ns 4
|
|
replace bb to -- by init stringa|256_stddev 3.13 ns 3.13 ns 4
|
|
replace bb to -- by init stringa|256_cv 1.31 % 1.31 % 4
|
|
replace bb to -- by init stringa|512_mean 424 ns 424 ns 4
|
|
replace bb to -- by init stringa|512_median 425 ns 425 ns 4
|
|
replace bb to -- by init stringa|512_stddev 6.55 ns 6.55 ns 4
|
|
replace bb to -- by init stringa|512_cv 1.54 % 1.54 % 4
|
|
replace bb to -- by init stringa|1024_mean 896 ns 896 ns 4
|
|
replace bb to -- by init stringa|1024_median 894 ns 894 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 15.7 ns 15.7 ns 4
|
|
replace bb to -- by init stringa|1024_cv 1.75 % 1.75 % 4
|
|
replace bb to -- by init stringa|2048_mean 1685 ns 1685 ns 4
|
|
replace bb to -- by init stringa|2048_median 1694 ns 1694 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 28.9 ns 28.9 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.71 % 1.71 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3547342 ns 3547308 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3536291 ns 3536208 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 49586 ns 49600 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 1.40 % 1.40 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3523732 ns 3523744 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3514345 ns 3514358 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 52176 ns 52175 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 1.48 % 1.48 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3554403 ns 3554420 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3555498 ns 3555516 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 10914 ns 10917 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 0.31 % 0.31 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 3955601 ns 3955552 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 3947240 ns 3947129 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 77785 ns 77814 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 1.97 % 1.97 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 721 ns 721 ns 4
|
|
Build func full name std::string;_median 724 ns 724 ns 4
|
|
Build func full name std::string;_stddev 32.3 ns 32.3 ns 4
|
|
Build func full name std::string;_cv 4.48 % 4.48 % 4
|
|
Build func full name std::string 1;_mean 828 ns 828 ns 4
|
|
Build func full name std::string 1;_median 833 ns 833 ns 4
|
|
Build func full name std::string 1;_stddev 15.9 ns 15.9 ns 4
|
|
Build func full name std::string 1;_cv 1.92 % 1.92 % 4
|
|
Build func full name std::stream;_mean 2561 ns 2561 ns 4
|
|
Build func full name std::stream;_median 2562 ns 2562 ns 4
|
|
Build func full name std::stream;_stddev 8.50 ns 8.50 ns 4
|
|
Build func full name std::stream;_cv 0.33 % 0.33 % 4
|
|
Build func full name stringa;_mean 503 ns 503 ns 4
|
|
Build func full name stringa;_median 503 ns 503 ns 4
|
|
Build func full name stringa;_stddev 12.5 ns 12.5 ns 4
|
|
Build func full name stringa;_cv 2.49 % 2.49 % 4
|
|
Build func full name stringa 1;_mean 671 ns 671 ns 4
|
|
Build func full name stringa 1;_median 674 ns 674 ns 4
|
|
Build func full name stringa 1;_stddev 8.48 ns 8.48 ns 4
|
|
Build func full name stringa 1;_cv 1.26 % 1.26 % 4
|