mirror of https://github.com/orefkov/simstr.git
940 lines
139 KiB
Plaintext
940 lines
139 KiB
Plaintext
Benchmarks of simstr, version 1.6.5
|
|
Sources: https://github.com/orefkov/simstr
|
|
Results: https://orefkov.github.io/simstr/results.html
|
|
|
|
2026-02-08T13:37:01+03:00
|
|
Running ./benchStr
|
|
Run on (32 X 2494.22 MHz CPU s)
|
|
CPU Caches:
|
|
L1 Data 32 KiB (x16)
|
|
L1 Instruction 32 KiB (x16)
|
|
L2 Unified 256 KiB (x16)
|
|
L3 Unified 40960 KiB (x1)
|
|
Load Average: 0.00, 0.00, 0.00
|
|
***WARNING*** ASLR is enabled, the results may have unreproducible noise in them.
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Benchmark Time CPU Iterations
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and number by std to std::string_mean 202 ns 202 ns 4
|
|
Concat std::string and number by std to std::string_median 201 ns 201 ns 4
|
|
Concat std::string and number by std to std::string_stddev 3.97 ns 3.97 ns 4
|
|
Concat std::string and number by std to std::string_cv 1.97 % 1.97 % 4
|
|
Concat std::string and number by StrExpr to std::string_mean 98.4 ns 98.4 ns 4
|
|
Concat std::string and number by StrExpr to std::string_median 98.9 ns 98.9 ns 4
|
|
Concat std::string and number by StrExpr to std::string_stddev 2.35 ns 2.35 ns 4
|
|
Concat std::string and number by StrExpr to std::string_cv 2.39 % 2.39 % 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 72.3 ns 72.3 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 72.2 ns 72.2 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 2.37 ns 2.37 ns 4
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 3.28 % 3.28 % 4
|
|
Concat stringa and number by e_concat to simstr::stringa_mean 77.3 ns 77.3 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_median 77.3 ns 77.3 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_stddev 1.77 ns 1.77 ns 4
|
|
Concat stringa and number by e_concat to simstr::stringa_cv 2.29 % 2.29 % 4
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string and format hex number and literal to std::string_mean 680 ns 680 ns 4
|
|
Concat std::string and format hex number and literal to std::string_median 679 ns 679 ns 4
|
|
Concat std::string and format hex number and literal to std::string_stddev 26.9 ns 26.9 ns 4
|
|
Concat std::string and format hex number and literal to std::string_cv 3.96 % 3.96 % 4
|
|
std::format std::string and hex number by literal to std::string_mean 970 ns 970 ns 4
|
|
std::format std::string and hex number by literal to std::string_median 976 ns 976 ns 4
|
|
std::format std::string and hex number by literal to std::string_stddev 15.1 ns 15.1 ns 4
|
|
std::format std::string and hex number by literal to std::string_cv 1.56 % 1.56 % 4
|
|
Concat std::string and std::to_chars and string to std::string_mean 189 ns 189 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_median 189 ns 189 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_stddev 2.14 ns 2.14 ns 4
|
|
Concat std::string and std::to_chars and string to std::string_cv 1.13 % 1.13 % 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_mean 133 ns 133 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_median 133 ns 133 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_stddev 8.36 ns 8.36 ns 4
|
|
Concat std::string and hex number and literal by StrExpr to std::string_cv 6.31 % 6.31 % 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 123 ns 123 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 123 ns 123 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.875 ns 0.875 ns 4
|
|
Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.71 % 0.71 % 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 129 ns 129 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_median 129 ns 129 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.78 ns 1.78 ns 4
|
|
Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.37 % 1.37 % 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_mean 176 ns 176 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_median 176 ns 176 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 9.07 ns 9.07 ns 4
|
|
Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.16 % 5.16 % 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 296 ns 296 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 295 ns 295 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 4.60 ns 4.60 ns 4
|
|
Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.55 % 1.55 % 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 261 ns 261 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 262 ns 262 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.87 ns 4.87 ns 4
|
|
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.86 % 1.86 % 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 322 ns 322 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 323 ns 323 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.62 ns 4.62 ns 4
|
|
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.44 % 1.44 % 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_mean 600 ns 600 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_median 598 ns 598 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_stddev 14.6 ns 14.6 ns 4
|
|
e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.43 % 2.43 % 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 767 ns 767 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 766 ns 766 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 13.7 ns 13.7 ns 4
|
|
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.79 % 1.79 % 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 814 ns 814 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 810 ns 810 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.6 ns 30.6 ns 4
|
|
fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.76 % 3.76 % 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1245 ns 1245 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_median 1242 ns 1242 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 8.71 ns 8.71 ns 4
|
|
std::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.70 % 0.70 % 4
|
|
std::vformat(pattern, std::make_format_args(i))_mean 1135 ns 1135 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_median 1130 ns 1130 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_stddev 22.2 ns 22.2 ns 4
|
|
std::vformat(pattern, std::make_format_args(i))_cv 1.95 % 1.95 % 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2152 ns 2152 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2144 ns 2144 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 65.0 ns 65.0 ns 4
|
|
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.02 % 3.02 % 4
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat std::string by std to std::string_mean 45.2 ns 45.2 ns 4
|
|
Concat std::string by std to std::string_median 44.6 ns 44.6 ns 4
|
|
Concat std::string by std to std::string_stddev 2.09 ns 2.09 ns 4
|
|
Concat std::string by std to std::string_cv 4.62 % 4.62 % 4
|
|
Concat std::string by StrExpr to std::string_mean 36.1 ns 36.1 ns 4
|
|
Concat std::string by StrExpr to std::string_median 36.5 ns 36.5 ns 4
|
|
Concat std::string by StrExpr to std::string_stddev 0.895 ns 0.895 ns 4
|
|
Concat std::string by StrExpr to std::string_cv 2.48 % 2.48 % 4
|
|
Concat stringa by StrExpr to stringa_mean 27.8 ns 27.8 ns 4
|
|
Concat stringa by StrExpr to stringa_median 27.7 ns 27.7 ns 4
|
|
Concat stringa by StrExpr to stringa_stddev 0.173 ns 0.173 ns 4
|
|
Concat stringa by StrExpr to stringa_cv 0.62 % 0.62 % 4
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Find concat three std::string_mean 131 ns 131 ns 4
|
|
Find concat three std::string_median 130 ns 130 ns 4
|
|
Find concat three std::string_stddev 3.53 ns 3.53 ns 4
|
|
Find concat three std::string_cv 2.69 % 2.69 % 4
|
|
Find concat three strexpr_mean 43.5 ns 43.5 ns 4
|
|
Find concat three strexpr_median 42.1 ns 42.1 ns 4
|
|
Find concat three strexpr_stddev 3.99 ns 3.99 ns 4
|
|
Find concat three strexpr_cv 9.17 % 9.17 % 4
|
|
Find concat three simstr_mean 20.3 ns 20.3 ns 4
|
|
Find concat three simstr_median 20.3 ns 20.3 ns 4
|
|
Find concat three simstr_stddev 0.248 ns 0.248 ns 4
|
|
Find concat three simstr_cv 1.23 % 1.23 % 4
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
BuildTypeNameStr 0/0_mean 12.3 ns 12.3 ns 4
|
|
BuildTypeNameStr 0/0_median 11.9 ns 11.9 ns 4
|
|
BuildTypeNameStr 0/0_stddev 1.59 ns 1.59 ns 4
|
|
BuildTypeNameStr 0/0_cv 12.95 % 12.95 % 4
|
|
BuildTypeNameExp 0/0_mean 7.07 ns 7.07 ns 4
|
|
BuildTypeNameExp 0/0_median 7.07 ns 7.07 ns 4
|
|
BuildTypeNameExp 0/0_stddev 0.101 ns 0.101 ns 4
|
|
BuildTypeNameExp 0/0_cv 1.43 % 1.43 % 4
|
|
BuildTypeNameSim 0/0_mean 5.18 ns 5.18 ns 4
|
|
BuildTypeNameSim 0/0_median 5.08 ns 5.08 ns 4
|
|
BuildTypeNameSim 0/0_stddev 0.354 ns 0.354 ns 4
|
|
BuildTypeNameSim 0/0_cv 6.84 % 6.84 % 4
|
|
BuildTypeNameStr 10/10_mean 86.8 ns 86.8 ns 4
|
|
BuildTypeNameStr 10/10_median 86.9 ns 86.9 ns 4
|
|
BuildTypeNameStr 10/10_stddev 2.33 ns 2.33 ns 4
|
|
BuildTypeNameStr 10/10_cv 2.69 % 2.69 % 4
|
|
BuildTypeNameExp 10/10_mean 27.5 ns 27.5 ns 4
|
|
BuildTypeNameExp 10/10_median 27.5 ns 27.5 ns 4
|
|
BuildTypeNameExp 10/10_stddev 0.367 ns 0.367 ns 4
|
|
BuildTypeNameExp 10/10_cv 1.33 % 1.33 % 4
|
|
BuildTypeNameSim 10/10_mean 22.4 ns 22.4 ns 4
|
|
BuildTypeNameSim 10/10_median 22.5 ns 22.5 ns 4
|
|
BuildTypeNameSim 10/10_stddev 0.578 ns 0.578 ns 4
|
|
BuildTypeNameSim 10/10_cv 2.58 % 2.58 % 4
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Concat with replace str_mean 235 ns 235 ns 4
|
|
Concat with replace str_median 236 ns 236 ns 4
|
|
Concat with replace str_stddev 8.50 ns 8.50 ns 4
|
|
Concat with replace str_cv 3.61 % 3.61 % 4
|
|
Concat with replace exp_mean 136 ns 136 ns 4
|
|
Concat with replace exp_median 137 ns 137 ns 4
|
|
Concat with replace exp_stddev 1.96 ns 1.96 ns 4
|
|
Concat with replace exp_cv 1.44 % 1.44 % 4
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e;_mean 1.11 ns 1.11 ns 4
|
|
std::string e;_median 1.11 ns 1.11 ns 4
|
|
std::string e;_stddev 0.018 ns 0.018 ns 4
|
|
std::string e;_cv 1.64 % 1.64 % 4
|
|
std::string_view e;_mean 0.753 ns 0.753 ns 4
|
|
std::string_view e;_median 0.753 ns 0.753 ns 4
|
|
std::string_view e;_stddev 0.007 ns 0.007 ns 4
|
|
std::string_view e;_cv 0.93 % 0.93 % 4
|
|
ssa e;_mean 0.186 ns 0.186 ns 4
|
|
ssa e;_median 0.186 ns 0.186 ns 4
|
|
ssa e;_stddev 0.001 ns 0.001 ns 4
|
|
ssa e;_cv 0.77 % 0.77 % 4
|
|
stringa e;_mean 0.757 ns 0.757 ns 4
|
|
stringa e;_median 0.761 ns 0.761 ns 4
|
|
stringa e;_stddev 0.014 ns 0.014 ns 4
|
|
stringa e;_cv 1.85 % 1.85 % 4
|
|
lstringa<20> e;_mean 1.13 ns 1.13 ns 4
|
|
lstringa<20> e;_median 1.12 ns 1.12 ns 4
|
|
lstringa<20> e;_stddev 0.013 ns 0.013 ns 4
|
|
lstringa<20> e;_cv 1.15 % 1.15 % 4
|
|
lstringa<40> e;_mean 1.17 ns 1.17 ns 4
|
|
lstringa<40> e;_median 1.17 ns 1.17 ns 4
|
|
lstringa<40> e;_stddev 0.047 ns 0.047 ns 4
|
|
lstringa<40> e;_cv 4.02 % 4.02 % 4
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text";_mean 1.87 ns 1.87 ns 4
|
|
std::string e = "Test text";_median 1.87 ns 1.87 ns 4
|
|
std::string e = "Test text";_stddev 0.028 ns 0.028 ns 4
|
|
std::string e = "Test text";_cv 1.51 % 1.51 % 4
|
|
std::string_view e = "Test text";_mean 0.749 ns 0.749 ns 4
|
|
std::string_view e = "Test text";_median 0.748 ns 0.748 ns 4
|
|
std::string_view e = "Test text";_stddev 0.013 ns 0.013 ns 4
|
|
std::string_view e = "Test text";_cv 1.75 % 1.75 % 4
|
|
ssa e = "Test text";_mean 0.755 ns 0.755 ns 4
|
|
ssa e = "Test text";_median 0.753 ns 0.753 ns 4
|
|
ssa e = "Test text";_stddev 0.016 ns 0.016 ns 4
|
|
ssa e = "Test text";_cv 2.16 % 2.16 % 4
|
|
stringa e = "Test text";_mean 1.13 ns 1.13 ns 4
|
|
stringa e = "Test text";_median 1.13 ns 1.13 ns 4
|
|
stringa e = "Test text";_stddev 0.013 ns 0.013 ns 4
|
|
stringa e = "Test text";_cv 1.12 % 1.12 % 4
|
|
lstringa<20> e = "Test text";_mean 1.92 ns 1.92 ns 4
|
|
lstringa<20> e = "Test text";_median 1.91 ns 1.91 ns 4
|
|
lstringa<20> e = "Test text";_stddev 0.027 ns 0.027 ns 4
|
|
lstringa<20> e = "Test text";_cv 1.41 % 1.41 % 4
|
|
lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 4
|
|
lstringa<40> e = "Test text";_median 1.87 ns 1.87 ns 4
|
|
lstringa<40> e = "Test text";_stddev 0.044 ns 0.044 ns 4
|
|
lstringa<40> e = "Test text";_cv 2.34 % 2.34 % 4
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "123456789012345678901234567890";_mean 18.6 ns 18.6 ns 4
|
|
std::string e = "123456789012345678901234567890";_median 18.5 ns 18.5 ns 4
|
|
std::string e = "123456789012345678901234567890";_stddev 0.555 ns 0.555 ns 4
|
|
std::string e = "123456789012345678901234567890";_cv 2.98 % 2.98 % 4
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.751 ns 0.751 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_median 0.751 ns 0.751 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4
|
|
std::string_view e = "123456789012345678901234567890";_cv 0.98 % 0.98 % 4
|
|
ssa e = "123456789012345678901234567890";_mean 0.744 ns 0.744 ns 4
|
|
ssa e = "123456789012345678901234567890";_median 0.743 ns 0.743 ns 4
|
|
ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4
|
|
ssa e = "123456789012345678901234567890";_cv 1.01 % 1.01 % 4
|
|
stringa e = "123456789012345678901234567890";_mean 1.14 ns 1.14 ns 4
|
|
stringa e = "123456789012345678901234567890";_median 1.13 ns 1.13 ns 4
|
|
stringa e = "123456789012345678901234567890";_stddev 0.027 ns 0.027 ns 4
|
|
stringa e = "123456789012345678901234567890";_cv 2.33 % 2.33 % 4
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 20.8 ns 20.8 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_median 20.8 ns 20.8 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 0.227 ns 0.227 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 1.09 % 1.09 % 4
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 1.87 ns 1.87 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_median 1.86 ns 1.86 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.038 ns 0.038 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.01 % 2.01 % 4
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string e = "Test text"; auto c{e};_mean 5.65 ns 5.65 ns 4
|
|
std::string e = "Test text"; auto c{e};_median 5.63 ns 5.63 ns 4
|
|
std::string e = "Test text"; auto c{e};_stddev 0.091 ns 0.091 ns 4
|
|
std::string e = "Test text"; auto c{e};_cv 1.62 % 1.62 % 4
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_median 0.375 ns 0.375 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4
|
|
std::string_view e = "Test text"; auto c{e};_cv 1.21 % 1.21 % 4
|
|
ssa e = "Test text"; auto c{e};_mean 0.394 ns 0.394 ns 4
|
|
ssa e = "Test text"; auto c{e};_median 0.388 ns 0.388 ns 4
|
|
ssa e = "Test text"; auto c{e};_stddev 0.026 ns 0.026 ns 4
|
|
ssa e = "Test text"; auto c{e};_cv 6.64 % 6.64 % 4
|
|
stringa e = "Test text"; auto c{e};_mean 1.17 ns 1.17 ns 4
|
|
stringa e = "Test text"; auto c{e};_median 1.16 ns 1.16 ns 4
|
|
stringa e = "Test text"; auto c{e};_stddev 0.027 ns 0.027 ns 4
|
|
stringa e = "Test text"; auto c{e};_cv 2.33 % 2.33 % 4
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 4.69 ns 4.69 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_median 4.68 ns 4.68 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.065 ns 0.065 ns 4
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 1.38 % 1.38 % 4
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 4.96 ns 4.96 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_median 4.96 ns 4.96 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.168 ns 0.168 ns 4
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 3.40 % 3.40 % 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 23.3 ns 23.3 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 23.4 ns 23.4 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.499 ns 0.499 ns 4
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.14 % 2.14 % 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.750 ns 0.750 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.753 ns 0.753 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.013 ns 0.013 ns 4
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.71 % 1.71 % 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.744 ns 0.744 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.743 ns 0.743 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.008 ns 0.008 ns 4
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.04 % 1.04 % 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.023 ns 0.023 ns 4
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.06 % 2.06 % 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.7 ns 19.7 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.6 ns 19.6 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.256 ns 0.256 ns 4
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.30 % 1.30 % 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.59 ns 4.59 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.59 ns 4.59 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.076 ns 0.076 ns 4
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.65 % 1.65 % 4
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find;_mean 7.01 ns 7.01 ns 4
|
|
std::string::find;_median 7.00 ns 7.00 ns 4
|
|
std::string::find;_stddev 0.162 ns 0.162 ns 4
|
|
std::string::find;_cv 2.32 % 2.32 % 4
|
|
std::string_view::find;_mean 6.92 ns 6.92 ns 4
|
|
std::string_view::find;_median 6.95 ns 6.95 ns 4
|
|
std::string_view::find;_stddev 0.168 ns 0.168 ns 4
|
|
std::string_view::find;_cv 2.43 % 2.43 % 4
|
|
ssa::find;_mean 6.48 ns 6.48 ns 4
|
|
ssa::find;_median 6.49 ns 6.49 ns 4
|
|
ssa::find;_stddev 0.101 ns 0.101 ns 4
|
|
ssa::find;_cv 1.56 % 1.56 % 4
|
|
stringa::find;_mean 6.86 ns 6.86 ns 4
|
|
stringa::find;_median 6.86 ns 6.86 ns 4
|
|
stringa::find;_stddev 0.027 ns 0.027 ns 4
|
|
stringa::find;_cv 0.40 % 0.40 % 4
|
|
lstringa<20>::find;_mean 6.56 ns 6.56 ns 4
|
|
lstringa<20>::find;_median 6.54 ns 6.54 ns 4
|
|
lstringa<20>::find;_stddev 0.052 ns 0.052 ns 4
|
|
lstringa<20>::find;_cv 0.80 % 0.80 % 4
|
|
lstringa<40>::find;_mean 6.50 ns 6.50 ns 4
|
|
lstringa<40>::find;_median 6.46 ns 6.46 ns 4
|
|
lstringa<40>::find;_stddev 0.136 ns 0.136 ns 4
|
|
lstringa<40>::find;_cv 2.10 % 2.10 % 4
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string copy{str_with_len_N};/15_mean 5.84 ns 5.84 ns 4
|
|
std::string copy{str_with_len_N};/15_median 5.85 ns 5.85 ns 4
|
|
std::string copy{str_with_len_N};/15_stddev 0.117 ns 0.117 ns 4
|
|
std::string copy{str_with_len_N};/15_cv 2.00 % 2.00 % 4
|
|
std::string copy{str_with_len_N};/16_mean 25.1 ns 25.1 ns 4
|
|
std::string copy{str_with_len_N};/16_median 25.1 ns 25.1 ns 4
|
|
std::string copy{str_with_len_N};/16_stddev 0.396 ns 0.396 ns 4
|
|
std::string copy{str_with_len_N};/16_cv 1.58 % 1.58 % 4
|
|
std::string copy{str_with_len_N};/23_mean 24.9 ns 24.9 ns 4
|
|
std::string copy{str_with_len_N};/23_median 24.9 ns 24.9 ns 4
|
|
std::string copy{str_with_len_N};/23_stddev 0.205 ns 0.205 ns 4
|
|
std::string copy{str_with_len_N};/23_cv 0.82 % 0.82 % 4
|
|
std::string copy{str_with_len_N};/24_mean 24.9 ns 24.9 ns 4
|
|
std::string copy{str_with_len_N};/24_median 25.0 ns 25.0 ns 4
|
|
std::string copy{str_with_len_N};/24_stddev 0.206 ns 0.206 ns 4
|
|
std::string copy{str_with_len_N};/24_cv 0.83 % 0.83 % 4
|
|
std::string copy{str_with_len_N};/32_mean 24.8 ns 24.8 ns 4
|
|
std::string copy{str_with_len_N};/32_median 24.8 ns 24.8 ns 4
|
|
std::string copy{str_with_len_N};/32_stddev 0.129 ns 0.129 ns 4
|
|
std::string copy{str_with_len_N};/32_cv 0.52 % 0.52 % 4
|
|
std::string copy{str_with_len_N};/64_mean 24.7 ns 24.7 ns 4
|
|
std::string copy{str_with_len_N};/64_median 24.8 ns 24.8 ns 4
|
|
std::string copy{str_with_len_N};/64_stddev 0.312 ns 0.312 ns 4
|
|
std::string copy{str_with_len_N};/64_cv 1.26 % 1.26 % 4
|
|
std::string copy{str_with_len_N};/128_mean 26.2 ns 26.2 ns 4
|
|
std::string copy{str_with_len_N};/128_median 26.4 ns 26.4 ns 4
|
|
std::string copy{str_with_len_N};/128_stddev 0.772 ns 0.772 ns 4
|
|
std::string copy{str_with_len_N};/128_cv 2.94 % 2.94 % 4
|
|
std::string copy{str_with_len_N};/256_mean 26.7 ns 26.7 ns 4
|
|
std::string copy{str_with_len_N};/256_median 26.6 ns 26.6 ns 4
|
|
std::string copy{str_with_len_N};/256_stddev 0.415 ns 0.415 ns 4
|
|
std::string copy{str_with_len_N};/256_cv 1.56 % 1.56 % 4
|
|
std::string copy{str_with_len_N};/512_mean 32.7 ns 32.7 ns 4
|
|
std::string copy{str_with_len_N};/512_median 32.7 ns 32.7 ns 4
|
|
std::string copy{str_with_len_N};/512_stddev 0.798 ns 0.798 ns 4
|
|
std::string copy{str_with_len_N};/512_cv 2.44 % 2.44 % 4
|
|
std::string copy{str_with_len_N};/1024_mean 52.0 ns 52.0 ns 4
|
|
std::string copy{str_with_len_N};/1024_median 52.4 ns 52.4 ns 4
|
|
std::string copy{str_with_len_N};/1024_stddev 2.61 ns 2.61 ns 4
|
|
std::string copy{str_with_len_N};/1024_cv 5.02 % 5.02 % 4
|
|
std::string copy{str_with_len_N};/2048_mean 133 ns 133 ns 4
|
|
std::string copy{str_with_len_N};/2048_median 134 ns 134 ns 4
|
|
std::string copy{str_with_len_N};/2048_stddev 3.14 ns 3.14 ns 4
|
|
std::string copy{str_with_len_N};/2048_cv 2.36 % 2.36 % 4
|
|
std::string copy{str_with_len_N};/4096_mean 158 ns 158 ns 4
|
|
std::string copy{str_with_len_N};/4096_median 157 ns 157 ns 4
|
|
std::string copy{str_with_len_N};/4096_stddev 2.93 ns 2.93 ns 4
|
|
std::string copy{str_with_len_N};/4096_cv 1.86 % 1.86 % 4
|
|
stringa copy{str_with_len_N};/15_mean 1.33 ns 1.33 ns 4
|
|
stringa copy{str_with_len_N};/15_median 1.32 ns 1.32 ns 4
|
|
stringa copy{str_with_len_N};/15_stddev 0.044 ns 0.044 ns 4
|
|
stringa copy{str_with_len_N};/15_cv 3.31 % 3.31 % 4
|
|
stringa copy{str_with_len_N};/16_mean 1.34 ns 1.34 ns 4
|
|
stringa copy{str_with_len_N};/16_median 1.34 ns 1.34 ns 4
|
|
stringa copy{str_with_len_N};/16_stddev 0.032 ns 0.032 ns 4
|
|
stringa copy{str_with_len_N};/16_cv 2.39 % 2.39 % 4
|
|
stringa copy{str_with_len_N};/23_mean 1.32 ns 1.32 ns 4
|
|
stringa copy{str_with_len_N};/23_median 1.32 ns 1.32 ns 4
|
|
stringa copy{str_with_len_N};/23_stddev 0.014 ns 0.014 ns 4
|
|
stringa copy{str_with_len_N};/23_cv 1.08 % 1.08 % 4
|
|
stringa copy{str_with_len_N};/24_mean 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/24_median 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/24_stddev 0.115 ns 0.115 ns 4
|
|
stringa copy{str_with_len_N};/24_cv 0.70 % 0.70 % 4
|
|
stringa copy{str_with_len_N};/32_mean 16.5 ns 16.5 ns 4
|
|
stringa copy{str_with_len_N};/32_median 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/32_stddev 0.199 ns 0.199 ns 4
|
|
stringa copy{str_with_len_N};/32_cv 1.20 % 1.20 % 4
|
|
stringa copy{str_with_len_N};/64_mean 16.5 ns 16.5 ns 4
|
|
stringa copy{str_with_len_N};/64_median 16.5 ns 16.5 ns 4
|
|
stringa copy{str_with_len_N};/64_stddev 0.197 ns 0.197 ns 4
|
|
stringa copy{str_with_len_N};/64_cv 1.19 % 1.19 % 4
|
|
stringa copy{str_with_len_N};/128_mean 16.5 ns 16.5 ns 4
|
|
stringa copy{str_with_len_N};/128_median 16.5 ns 16.5 ns 4
|
|
stringa copy{str_with_len_N};/128_stddev 0.180 ns 0.180 ns 4
|
|
stringa copy{str_with_len_N};/128_cv 1.09 % 1.09 % 4
|
|
stringa copy{str_with_len_N};/256_mean 16.6 ns 16.6 ns 4
|
|
stringa copy{str_with_len_N};/256_median 16.6 ns 16.6 ns 4
|
|
stringa copy{str_with_len_N};/256_stddev 0.190 ns 0.190 ns 4
|
|
stringa copy{str_with_len_N};/256_cv 1.15 % 1.15 % 4
|
|
stringa copy{str_with_len_N};/512_mean 16.8 ns 16.8 ns 4
|
|
stringa copy{str_with_len_N};/512_median 16.7 ns 16.7 ns 4
|
|
stringa copy{str_with_len_N};/512_stddev 0.423 ns 0.423 ns 4
|
|
stringa copy{str_with_len_N};/512_cv 2.52 % 2.52 % 4
|
|
stringa copy{str_with_len_N};/1024_mean 16.9 ns 16.9 ns 4
|
|
stringa copy{str_with_len_N};/1024_median 16.9 ns 16.9 ns 4
|
|
stringa copy{str_with_len_N};/1024_stddev 0.159 ns 0.159 ns 4
|
|
stringa copy{str_with_len_N};/1024_cv 0.94 % 0.94 % 4
|
|
stringa copy{str_with_len_N};/2048_mean 17.4 ns 17.4 ns 4
|
|
stringa copy{str_with_len_N};/2048_median 17.3 ns 17.3 ns 4
|
|
stringa copy{str_with_len_N};/2048_stddev 0.457 ns 0.457 ns 4
|
|
stringa copy{str_with_len_N};/2048_cv 2.64 % 2.64 % 4
|
|
stringa copy{str_with_len_N};/4096_mean 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/4096_median 16.4 ns 16.4 ns 4
|
|
stringa copy{str_with_len_N};/4096_stddev 0.072 ns 0.072 ns 4
|
|
stringa copy{str_with_len_N};/4096_cv 0.44 % 0.44 % 4
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.63 ns 4.63 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.60 ns 4.60 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.070 ns 0.070 ns 4
|
|
lstringa<16> copy{str_with_len_N};/15_cv 1.51 % 1.51 % 4
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.66 ns 4.66 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.71 ns 4.71 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.159 ns 0.159 ns 4
|
|
lstringa<16> copy{str_with_len_N};/16_cv 3.42 % 3.42 % 4
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.59 ns 4.59 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.58 ns 4.58 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.057 ns 0.057 ns 4
|
|
lstringa<16> copy{str_with_len_N};/23_cv 1.25 % 1.25 % 4
|
|
lstringa<16> copy{str_with_len_N};/24_mean 24.7 ns 24.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_median 24.7 ns 24.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 0.143 ns 0.143 ns 4
|
|
lstringa<16> copy{str_with_len_N};/24_cv 0.58 % 0.58 % 4
|
|
lstringa<16> copy{str_with_len_N};/32_mean 24.7 ns 24.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_median 24.5 ns 24.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 0.377 ns 0.377 ns 4
|
|
lstringa<16> copy{str_with_len_N};/32_cv 1.53 % 1.53 % 4
|
|
lstringa<16> copy{str_with_len_N};/64_mean 26.0 ns 26.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_median 26.0 ns 26.0 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 0.367 ns 0.367 ns 4
|
|
lstringa<16> copy{str_with_len_N};/64_cv 1.41 % 1.41 % 4
|
|
lstringa<16> copy{str_with_len_N};/128_mean 26.7 ns 26.7 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 0.420 ns 0.420 ns 4
|
|
lstringa<16> copy{str_with_len_N};/128_cv 1.57 % 1.57 % 4
|
|
lstringa<16> copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_median 27.3 ns 27.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 0.589 ns 0.589 ns 4
|
|
lstringa<16> copy{str_with_len_N};/256_cv 2.14 % 2.14 % 4
|
|
lstringa<16> copy{str_with_len_N};/512_mean 30.3 ns 30.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_median 30.3 ns 30.3 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 0.797 ns 0.797 ns 4
|
|
lstringa<16> copy{str_with_len_N};/512_cv 2.63 % 2.63 % 4
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 114 ns 114 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_median 114 ns 114 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 1.69 ns 1.69 ns 4
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 1.48 % 1.49 % 4
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 125 ns 125 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_median 125 ns 125 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 3.65 ns 3.65 ns 4
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 2.92 % 2.92 % 4
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 131 ns 131 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_median 131 ns 131 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 1.56 ns 1.56 ns 4
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 1.18 % 1.18 % 4
|
|
lstringa<512> copy{str_with_len_N};/15_mean 4.50 ns 4.50 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_median 4.50 ns 4.50 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.064 ns 0.064 ns 4
|
|
lstringa<512> copy{str_with_len_N};/15_cv 1.42 % 1.42 % 4
|
|
lstringa<512> copy{str_with_len_N};/16_mean 4.64 ns 4.64 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_median 4.63 ns 4.63 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.128 ns 0.128 ns 4
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.75 % 2.75 % 4
|
|
lstringa<512> copy{str_with_len_N};/23_mean 4.61 ns 4.61 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_median 4.60 ns 4.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.062 ns 0.062 ns 4
|
|
lstringa<512> copy{str_with_len_N};/23_cv 1.35 % 1.35 % 4
|
|
lstringa<512> copy{str_with_len_N};/24_mean 4.60 ns 4.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_median 4.60 ns 4.60 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.131 ns 0.131 ns 4
|
|
lstringa<512> copy{str_with_len_N};/24_cv 2.85 % 2.85 % 4
|
|
lstringa<512> copy{str_with_len_N};/32_mean 4.17 ns 4.17 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_median 4.18 ns 4.18 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.038 ns 0.038 ns 4
|
|
lstringa<512> copy{str_with_len_N};/32_cv 0.91 % 0.91 % 4
|
|
lstringa<512> copy{str_with_len_N};/64_mean 5.83 ns 5.83 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_median 5.83 ns 5.83 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.151 ns 0.151 ns 4
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.58 % 2.58 % 4
|
|
lstringa<512> copy{str_with_len_N};/128_mean 7.34 ns 7.34 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_median 7.36 ns 7.36 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.257 ns 0.257 ns 4
|
|
lstringa<512> copy{str_with_len_N};/128_cv 3.50 % 3.50 % 4
|
|
lstringa<512> copy{str_with_len_N};/256_mean 17.3 ns 17.3 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_median 17.4 ns 17.4 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.167 ns 0.167 ns 4
|
|
lstringa<512> copy{str_with_len_N};/256_cv 0.97 % 0.97 % 4
|
|
lstringa<512> copy{str_with_len_N};/512_mean 10.6 ns 10.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_median 10.6 ns 10.6 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 0.149 ns 0.149 ns 4
|
|
lstringa<512> copy{str_with_len_N};/512_cv 1.41 % 1.41 % 4
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 109 ns 109 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_median 109 ns 109 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 1.76 ns 1.76 ns 4
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 1.61 % 1.61 % 4
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 118 ns 118 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_median 116 ns 116 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 5.58 ns 5.58 ns 4
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 4.75 % 4.75 % 4
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 132 ns 132 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_median 132 ns 132 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 3.44 ns 3.44 ns 4
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.62 % 2.62 % 4
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 27.4 ns 27.4 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.3 ns 27.3 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.353 ns 0.353 ns 4
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.29 % 1.29 % 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.1 ns 13.1 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.1 ns 13.1 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.112 ns 0.112 ns 4
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.85 % 0.85 % 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.35 ns 8.35 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.35 ns 8.35 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.164 ns 0.164 ns 4
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.96 % 1.96 % 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.31 ns 8.31 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.32 ns 8.32 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.134 ns 0.134 ns 4
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.62 % 1.62 % 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 8.29 ns 8.29 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 8.24 ns 8.24 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.217 ns 0.217 ns 4
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.61 % 2.61 % 4
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.8 ns 23.8 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.8 ns 23.8 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.245 ns 0.245 ns 4
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.03 % 1.03 % 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.88 ns 9.88 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.87 ns 9.87 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.178 ns 0.178 ns 4
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.80 % 1.80 % 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.40 ns 8.40 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.39 ns 8.39 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.143 ns 0.143 ns 4
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.71 % 1.71 % 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 8.50 ns 8.50 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 8.45 ns 8.45 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.258 ns 0.258 ns 4
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.04 % 3.04 % 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 7.90 ns 7.90 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 7.91 ns 7.91 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.091 ns 0.091 ns 4
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.16 % 1.16 % 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 29.3 ns 29.3 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.4 ns 29.4 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.460 ns 0.460 ns 4
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.57 % 1.57 % 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 16.0 ns 16.0 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 15.9 ns 15.9 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.378 ns 0.378 ns 4
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 2.37 % 2.37 % 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 10.9 ns 10.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 10.9 ns 10.9 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.370 ns 0.370 ns 4
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 3.39 % 3.39 % 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 64.3 ns 64.3 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.2 ns 64.2 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.942 ns 0.942 ns 4
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.47 % 1.47 % 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.7 ns 24.7 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.5 ns 24.5 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.848 ns 0.848 ns 4
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.43 % 3.43 % 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.0 ns 25.0 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 25.1 ns 25.1 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.458 ns 0.458 ns 4
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.83 % 1.83 % 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 1394 ns 1394 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 1390 ns 1390 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.9 ns 35.9 ns 4
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.58 % 2.58 % 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 388 ns 388 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 386 ns 386 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 11.3 ns 11.3 ns 4
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.92 % 2.92 % 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 401 ns 401 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 402 ns 402 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.41 ns 3.41 ns 4
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.85 % 0.85 % 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 285 ns 285 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 285 ns 285 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.10 % 5.10 % 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 262 ns 262 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 269 ns 269 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 20.1 ns 20.1 ns 4
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.67 % 7.67 % 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 143 ns 143 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 142 ns 142 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.53 ns 1.53 ns 4
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.07 % 1.07 % 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 1403 ns 1403 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1396 ns 1396 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 17.6 ns 17.6 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.25 % 1.25 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1269 ns 1269 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1257 ns 1257 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 44.8 ns 44.8 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.53 % 3.53 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 466 ns 466 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 467 ns 467 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.7 ns 11.7 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.50 % 2.50 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 402 ns 402 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 395 ns 395 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 28.5 ns 28.5 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.10 % 7.10 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 341 ns 341 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 347 ns 347 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.7 ns 18.7 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.48 % 5.48 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 249 ns 249 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 249 ns 249 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.83 ns 4.83 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.94 % 1.94 % 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 74823 ns 74823 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 74814 ns 74815 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1637 ns 1637 ns 4
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.19 % 2.19 % 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 72449 ns 72449 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 72579 ns 72579 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 995 ns 995 ns 4
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.37 % 1.37 % 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21114 ns 21114 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21059 ns 21059 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 274 ns 274 ns 4
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.30 % 1.30 % 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17678 ns 17678 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17758 ns 17758 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 169 ns 169 ns 4
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.96 % 0.96 % 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17782 ns 17782 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17753 ns 17753 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 247 ns 247 ns 4
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.39 % 1.39 % 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17685 ns 17685 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17661 ns 17661 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 200 ns 200 ns 4
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.13 % 1.13 % 4
|
|
-- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 1413 ns 1413 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 1410 ns 1410 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 28.4 ns 28.4 ns 4
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.01 % 2.01 % 4
|
|
std::string str; ... str += str_var1 + str_var2;_mean 1410 ns 1410 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_median 1401 ns 1401 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 23.4 ns 23.4 ns 4
|
|
std::string str; ... str += str_var1 + str_var2;_cv 1.66 % 1.66 % 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 535 ns 535 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 538 ns 538 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.19 ns 8.19 ns 4
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.53 % 1.53 % 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 459 ns 459 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 467 ns 467 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 22.4 ns 22.4 ns 4
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.88 % 4.88 % 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 405 ns 405 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 409 ns 409 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.0 ns 11.0 ns 4
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.71 % 2.71 % 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 310 ns 310 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 309 ns 309 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.12 ns 5.12 ns 4
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.65 % 1.65 % 4
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::stringstream str; str << "test = " << k << " times";_mean 3059 ns 3059 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_median 3051 ns 3051 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 29.0 ns 29.0 ns 4
|
|
std::stringstream str; str << "test = " << k << " times";_cv 0.95 % 0.95 % 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 449 ns 449 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 452 ns 452 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 8.07 ns 8.07 ns 4
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 1.80 % 1.80 % 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1525 ns 1525 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1527 ns 1527 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 32.5 ns 32.5 ns 4
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.13 % 2.13 % 4
|
|
std::string str = std::format("test = {} times", k);_mean 1283 ns 1283 ns 4
|
|
std::string str = std::format("test = {} times", k);_median 1283 ns 1283 ns 4
|
|
std::string str = std::format("test = {} times", k);_stddev 14.0 ns 14.0 ns 4
|
|
std::string str = std::format("test = {} times", k);_cv 1.09 % 1.09 % 4
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 1688 ns 1688 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_median 1690 ns 1690 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 32.7 ns 32.7 ns 4
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 1.94 % 1.94 % 4
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1113 ns 1113 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_median 1117 ns 1117 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 12.3 ns 12.3 ns 4
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 1.10 % 1.10 % 4
|
|
lstringa<8> str = "test = " + k + " times";_mean 315 ns 315 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_median 314 ns 314 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_stddev 4.53 ns 4.53 ns 4
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.44 % 1.44 % 4
|
|
lstringa<32> str = "test = " + k + " times";_mean 168 ns 168 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_median 168 ns 168 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_stddev 3.29 ns 3.29 ns 4
|
|
lstringa<32> str = "test = " + k + " times";_cv 1.95 % 1.95 % 4
|
|
stringa str = "test = " + k + " times";_mean 159 ns 159 ns 4
|
|
stringa str = "test = " + k + " times";_median 159 ns 159 ns 4
|
|
stringa str = "test = " + k + " times";_stddev 1.97 ns 1.97 ns 4
|
|
stringa str = "test = " + k + " times";_cv 1.24 % 1.24 % 4
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
std::string::find + substr + std::strtol_mean 271 ns 271 ns 4
|
|
std::string::find + substr + std::strtol_median 271 ns 271 ns 4
|
|
std::string::find + substr + std::strtol_stddev 4.52 ns 4.52 ns 4
|
|
std::string::find + substr + std::strtol_cv 1.67 % 1.67 % 4
|
|
ssa::splitter + ssa::as_int_mean 135 ns 135 ns 4
|
|
ssa::splitter + ssa::as_int_median 136 ns 136 ns 4
|
|
ssa::splitter + ssa::as_int_stddev 2.50 ns 2.50 ns 4
|
|
ssa::splitter + ssa::as_int_cv 1.85 % 1.85 % 4
|
|
ssa::splitf + functor_mean 133 ns 133 ns 4
|
|
ssa::splitf + functor_median 133 ns 133 ns 4
|
|
ssa::splitf + functor_stddev 1.73 ns 1.73 ns 4
|
|
ssa::splitf + functor_cv 1.30 % 1.30 % 4
|
|
-- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 846 ns 846 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 842 ns 842 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 11.8 ns 11.8 ns 4
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 1.40 % 1.40 % 4
|
|
replace symbols with std::string find_first_of + replace_mean 2347 ns 2347 ns 4
|
|
replace symbols with std::string find_first_of + replace_median 2347 ns 2347 ns 4
|
|
replace symbols with std::string find_first_of + replace_stddev 11.5 ns 11.5 ns 4
|
|
replace symbols with std::string find_first_of + replace_cv 0.49 % 0.49 % 4
|
|
replace symbols with std::string_view find_first_of + copy_mean 1136 ns 1136 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_median 1096 ns 1096 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_stddev 115 ns 115 ns 4
|
|
replace symbols with std::string_view find_first_of + copy_cv 10.13 % 10.13 % 4
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1475 ns 1475 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1468 ns 1468 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 19.9 ns 19.9 ns 4
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 1.35 % 1.35 % 4
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1158 ns 1158 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_median 1159 ns 1159 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 16.7 ns 16.7 ns 4
|
|
replace runtime symbols with simstr and memorization of all search results_cv 1.44 % 1.44 % 4
|
|
replace const symbols with string expressions and without remembering all search results_mean 1290 ns 1290 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_median 1293 ns 1293 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_stddev 15.4 ns 15.4 ns 4
|
|
replace const symbols with string expressions and without remembering all search results_cv 1.19 % 1.19 % 4
|
|
replace const symbols with string expressions and memorization of all search results_mean 982 ns 982 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_median 983 ns 983 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_stddev 18.1 ns 18.1 ns 4
|
|
replace const symbols with string expressions and memorization of all search results_cv 1.84 % 1.84 % 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 167 ns 167 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 167 ns 167 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.85 ns 5.85 ns 4
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.49 % 3.49 % 4
|
|
Short replace symbols with std::string find_first_of + replace_mean 326 ns 326 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_median 327 ns 327 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_stddev 7.72 ns 7.72 ns 4
|
|
Short replace symbols with std::string find_first_of + replace_cv 2.37 % 2.37 % 4
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 170 ns 170 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_median 169 ns 169 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 3.89 ns 3.89 ns 4
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 2.29 % 2.29 % 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 199 ns 199 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 197 ns 197 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 10.6 ns 10.6 ns 4
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 5.31 % 5.31 % 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 226 ns 226 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 227 ns 227 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 11.2 ns 11.2 ns 4
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 4.95 % 4.95 % 4
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 164 ns 164 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_median 163 ns 163 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 14.8 ns 14.8 ns 4
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 9.05 % 9.05 % 4
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 163 ns 163 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_median 162 ns 162 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 8.27 ns 8.27 ns 4
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 5.08 % 5.08 % 4
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to ---- in std::string|64_mean 162 ns 162 ns 4
|
|
replace bb to ---- in std::string|64_median 163 ns 163 ns 4
|
|
replace bb to ---- in std::string|64_stddev 2.39 ns 2.39 ns 4
|
|
replace bb to ---- in std::string|64_cv 1.48 % 1.48 % 4
|
|
replace bb to ---- in std::string|256_mean 522 ns 522 ns 4
|
|
replace bb to ---- in std::string|256_median 521 ns 521 ns 4
|
|
replace bb to ---- in std::string|256_stddev 10.1 ns 10.1 ns 4
|
|
replace bb to ---- in std::string|256_cv 1.93 % 1.93 % 4
|
|
replace bb to ---- in std::string|512_mean 989 ns 989 ns 4
|
|
replace bb to ---- in std::string|512_median 993 ns 993 ns 4
|
|
replace bb to ---- in std::string|512_stddev 16.1 ns 16.1 ns 4
|
|
replace bb to ---- in std::string|512_cv 1.63 % 1.63 % 4
|
|
replace bb to ---- in std::string|1024_mean 2326 ns 2326 ns 4
|
|
replace bb to ---- in std::string|1024_median 2271 ns 2271 ns 4
|
|
replace bb to ---- in std::string|1024_stddev 156 ns 156 ns 4
|
|
replace bb to ---- in std::string|1024_cv 6.71 % 6.71 % 4
|
|
replace bb to ---- in std::string|2048_mean 5856 ns 5856 ns 4
|
|
replace bb to ---- in std::string|2048_median 5841 ns 5841 ns 4
|
|
replace bb to ---- in std::string|2048_stddev 363 ns 363 ns 4
|
|
replace bb to ---- in std::string|2048_cv 6.21 % 6.21 % 4
|
|
replace bb to ---- in lstringa<8>|64_mean 148 ns 148 ns 4
|
|
replace bb to ---- in lstringa<8>|64_median 147 ns 147 ns 4
|
|
replace bb to ---- in lstringa<8>|64_stddev 3.13 ns 3.13 ns 4
|
|
replace bb to ---- in lstringa<8>|64_cv 2.12 % 2.12 % 4
|
|
replace bb to ---- in lstringa<8>|256_mean 477 ns 477 ns 4
|
|
replace bb to ---- in lstringa<8>|256_median 477 ns 477 ns 4
|
|
replace bb to ---- in lstringa<8>|256_stddev 6.69 ns 6.69 ns 4
|
|
replace bb to ---- in lstringa<8>|256_cv 1.40 % 1.40 % 4
|
|
replace bb to ---- in lstringa<8>|512_mean 911 ns 911 ns 4
|
|
replace bb to ---- in lstringa<8>|512_median 902 ns 902 ns 4
|
|
replace bb to ---- in lstringa<8>|512_stddev 29.5 ns 29.5 ns 4
|
|
replace bb to ---- in lstringa<8>|512_cv 3.24 % 3.24 % 4
|
|
replace bb to ---- in lstringa<8>|1024_mean 1886 ns 1886 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_median 1888 ns 1888 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_stddev 46.8 ns 46.8 ns 4
|
|
replace bb to ---- in lstringa<8>|1024_cv 2.48 % 2.48 % 4
|
|
replace bb to ---- in lstringa<8>|2048_mean 3484 ns 3484 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_median 3497 ns 3497 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_stddev 62.0 ns 62.0 ns 4
|
|
replace bb to ---- in lstringa<8>|2048_cv 1.78 % 1.78 % 4
|
|
replace bb to ---- by init stringa|64_mean 101 ns 101 ns 4
|
|
replace bb to ---- by init stringa|64_median 100 ns 100 ns 4
|
|
replace bb to ---- by init stringa|64_stddev 2.66 ns 2.66 ns 4
|
|
replace bb to ---- by init stringa|64_cv 2.62 % 2.62 % 4
|
|
replace bb to ---- by init stringa|256_mean 348 ns 348 ns 4
|
|
replace bb to ---- by init stringa|256_median 339 ns 339 ns 4
|
|
replace bb to ---- by init stringa|256_stddev 21.6 ns 21.6 ns 4
|
|
replace bb to ---- by init stringa|256_cv 6.20 % 6.20 % 4
|
|
replace bb to ---- by init stringa|512_mean 781 ns 781 ns 4
|
|
replace bb to ---- by init stringa|512_median 768 ns 768 ns 4
|
|
replace bb to ---- by init stringa|512_stddev 37.6 ns 37.6 ns 4
|
|
replace bb to ---- by init stringa|512_cv 4.81 % 4.81 % 4
|
|
replace bb to ---- by init stringa|1024_mean 1664 ns 1664 ns 4
|
|
replace bb to ---- by init stringa|1024_median 1667 ns 1667 ns 4
|
|
replace bb to ---- by init stringa|1024_stddev 19.1 ns 19.1 ns 4
|
|
replace bb to ---- by init stringa|1024_cv 1.15 % 1.15 % 4
|
|
replace bb to ---- by init stringa|2048_mean 3334 ns 3334 ns 4
|
|
replace bb to ---- by init stringa|2048_median 3335 ns 3335 ns 4
|
|
replace bb to ---- by init stringa|2048_stddev 12.1 ns 12.1 ns 4
|
|
replace bb to ---- by init stringa|2048_cv 0.36 % 0.36 % 4
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
replace bb to -- in std::string|64_mean 121 ns 121 ns 4
|
|
replace bb to -- in std::string|64_median 120 ns 120 ns 4
|
|
replace bb to -- in std::string|64_stddev 1.96 ns 1.96 ns 4
|
|
replace bb to -- in std::string|64_cv 1.63 % 1.63 % 4
|
|
replace bb to -- in std::string|256_mean 401 ns 401 ns 4
|
|
replace bb to -- in std::string|256_median 398 ns 398 ns 4
|
|
replace bb to -- in std::string|256_stddev 7.79 ns 7.79 ns 4
|
|
replace bb to -- in std::string|256_cv 1.94 % 1.94 % 4
|
|
replace bb to -- in std::string|512_mean 712 ns 712 ns 4
|
|
replace bb to -- in std::string|512_median 711 ns 711 ns 4
|
|
replace bb to -- in std::string|512_stddev 10.1 ns 10.1 ns 4
|
|
replace bb to -- in std::string|512_cv 1.41 % 1.41 % 4
|
|
replace bb to -- in std::string|1024_mean 1360 ns 1360 ns 4
|
|
replace bb to -- in std::string|1024_median 1353 ns 1353 ns 4
|
|
replace bb to -- in std::string|1024_stddev 29.0 ns 29.0 ns 4
|
|
replace bb to -- in std::string|1024_cv 2.13 % 2.13 % 4
|
|
replace bb to -- in std::string|2048_mean 2878 ns 2878 ns 4
|
|
replace bb to -- in std::string|2048_median 2853 ns 2853 ns 4
|
|
replace bb to -- in std::string|2048_stddev 80.5 ns 80.5 ns 4
|
|
replace bb to -- in std::string|2048_cv 2.80 % 2.80 % 4
|
|
replace bb to -- in lstringa<8>|64_mean 101 ns 101 ns 4
|
|
replace bb to -- in lstringa<8>|64_median 102 ns 102 ns 4
|
|
replace bb to -- in lstringa<8>|64_stddev 2.19 ns 2.19 ns 4
|
|
replace bb to -- in lstringa<8>|64_cv 2.16 % 2.16 % 4
|
|
replace bb to -- in lstringa<8>|256_mean 305 ns 305 ns 4
|
|
replace bb to -- in lstringa<8>|256_median 303 ns 303 ns 4
|
|
replace bb to -- in lstringa<8>|256_stddev 8.34 ns 8.34 ns 4
|
|
replace bb to -- in lstringa<8>|256_cv 2.73 % 2.73 % 4
|
|
replace bb to -- in lstringa<8>|512_mean 535 ns 535 ns 4
|
|
replace bb to -- in lstringa<8>|512_median 536 ns 536 ns 4
|
|
replace bb to -- in lstringa<8>|512_stddev 6.34 ns 6.34 ns 4
|
|
replace bb to -- in lstringa<8>|512_cv 1.18 % 1.18 % 4
|
|
replace bb to -- in lstringa<8>|1024_mean 1082 ns 1082 ns 4
|
|
replace bb to -- in lstringa<8>|1024_median 1096 ns 1096 ns 4
|
|
replace bb to -- in lstringa<8>|1024_stddev 30.3 ns 30.3 ns 4
|
|
replace bb to -- in lstringa<8>|1024_cv 2.79 % 2.79 % 4
|
|
replace bb to -- in lstringa<8>|2048_mean 2085 ns 2085 ns 4
|
|
replace bb to -- in lstringa<8>|2048_median 2063 ns 2063 ns 4
|
|
replace bb to -- in lstringa<8>|2048_stddev 59.9 ns 59.9 ns 4
|
|
replace bb to -- in lstringa<8>|2048_cv 2.87 % 2.87 % 4
|
|
replace bb to -- by init stringa|64_mean 95.3 ns 95.3 ns 4
|
|
replace bb to -- by init stringa|64_median 95.2 ns 95.2 ns 4
|
|
replace bb to -- by init stringa|64_stddev 2.00 ns 2.00 ns 4
|
|
replace bb to -- by init stringa|64_cv 2.10 % 2.10 % 4
|
|
replace bb to -- by init stringa|256_mean 273 ns 273 ns 4
|
|
replace bb to -- by init stringa|256_median 274 ns 274 ns 4
|
|
replace bb to -- by init stringa|256_stddev 3.91 ns 3.91 ns 4
|
|
replace bb to -- by init stringa|256_cv 1.43 % 1.43 % 4
|
|
replace bb to -- by init stringa|512_mean 508 ns 508 ns 4
|
|
replace bb to -- by init stringa|512_median 507 ns 507 ns 4
|
|
replace bb to -- by init stringa|512_stddev 4.71 ns 4.71 ns 4
|
|
replace bb to -- by init stringa|512_cv 0.93 % 0.93 % 4
|
|
replace bb to -- by init stringa|1024_mean 1043 ns 1043 ns 4
|
|
replace bb to -- by init stringa|1024_median 1049 ns 1049 ns 4
|
|
replace bb to -- by init stringa|1024_stddev 16.2 ns 16.2 ns 4
|
|
replace bb to -- by init stringa|1024_cv 1.56 % 1.56 % 4
|
|
replace bb to -- by init stringa|2048_mean 2005 ns 2005 ns 4
|
|
replace bb to -- by init stringa|2048_median 1990 ns 1990 ns 4
|
|
replace bb to -- by init stringa|2048_stddev 37.3 ns 37.3 ns 4
|
|
replace bb to -- by init stringa|2048_cv 1.86 % 1.86 % 4
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3755052 ns 3755065 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3777998 ns 3778011 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 76008 ns 76009 ns 4
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 2.02 % 2.02 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 3698410 ns 3698420 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 3636474 ns 3636484 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 153086 ns 153086 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 4.14 % 4.14 % 4
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3981007 ns 3981020 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3979884 ns 3979896 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 182873 ns 182870 ns 4
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 4.59 % 4.59 % 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 4270911 ns 4270924 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 4127642 ns 4127656 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 339362 ns 339361 ns 4
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 7.95 % 7.95 % 4
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
Build func full name std::string;_mean 972 ns 972 ns 4
|
|
Build func full name std::string;_median 973 ns 973 ns 4
|
|
Build func full name std::string;_stddev 19.9 ns 19.9 ns 4
|
|
Build func full name std::string;_cv 2.05 % 2.05 % 4
|
|
Build func full name std::string 1;_mean 1049 ns 1049 ns 4
|
|
Build func full name std::string 1;_median 1046 ns 1046 ns 4
|
|
Build func full name std::string 1;_stddev 14.5 ns 14.5 ns 4
|
|
Build func full name std::string 1;_cv 1.38 % 1.38 % 4
|
|
Build func full name std::stream;_mean 2610 ns 2610 ns 4
|
|
Build func full name std::stream;_median 2605 ns 2605 ns 4
|
|
Build func full name std::stream;_stddev 70.8 ns 70.8 ns 4
|
|
Build func full name std::stream;_cv 2.71 % 2.71 % 4
|
|
Build func full name stringa;_mean 482 ns 482 ns 4
|
|
Build func full name stringa;_median 484 ns 484 ns 4
|
|
Build func full name stringa;_stddev 13.0 ns 13.0 ns 4
|
|
Build func full name stringa;_cv 2.71 % 2.71 % 4
|
|
Build func full name stringa 1;_mean 688 ns 688 ns 4
|
|
Build func full name stringa 1;_median 689 ns 689 ns 4
|
|
Build func full name stringa 1;_stddev 8.04 ns 8.04 ns 4
|
|
Build func full name stringa 1;_cv 1.17 % 1.17 % 4
|