mirror of https://github.com/orefkov/simstr.git
978 lines
145 KiB
Plaintext
978 lines
145 KiB
Plaintext
Benchmarks of simstr, version 1.7.0
|
|
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 993 ns 993 ns 4
|
|
Concat email std::format_median 989 ns 989 ns 4
|
|
Concat email std::format_stddev 20.8 ns 20.8 ns 4
|
|
Concat email std::format_cv 2.10 % 2.10 % 4
|
|
Concat email std::stringstream_mean 2513 ns 2514 ns 4
|
|
Concat email std::stringstream_median 2493 ns 2493 ns 4
|
|
Concat email std::stringstream_stddev 118 ns 118 ns 4
|
|
Concat email std::stringstream_cv 4.68 % 4.68 % 4
|
|
Concat email stringzilla append_mean 574 ns 574 ns 4
|
|
Concat email stringzilla append_median 568 ns 568 ns 4
|
|
Concat email stringzilla append_stddev 19.0 ns 19.0 ns 4
|
|
Concat email stringzilla append_cv 3.31 % 3.31 % 4
|
|
Concat email stringzilla concat_mean 222 ns 222 ns 4
|
|
Concat email stringzilla concat_median 223 ns 223 ns 4
|
|
Concat email stringzilla concat_stddev 5.74 ns 5.74 ns 4
|
|
Concat email stringzilla concat_cv 2.59 % 2.59 % 4
|
|
Concat email std::string append_mean 636 ns 636 ns 4
|
|
Concat email std::string append_median 621 ns 621 ns 4
|
|
Concat email std::string append_stddev 53.8 ns 53.8 ns 4
|
|
Concat email std::string append_cv 8.46 % 8.46 % 4
|
|
Concat email std::string by strexpr_mean 159 ns 159 ns 4
|
|
Concat email std::string by strexpr_median 160 ns 160 ns 4
|
|
Concat email std::string by strexpr_stddev 6.61 ns 6.61 ns 4
|
|
Concat email std::string by strexpr_cv 4.16 % 4.16 % 4
|
|
Concat email stringa_mean 133 ns 133 ns 4
|
|
Concat email stringa_median 132 ns 132 ns 4
|
|
Concat email stringa_stddev 3.45 ns 3.45 ns 4
|
|
Concat email stringa_cv 2.59 % 2.59 % 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 1951 ns 1951 ns 4
|
|
Concat std::string and number by std to std::string_median 1964 ns 1964 ns 4
|
|
Concat std::string and number by std to std::string_stddev 85.3 ns 85.3 ns 4
|
|
Concat std::string and number by std to std::string_cv 4.37 % 4.37 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 974 ns 974 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 984 ns 984 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 63.0 ns 63.0 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 6.47 % 6.47 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 369 ns 369 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 364 ns 364 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 22.2 ns 22.2 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 6.01 % 6.01 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 367 ns 367 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 362 ns 362 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 20.0 ns 20.0 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 5.44 % 5.44 % 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 3765 ns 3765 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 3768 ns 3768 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 44.4 ns 44.4 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 1.18 % 1.18 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 4994 ns 4994 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 4970 ns 4970 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 116 ns 116 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 2.33 % 2.33 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 1114 ns 1114 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 1115 ns 1115 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 11.3 ns 11.3 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.01 % 1.01 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 885 ns 885 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 887 ns 887 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 31.7 ns 31.7 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 3.58 % 3.58 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 252 ns 252 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 255 ns 255 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 11.8 ns 11.7 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.66 % 4.65 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 276 ns 276 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 279 ns 279 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 8.70 ns 8.70 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.15 % 3.15 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 548 ns 548 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 546 ns 546 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 26.7 ns 26.7 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 4.87 % 4.87 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 1724 ns 1724 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 1714 ns 1714 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 31.0 ns 31.0 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.80 % 1.80 % 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 930 ns 930 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 929 ns 929 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 31.7 ns 31.7 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.40 % 3.41 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 1123 ns 1123 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 1111 ns 1111 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 44.9 ns 44.9 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 4.00 % 4.00 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 2923 ns 2923 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 2898 ns 2898 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 70.8 ns 70.8 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.42 % 2.42 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 4411 ns 4411 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 4300 ns 4300 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 238 ns 238 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 5.39 % 5.39 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 4578 ns 4578 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 4515 ns 4515 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 169 ns 169 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.70 % 3.70 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 5729 ns 5729 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 5737 ns 5737 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 105 ns 105 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.83 % 1.83 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 5777 ns 5777 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 5823 ns 5823 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 285 ns 285 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 4.93 % 4.93 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 18843 ns 18843 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 18764 ns 18764 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 1075 ns 1075 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 5.70 % 5.70 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 155 ns 155 ns 4
|
|
Concat std::string by std to std::string_median 156 ns 156 ns 4
|
|
Concat std::string by std to std::string_stddev 4.25 ns 4.26 ns 4
|
|
Concat std::string by std to std::string_cv 2.74 % 2.74 % 4
|
|
Concat std::string by StrExpr to std::string_mean 175 ns 175 ns 4
|
|
Concat std::string by StrExpr to std::string_median 177 ns 177 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 11.8 ns 11.8 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 6.71 % 6.71 % 4
|
|
Concat stringa by StrExpr to stringa_mean 146 ns 146 ns 4
|
|
Concat stringa by StrExpr to stringa_median 146 ns 146 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 3.70 ns 3.70 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 2.53 % 2.53 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 501 ns 501 ns 4
|
|
Find concat three std::string_median 500 ns 500 ns 4
|
|
Find concat three std::string_stddev 4.58 ns 4.58 ns 4
|
|
Find concat three std::string_cv 0.91 % 0.91 % 4
|
|
Find concat three strexpr_mean 288 ns 288 ns 4
|
|
Find concat three strexpr_median 287 ns 287 ns 4
|
|
Find concat three strexpr_stddev 11.6 ns 11.6 ns 4
|
|
Find concat three strexpr_cv 4.04 % 4.03 % 4
|
|
Find concat three simstr_mean 174 ns 174 ns 4
|
|
Find concat three simstr_median 169 ns 169 ns 4
|
|
Find concat three simstr_stddev 9.16 ns 9.16 ns 4
|
|
Find concat three simstr_cv 5.28 % 5.28 % 4
|
|
Find concat three stringzilla string_mean 621 ns 621 ns 4
|
|
Find concat three stringzilla string_median 614 ns 614 ns 4
|
|
Find concat three stringzilla string_stddev 25.6 ns 25.6 ns 4
|
|
Find concat three stringzilla string_cv 4.13 % 4.13 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 27.5 ns 27.5 ns 4
|
|
BuildTypeNameStr 0/0_median 27.5 ns 27.5 ns 4
|
|
BuildTypeNameStr 0/0_stddev 0.854 ns 0.854 ns 4
|
|
BuildTypeNameStr 0/0_cv 3.10 % 3.10 % 4
|
|
BuildTypeNameExp 0/0_mean 29.2 ns 29.2 ns 4
|
|
BuildTypeNameExp 0/0_median 29.1 ns 29.1 ns 4
|
|
BuildTypeNameExp 0/0_stddev 1.09 ns 1.09 ns 4
|
|
BuildTypeNameExp 0/0_cv 3.74 % 3.74 % 4
|
|
BuildTypeNameSim 0/0_mean 38.8 ns 81.8 ns 4
|
|
BuildTypeNameSim 0/0_median 38.5 ns 81.5 ns 4
|
|
BuildTypeNameSim 0/0_stddev 1.67 ns 1.67 ns 4
|
|
BuildTypeNameSim 0/0_cv 2.05 % 2.04 % 4
|
|
BuildTypeNameStr 10/10_mean 661 ns 661 ns 4
|
|
BuildTypeNameStr 10/10_median 663 ns 663 ns 4
|
|
BuildTypeNameStr 10/10_stddev 19.6 ns 19.6 ns 4
|
|
BuildTypeNameStr 10/10_cv 2.96 % 2.97 % 4
|
|
BuildTypeNameExp 10/10_mean 201 ns 201 ns 4
|
|
BuildTypeNameExp 10/10_median 199 ns 199 ns 4
|
|
BuildTypeNameExp 10/10_stddev 9.96 ns 9.96 ns 4
|
|
BuildTypeNameExp 10/10_cv 4.95 % 4.95 % 4
|
|
BuildTypeNameSim 10/10_mean 105 ns 105 ns 4
|
|
BuildTypeNameSim 10/10_median 105 ns 105 ns 4
|
|
BuildTypeNameSim 10/10_stddev 4.46 ns 4.46 ns 4
|
|
BuildTypeNameSim 10/10_cv 4.26 % 4.26 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 1091 ns 1091 ns 4
|
|
Concat with replace str_median 1088 ns 1088 ns 4
|
|
Concat with replace str_stddev 59.7 ns 59.7 ns 4
|
|
Concat with replace str_cv 5.48 % 5.48 % 4
|
|
Concat with replace exp_mean 502 ns 502 ns 4
|
|
Concat with replace exp_median 501 ns 501 ns 4
|
|
Concat with replace exp_stddev 25.9 ns 26.0 ns 4
|
|
Concat with replace exp_cv 5.16 % 5.17 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 2.63 ns 2.63 ns 4
|
|
std::string e;_median 2.63 ns 2.63 ns 4
|
|
std::string e;_stddev 0.054 ns 0.054 ns 4
|
|
std::string e;_cv 2.07 % 2.07 % 4
|
|
std::string_view e;_mean 2.19 ns 2.19 ns 4
|
|
std::string_view e;_median 2.20 ns 2.20 ns 4
|
|
std::string_view e;_stddev 0.027 ns 0.027 ns 4
|
|
std::string_view e;_cv 1.23 % 1.23 % 4
|
|
ssa e;_mean 2.14 ns 2.14 ns 4
|
|
ssa e;_median 2.13 ns 2.13 ns 4
|
|
ssa e;_stddev 0.028 ns 0.028 ns 4
|
|
ssa e;_cv 1.33 % 1.33 % 4
|
|
stringa e;_mean 2.97 ns 2.97 ns 4
|
|
stringa e;_median 2.95 ns 2.95 ns 4
|
|
stringa e;_stddev 0.086 ns 0.086 ns 4
|
|
stringa e;_cv 2.90 % 2.90 % 4
|
|
lstringa<20> e;_mean 3.67 ns 3.67 ns 4
|
|
lstringa<20> e;_median 3.65 ns 3.65 ns 4
|
|
lstringa<20> e;_stddev 0.080 ns 0.080 ns 4
|
|
lstringa<20> e;_cv 2.18 % 2.17 % 4
|
|
lstringa<40> e;_mean 3.54 ns 3.54 ns 4
|
|
lstringa<40> e;_median 3.52 ns 3.52 ns 4
|
|
lstringa<40> e;_stddev 0.048 ns 0.048 ns 4
|
|
lstringa<40> e;_cv 1.36 % 1.36 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 3.39 ns 3.39 ns 4
|
|
std::string e = "Test text";_median 3.35 ns 3.35 ns 4
|
|
std::string e = "Test text";_stddev 0.100 ns 0.100 ns 4
|
|
std::string e = "Test text";_cv 2.94 % 2.94 % 4
|
|
std::string_view e = "Test text";_mean 2.19 ns 2.19 ns 4
|
|
std::string_view e = "Test text";_median 2.18 ns 2.18 ns 4
|
|
std::string_view e = "Test text";_stddev 0.025 ns 0.025 ns 4
|
|
std::string_view e = "Test text";_cv 1.13 % 1.13 % 4
|
|
ssa e = "Test text";_mean 2.14 ns 2.14 ns 4
|
|
ssa e = "Test text";_median 2.14 ns 2.14 ns 4
|
|
ssa e = "Test text";_stddev 0.016 ns 0.016 ns 4
|
|
ssa e = "Test text";_cv 0.75 % 0.75 % 4
|
|
stringa e = "Test text";_mean 3.03 ns 3.03 ns 4
|
|
stringa e = "Test text";_median 3.01 ns 3.01 ns 4
|
|
stringa e = "Test text";_stddev 0.109 ns 0.109 ns 4
|
|
stringa e = "Test text";_cv 3.60 % 3.60 % 4
|
|
lstringa<20> e = "Test text";_mean 3.96 ns 3.96 ns 4
|
|
lstringa<20> e = "Test text";_median 3.95 ns 3.95 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.041 ns 0.042 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.05 % 1.05 % 4
|
|
lstringa<40> e = "Test text";_mean 3.99 ns 3.99 ns 4
|
|
lstringa<40> e = "Test text";_median 3.95 ns 3.95 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.100 ns 0.100 ns 4
|
|
lstringa<40> e = "Test text";_cv 2.51 % 2.51 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 69.1 ns 69.1 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 68.6 ns 68.6 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 2.20 ns 2.20 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 3.18 % 3.18 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 2.17 ns 2.17 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 2.17 ns 2.17 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.027 ns 0.027 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 1.24 % 1.23 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 2.14 ns 2.14 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 2.14 ns 2.14 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.016 ns 0.016 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 0.74 % 0.74 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 2.97 ns 2.97 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 2.97 ns 2.97 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.009 ns 0.009 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 0.31 % 0.31 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 69.7 ns 69.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 67.6 ns 67.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 4.85 ns 4.85 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 6.96 % 6.96 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 16.5 ns 16.5 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 16.5 ns 16.5 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.074 ns 0.074 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 0.45 % 0.45 % 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 6.73 ns 6.73 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 6.67 ns 6.67 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.230 ns 0.230 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 3.41 % 3.41 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 2.20 ns 2.20 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 2.19 ns 2.19 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.036 ns 0.036 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.63 % 1.63 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 2.21 ns 2.21 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 2.21 ns 2.21 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 0.70 % 0.70 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 4.66 ns 4.66 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 4.68 ns 4.68 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.062 ns 0.062 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 1.34 % 1.34 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 7.15 ns 29.0 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 7.15 ns 28.9 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.309 ns 0.309 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.06 % 1.06 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 7.34 ns 27.0 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 7.31 ns 26.9 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.088 ns 0.294 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 1.09 % 1.09 % 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 119 ns 119 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 119 ns 119 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.539 ns 0.539 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 0.45 % 0.45 % 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.057 ns 0.057 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.58 % 2.58 % 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.036 ns 0.036 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.67 % 1.67 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.98 ns 2.98 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 2.97 ns 2.97 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.077 ns 0.077 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.59 % 2.58 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 72.7 ns 72.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 72.1 ns 72.1 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.24 ns 2.24 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.09 % 3.09 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 50.4 ns 50.4 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 51.2 ns 51.2 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 2.04 ns 2.04 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.04 % 4.04 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
sz::string::find;_mean 231 ns 231 ns 4
|
|
sz::string::find;_median 228 ns 228 ns 4
|
|
sz::string::find;_stddev 7.41 ns 7.40 ns 4
|
|
sz::string::find;_cv 3.20 % 3.20 % 4
|
|
std::string::find;_mean 99.9 ns 99.9 ns 4
|
|
std::string::find;_median 100 ns 100 ns 4
|
|
std::string::find;_stddev 1.27 ns 1.27 ns 4
|
|
std::string::find;_cv 1.27 % 1.27 % 4
|
|
std::string_view::find;_mean 96.4 ns 96.4 ns 4
|
|
std::string_view::find;_median 96.3 ns 96.3 ns 4
|
|
std::string_view::find;_stddev 2.12 ns 2.12 ns 4
|
|
std::string_view::find;_cv 2.19 % 2.19 % 4
|
|
ssa::find;_mean 97.9 ns 97.9 ns 4
|
|
ssa::find;_median 98.0 ns 98.0 ns 4
|
|
ssa::find;_stddev 0.885 ns 0.885 ns 4
|
|
ssa::find;_cv 0.90 % 0.90 % 4
|
|
stringa::find;_mean 99.1 ns 99.1 ns 4
|
|
stringa::find;_median 99.2 ns 99.2 ns 4
|
|
stringa::find;_stddev 1.47 ns 1.47 ns 4
|
|
stringa::find;_cv 1.48 % 1.48 % 4
|
|
lstringa<20>::find;_mean 115 ns 115 ns 4
|
|
lstringa<20>::find;_median 115 ns 115 ns 4
|
|
lstringa<20>::find;_stddev 0.573 ns 0.573 ns 4
|
|
lstringa<20>::find;_cv 0.50 % 0.50 % 4
|
|
lstringa<40>::find;_mean 115 ns 115 ns 4
|
|
lstringa<40>::find;_median 115 ns 115 ns 4
|
|
lstringa<40>::find;_stddev 0.998 ns 1.00 ns 4
|
|
lstringa<40>::find;_cv 0.87 % 0.87 % 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 124 ns 124 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 4.14 ns 4.14 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 3.31 % 3.31 % 4
|
|
std::string copy{str_with_len_N};/16_mean 125 ns 125 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 5.81 ns 5.81 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 4.63 % 4.63 % 4
|
|
std::string copy{str_with_len_N};/23_mean 126 ns 126 ns 4
|
|
std::string copy{str_with_len_N};/23_median 127 ns 127 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 6.56 ns 6.56 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 5.21 % 5.21 % 4
|
|
std::string copy{str_with_len_N};/24_mean 120 ns 120 ns 4
|
|
std::string copy{str_with_len_N};/24_median 121 ns 121 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 3.74 ns 3.74 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 3.11 % 3.11 % 4
|
|
std::string copy{str_with_len_N};/32_mean 124 ns 124 ns 4
|
|
std::string copy{str_with_len_N};/32_median 124 ns 124 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 5.54 ns 5.54 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 4.46 % 4.46 % 4
|
|
std::string copy{str_with_len_N};/64_mean 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/64_median 123 ns 123 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 2.77 ns 2.77 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 2.26 % 2.26 % 4
|
|
std::string copy{str_with_len_N};/128_mean 133 ns 133 ns 4
|
|
std::string copy{str_with_len_N};/128_median 131 ns 131 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 8.98 ns 8.98 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 6.77 % 6.77 % 4
|
|
std::string copy{str_with_len_N};/256_mean 156 ns 156 ns 4
|
|
std::string copy{str_with_len_N};/256_median 145 ns 145 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 25.0 ns 25.0 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 16.03 % 16.03 % 4
|
|
std::string copy{str_with_len_N};/512_mean 150 ns 150 ns 4
|
|
std::string copy{str_with_len_N};/512_median 148 ns 148 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 4.82 ns 4.81 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 3.22 % 3.22 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 174 ns 174 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 39.6 ns 39.6 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 22.78 % 22.78 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 217 ns 217 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 219 ns 219 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 23.4 ns 23.4 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 10.77 % 10.77 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 263 ns 263 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 265 ns 266 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 24.8 ns 24.7 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 9.41 % 9.41 % 4
|
|
stringa copy{str_with_len_N};/15_mean 4.83 ns 4.83 ns 4
|
|
stringa copy{str_with_len_N};/15_median 4.84 ns 4.84 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.021 ns 0.021 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 0.43 % 0.43 % 4
|
|
stringa copy{str_with_len_N};/16_mean 7.81 ns 7.81 ns 4
|
|
stringa copy{str_with_len_N};/16_median 7.85 ns 7.85 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.103 ns 0.103 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 1.32 % 1.32 % 4
|
|
stringa copy{str_with_len_N};/23_mean 8.12 ns 8.12 ns 4
|
|
stringa copy{str_with_len_N};/23_median 7.93 ns 7.93 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.453 ns 0.453 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 5.58 % 5.58 % 4
|
|
stringa copy{str_with_len_N};/24_mean 7.86 ns 7.86 ns 4
|
|
stringa copy{str_with_len_N};/24_median 7.87 ns 7.87 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.119 ns 0.119 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 1.51 % 1.51 % 4
|
|
stringa copy{str_with_len_N};/32_mean 7.82 ns 7.82 ns 4
|
|
stringa copy{str_with_len_N};/32_median 7.79 ns 7.79 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.099 ns 0.099 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 1.27 % 1.27 % 4
|
|
stringa copy{str_with_len_N};/64_mean 7.90 ns 7.90 ns 4
|
|
stringa copy{str_with_len_N};/64_median 7.86 ns 7.86 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.151 ns 0.151 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 1.92 % 1.92 % 4
|
|
stringa copy{str_with_len_N};/128_mean 7.78 ns 7.78 ns 4
|
|
stringa copy{str_with_len_N};/128_median 7.79 ns 7.79 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.074 ns 0.074 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 0.95 % 0.95 % 4
|
|
stringa copy{str_with_len_N};/256_mean 8.03 ns 8.03 ns 4
|
|
stringa copy{str_with_len_N};/256_median 7.98 ns 7.98 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.252 ns 0.252 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 3.14 % 3.14 % 4
|
|
stringa copy{str_with_len_N};/512_mean 7.91 ns 7.91 ns 4
|
|
stringa copy{str_with_len_N};/512_median 7.89 ns 7.89 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.157 ns 0.157 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 1.98 % 1.98 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 7.78 ns 7.78 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 7.74 ns 7.74 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.113 ns 0.112 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 1.45 % 1.44 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 7.80 ns 7.80 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 7.81 ns 7.81 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.054 ns 0.054 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 0.69 % 0.69 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 7.79 ns 7.79 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 7.80 ns 7.80 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.057 ns 0.056 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.73 % 0.72 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 8.00 ns 8.00 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 7.99 ns 7.99 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.036 ns 0.035 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 0.45 % 0.44 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 20.7 ns 20.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 20.7 ns 20.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.825 ns 0.825 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 3.99 % 3.99 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 88.9 ns 88.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 89.6 ns 89.6 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 4.34 ns 4.34 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 4.88 % 4.88 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 88.3 ns 88.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 88.5 ns 88.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 1.91 ns 1.90 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 2.16 % 2.15 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 92.9 ns 92.9 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 93.4 ns 93.4 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 1.98 ns 1.98 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 2.14 % 2.14 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 96.1 ns 96.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 95.5 ns 95.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 1.75 ns 1.75 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 1.82 % 1.82 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 97.2 ns 97.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 96.3 ns 96.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 5.52 ns 5.52 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 5.68 % 5.68 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 130 ns 130 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 120 ns 120 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 27.7 ns 27.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 21.29 % 21.29 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 116 ns 116 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 116 ns 116 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 3.61 ns 3.61 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 3.12 % 3.12 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 139 ns 139 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 133 ns 133 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 21.2 ns 21.2 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 15.28 % 15.28 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 178 ns 178 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 187 ns 187 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 25.0 ns 25.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 14.00 % 13.99 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 221 ns 221 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 226 ns 226 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 16.1 ns 16.1 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 7.29 % 7.29 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 8.09 ns 8.09 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 8.05 ns 8.05 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.131 ns 0.131 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.62 % 1.62 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 21.2 ns 21.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 21.1 ns 21.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 1.21 ns 1.21 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 5.72 % 5.72 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 20.4 ns 20.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 20.1 ns 20.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.840 ns 0.840 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 4.13 % 4.13 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 20.3 ns 20.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 20.3 ns 20.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.410 ns 0.409 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.02 % 2.01 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 22.6 ns 22.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 22.7 ns 22.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.446 ns 0.446 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.98 % 1.98 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 23.3 ns 23.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 23.2 ns 23.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.362 ns 0.362 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 1.55 % 1.55 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 24.5 ns 24.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 24.7 ns 24.7 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.694 ns 0.694 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 2.83 % 2.83 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 26.6 ns 26.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 26.5 ns 26.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.879 ns 0.879 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 3.31 % 3.31 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 28.5 ns 28.5 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 28.4 ns 28.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.432 ns 0.434 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.52 % 1.52 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 137 ns 137 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 127 ns 127 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 23.3 ns 23.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 17.03 % 17.03 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 174 ns 174 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 181 ns 181 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 23.2 ns 23.2 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 13.36 % 13.36 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 220 ns 220 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 224 ns 224 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 18.1 ns 18.1 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 8.25 % 8.25 % 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 201 ns 201 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 200 ns 200 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 3.33 ns 3.33 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.66 % 1.66 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 2.16 ns 2.16 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 2.16 ns 2.16 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.008 ns 0.008 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.38 % 0.38 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 61.4 ns 61.4 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 61.1 ns 61.1 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.05 ns 1.05 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.72 % 1.72 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 49.4 ns 49.4 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 49.0 ns 49.0 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.88 ns 1.88 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.80 % 3.80 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 49.4 ns 49.4 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 49.0 ns 49.0 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.03 ns 1.03 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.08 % 2.08 % 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 146 ns 146 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 146 ns 146 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.25 ns 1.25 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 0.85 % 0.85 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 57.3 ns 57.3 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 57.0 ns 57.0 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 1.14 ns 1.14 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.99 % 1.99 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 60.0 ns 60.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 60.0 ns 60.0 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.743 ns 0.743 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.24 % 1.24 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 45.9 ns 45.9 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 45.6 ns 45.6 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.727 ns 0.727 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.58 % 1.58 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 46.3 ns 46.3 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 46.3 ns 46.3 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.834 ns 0.834 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.80 % 1.80 % 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 208 ns 208 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 207 ns 207 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 7.21 ns 7.21 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.47 % 3.47 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 58.9 ns 58.9 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 59.0 ns 59.0 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.521 ns 0.521 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 0.89 % 0.89 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 45.9 ns 45.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 45.8 ns 45.8 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.381 ns 0.381 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 0.83 % 0.83 % 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 578 ns 578 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 578 ns 578 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 11.4 ns 11.4 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.97 % 1.97 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 273 ns 273 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 273 ns 273 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 4.31 ns 4.31 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.58 % 1.58 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 93.8 ns 93.8 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 94.1 ns 94.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 2.28 ns 2.28 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.43 % 2.43 % 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 15958 ns 15958 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 15858 ns 15858 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 399 ns 399 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.50 % 2.50 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1434 ns 1434 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1429 ns 1429 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 32.7 ns 32.7 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.28 % 2.28 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 1411 ns 1411 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 1420 ns 1420 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 35.6 ns 35.6 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.52 % 2.52 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 920 ns 920 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 916 ns 916 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 36.6 ns 36.6 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.98 % 3.98 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 638 ns 638 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 638 ns 638 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 12.0 ns 12.0 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.88 % 1.88 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 509 ns 509 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 510 ns 510 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 10.2 ns 10.2 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.00 % 2.00 % 4
|
|
-- Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 16329 ns 16330 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 16205 ns 16205 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 468 ns 469 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.87 % 2.87 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4574 ns 4574 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4584 ns 4584 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 48.3 ns 48.3 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.06 % 1.06 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1521 ns 1521 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1529 ns 1529 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 20.6 ns 20.6 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.35 % 1.35 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 1206 ns 1206 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 1190 ns 1190 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 40.0 ns 40.0 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.31 % 3.31 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 916 ns 916 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 920 ns 920 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.03 ns 9.03 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.99 % 0.99 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 813 ns 813 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 812 ns 812 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.24 ns 6.24 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.77 % 0.77 % 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 833815 ns 833815 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 836530 ns 836530 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 39471 ns 39471 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.73 % 4.73 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 241478 ns 241478 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 241005 ns 241005 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 14187 ns 14187 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.87 % 5.87 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 57002 ns 57002 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 57062 ns 57062 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 678 ns 678 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.19 % 1.19 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 56617 ns 56619 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 56656 ns 56659 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1140 ns 1140 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 53906 ns 53906 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 53986 ns 53986 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 460 ns 460 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.85 % 0.85 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 55763 ns 55763 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 54817 ns 54817 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3366 ns 3366 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.04 % 6.04 % 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 15927 ns 15927 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 15815 ns 15815 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 288 ns 288 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 1.81 % 1.81 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 4954 ns 4954 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 4942 ns 4942 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 58.1 ns 57.9 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.17 % 1.17 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1852 ns 1852 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 1853 ns 1853 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 148 ns 148 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 7.99 % 7.99 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1497 ns 1497 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 1507 ns 1507 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 97.3 ns 97.2 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.50 % 6.49 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 1196 ns 1196 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 1182 ns 1182 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 51.4 ns 51.4 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.29 % 4.29 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 1089 ns 1089 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 1074 ns 1074 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 79.2 ns 79.1 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 7.27 % 7.26 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 25783 ns 25783 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 25561 ns 25561 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 744 ns 744 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 2.89 % 2.89 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 3681 ns 3681 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 3682 ns 3682 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 52.0 ns 52.0 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 1.41 % 1.41 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 10716 ns 10716 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 10698 ns 10698 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 118 ns 118 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.10 % 1.10 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 5711 ns 5711 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 5732 ns 5732 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 99.1 ns 99.1 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 1.73 % 1.73 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 8447 ns 8447 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 8495 ns 8495 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 179 ns 179 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 2.12 % 2.12 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 7294 ns 7294 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 7082 ns 7082 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 498 ns 498 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 6.83 % 6.83 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 1418 ns 1418 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 1379 ns 1379 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 116 ns 116 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 8.21 % 8.21 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 572 ns 572 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 579 ns 579 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 27.3 ns 27.3 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 4.77 % 4.77 % 4
|
|
stringa str = "test = " + k + " times";_mean 1197 ns 1197 ns 4
|
|
stringa str = "test = " + k + " times";_median 1193 ns 1193 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 13.9 ns 13.9 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.17 % 1.16 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 1443 ns 1443 ns 4
|
|
std::string::find + substr + std::strtol_median 1445 ns 1445 ns 4
|
|
std::string::find + substr + std::strtol_stddev 58.1 ns 58.1 ns 4
|
|
std::string::find + substr + std::strtol_cv 4.03 % 4.03 % 4
|
|
ssa::splitter + ssa::as_int_mean 595 ns 595 ns 4
|
|
ssa::splitter + ssa::as_int_median 592 ns 592 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 23.1 ns 23.1 ns 4
|
|
ssa::splitter + ssa::as_int_cv 3.88 % 3.88 % 4
|
|
ssa::splitf + functor_mean 853 ns 853 ns 4
|
|
ssa::splitf + functor_median 868 ns 868 ns 4
|
|
ssa::splitf + functor_stddev 41.3 ns 41.3 ns 4
|
|
ssa::splitf + functor_cv 4.84 % 4.84 % 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 4959 ns 4959 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 4961 ns 4960 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 158 ns 158 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 3.19 % 3.19 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 9947 ns 9947 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 9790 ns 9790 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 427 ns 427 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 4.30 % 4.30 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 4617 ns 4617 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 4618 ns 4618 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 99.0 ns 98.7 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.14 % 2.14 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 4256 ns 4256 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 4222 ns 4222 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 258 ns 258 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 6.07 % 6.07 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 3810 ns 3810 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 3749 ns 3749 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 210 ns 210 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 5.51 % 5.51 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 3231 ns 3231 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 3215 ns 3215 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 96.4 ns 96.4 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 2.98 % 2.98 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 3050 ns 3050 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 3015 ns 3015 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 141 ns 141 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 4.61 % 4.61 % 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 889 ns 889 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 898 ns 898 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 42.5 ns 42.5 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.79 % 4.79 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 1379 ns 1379 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 1383 ns 1383 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 19.3 ns 19.3 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 1.40 % 1.40 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 804 ns 804 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 796 ns 796 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 45.8 ns 45.7 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 5.69 % 5.69 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 645 ns 645 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 642 ns 642 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 13.6 ns 13.6 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.10 % 2.10 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 770 ns 770 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 763 ns 763 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 25.3 ns 25.4 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 3.29 % 3.30 % 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 442 ns 442 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 24.3 ns 24.3 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 5.55 % 5.55 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 577 ns 577 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 575 ns 575 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 30.9 ns 30.9 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 5.35 % 5.36 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 776 ns 776 ns 4
|
|
replace bb to ---- in std::string|64_median 783 ns 783 ns 4
|
|
replace bb to ---- in std::string|64_stddev 55.1 ns 55.1 ns 4
|
|
replace bb to ---- in std::string|64_cv 7.10 % 7.10 % 4
|
|
replace bb to ---- in std::string|256_mean 2406 ns 2406 ns 4
|
|
replace bb to ---- in std::string|256_median 2382 ns 2382 ns 4
|
|
replace bb to ---- in std::string|256_stddev 111 ns 111 ns 4
|
|
replace bb to ---- in std::string|256_cv 4.60 % 4.60 % 4
|
|
replace bb to ---- in std::string|512_mean 4112 ns 4112 ns 4
|
|
replace bb to ---- in std::string|512_median 3940 ns 3940 ns 4
|
|
replace bb to ---- in std::string|512_stddev 365 ns 365 ns 4
|
|
replace bb to ---- in std::string|512_cv 8.87 % 8.86 % 4
|
|
replace bb to ---- in std::string|1024_mean 9118 ns 9118 ns 4
|
|
replace bb to ---- in std::string|1024_median 9205 ns 9205 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 301 ns 301 ns 4
|
|
replace bb to ---- in std::string|1024_cv 3.30 % 3.30 % 4
|
|
replace bb to ---- in std::string|2048_mean 19199 ns 19200 ns 4
|
|
replace bb to ---- in std::string|2048_median 19100 ns 19102 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 483 ns 483 ns 4
|
|
replace bb to ---- in std::string|2048_cv 2.52 % 2.52 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 620 ns 620 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 603 ns 603 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 42.3 ns 42.3 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 6.82 % 6.83 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 1900 ns 1900 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 1872 ns 1872 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 68.9 ns 68.8 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 3.62 % 3.62 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 3505 ns 3505 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 3510 ns 3510 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 57.5 ns 57.5 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 1.64 % 1.64 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 6338 ns 6338 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 6236 ns 6236 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 282 ns 282 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 4.44 % 4.44 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 12720 ns 12720 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 12652 ns 12652 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 428 ns 428 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 3.36 % 3.36 % 4
|
|
replace bb to ---- by init stringa|64_mean 379 ns 379 ns 4
|
|
replace bb to ---- by init stringa|64_median 382 ns 382 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 8.97 ns 8.97 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.36 % 2.36 % 4
|
|
replace bb to ---- by init stringa|256_mean 1126 ns 1126 ns 4
|
|
replace bb to ---- by init stringa|256_median 1121 ns 1121 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 20.8 ns 20.8 ns 4
|
|
replace bb to ---- by init stringa|256_cv 1.85 % 1.85 % 4
|
|
replace bb to ---- by init stringa|512_mean 2808 ns 2808 ns 4
|
|
replace bb to ---- by init stringa|512_median 2764 ns 2764 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 131 ns 131 ns 4
|
|
replace bb to ---- by init stringa|512_cv 4.68 % 4.68 % 4
|
|
replace bb to ---- by init stringa|1024_mean 5776 ns 5776 ns 4
|
|
replace bb to ---- by init stringa|1024_median 5815 ns 5815 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 281 ns 282 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 4.87 % 4.87 % 4
|
|
replace bb to ---- by init stringa|2048_mean 12197 ns 12198 ns 4
|
|
replace bb to ---- by init stringa|2048_median 12071 ns 12072 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 427 ns 427 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 3.50 % 3.50 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 557 ns 557 ns 4
|
|
replace bb to -- in std::string|64_median 552 ns 552 ns 4
|
|
replace bb to -- in std::string|64_stddev 30.9 ns 30.9 ns 4
|
|
replace bb to -- in std::string|64_cv 5.55 % 5.55 % 4
|
|
replace bb to -- in std::string|256_mean 1747 ns 1747 ns 4
|
|
replace bb to -- in std::string|256_median 1739 ns 1739 ns 4
|
|
replace bb to -- in std::string|256_stddev 38.6 ns 38.6 ns 4
|
|
replace bb to -- in std::string|256_cv 2.21 % 2.21 % 4
|
|
replace bb to -- in std::string|512_mean 3241 ns 3241 ns 4
|
|
replace bb to -- in std::string|512_median 3238 ns 3238 ns 4
|
|
replace bb to -- in std::string|512_stddev 79.2 ns 79.2 ns 4
|
|
replace bb to -- in std::string|512_cv 2.44 % 2.44 % 4
|
|
replace bb to -- in std::string|1024_mean 6280 ns 6280 ns 4
|
|
replace bb to -- in std::string|1024_median 6248 ns 6248 ns 4
|
|
replace bb to -- in std::string|1024_stddev 166 ns 166 ns 4
|
|
replace bb to -- in std::string|1024_cv 2.65 % 2.65 % 4
|
|
replace bb to -- in std::string|2048_mean 12918 ns 12919 ns 4
|
|
replace bb to -- in std::string|2048_median 12642 ns 12642 ns 4
|
|
replace bb to -- in std::string|2048_stddev 1037 ns 1038 ns 4
|
|
replace bb to -- in std::string|2048_cv 8.03 % 8.04 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 466 ns 466 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 465 ns 465 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 25.9 ns 25.9 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 5.55 % 5.55 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 1429 ns 1429 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 1439 ns 1439 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 65.5 ns 65.5 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 4.58 % 4.58 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 2538 ns 2538 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 2520 ns 2520 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 109 ns 109 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 4.29 % 4.29 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 4898 ns 4898 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 4886 ns 4886 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 185 ns 185 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 3.78 % 3.78 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 9438 ns 9439 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 9355 ns 9355 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 510 ns 510 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 5.40 % 5.40 % 4
|
|
replace bb to -- by init stringa|64_mean 318 ns 318 ns 4
|
|
replace bb to -- by init stringa|64_median 317 ns 317 ns 4
|
|
replace bb to -- by init stringa|64_stddev 13.3 ns 13.3 ns 4
|
|
replace bb to -- by init stringa|64_cv 4.17 % 4.17 % 4
|
|
replace bb to -- by init stringa|256_mean 958 ns 958 ns 4
|
|
replace bb to -- by init stringa|256_median 950 ns 951 ns 4
|
|
replace bb to -- by init stringa|256_stddev 35.5 ns 35.5 ns 4
|
|
replace bb to -- by init stringa|256_cv 3.71 % 3.71 % 4
|
|
replace bb to -- by init stringa|512_mean 1814 ns 1814 ns 4
|
|
replace bb to -- by init stringa|512_median 1816 ns 1816 ns 4
|
|
replace bb to -- by init stringa|512_stddev 75.8 ns 75.7 ns 4
|
|
replace bb to -- by init stringa|512_cv 4.18 % 4.18 % 4
|
|
replace bb to -- by init stringa|1024_mean 3500 ns 3500 ns 4
|
|
replace bb to -- by init stringa|1024_median 3539 ns 3539 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 181 ns 181 ns 4
|
|
replace bb to -- by init stringa|1024_cv 5.18 % 5.18 % 4
|
|
replace bb to -- by init stringa|2048_mean 6788 ns 6788 ns 4
|
|
replace bb to -- by init stringa|2048_median 6729 ns 6729 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 312 ns 313 ns 4
|
|
replace bb to -- by init stringa|2048_cv 4.60 % 4.61 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 5109286 ns 5109286 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 5120357 ns 5120357 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 31875 ns 31875 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 0.62 % 0.62 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 6102064 ns 6102064 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 6092202 ns 6092202 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 124767 ns 124767 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.04 % 2.04 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 5120455 ns 5120455 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 5144318 ns 5144318 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 88971 ns 88971 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.74 % 1.74 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 7370000 ns 7370263 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 7135263 ns 7135789 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 570862 ns 570784 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 7.75 % 7.74 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 5735 ns 5735 ns 4
|
|
Build func full name std::string;_median 5690 ns 5690 ns 4
|
|
Build func full name std::string;_stddev 162 ns 162 ns 4
|
|
Build func full name std::string;_cv 2.83 % 2.83 % 4
|
|
Build func full name std::string 1;_mean 6226 ns 6226 ns 4
|
|
Build func full name std::string 1;_median 6214 ns 6214 ns 4
|
|
Build func full name std::string 1;_stddev 383 ns 383 ns 4
|
|
Build func full name std::string 1;_cv 6.15 % 6.15 % 4
|
|
Build func full name std::stream;_mean 25795 ns 25795 ns 4
|
|
Build func full name std::stream;_median 25750 ns 25750 ns 4
|
|
Build func full name std::stream;_stddev 445 ns 445 ns 4
|
|
Build func full name std::stream;_cv 1.73 % 1.73 % 4
|
|
Build func full name stringa;_mean 2962 ns 2962 ns 4
|
|
Build func full name stringa;_median 2961 ns 2961 ns 4
|
|
Build func full name stringa;_stddev 43.3 ns 43.3 ns 4
|
|
Build func full name stringa;_cv 1.46 % 1.46 % 4
|
|
Build func full name stringa 1;_mean 3450 ns 3450 ns 4
|
|
Build func full name stringa 1;_median 3409 ns 3409 ns 4
|
|
Build func full name stringa 1;_stddev 163 ns 163 ns 4
|
|
Build func full name stringa 1;_cv 4.73 % 4.73 % 4
|
|
----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
To upper case std::wstring_mean 1276 ns 1276 ns 4
|
|
To upper case std::wstring_median 1261 ns 1261 ns 4
|
|
To upper case std::wstring_stddev 56.6 ns 56.6 ns 4
|
|
To upper case std::wstring_cv 4.44 % 4.43 % 4
|
|
To upper case lstringw<15>_mean 132 ns 132 ns 4
|
|
To upper case lstringw<15>_median 132 ns 132 ns 4
|
|
To upper case lstringw<15>_stddev 1.83 ns 1.83 ns 4
|
|
To upper case lstringw<15>_cv 1.38 % 1.38 % 4
|
|
Done!
|