mirror of https://github.com/orefkov/simstr.git
968 lines
144 KiB
Plaintext
968 lines
144 KiB
Plaintext
Benchmarks of simstr, version 1.6.7
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
Run on (32 X 2513.96 MHz CPU s)
|
|
Chrome/143.0.0.0 webasm
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat email std::format_mean 964 ns 964 ns 4
|
|
Concat email std::format_median 969 ns 969 ns 4
|
|
Concat email std::format_stddev 28.0 ns 28.0 ns 4
|
|
Concat email std::format_cv 2.90 % 2.90 % 4
|
|
Concat email std::stringstream_mean 2458 ns 2458 ns 4
|
|
Concat email std::stringstream_median 2426 ns 2426 ns 4
|
|
Concat email std::stringstream_stddev 124 ns 124 ns 4
|
|
Concat email std::stringstream_cv 5.04 % 5.04 % 4
|
|
Concat email stringzilla append_mean 594 ns 594 ns 4
|
|
Concat email stringzilla append_median 593 ns 593 ns 4
|
|
Concat email stringzilla append_stddev 10.9 ns 10.9 ns 4
|
|
Concat email stringzilla append_cv 1.83 % 1.83 % 4
|
|
Concat email stringzilla concat_mean 213 ns 213 ns 4
|
|
Concat email stringzilla concat_median 211 ns 211 ns 4
|
|
Concat email stringzilla concat_stddev 4.00 ns 4.00 ns 4
|
|
Concat email stringzilla concat_cv 1.88 % 1.88 % 4
|
|
Concat email std::string append_mean 623 ns 623 ns 4
|
|
Concat email std::string append_median 628 ns 628 ns 4
|
|
Concat email std::string append_stddev 16.8 ns 16.8 ns 4
|
|
Concat email std::string append_cv 2.69 % 2.69 % 4
|
|
Concat email std::string by strexpr_mean 158 ns 158 ns 4
|
|
Concat email std::string by strexpr_median 159 ns 159 ns 4
|
|
Concat email std::string by strexpr_stddev 6.98 ns 6.98 ns 4
|
|
Concat email std::string by strexpr_cv 4.41 % 4.41 % 4
|
|
Concat email stringa_mean 124 ns 124 ns 4
|
|
Concat email stringa_median 125 ns 125 ns 4
|
|
Concat email stringa_stddev 7.25 ns 7.25 ns 4
|
|
Concat email stringa_cv 5.86 % 5.86 % 4
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 1831 ns 1831 ns 4
|
|
Concat std::string and number by std to std::string_median 1779 ns 1779 ns 4
|
|
Concat std::string and number by std to std::string_stddev 117 ns 117 ns 4
|
|
Concat std::string and number by std to std::string_cv 6.37 % 6.37 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 947 ns 947 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 939 ns 939 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 33.5 ns 33.5 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 3.54 % 3.54 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 354 ns 354 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 354 ns 354 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 12.3 ns 12.3 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 3.48 % 3.48 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 377 ns 377 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 381 ns 381 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 20.7 ns 20.7 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 5.48 % 5.48 % 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 3883 ns 3883 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 3863 ns 3863 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 153 ns 153 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 3.93 % 3.93 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 4986 ns 4986 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 4942 ns 4942 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 145 ns 145 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 2.91 % 2.91 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 1124 ns 1124 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 1116 ns 1116 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 26.9 ns 26.9 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 2.39 % 2.39 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 873 ns 873 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 873 ns 873 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 16.1 ns 16.1 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 1.84 % 1.84 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 257 ns 257 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 256 ns 256 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 17.0 ns 17.0 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 6.64 % 6.64 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 269 ns 269 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 261 ns 261 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 16.9 ns 16.9 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 6.28 % 6.28 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 541 ns 541 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 542 ns 542 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 19.0 ns 19.0 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 3.52 % 3.52 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 1765 ns 1765 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 1752 ns 1752 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 42.3 ns 42.3 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.39 % 2.40 % 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 843 ns 843 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 838 ns 838 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 30.8 ns 30.8 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.66 % 3.66 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 1112 ns 1112 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 1109 ns 1109 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 29.0 ns 29.0 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.61 % 2.61 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 2885 ns 2885 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 2907 ns 2907 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 68.1 ns 68.1 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.36 % 2.36 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 4562 ns 4562 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 4601 ns 4601 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 149 ns 149 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.28 % 3.28 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 4550 ns 4550 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 4516 ns 4516 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 88.7 ns 88.7 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.95 % 1.95 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 5661 ns 5661 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 5668 ns 5668 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 99.7 ns 99.7 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.76 % 1.76 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 5730 ns 5730 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 5771 ns 5771 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 197 ns 197 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 3.44 % 3.44 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 19623 ns 19623 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 19520 ns 19520 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 833 ns 833 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 4.25 % 4.25 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 143 ns 143 ns 4
|
|
Concat std::string by std to std::string_median 143 ns 143 ns 4
|
|
Concat std::string by std to std::string_stddev 5.16 ns 5.16 ns 4
|
|
Concat std::string by std to std::string_cv 3.61 % 3.61 % 4
|
|
Concat std::string by StrExpr to std::string_mean 168 ns 168 ns 4
|
|
Concat std::string by StrExpr to std::string_median 167 ns 167 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 2.82 ns 2.82 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 1.68 % 1.68 % 4
|
|
Concat stringa by StrExpr to stringa_mean 136 ns 136 ns 4
|
|
Concat stringa by StrExpr to stringa_median 137 ns 137 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 5.18 ns 5.19 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 3.80 % 3.80 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 542 ns 542 ns 4
|
|
Find concat three std::string_median 538 ns 538 ns 4
|
|
Find concat three std::string_stddev 8.52 ns 8.52 ns 4
|
|
Find concat three std::string_cv 1.57 % 1.57 % 4
|
|
Find concat three strexpr_mean 294 ns 294 ns 4
|
|
Find concat three strexpr_median 293 ns 293 ns 4
|
|
Find concat three strexpr_stddev 6.47 ns 6.47 ns 4
|
|
Find concat three strexpr_cv 2.20 % 2.20 % 4
|
|
Find concat three simstr_mean 174 ns 174 ns 4
|
|
Find concat three simstr_median 173 ns 173 ns 4
|
|
Find concat three simstr_stddev 3.03 ns 3.03 ns 4
|
|
Find concat three simstr_cv 1.74 % 1.74 % 4
|
|
Find concat three stringzilla string_mean 619 ns 619 ns 4
|
|
Find concat three stringzilla string_median 613 ns 613 ns 4
|
|
Find concat three stringzilla string_stddev 22.3 ns 22.3 ns 4
|
|
Find concat three stringzilla string_cv 3.60 % 3.60 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 27.4 ns 27.4 ns 4
|
|
BuildTypeNameStr 0/0_median 27.7 ns 27.7 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.735 ns 0.735 ns 4
|
|
BuildTypeNameStr 0/0_cv 2.68 % 2.68 % 4
|
|
BuildTypeNameExp 0/0_mean 28.9 ns 28.9 ns 4
|
|
BuildTypeNameExp 0/0_median 28.5 ns 28.5 ns 4
|
|
BuildTypeNameExp 0/0_stddev 1.31 ns 1.31 ns 4
|
|
BuildTypeNameExp 0/0_cv 4.54 % 4.54 % 4
|
|
BuildTypeNameSim 0/0_mean 38.4 ns 38.4 ns 4
|
|
BuildTypeNameSim 0/0_median 38.4 ns 38.4 ns 4
|
|
BuildTypeNameSim 0/0_stddev 1.05 ns 1.05 ns 4
|
|
BuildTypeNameSim 0/0_cv 2.74 % 2.74 % 4
|
|
BuildTypeNameStr 10/10_mean 652 ns 652 ns 4
|
|
BuildTypeNameStr 10/10_median 648 ns 648 ns 4
|
|
BuildTypeNameStr 10/10_stddev 17.3 ns 17.3 ns 4
|
|
BuildTypeNameStr 10/10_cv 2.66 % 2.66 % 4
|
|
BuildTypeNameExp 10/10_mean 196 ns 196 ns 4
|
|
BuildTypeNameExp 10/10_median 195 ns 195 ns 4
|
|
BuildTypeNameExp 10/10_stddev 3.78 ns 3.78 ns 4
|
|
BuildTypeNameExp 10/10_cv 1.93 % 1.93 % 4
|
|
BuildTypeNameSim 10/10_mean 141 ns 141 ns 4
|
|
BuildTypeNameSim 10/10_median 142 ns 142 ns 4
|
|
BuildTypeNameSim 10/10_stddev 6.43 ns 6.43 ns 4
|
|
BuildTypeNameSim 10/10_cv 4.57 % 4.57 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 1074 ns 1074 ns 4
|
|
Concat with replace str_median 1069 ns 1069 ns 4
|
|
Concat with replace str_stddev 33.7 ns 33.7 ns 4
|
|
Concat with replace str_cv 3.13 % 3.13 % 4
|
|
Concat with replace exp_mean 519 ns 519 ns 4
|
|
Concat with replace exp_median 521 ns 521 ns 4
|
|
Concat with replace exp_stddev 15.4 ns 15.4 ns 4
|
|
Concat with replace exp_cv 2.97 % 2.97 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.60 ns 2.60 ns 4
|
|
std::string e;_median 2.56 ns 2.56 ns 4
|
|
std::string e;_stddev 0.104 ns 0.104 ns 4
|
|
std::string e;_cv 4.00 % 4.00 % 4
|
|
std::string_view e;_mean 2.15 ns 2.15 ns 4
|
|
std::string_view e;_median 2.15 ns 2.15 ns 4
|
|
std::string_view e;_stddev 0.014 ns 0.014 ns 4
|
|
std::string_view e;_cv 0.65 % 0.65 % 4
|
|
ssa e;_mean 2.16 ns 2.16 ns 4
|
|
ssa e;_median 2.14 ns 2.14 ns 4
|
|
ssa e;_stddev 0.039 ns 0.039 ns 4
|
|
ssa e;_cv 1.81 % 1.81 % 4
|
|
stringa e;_mean 5.52 ns 5.52 ns 4
|
|
stringa e;_median 5.52 ns 5.52 ns 4
|
|
stringa e;_stddev 0.024 ns 0.024 ns 4
|
|
stringa e;_cv 0.43 % 0.43 % 4
|
|
lstringa<20> e;_mean 9.16 ns 9.16 ns 4
|
|
lstringa<20> e;_median 9.16 ns 9.16 ns 4
|
|
lstringa<20> e;_stddev 0.026 ns 0.026 ns 4
|
|
lstringa<20> e;_cv 0.29 % 0.29 % 4
|
|
lstringa<40> e;_mean 8.53 ns 8.53 ns 4
|
|
lstringa<40> e;_median 8.53 ns 8.53 ns 4
|
|
lstringa<40> e;_stddev 0.038 ns 0.038 ns 4
|
|
lstringa<40> e;_cv 0.44 % 0.44 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 10.4 ns 10.4 ns 4
|
|
std::string e = "Test text";_median 10.3 ns 10.3 ns 4
|
|
std::string e = "Test text";_stddev 0.030 ns 0.030 ns 4
|
|
std::string e = "Test text";_cv 0.29 % 0.29 % 4
|
|
std::string_view e = "Test text";_mean 2.18 ns 2.18 ns 4
|
|
std::string_view e = "Test text";_median 2.18 ns 2.18 ns 4
|
|
std::string_view e = "Test text";_stddev 0.029 ns 0.029 ns 4
|
|
std::string_view e = "Test text";_cv 1.35 % 1.35 % 4
|
|
ssa e = "Test text";_mean 2.17 ns 2.17 ns 4
|
|
ssa e = "Test text";_median 2.17 ns 2.17 ns 4
|
|
ssa e = "Test text";_stddev 0.023 ns 0.023 ns 4
|
|
ssa e = "Test text";_cv 1.05 % 1.05 % 4
|
|
stringa e = "Test text";_mean 8.30 ns 8.30 ns 4
|
|
stringa e = "Test text";_median 8.29 ns 8.29 ns 4
|
|
stringa e = "Test text";_stddev 0.036 ns 0.036 ns 4
|
|
stringa e = "Test text";_cv 0.43 % 0.43 % 4
|
|
lstringa<20> e = "Test text";_mean 3.89 ns 3.89 ns 4
|
|
lstringa<20> e = "Test text";_median 3.90 ns 3.90 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.043 ns 0.043 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.10 % 1.10 % 4
|
|
lstringa<40> e = "Test text";_mean 3.93 ns 3.93 ns 4
|
|
lstringa<40> e = "Test text";_median 3.91 ns 3.91 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.054 ns 0.054 ns 4
|
|
lstringa<40> e = "Test text";_cv 1.36 % 1.36 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 68.6 ns 68.6 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 68.9 ns 68.9 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.993 ns 0.993 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 1.45 % 1.45 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 2.19 ns 2.19 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 2.18 ns 2.18 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.032 ns 0.032 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.46 % 1.46 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 2.18 ns 2.18 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 2.18 ns 2.18 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 0.70 % 0.70 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 8.30 ns 8.30 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 8.30 ns 8.30 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.035 ns 0.035 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 0.42 % 0.42 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 68.6 ns 68.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 68.5 ns 68.5 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 1.62 ns 1.62 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.36 % 2.36 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 11.4 ns 11.4 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 11.5 ns 11.5 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.078 ns 0.078 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.68 % 0.68 % 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 7.32 ns 7.32 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 7.33 ns 7.33 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.088 ns 0.088 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 1.21 % 1.21 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 2.17 ns 2.17 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 2.18 ns 2.18 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.020 ns 0.020 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 0.92 % 0.92 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 2.18 ns 2.18 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 2.18 ns 2.18 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.35 % 0.35 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 6.33 ns 6.33 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 6.32 ns 6.32 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.029 ns 0.029 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 0.46 % 0.46 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 7.15 ns 7.15 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 7.15 ns 7.15 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.104 ns 0.104 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.45 % 1.45 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 7.33 ns 7.33 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 7.30 ns 7.30 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.086 ns 0.086 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.18 % 1.18 % 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 120 ns 120 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 121 ns 121 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 3.63 ns 3.63 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.03 % 3.03 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 2.22 ns 2.22 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 2.22 ns 2.22 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.031 ns 0.031 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.40 % 1.40 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 2.16 ns 2.16 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 2.15 ns 2.15 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.021 ns 0.021 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.99 % 0.99 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 8.35 ns 8.35 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 8.34 ns 8.34 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.052 ns 0.052 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.62 % 0.62 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 67.2 ns 67.2 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 66.8 ns 66.8 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.44 ns 2.44 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.63 % 3.63 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 19.7 ns 19.7 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 19.9 ns 19.9 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.518 ns 0.518 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.62 % 2.62 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
sz::string::find;_mean 227 ns 227 ns 4
|
|
sz::string::find;_median 227 ns 227 ns 4
|
|
sz::string::find;_stddev 3.79 ns 3.79 ns 4
|
|
sz::string::find;_cv 1.67 % 1.67 % 4
|
|
std::string::find;_mean 99.1 ns 99.1 ns 4
|
|
std::string::find;_median 99.5 ns 99.5 ns 4
|
|
std::string::find;_stddev 1.42 ns 1.42 ns 4
|
|
std::string::find;_cv 1.43 % 1.43 % 4
|
|
std::string_view::find;_mean 97.5 ns 97.5 ns 4
|
|
std::string_view::find;_median 96.6 ns 96.6 ns 4
|
|
std::string_view::find;_stddev 2.75 ns 2.75 ns 4
|
|
std::string_view::find;_cv 2.82 % 2.82 % 4
|
|
ssa::find;_mean 96.3 ns 96.3 ns 4
|
|
ssa::find;_median 96.6 ns 96.6 ns 4
|
|
ssa::find;_stddev 1.81 ns 1.81 ns 4
|
|
ssa::find;_cv 1.88 % 1.88 % 4
|
|
stringa::find;_mean 97.2 ns 97.2 ns 4
|
|
stringa::find;_median 96.5 ns 96.5 ns 4
|
|
stringa::find;_stddev 1.65 ns 1.65 ns 4
|
|
stringa::find;_cv 1.69 % 1.69 % 4
|
|
lstringa<20>::find;_mean 97.6 ns 97.6 ns 4
|
|
lstringa<20>::find;_median 97.6 ns 97.6 ns 4
|
|
lstringa<20>::find;_stddev 0.528 ns 0.528 ns 4
|
|
lstringa<20>::find;_cv 0.54 % 0.54 % 4
|
|
lstringa<40>::find;_mean 96.0 ns 96.0 ns 4
|
|
lstringa<40>::find;_median 96.1 ns 96.1 ns 4
|
|
lstringa<40>::find;_stddev 0.872 ns 0.873 ns 4
|
|
lstringa<40>::find;_cv 0.91 % 0.91 % 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 125 ns 125 ns 4
|
|
std::string copy{str_with_len_N};/15_median 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 8.82 ns 8.82 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 7.08 % 7.08 % 4
|
|
std::string copy{str_with_len_N};/16_mean 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/16_median 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 4.16 ns 4.16 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 3.39 % 3.39 % 4
|
|
std::string copy{str_with_len_N};/23_mean 128 ns 128 ns 4
|
|
std::string copy{str_with_len_N};/23_median 129 ns 129 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 3.91 ns 3.91 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 3.06 % 3.06 % 4
|
|
std::string copy{str_with_len_N};/24_mean 120 ns 120 ns 4
|
|
std::string copy{str_with_len_N};/24_median 120 ns 120 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 2.92 ns 2.92 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 2.43 % 2.43 % 4
|
|
std::string copy{str_with_len_N};/32_mean 128 ns 128 ns 4
|
|
std::string copy{str_with_len_N};/32_median 125 ns 125 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 5.43 ns 5.43 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 4.25 % 4.25 % 4
|
|
std::string copy{str_with_len_N};/64_mean 131 ns 131 ns 4
|
|
std::string copy{str_with_len_N};/64_median 131 ns 131 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 5.76 ns 5.76 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 4.40 % 4.40 % 4
|
|
std::string copy{str_with_len_N};/128_mean 132 ns 132 ns 4
|
|
std::string copy{str_with_len_N};/128_median 132 ns 132 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 1.51 ns 1.51 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 1.15 % 1.15 % 4
|
|
std::string copy{str_with_len_N};/256_mean 161 ns 161 ns 4
|
|
std::string copy{str_with_len_N};/256_median 149 ns 149 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 27.6 ns 27.6 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 17.09 % 17.09 % 4
|
|
std::string copy{str_with_len_N};/512_mean 149 ns 149 ns 4
|
|
std::string copy{str_with_len_N};/512_median 150 ns 150 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 2.08 ns 2.08 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 1.39 % 1.39 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 156 ns 156 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 157 ns 157 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 4.59 ns 4.59 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 2.94 % 2.94 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 206 ns 206 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 204 ns 204 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 24.0 ns 24.0 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 11.64 % 11.64 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 271 ns 271 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 271 ns 271 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 4.00 ns 4.00 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 1.48 % 1.48 % 4
|
|
stringa copy{str_with_len_N};/15_mean 4.60 ns 4.60 ns 4
|
|
stringa copy{str_with_len_N};/15_median 4.59 ns 4.59 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.126 ns 0.126 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 2.73 % 2.73 % 4
|
|
stringa copy{str_with_len_N};/16_mean 7.36 ns 7.36 ns 4
|
|
stringa copy{str_with_len_N};/16_median 7.29 ns 7.29 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.189 ns 0.189 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 2.57 % 2.57 % 4
|
|
stringa copy{str_with_len_N};/23_mean 7.39 ns 7.39 ns 4
|
|
stringa copy{str_with_len_N};/23_median 7.38 ns 7.38 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.077 ns 0.077 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 1.04 % 1.04 % 4
|
|
stringa copy{str_with_len_N};/24_mean 7.35 ns 7.35 ns 4
|
|
stringa copy{str_with_len_N};/24_median 7.37 ns 7.37 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.143 ns 0.143 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.94 % 1.94 % 4
|
|
stringa copy{str_with_len_N};/32_mean 7.33 ns 7.33 ns 4
|
|
stringa copy{str_with_len_N};/32_median 7.33 ns 7.33 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.120 ns 0.120 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 1.64 % 1.64 % 4
|
|
stringa copy{str_with_len_N};/64_mean 7.37 ns 7.37 ns 4
|
|
stringa copy{str_with_len_N};/64_median 7.34 ns 7.34 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.098 ns 0.098 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 1.33 % 1.34 % 4
|
|
stringa copy{str_with_len_N};/128_mean 7.30 ns 7.30 ns 4
|
|
stringa copy{str_with_len_N};/128_median 7.30 ns 7.30 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.053 ns 0.053 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 0.73 % 0.73 % 4
|
|
stringa copy{str_with_len_N};/256_mean 7.33 ns 7.33 ns 4
|
|
stringa copy{str_with_len_N};/256_median 7.35 ns 7.35 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.111 ns 0.111 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 1.52 % 1.52 % 4
|
|
stringa copy{str_with_len_N};/512_mean 7.44 ns 7.44 ns 4
|
|
stringa copy{str_with_len_N};/512_median 7.46 ns 7.46 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.220 ns 0.220 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 2.96 % 2.96 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 7.35 ns 7.35 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 7.37 ns 7.37 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.098 ns 0.098 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 1.33 % 1.33 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 7.33 ns 7.33 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 7.31 ns 7.31 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.131 ns 0.131 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 1.79 % 1.79 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 7.36 ns 7.36 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 7.32 ns 7.32 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.103 ns 0.103 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 1.41 % 1.41 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 7.29 ns 7.29 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.24 ns 7.24 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.141 ns 0.141 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 1.93 % 1.93 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 19.3 ns 19.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 19.2 ns 19.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.690 ns 0.690 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 3.57 % 3.57 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 85.0 ns 85.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 84.0 ns 84.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 3.41 ns 3.41 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 4.02 % 4.02 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 85.7 ns 85.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 86.3 ns 86.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 2.96 ns 2.96 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 3.46 % 3.46 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 93.3 ns 93.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 92.8 ns 92.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 2.24 ns 2.24 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.40 % 2.40 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 92.8 ns 92.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 91.9 ns 91.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 5.61 ns 5.61 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 6.04 % 6.04 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 95.0 ns 95.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 93.7 ns 93.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 5.33 ns 5.33 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 5.62 % 5.62 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 126 ns 126 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 115 ns 115 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 25.4 ns 25.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 20.19 % 20.19 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 119 ns 119 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 120 ns 120 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 3.20 ns 3.20 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 2.70 % 2.70 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 120 ns 120 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 119 ns 119 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 8.08 ns 8.08 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 6.75 % 6.75 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 169 ns 169 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 170 ns 170 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 19.0 ns 19.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 11.27 % 11.27 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 236 ns 236 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 237 ns 237 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 6.50 ns 6.50 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 2.76 % 2.76 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 7.25 ns 7.25 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 7.23 ns 7.23 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.070 ns 0.070 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 0.97 % 0.97 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 19.5 ns 19.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 19.6 ns 19.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.229 ns 0.229 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 1.17 % 1.17 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 19.9 ns 19.9 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 19.8 ns 19.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.583 ns 0.583 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 2.92 % 2.92 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 19.4 ns 19.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 19.5 ns 19.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.655 ns 0.655 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 3.38 % 3.38 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 22.7 ns 22.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 22.4 ns 22.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 1.59 ns 1.59 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 7.01 % 7.01 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 22.4 ns 22.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 22.4 ns 22.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.583 ns 0.583 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.60 % 2.60 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 23.6 ns 23.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 23.8 ns 23.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 1.36 ns 1.36 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 5.75 % 5.75 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 24.8 ns 24.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 24.8 ns 24.8 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.346 ns 0.346 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 1.39 % 1.39 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 28.3 ns 28.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 28.2 ns 28.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.566 ns 0.566 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 2.00 % 2.00 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 121 ns 121 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 121 ns 121 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 3.41 ns 3.41 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 2.83 % 2.82 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 167 ns 167 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 167 ns 167 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 24.6 ns 24.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 14.70 % 14.70 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 237 ns 237 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 237 ns 237 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 5.27 ns 5.27 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.23 % 2.23 % 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 203 ns 203 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 201 ns 201 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 6.45 ns 6.45 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 3.17 % 3.17 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 2.18 ns 2.18 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 2.18 ns 2.18 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.016 ns 0.016 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.73 % 0.73 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 50.4 ns 50.4 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 50.8 ns 50.8 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.87 ns 1.88 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.72 % 3.72 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 47.5 ns 47.5 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 47.7 ns 47.7 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.785 ns 0.785 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.65 % 1.65 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 46.7 ns 46.7 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 46.5 ns 46.5 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.12 ns 1.12 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.39 % 2.39 % 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 151 ns 151 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 152 ns 152 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 7.30 ns 7.30 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.82 % 4.82 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 53.9 ns 53.9 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 53.8 ns 53.8 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.397 ns 0.397 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 0.74 % 0.74 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 46.1 ns 46.1 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 46.0 ns 46.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.01 ns 1.01 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.19 % 2.19 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 44.8 ns 44.8 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 45.1 ns 45.1 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.717 ns 0.717 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.60 % 1.60 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 44.0 ns 44.0 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 44.0 ns 44.0 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.07 ns 1.07 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.44 % 2.44 % 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 219 ns 219 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 218 ns 218 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 2.43 ns 2.43 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.11 % 1.11 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 35.2 ns 35.2 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 35.0 ns 35.0 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.582 ns 0.582 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.65 % 1.65 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 44.3 ns 44.3 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 43.9 ns 43.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 1.16 ns 1.16 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.62 % 2.62 % 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 633 ns 633 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 633 ns 633 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 10.2 ns 10.2 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.60 % 1.60 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 279 ns 279 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 279 ns 279 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 5.10 ns 5.10 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.83 % 1.83 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 91.4 ns 91.4 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 91.2 ns 91.2 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.57 ns 1.57 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.72 % 1.72 % 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 15882 ns 15882 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 16083 ns 16084 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 600 ns 600 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 3.78 % 3.78 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1402 ns 1402 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1395 ns 1395 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 30.0 ns 30.0 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.14 % 2.14 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 1320 ns 1320 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 1307 ns 1307 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 35.8 ns 35.8 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.71 % 2.71 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 889 ns 889 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 880 ns 880 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 23.0 ns 23.0 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.59 % 2.59 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 624 ns 624 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 623 ns 623 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 19.9 ns 19.9 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.19 % 3.19 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 497 ns 497 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 498 ns 498 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 6.34 ns 6.35 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.28 % 1.28 % 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 16035 ns 16035 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 15924 ns 15924 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 385 ns 385 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.40 % 2.40 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4646 ns 4646 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4654 ns 4654 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 172 ns 172 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.71 % 3.71 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1514 ns 1514 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1504 ns 1504 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 41.0 ns 41.0 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.71 % 2.71 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 1209 ns 1209 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 1215 ns 1215 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 22.8 ns 22.8 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.88 % 1.88 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 986 ns 986 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 978 ns 978 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 60.1 ns 60.1 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.09 % 6.09 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 827 ns 827 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 820 ns 820 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 27.2 ns 27.2 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.29 % 3.29 % 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 821457 ns 821463 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 829913 ns 829919 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 17805 ns 17805 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.17 % 2.17 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 238655 ns 238657 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 236241 ns 236241 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 5974 ns 5974 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.50 % 2.50 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 58092 ns 58093 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 57987 ns 57988 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1647 ns 1647 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.83 % 2.83 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 56704 ns 56704 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 56621 ns 56621 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2166 ns 2166 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.82 % 3.82 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 55779 ns 55779 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 55479 ns 55479 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1155 ns 1154 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.07 % 2.07 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 56710 ns 56710 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 56268 ns 56268 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2816 ns 2816 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.97 % 4.96 % 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 16125 ns 16126 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 16192 ns 16192 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 164 ns 164 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.02 % 1.02 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 5089 ns 5089 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 5084 ns 5084 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 439 ns 439 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 8.62 % 8.62 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1846 ns 1846 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 1829 ns 1829 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 104 ns 104 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 5.64 % 5.64 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1663 ns 1663 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 1672 ns 1672 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 82.2 ns 82.2 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.94 % 4.94 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 1291 ns 1291 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 1283 ns 1283 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 76.0 ns 76.0 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.89 % 5.89 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 1066 ns 1066 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 1048 ns 1048 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 96.3 ns 96.3 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 9.03 % 9.03 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 25591 ns 25592 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 25197 ns 25198 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 1652 ns 1652 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 6.46 % 6.46 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 3456 ns 3456 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 3414 ns 3414 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 106 ns 106 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.06 % 3.06 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 10939 ns 10939 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 10966 ns 10966 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 107 ns 107 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.97 % 0.97 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 5707 ns 5707 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 5689 ns 5689 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 156 ns 156 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 2.73 % 2.73 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 8601 ns 8601 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 8627 ns 8627 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 264 ns 264 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 3.07 % 3.07 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 7339 ns 7340 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 7368 ns 7368 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 237 ns 237 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 3.23 % 3.23 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 1332 ns 1332 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 1331 ns 1331 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 65.3 ns 65.3 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 4.90 % 4.90 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 570 ns 570 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 570 ns 570 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 7.02 ns 7.02 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.23 % 1.23 % 4
|
|
stringa str = "test = " + k + " times";_mean 1253 ns 1253 ns 4
|
|
stringa str = "test = " + k + " times";_median 1253 ns 1253 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 21.4 ns 21.4 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.71 % 1.71 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 1483 ns 1483 ns 4
|
|
std::string::find + substr + std::strtol_median 1489 ns 1489 ns 4
|
|
std::string::find + substr + std::strtol_stddev 32.2 ns 32.2 ns 4
|
|
std::string::find + substr + std::strtol_cv 2.17 % 2.17 % 4
|
|
ssa::splitter + ssa::as_int_mean 587 ns 587 ns 4
|
|
ssa::splitter + ssa::as_int_median 587 ns 587 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 9.68 ns 9.68 ns 4
|
|
ssa::splitter + ssa::as_int_cv 1.65 % 1.65 % 4
|
|
ssa::splitf + functor_mean 840 ns 840 ns 4
|
|
ssa::splitf + functor_median 836 ns 836 ns 4
|
|
ssa::splitf + functor_stddev 23.6 ns 23.6 ns 4
|
|
ssa::splitf + functor_cv 2.81 % 2.81 % 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 4781 ns 4781 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 4755 ns 4755 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 102 ns 102 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 2.13 % 2.14 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 8914 ns 8914 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 8917 ns 8917 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 158 ns 158 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 1.77 % 1.77 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 4601 ns 4601 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 4616 ns 4616 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 49.8 ns 49.7 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 1.08 % 1.08 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 4270 ns 4270 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 4316 ns 4316 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 95.6 ns 95.6 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 2.24 % 2.24 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 3830 ns 3830 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 3772 ns 3772 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 168 ns 168 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 4.38 % 4.38 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 3372 ns 3372 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 3368 ns 3368 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 19.2 ns 19.2 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 0.57 % 0.57 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 2905 ns 2905 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 2900 ns 2900 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 59.6 ns 59.6 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.05 % 2.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 866 ns 866 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 864 ns 864 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 15.9 ns 15.9 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.83 % 1.83 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 1328 ns 1328 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 1326 ns 1326 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 22.7 ns 22.7 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 1.71 % 1.71 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 797 ns 797 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 794 ns 794 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 11.7 ns 11.7 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 1.47 % 1.47 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 656 ns 656 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 657 ns 657 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 5.26 ns 5.26 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 0.80 % 0.80 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 831 ns 831 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 816 ns 816 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 42.4 ns 42.4 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 5.10 % 5.10 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 438 ns 438 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 440 ns 440 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 14.2 ns 14.2 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 3.24 % 3.24 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 553 ns 553 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 544 ns 544 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 21.3 ns 21.3 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 3.85 % 3.85 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 754 ns 754 ns 4
|
|
replace bb to ---- in std::string|64_median 755 ns 755 ns 4
|
|
replace bb to ---- in std::string|64_stddev 7.06 ns 7.06 ns 4
|
|
replace bb to ---- in std::string|64_cv 0.94 % 0.94 % 4
|
|
replace bb to ---- in std::string|256_mean 2292 ns 2292 ns 4
|
|
replace bb to ---- in std::string|256_median 2278 ns 2278 ns 4
|
|
replace bb to ---- in std::string|256_stddev 66.5 ns 66.5 ns 4
|
|
replace bb to ---- in std::string|256_cv 2.90 % 2.90 % 4
|
|
replace bb to ---- in std::string|512_mean 4359 ns 4359 ns 4
|
|
replace bb to ---- in std::string|512_median 4347 ns 4347 ns 4
|
|
replace bb to ---- in std::string|512_stddev 166 ns 166 ns 4
|
|
replace bb to ---- in std::string|512_cv 3.80 % 3.81 % 4
|
|
replace bb to ---- in std::string|1024_mean 8819 ns 8819 ns 4
|
|
replace bb to ---- in std::string|1024_median 8770 ns 8770 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 327 ns 327 ns 4
|
|
replace bb to ---- in std::string|1024_cv 3.70 % 3.70 % 4
|
|
replace bb to ---- in std::string|2048_mean 18166 ns 18166 ns 4
|
|
replace bb to ---- in std::string|2048_median 17790 ns 17790 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 846 ns 846 ns 4
|
|
replace bb to ---- in std::string|2048_cv 4.66 % 4.66 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 590 ns 590 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 587 ns 587 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 12.2 ns 12.2 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 2.08 % 2.08 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 1916 ns 1916 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 1929 ns 1929 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 92.2 ns 92.2 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 4.81 % 4.81 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 3332 ns 3332 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 3278 ns 3278 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 139 ns 139 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 4.17 % 4.17 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 6057 ns 6057 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 6133 ns 6133 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 210 ns 210 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.47 % 3.47 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 11959 ns 11959 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 11859 ns 11859 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 437 ns 437 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 3.66 % 3.66 % 4
|
|
replace bb to ---- by init stringa|64_mean 403 ns 403 ns 4
|
|
replace bb to ---- by init stringa|64_median 393 ns 393 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 27.2 ns 27.2 ns 4
|
|
replace bb to ---- by init stringa|64_cv 6.73 % 6.73 % 4
|
|
replace bb to ---- by init stringa|256_mean 1149 ns 1149 ns 4
|
|
replace bb to ---- by init stringa|256_median 1154 ns 1154 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 45.5 ns 45.5 ns 4
|
|
replace bb to ---- by init stringa|256_cv 3.96 % 3.96 % 4
|
|
replace bb to ---- by init stringa|512_mean 2695 ns 2695 ns 4
|
|
replace bb to ---- by init stringa|512_median 2675 ns 2675 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 93.8 ns 93.8 ns 4
|
|
replace bb to ---- by init stringa|512_cv 3.48 % 3.48 % 4
|
|
replace bb to ---- by init stringa|1024_mean 5688 ns 5688 ns 4
|
|
replace bb to ---- by init stringa|1024_median 5626 ns 5626 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 207 ns 207 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 3.64 % 3.64 % 4
|
|
replace bb to ---- by init stringa|2048_mean 11882 ns 11882 ns 4
|
|
replace bb to ---- by init stringa|2048_median 11930 ns 11931 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 180 ns 180 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 1.51 % 1.51 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 556 ns 556 ns 4
|
|
replace bb to -- in std::string|64_median 554 ns 554 ns 4
|
|
replace bb to -- in std::string|64_stddev 21.6 ns 21.6 ns 4
|
|
replace bb to -- in std::string|64_cv 3.89 % 3.89 % 4
|
|
replace bb to -- in std::string|256_mean 1773 ns 1773 ns 4
|
|
replace bb to -- in std::string|256_median 1781 ns 1781 ns 4
|
|
replace bb to -- in std::string|256_stddev 40.8 ns 40.7 ns 4
|
|
replace bb to -- in std::string|256_cv 2.30 % 2.30 % 4
|
|
replace bb to -- in std::string|512_mean 3125 ns 3125 ns 4
|
|
replace bb to -- in std::string|512_median 3096 ns 3096 ns 4
|
|
replace bb to -- in std::string|512_stddev 92.8 ns 92.8 ns 4
|
|
replace bb to -- in std::string|512_cv 2.97 % 2.97 % 4
|
|
replace bb to -- in std::string|1024_mean 6361 ns 6361 ns 4
|
|
replace bb to -- in std::string|1024_median 6341 ns 6341 ns 4
|
|
replace bb to -- in std::string|1024_stddev 135 ns 135 ns 4
|
|
replace bb to -- in std::string|1024_cv 2.12 % 2.12 % 4
|
|
replace bb to -- in std::string|2048_mean 11893 ns 11893 ns 4
|
|
replace bb to -- in std::string|2048_median 11888 ns 11888 ns 4
|
|
replace bb to -- in std::string|2048_stddev 513 ns 513 ns 4
|
|
replace bb to -- in std::string|2048_cv 4.32 % 4.32 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 439 ns 439 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 440 ns 440 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 6.82 ns 6.82 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 1.55 % 1.55 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 1355 ns 1355 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 1355 ns 1355 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 52.2 ns 52.2 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 3.85 % 3.85 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 2540 ns 2540 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 2543 ns 2543 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 68.2 ns 68.2 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 2.68 % 2.68 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 4650 ns 4650 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 4631 ns 4631 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 185 ns 185 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 3.98 % 3.98 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 9148 ns 9148 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 9165 ns 9165 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 267 ns 267 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 2.92 % 2.92 % 4
|
|
replace bb to -- by init stringa|64_mean 309 ns 309 ns 4
|
|
replace bb to -- by init stringa|64_median 313 ns 313 ns 4
|
|
replace bb to -- by init stringa|64_stddev 9.28 ns 9.28 ns 4
|
|
replace bb to -- by init stringa|64_cv 3.01 % 3.01 % 4
|
|
replace bb to -- by init stringa|256_mean 967 ns 967 ns 4
|
|
replace bb to -- by init stringa|256_median 975 ns 975 ns 4
|
|
replace bb to -- by init stringa|256_stddev 39.3 ns 39.3 ns 4
|
|
replace bb to -- by init stringa|256_cv 4.07 % 4.07 % 4
|
|
replace bb to -- by init stringa|512_mean 1774 ns 1774 ns 4
|
|
replace bb to -- by init stringa|512_median 1768 ns 1768 ns 4
|
|
replace bb to -- by init stringa|512_stddev 66.1 ns 66.1 ns 4
|
|
replace bb to -- by init stringa|512_cv 3.73 % 3.73 % 4
|
|
replace bb to -- by init stringa|1024_mean 3375 ns 3375 ns 4
|
|
replace bb to -- by init stringa|1024_median 3335 ns 3335 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 107 ns 107 ns 4
|
|
replace bb to -- by init stringa|1024_cv 3.16 % 3.16 % 4
|
|
replace bb to -- by init stringa|2048_mean 6646 ns 6646 ns 4
|
|
replace bb to -- by init stringa|2048_median 6669 ns 6669 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 103 ns 103 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.55 % 1.55 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 5122075 ns 5122213 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 5120675 ns 5120750 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 26671 ns 26794 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 0.52 % 0.52 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 6141653 ns 6141694 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 6148781 ns 6148822 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 171840 ns 171840 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.80 % 2.80 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 5107848 ns 5107875 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 5116589 ns 5116625 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 55521 ns 55521 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.09 % 1.09 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 7187813 ns 7187884 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 7100597 ns 7100682 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 230560 ns 230551 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 3.21 % 3.21 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 5362 ns 5362 ns 4
|
|
Build func full name std::string;_median 5343 ns 5343 ns 4
|
|
Build func full name std::string;_stddev 105 ns 105 ns 4
|
|
Build func full name std::string;_cv 1.96 % 1.96 % 4
|
|
Build func full name std::string 1;_mean 6029 ns 6029 ns 4
|
|
Build func full name std::string 1;_median 6037 ns 6037 ns 4
|
|
Build func full name std::string 1;_stddev 34.7 ns 34.8 ns 4
|
|
Build func full name std::string 1;_cv 0.58 % 0.58 % 4
|
|
Build func full name std::stream;_mean 25412 ns 25413 ns 4
|
|
Build func full name std::stream;_median 25270 ns 25270 ns 4
|
|
Build func full name std::stream;_stddev 417 ns 417 ns 4
|
|
Build func full name std::stream;_cv 1.64 % 1.64 % 4
|
|
Build func full name stringa;_mean 2926 ns 2926 ns 4
|
|
Build func full name stringa;_median 2930 ns 2930 ns 4
|
|
Build func full name stringa;_stddev 42.6 ns 42.6 ns 4
|
|
Build func full name stringa;_cv 1.46 % 1.45 % 4
|
|
Build func full name stringa 1;_mean 3417 ns 3417 ns 4
|
|
Build func full name stringa 1;_median 3459 ns 3459 ns 4
|
|
Build func full name stringa 1;_stddev 108 ns 108 ns 4
|
|
Build func full name stringa 1;_cv 3.16 % 3.16 % 4
|