2026-01-21 11:59:17 +00:00
|
|
|
2026-01-21T00:24:03+03:00
|
2025-04-05 14:21:11 +00:00
|
|
|
Running benchStr.exe
|
2025-11-26 19:15:50 +00:00
|
|
|
Run on (32 X 2494 MHz CPU s)
|
2025-04-05 14:21:11 +00:00
|
|
|
CPU Caches:
|
|
|
|
|
L1 Data 32 KiB (x16)
|
|
|
|
|
L1 Instruction 32 KiB (x16)
|
|
|
|
|
L2 Unified 256 KiB (x16)
|
|
|
|
|
L3 Unified 40960 KiB (x1)
|
|
|
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
Benchmark Time CPU Iterations
|
|
|
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------
|
2026-01-21 11:59:17 +00:00
|
|
|
----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
Concat std::string and number by std to std::string_mean 266 ns 265 ns 10
|
|
|
|
|
Concat std::string and number by std to std::string_median 265 ns 265 ns 10
|
|
|
|
|
Concat std::string and number by std to std::string_stddev 6.17 ns 4.74 ns 10
|
|
|
|
|
Concat std::string and number by std to std::string_cv 2.32 % 1.79 % 10
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_mean 157 ns 156 ns 10
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_median 157 ns 157 ns 10
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_stddev 5.39 ns 6.16 ns 10
|
|
|
|
|
Concat std::string and number by StrExpr to std::string_cv 3.43 % 3.95 % 10
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_mean 66.4 ns 66.3 ns 10
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_median 66.7 ns 67.0 ns 10
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_stddev 1.30 ns 1.77 ns 10
|
|
|
|
|
Concat stringa and number by StrExpr to simstr::stringa_cv 1.96 % 2.67 % 10
|
|
|
|
|
----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
Concat std::string and hex number by std to std::string_mean 777 ns 766 ns 10
|
|
|
|
|
Concat std::string and hex number by std to std::string_median 773 ns 750 ns 10
|
|
|
|
|
Concat std::string and hex number by std to std::string_stddev 30.7 ns 35.3 ns 10
|
|
|
|
|
Concat std::string and hex number by std to std::string_cv 3.95 % 4.61 % 10
|
|
|
|
|
Concat std::string and hex number by StrExpr to std::string_mean 76.6 ns 76.5 ns 10
|
|
|
|
|
Concat std::string and hex number by StrExpr to std::string_median 76.2 ns 76.0 ns 10
|
|
|
|
|
Concat std::string and hex number by StrExpr to std::string_stddev 1.72 ns 1.71 ns 10
|
|
|
|
|
Concat std::string and hex number by StrExpr to std::string_cv 2.25 % 2.24 % 10
|
|
|
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_mean 67.9 ns 67.8 ns 10
|
|
|
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_median 67.4 ns 67.0 ns 10
|
|
|
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_stddev 1.81 ns 1.64 ns 10
|
|
|
|
|
Concat stringa and hex number by StrExpr to simstr::stringa_cv 2.67 % 2.42 % 10
|
|
|
|
|
----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
Concat std::string by std to std::string_mean 39.8 ns 39.4 ns 10
|
|
|
|
|
Concat std::string by std to std::string_median 39.8 ns 39.9 ns 10
|
|
|
|
|
Concat std::string by std to std::string_stddev 1.29 ns 1.07 ns 10
|
|
|
|
|
Concat std::string by std to std::string_cv 3.25 % 2.71 % 10
|
|
|
|
|
Concat std::string by StrExpr to std::string_mean 39.1 ns 39.0 ns 10
|
|
|
|
|
Concat std::string by StrExpr to std::string_median 39.1 ns 38.5 ns 10
|
|
|
|
|
Concat std::string by StrExpr to std::string_stddev 1.05 ns 0.900 ns 10
|
|
|
|
|
Concat std::string by StrExpr to std::string_cv 2.69 % 2.31 % 10
|
|
|
|
|
Concat stringa by StrExpr to stringa_mean 29.2 ns 29.1 ns 10
|
|
|
|
|
Concat stringa by StrExpr to stringa_median 28.7 ns 28.5 ns 10
|
|
|
|
|
Concat stringa by StrExpr to stringa_stddev 1.18 ns 1.22 ns 10
|
|
|
|
|
Concat stringa by StrExpr to stringa_cv 4.04 % 4.19 % 10
|
|
|
|
|
----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
Find concat three std::string_mean 208 ns 206 ns 10
|
|
|
|
|
Find concat three std::string_median 205 ns 206 ns 10
|
|
|
|
|
Find concat three std::string_stddev 6.54 ns 5.76 ns 10
|
|
|
|
|
Find concat three std::string_cv 3.15 % 2.79 % 10
|
|
|
|
|
Find concat three strexpr_mean 116 ns 115 ns 10
|
|
|
|
|
Find concat three strexpr_median 115 ns 114 ns 10
|
|
|
|
|
Find concat three strexpr_stddev 3.41 ns 3.45 ns 10
|
|
|
|
|
Find concat three strexpr_cv 2.95 % 3.01 % 10
|
|
|
|
|
Find concat three simstr_mean 22.2 ns 22.0 ns 10
|
|
|
|
|
Find concat three simstr_median 22.2 ns 22.0 ns 10
|
|
|
|
|
Find concat three simstr_stddev 0.690 ns 0.537 ns 10
|
|
|
|
|
Find concat three simstr_cv 3.11 % 2.44 % 10
|
|
|
|
|
----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
BuildTypeNameStr 0/0_mean 8.25 ns 8.14 ns 10
|
|
|
|
|
BuildTypeNameStr 0/0_median 8.21 ns 8.11 ns 10
|
|
|
|
|
BuildTypeNameStr 0/0_stddev 0.223 ns 0.273 ns 10
|
|
|
|
|
BuildTypeNameStr 0/0_cv 2.71 % 3.36 % 10
|
|
|
|
|
BuildTypeNameExp 0/0_mean 7.50 ns 7.50 ns 10
|
|
|
|
|
BuildTypeNameExp 0/0_median 7.41 ns 7.41 ns 10
|
|
|
|
|
BuildTypeNameExp 0/0_stddev 0.221 ns 0.247 ns 10
|
|
|
|
|
BuildTypeNameExp 0/0_cv 2.95 % 3.29 % 10
|
|
|
|
|
BuildTypeNameSim 0/0_mean 8.35 ns 8.25 ns 10
|
|
|
|
|
BuildTypeNameSim 0/0_median 8.40 ns 8.37 ns 10
|
|
|
|
|
BuildTypeNameSim 0/0_stddev 0.229 ns 0.218 ns 10
|
|
|
|
|
BuildTypeNameSim 0/0_cv 2.75 % 2.65 % 10
|
|
|
|
|
BuildTypeNameStr 10/10_mean 59.5 ns 59.1 ns 10
|
|
|
|
|
BuildTypeNameStr 10/10_median 59.3 ns 59.3 ns 10
|
|
|
|
|
BuildTypeNameStr 10/10_stddev 1.54 ns 1.73 ns 10
|
|
|
|
|
BuildTypeNameStr 10/10_cv 2.59 % 2.93 % 10
|
|
|
|
|
BuildTypeNameExp 10/10_mean 34.2 ns 34.1 ns 10
|
|
|
|
|
BuildTypeNameExp 10/10_median 34.2 ns 34.1 ns 10
|
|
|
|
|
BuildTypeNameExp 10/10_stddev 0.848 ns 0.708 ns 10
|
|
|
|
|
BuildTypeNameExp 10/10_cv 2.48 % 2.07 % 10
|
|
|
|
|
BuildTypeNameSim 10/10_mean 26.4 ns 26.0 ns 10
|
|
|
|
|
BuildTypeNameSim 10/10_median 26.5 ns 26.1 ns 10
|
|
|
|
|
BuildTypeNameSim 10/10_stddev 1.13 ns 1.27 ns 10
|
|
|
|
|
BuildTypeNameSim 10/10_cv 4.27 % 4.91 % 10
|
|
|
|
|
----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000
|
|
|
|
|
Concat with replace str_mean 318 ns 316 ns 10
|
|
|
|
|
Concat with replace str_median 316 ns 314 ns 10
|
|
|
|
|
Concat with replace str_stddev 11.9 ns 10.4 ns 10
|
|
|
|
|
Concat with replace str_cv 3.73 % 3.30 % 10
|
|
|
|
|
Concat with replace exp_mean 224 ns 223 ns 10
|
|
|
|
|
Concat with replace exp_median 220 ns 220 ns 10
|
|
|
|
|
Concat with replace exp_stddev 8.19 ns 8.32 ns 10
|
|
|
|
|
Concat with replace exp_cv 3.66 % 3.73 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string e;_mean 1.11 ns 1.10 ns 10
|
|
|
|
|
std::string e;_median 1.10 ns 1.07 ns 10
|
|
|
|
|
std::string e;_stddev 0.035 ns 0.035 ns 10
|
|
|
|
|
std::string e;_cv 3.16 % 3.23 % 10
|
|
|
|
|
std::string_view e;_mean 0.372 ns 0.368 ns 10
|
|
|
|
|
std::string_view e;_median 0.367 ns 0.365 ns 10
|
|
|
|
|
std::string_view e;_stddev 0.013 ns 0.009 ns 10
|
|
|
|
|
std::string_view e;_cv 3.56 % 2.40 % 10
|
|
|
|
|
ssa e;_mean 0.364 ns 0.361 ns 10
|
|
|
|
|
ssa e;_median 0.365 ns 0.361 ns 10
|
|
|
|
|
ssa e;_stddev 0.007 ns 0.008 ns 10
|
|
|
|
|
ssa e;_cv 2.04 % 2.34 % 10
|
|
|
|
|
stringa e;_mean 0.757 ns 0.749 ns 10
|
|
|
|
|
stringa e;_median 0.754 ns 0.746 ns 10
|
|
|
|
|
stringa e;_stddev 0.027 ns 0.021 ns 10
|
|
|
|
|
stringa e;_cv 3.61 % 2.78 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
lstringa<20> e;_mean 1.12 ns 1.11 ns 10
|
2026-01-21 11:59:17 +00:00
|
|
|
lstringa<20> e;_median 1.11 ns 1.12 ns 10
|
|
|
|
|
lstringa<20> e;_stddev 0.035 ns 0.036 ns 10
|
|
|
|
|
lstringa<20> e;_cv 3.12 % 3.22 % 10
|
|
|
|
|
lstringa<40> e;_mean 1.15 ns 1.14 ns 10
|
|
|
|
|
lstringa<40> e;_median 1.13 ns 1.13 ns 10
|
|
|
|
|
lstringa<40> e;_stddev 0.072 ns 0.079 ns 10
|
|
|
|
|
lstringa<40> e;_cv 6.27 % 6.90 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string e = "Test text";_mean 1.85 ns 1.82 ns 10
|
|
|
|
|
std::string e = "Test text";_median 1.82 ns 1.84 ns 10
|
|
|
|
|
std::string e = "Test text";_stddev 0.086 ns 0.049 ns 10
|
|
|
|
|
std::string e = "Test text";_cv 4.67 % 2.69 % 10
|
|
|
|
|
std::string_view e = "Test text";_mean 0.728 ns 0.722 ns 10
|
|
|
|
|
std::string_view e = "Test text";_median 0.721 ns 0.724 ns 10
|
|
|
|
|
std::string_view e = "Test text";_stddev 0.020 ns 0.020 ns 10
|
|
|
|
|
std::string_view e = "Test text";_cv 2.79 % 2.84 % 10
|
|
|
|
|
ssa e = "Test text";_mean 0.370 ns 0.367 ns 10
|
|
|
|
|
ssa e = "Test text";_median 0.372 ns 0.369 ns 10
|
|
|
|
|
ssa e = "Test text";_stddev 0.010 ns 0.010 ns 10
|
|
|
|
|
ssa e = "Test text";_cv 2.79 % 2.68 % 10
|
|
|
|
|
stringa e = "Test text";_mean 1.85 ns 1.83 ns 10
|
|
|
|
|
stringa e = "Test text";_median 1.87 ns 1.82 ns 10
|
|
|
|
|
stringa e = "Test text";_stddev 0.053 ns 0.044 ns 10
|
|
|
|
|
stringa e = "Test text";_cv 2.84 % 2.42 % 10
|
|
|
|
|
lstringa<20> e = "Test text";_mean 1.89 ns 1.86 ns 10
|
|
|
|
|
lstringa<20> e = "Test text";_median 1.89 ns 1.86 ns 10
|
|
|
|
|
lstringa<20> e = "Test text";_stddev 0.067 ns 0.085 ns 10
|
|
|
|
|
lstringa<20> e = "Test text";_cv 3.55 % 4.60 % 10
|
|
|
|
|
lstringa<40> e = "Test text";_mean 1.91 ns 1.90 ns 10
|
|
|
|
|
lstringa<40> e = "Test text";_median 1.87 ns 1.86 ns 10
|
|
|
|
|
lstringa<40> e = "Test text";_stddev 0.083 ns 0.082 ns 10
|
|
|
|
|
lstringa<40> e = "Test text";_cv 4.36 % 4.34 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string e = "123456789012345678901234567890";_mean 74.9 ns 74.3 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890";_median 75.2 ns 75.3 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890";_stddev 2.40 ns 2.03 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890";_cv 3.20 % 2.74 % 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_mean 0.736 ns 0.732 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_median 0.732 ns 0.732 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_stddev 0.024 ns 0.022 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890";_cv 3.20 % 2.97 % 10
|
|
|
|
|
ssa e = "123456789012345678901234567890";_mean 0.365 ns 0.363 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890";_median 0.366 ns 0.361 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890";_stddev 0.005 ns 0.005 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890";_cv 1.27 % 1.40 % 10
|
|
|
|
|
stringa e = "123456789012345678901234567890";_mean 1.85 ns 1.84 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890";_median 1.84 ns 1.84 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890";_stddev 0.051 ns 0.042 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890";_cv 2.75 % 2.30 % 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_mean 76.8 ns 75.9 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_median 76.5 ns 76.7 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_stddev 1.85 ns 1.23 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890";_cv 2.40 % 1.63 % 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_mean 2.53 ns 2.52 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_median 2.53 ns 2.51 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_stddev 0.065 ns 0.055 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890";_cv 2.58 % 2.20 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string e = "Test text"; auto c{e};_mean 1.87 ns 1.83 ns 10
|
|
|
|
|
std::string e = "Test text"; auto c{e};_median 1.86 ns 1.81 ns 10
|
|
|
|
|
std::string e = "Test text"; auto c{e};_stddev 0.059 ns 0.064 ns 10
|
|
|
|
|
std::string e = "Test text"; auto c{e};_cv 3.17 % 3.52 % 10
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_mean 0.368 ns 0.367 ns 10
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_median 0.365 ns 0.361 ns 10
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_stddev 0.010 ns 0.010 ns 10
|
|
|
|
|
std::string_view e = "Test text"; auto c{e};_cv 2.64 % 2.68 % 10
|
|
|
|
|
ssa e = "Test text"; auto c{e};_mean 0.375 ns 0.367 ns 10
|
|
|
|
|
ssa e = "Test text"; auto c{e};_median 0.372 ns 0.360 ns 10
|
|
|
|
|
ssa e = "Test text"; auto c{e};_stddev 0.017 ns 0.014 ns 10
|
|
|
|
|
ssa e = "Test text"; auto c{e};_cv 4.40 % 3.85 % 10
|
|
|
|
|
stringa e = "Test text"; auto c{e};_mean 1.32 ns 1.31 ns 10
|
|
|
|
|
stringa e = "Test text"; auto c{e};_median 1.33 ns 1.29 ns 10
|
|
|
|
|
stringa e = "Test text"; auto c{e};_stddev 0.042 ns 0.047 ns 10
|
|
|
|
|
stringa e = "Test text"; auto c{e};_cv 3.17 % 3.62 % 10
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_mean 5.30 ns 5.17 ns 10
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_median 5.33 ns 5.16 ns 10
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_stddev 0.187 ns 0.226 ns 10
|
|
|
|
|
lstringa<20> e = "Test text"; auto c{e};_cv 3.53 % 4.38 % 10
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_mean 5.22 ns 5.14 ns 10
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_median 5.26 ns 5.16 ns 10
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_stddev 0.140 ns 0.137 ns 10
|
|
|
|
|
lstringa<40> e = "Test text"; auto c{e};_cv 2.68 % 2.66 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_mean 81.3 ns 79.9 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_median 80.5 ns 78.5 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 5.02 ns 5.50 ns 10
|
|
|
|
|
std::string e = "123456789012345678901234567890"; auto c{e};_cv 6.17 % 6.89 % 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.741 ns 0.732 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.739 ns 0.725 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.015 ns 10
|
|
|
|
|
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.18 % 2.06 % 10
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.362 ns 0.359 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_median 0.357 ns 0.360 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.006 ns 10
|
|
|
|
|
ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.95 % 1.72 % 10
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.81 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.80 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.044 ns 0.040 ns 10
|
|
|
|
|
stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.41 % 2.19 % 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 76.1 ns 75.9 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 75.8 ns 75.9 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.87 ns 3.21 ns 10
|
|
|
|
|
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.77 % 4.23 % 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.38 ns 4.36 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.36 ns 4.39 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.073 ns 0.050 ns 10
|
|
|
|
|
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.67 % 1.16 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string::find;_mean 38.3 ns 38.0 ns 10
|
|
|
|
|
std::string::find;_median 38.3 ns 37.7 ns 10
|
|
|
|
|
std::string::find;_stddev 0.476 ns 0.585 ns 10
|
|
|
|
|
std::string::find;_cv 1.24 % 1.54 % 10
|
|
|
|
|
std::string_view::find;_mean 38.1 ns 37.5 ns 10
|
|
|
|
|
std::string_view::find;_median 37.9 ns 37.7 ns 10
|
|
|
|
|
std::string_view::find;_stddev 0.751 ns 0.660 ns 10
|
|
|
|
|
std::string_view::find;_cv 1.97 % 1.76 % 10
|
|
|
|
|
ssa::find;_mean 18.3 ns 18.1 ns 10
|
|
|
|
|
ssa::find;_median 18.1 ns 18.0 ns 10
|
|
|
|
|
ssa::find;_stddev 0.297 ns 0.345 ns 10
|
|
|
|
|
ssa::find;_cv 1.63 % 1.90 % 10
|
|
|
|
|
stringa::find;_mean 19.8 ns 19.6 ns 10
|
|
|
|
|
stringa::find;_median 19.4 ns 19.5 ns 10
|
|
|
|
|
stringa::find;_stddev 0.845 ns 0.648 ns 10
|
|
|
|
|
stringa::find;_cv 4.27 % 3.31 % 10
|
|
|
|
|
lstringa<20>::find;_mean 17.6 ns 17.5 ns 10
|
|
|
|
|
lstringa<20>::find;_median 17.5 ns 17.4 ns 10
|
|
|
|
|
lstringa<20>::find;_stddev 0.545 ns 0.397 ns 10
|
|
|
|
|
lstringa<20>::find;_cv 3.10 % 2.28 % 10
|
|
|
|
|
lstringa<40>::find;_mean 17.8 ns 17.5 ns 10
|
|
|
|
|
lstringa<40>::find;_median 17.9 ns 17.3 ns 10
|
|
|
|
|
lstringa<40>::find;_stddev 0.432 ns 0.324 ns 10
|
|
|
|
|
lstringa<40>::find;_cv 2.42 % 1.85 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string copy{str_with_len_N};/15_mean 1.86 ns 1.82 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/15_median 1.83 ns 1.82 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/15_stddev 0.101 ns 0.052 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/15_cv 5.42 % 2.85 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/16_mean 80.4 ns 80.0 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/16_median 78.0 ns 78.5 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/16_stddev 4.86 ns 5.36 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/16_cv 6.04 % 6.69 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/23_mean 78.0 ns 77.3 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/23_median 76.9 ns 76.7 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/23_stddev 3.65 ns 2.73 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/23_cv 4.68 % 3.54 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/24_mean 80.2 ns 79.3 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/24_median 78.3 ns 78.5 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/24_stddev 4.99 ns 5.59 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/24_cv 6.22 % 7.05 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/32_mean 82.7 ns 82.1 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/32_median 82.5 ns 82.0 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/32_stddev 1.82 ns 1.29 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/32_cv 2.20 % 1.57 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/64_mean 82.0 ns 81.6 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/64_median 80.7 ns 80.2 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/64_stddev 3.00 ns 2.94 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/64_cv 3.66 % 3.60 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/128_mean 89.8 ns 87.7 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/128_median 89.7 ns 87.9 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/128_stddev 5.67 ns 4.46 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/128_cv 6.32 % 5.09 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/256_mean 91.4 ns 90.5 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/256_median 90.7 ns 90.7 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/256_stddev 2.30 ns 1.92 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/256_cv 2.52 % 2.12 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/512_mean 89.2 ns 88.2 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/512_median 89.0 ns 87.2 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/512_stddev 3.91 ns 3.41 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/512_cv 4.38 % 3.86 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/1024_mean 96.8 ns 96.3 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/1024_median 97.2 ns 96.3 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/1024_stddev 3.59 ns 2.79 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/1024_cv 3.71 % 2.90 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/2048_mean 130 ns 129 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/2048_median 130 ns 128 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/2048_stddev 3.80 ns 3.49 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/2048_cv 2.92 % 2.70 % 10
|
|
|
|
|
std::string copy{str_with_len_N};/4096_mean 178 ns 174 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/4096_median 178 ns 176 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/4096_stddev 5.34 ns 4.50 ns 10
|
|
|
|
|
std::string copy{str_with_len_N};/4096_cv 3.01 % 2.59 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/15_mean 1.28 ns 1.27 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/15_median 1.28 ns 1.28 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/15_stddev 0.030 ns 0.033 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/15_cv 2.32 % 2.57 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/16_mean 1.28 ns 1.28 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/16_median 1.27 ns 1.27 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/16_stddev 0.037 ns 0.048 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/16_cv 2.87 % 3.73 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/23_mean 1.28 ns 1.28 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/23_median 1.26 ns 1.26 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/23_stddev 0.038 ns 0.035 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/23_cv 3.01 % 2.74 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/24_mean 15.8 ns 15.6 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/24_median 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/24_stddev 0.153 ns 0.168 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/24_cv 0.97 % 1.08 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/32_mean 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/32_median 15.6 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/32_stddev 0.217 ns 0.233 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/32_cv 1.38 % 1.48 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/64_mean 15.8 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/64_median 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/64_stddev 0.179 ns 0.233 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/64_cv 1.13 % 1.48 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/128_mean 15.8 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/128_median 15.6 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/128_stddev 0.291 ns 0.233 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/128_cv 1.84 % 1.48 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/256_mean 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/256_median 15.6 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/256_stddev 0.194 ns 0.257 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/256_cv 1.23 % 1.64 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/512_mean 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/512_median 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/512_stddev 0.185 ns 0.198 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/512_cv 1.17 % 1.26 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/1024_mean 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/1024_median 15.7 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/1024_stddev 0.207 ns 0.110 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/1024_cv 1.32 % 0.70 % 10
|
|
|
|
|
stringa copy{str_with_len_N};/2048_mean 15.9 ns 15.8 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/2048_median 15.8 ns 15.7 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/2048_stddev 0.321 ns 0.218 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/2048_cv 2.02 % 1.38 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
stringa copy{str_with_len_N};/4096_mean 15.9 ns 15.8 ns 10
|
2025-04-05 14:21:11 +00:00
|
|
|
stringa copy{str_with_len_N};/4096_median 15.9 ns 15.7 ns 10
|
2026-01-21 11:59:17 +00:00
|
|
|
stringa copy{str_with_len_N};/4096_stddev 0.198 ns 0.331 ns 10
|
|
|
|
|
stringa copy{str_with_len_N};/4096_cv 1.24 % 2.09 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_mean 4.88 ns 4.85 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_median 4.77 ns 4.71 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_stddev 0.247 ns 0.267 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/15_cv 5.07 % 5.49 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_mean 4.78 ns 4.76 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_median 4.74 ns 4.75 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_stddev 0.183 ns 0.181 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/16_cv 3.82 % 3.80 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_mean 4.80 ns 4.76 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_median 4.73 ns 4.71 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_stddev 0.159 ns 0.123 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/23_cv 3.31 % 2.59 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_mean 76.9 ns 76.4 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_median 75.5 ns 75.0 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_stddev 2.76 ns 1.98 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/24_cv 3.59 % 2.59 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_mean 80.5 ns 79.7 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_median 80.5 ns 79.3 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_stddev 4.29 ns 3.49 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/32_cv 5.33 % 4.38 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_mean 81.7 ns 80.6 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_median 81.0 ns 81.1 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_stddev 3.42 ns 3.37 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/64_cv 4.18 % 4.18 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_mean 81.6 ns 81.0 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_median 81.4 ns 81.6 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_stddev 3.00 ns 3.42 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/128_cv 3.68 % 4.23 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_mean 83.0 ns 82.4 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_median 82.3 ns 81.6 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_stddev 3.27 ns 3.85 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/256_cv 3.94 % 4.66 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_mean 87.0 ns 87.0 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_median 85.9 ns 85.4 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_stddev 3.56 ns 3.72 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/512_cv 4.09 % 4.27 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_mean 96.8 ns 95.8 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_median 95.4 ns 94.2 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_stddev 4.63 ns 4.61 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/1024_cv 4.78 % 4.81 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_mean 133 ns 132 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_median 132 ns 130 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_stddev 11.8 ns 10.4 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/2048_cv 8.86 % 7.88 % 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_mean 195 ns 193 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_median 196 ns 193 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_stddev 8.89 ns 9.82 ns 10
|
|
|
|
|
lstringa<16> copy{str_with_len_N};/4096_cv 4.57 % 5.08 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_mean 5.12 ns 5.11 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_median 5.09 ns 5.00 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_stddev 0.139 ns 0.166 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/15_cv 2.72 % 3.24 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_mean 5.09 ns 5.06 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_median 5.05 ns 5.00 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_stddev 0.123 ns 0.109 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/16_cv 2.42 % 2.16 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_mean 5.25 ns 5.12 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_median 5.12 ns 5.08 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_stddev 0.292 ns 0.127 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/23_cv 5.57 % 2.48 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_mean 5.15 ns 5.12 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_median 5.09 ns 5.09 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_stddev 0.157 ns 0.162 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/24_cv 3.05 % 3.16 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_mean 7.92 ns 7.87 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_median 7.92 ns 7.95 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_stddev 0.109 ns 0.176 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/32_cv 1.37 % 2.24 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_mean 7.99 ns 7.93 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_median 7.92 ns 7.93 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_stddev 0.222 ns 0.206 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/64_cv 2.77 % 2.59 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_mean 8.43 ns 8.32 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_median 8.35 ns 8.28 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_stddev 0.256 ns 0.233 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/128_cv 3.03 % 2.80 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_mean 9.40 ns 9.37 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_median 9.36 ns 9.42 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_stddev 0.193 ns 0.276 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/256_cv 2.05 % 2.94 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_mean 12.3 ns 12.3 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_median 12.1 ns 12.0 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_stddev 1.24 ns 1.32 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/512_cv 10.08 % 10.73 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_mean 94.1 ns 94.0 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_median 94.1 ns 94.2 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_stddev 2.92 ns 3.48 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/1024_cv 3.11 % 3.70 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_mean 128 ns 127 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_median 127 ns 126 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_stddev 5.72 ns 5.14 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/2048_cv 4.46 % 4.05 % 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_mean 181 ns 180 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_median 180 ns 180 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_stddev 4.69 ns 3.66 ns 10
|
|
|
|
|
lstringa<512> copy{str_with_len_N};/4096_cv 2.60 % 2.04 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 30.8 ns 30.7 ns 10
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 30.6 ns 30.8 ns 10
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.714 ns 0.877 ns 10
|
|
|
|
|
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.32 % 2.86 % 10
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.5 ns 13.4 ns 10
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.3 ns 13.3 ns 10
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.465 ns 0.535 ns 10
|
|
|
|
|
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.44 % 3.99 % 10
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 14.1 ns 14.1 ns 10
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 14.1 ns 14.0 ns 10
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.277 ns 0.328 ns 10
|
|
|
|
|
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 1.96 % 2.32 % 10
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 13.5 ns 13.4 ns 10
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 13.3 ns 13.2 ns 10
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.612 ns 0.607 ns 10
|
|
|
|
|
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.54 % 4.51 % 10
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 13.6 ns 13.6 ns 10
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 13.3 ns 13.4 ns 10
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 0.588 ns 0.706 ns 10
|
|
|
|
|
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 4.32 % 5.19 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 33.5 ns 33.2 ns 10
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 33.0 ns 33.0 ns 10
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.985 ns 1.04 ns 10
|
|
|
|
|
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.94 % 3.13 % 10
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.14 ns 8.06 ns 10
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.04 ns 8.02 ns 10
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.214 ns 0.160 ns 10
|
|
|
|
|
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.62 % 1.99 % 10
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 13.9 ns 13.8 ns 10
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 13.8 ns 13.8 ns 10
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.259 ns 0.362 ns 10
|
|
|
|
|
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.86 % 2.62 % 10
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 12.6 ns 12.5 ns 10
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 12.6 ns 12.6 ns 10
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.114 ns 0.256 ns 10
|
|
|
|
|
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 0.90 % 2.05 % 10
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 11.8 ns 11.7 ns 10
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 11.8 ns 11.6 ns 10
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 0.147 ns 0.152 ns 10
|
|
|
|
|
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 1.25 % 1.30 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 43.6 ns 43.1 ns 10
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 43.2 ns 42.8 ns 10
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.36 ns 1.39 ns 10
|
|
|
|
|
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.13 % 3.22 % 10
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 18.2 ns 18.1 ns 10
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 18.3 ns 18.0 ns 10
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 0.318 ns 0.432 ns 10
|
|
|
|
|
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 1.74 % 2.39 % 10
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 16.2 ns 16.0 ns 10
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 16.1 ns 15.9 ns 10
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.478 ns 0.403 ns 10
|
|
|
|
|
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 2.96 % 2.51 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 98.3 ns 96.9 ns 10
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 96.7 ns 97.7 ns 10
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.06 ns 2.32 ns 10
|
|
|
|
|
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 4.13 % 2.39 % 10
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 59.2 ns 58.6 ns 10
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 58.5 ns 57.8 ns 10
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.00 ns 1.69 ns 10
|
|
|
|
|
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.38 % 2.88 % 10
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_mean 35.1 ns 34.9 ns 10
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_median 34.6 ns 34.4 ns 10
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.29 ns 0.980 ns 10
|
|
|
|
|
ssa s = "1234.567e10"; double res = *s.to_double()_cv 3.69 % 2.80 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_mean 4661 ns 4604 ns 10
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_median 4646 ns 4604 ns 10
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 86.0 ns 69.8 ns 10
|
|
|
|
|
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.85 % 1.52 % 10
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_mean 1070 ns 1062 ns 10
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_median 1061 ns 1050 ns 10
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_stddev 25.8 ns 20.7 ns 10
|
|
|
|
|
std::string str; ... str += "abbaabbaabbaabba";_cv 2.41 % 1.95 % 10
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 736 ns 727 ns 10
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 739 ns 725 ns 10
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 20.0 ns 13.9 ns 10
|
|
|
|
|
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.72 % 1.91 % 10
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 396 ns 392 ns 10
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 394 ns 392 ns 10
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 11.0 ns 7.12 ns 10
|
|
|
|
|
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.77 % 1.81 % 10
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 234 ns 233 ns 10
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 233 ns 233 ns 10
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 4.95 ns 4.45 ns 10
|
|
|
|
|
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.11 % 1.91 % 10
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 155 ns 153 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 154 ns 153 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.64 ns 2.75 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.71 % 1.80 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- 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
|
2026-01-21 11:59:17 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 4793 ns 4734 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4773 ns 4703 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 281 ns 277 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 5.87 % 5.86 % 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3861 ns 3819 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3863 ns 3749 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 133 ns 135 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.44 % 3.54 % 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 726 ns 713 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 720 ns 711 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 42.3 ns 18.0 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.83 % 2.52 % 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 440 ns 436 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 436 ns 439 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.2 ns 8.24 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.77 % 1.89 % 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 287 ns 285 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 284 ns 283 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.55 ns 4.39 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.28 % 1.54 % 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 183 ns 181 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 181 ns 180 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.10 ns 4.43 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.70 % 2.45 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- 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
|
2026-01-21 11:59:17 +00:00
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 221750 ns 219004 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 218930 ns 215377 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 12107 ns 12101 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 5.46 % 5.53 % 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 194313 ns 192252 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 189899 ns 190438 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 8351 ns 8865 ns 10
|
|
|
|
|
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.30 % 4.61 % 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17965 ns 17878 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17710 ns 17648 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 662 ns 682 ns 10
|
|
|
|
|
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.69 % 3.81 % 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17021 ns 16919 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16966 ns 16881 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 348 ns 494 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.05 % 2.92 % 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16893 ns 16766 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16799 ns 16881 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 703 ns 573 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.16 % 3.42 % 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16257 ns 16183 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16080 ns 16044 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 357 ns 441 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.20 % 2.73 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_mean 4399 ns 4336 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_median 4368 ns 4297 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_stddev 109 ns 105 ns 10
|
|
|
|
|
std::stringstream str; ... str << str_var1 << str_var2;_cv 2.49 % 2.42 % 10
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_mean 3920 ns 3884 ns 10
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_median 3858 ns 3850 ns 10
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_stddev 188 ns 138 ns 10
|
|
|
|
|
std::string str; ... str += str_var1 + str_var2;_cv 4.80 % 3.55 % 10
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_mean 817 ns 807 ns 10
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_median 803 ns 802 ns 10
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 38.0 ns 35.9 ns 10
|
|
|
|
|
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.65 % 4.44 % 10
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_mean 545 ns 542 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_median 545 ns 539 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 13.7 ns 12.9 ns 10
|
|
|
|
|
lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.52 % 2.37 % 10
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_mean 381 ns 375 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_median 383 ns 369 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.9 ns 13.1 ns 10
|
|
|
|
|
lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.39 % 3.50 % 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 284 ns 277 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_median 284 ns 276 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.92 ns 7.52 ns 10
|
|
|
|
|
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.09 % 2.71 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::stringstream str; str << "test = " << k << " times";_mean 11067 ns 10889 ns 10
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_median 11053 ns 10986 ns 10
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_stddev 367 ns 349 ns 10
|
|
|
|
|
std::stringstream str; str << "test = " << k << " times";_cv 3.32 % 3.21 % 10
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_mean 1078 ns 1067 ns 10
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_median 1072 ns 1046 ns 10
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_stddev 32.9 ns 38.2 ns 10
|
|
|
|
|
std::string str = "test = " + std::to_string(k) + " times";_cv 3.05 % 3.58 % 10
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2776 ns 2745 ns 10
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2756 ns 2727 ns 10
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 72.0 ns 48.8 ns 10
|
|
|
|
|
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.59 % 1.78 % 10
|
|
|
|
|
std::string str = std::format("test = {} times", k);_mean 2001 ns 1992 ns 10
|
|
|
|
|
std::string str = std::format("test = {} times", k);_median 2000 ns 2009 ns 10
|
|
|
|
|
std::string str = std::format("test = {} times", k);_stddev 86.8 ns 74.3 ns 10
|
|
|
|
|
std::string str = std::format("test = {} times", k);_cv 4.34 % 3.73 % 10
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_mean 2076 ns 2054 ns 10
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_median 2036 ns 2040 ns 10
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_stddev 84.9 ns 56.8 ns 10
|
|
|
|
|
lstringa<8> str; str.format("test = {} times", k);_cv 4.09 % 2.76 % 10
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_mean 1004 ns 1000 ns 10
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_median 990 ns 984 ns 10
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_stddev 29.4 ns 32.4 ns 10
|
|
|
|
|
lstringa<32> str; str.format("test = {} times", k);_cv 2.93 % 3.24 % 10
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_mean 778 ns 774 ns 10
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_median 775 ns 767 ns 10
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_stddev 14.5 ns 22.1 ns 10
|
|
|
|
|
lstringa<8> str = "test = " + k + " times";_cv 1.86 % 2.85 % 10
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_mean 154 ns 153 ns 10
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_median 152 ns 153 ns 10
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_stddev 6.33 ns 6.37 ns 10
|
|
|
|
|
lstringa<32> str = "test = " + k + " times";_cv 4.10 % 4.15 % 10
|
|
|
|
|
stringa str = "test = " + k + " times";_mean 152 ns 150 ns 10
|
|
|
|
|
stringa str = "test = " + k + " times";_median 151 ns 149 ns 10
|
|
|
|
|
stringa str = "test = " + k + " times";_stddev 2.90 ns 3.45 ns 10
|
|
|
|
|
stringa str = "test = " + k + " times";_cv 1.90 % 2.30 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
std::string::find + substr + std::strtol_mean 546 ns 533 ns 10
|
|
|
|
|
std::string::find + substr + std::strtol_median 549 ns 530 ns 10
|
|
|
|
|
std::string::find + substr + std::strtol_stddev 14.3 ns 11.0 ns 10
|
|
|
|
|
std::string::find + substr + std::strtol_cv 2.61 % 2.06 % 10
|
|
|
|
|
ssa::splitter + ssa::as_int_mean 170 ns 169 ns 10
|
|
|
|
|
ssa::splitter + ssa::as_int_median 168 ns 169 ns 10
|
|
|
|
|
ssa::splitter + ssa::as_int_stddev 5.45 ns 4.43 ns 10
|
|
|
|
|
ssa::splitter + ssa::as_int_cv 3.21 % 2.62 % 10
|
|
|
|
|
ssa::splitf + functor_mean 188 ns 186 ns 10
|
|
|
|
|
ssa::splitf + functor_median 187 ns 186 ns 10
|
|
|
|
|
ssa::splitf + functor_stddev 6.56 ns 6.41 ns 10
|
|
|
|
|
ssa::splitf + functor_cv 3.49 % 3.45 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_mean 1153 ns 1138 ns 10
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_median 1128 ns 1116 ns 10
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_stddev 64.4 ns 41.2 ns 10
|
|
|
|
|
Naive (and wrong) replace symbols with std::string find + replace_cv 5.58 % 3.62 % 10
|
|
|
|
|
replace symbols with std::string find_first_of + replace_mean 2047 ns 2031 ns 10
|
|
|
|
|
replace symbols with std::string find_first_of + replace_median 2017 ns 2018 ns 10
|
|
|
|
|
replace symbols with std::string find_first_of + replace_stddev 98.2 ns 99.8 ns 10
|
|
|
|
|
replace symbols with std::string find_first_of + replace_cv 4.80 % 4.91 % 10
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_mean 2300 ns 2280 ns 10
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_median 2286 ns 2295 ns 10
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_stddev 58.4 ns 61.1 ns 10
|
|
|
|
|
replace symbols with std::string_view find_first_of + copy_cv 2.54 % 2.68 % 10
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_mean 1434 ns 1413 ns 10
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_median 1428 ns 1397 ns 10
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_stddev 48.8 ns 49.1 ns 10
|
|
|
|
|
replace runtime symbols with string expressions and without remembering all search results_cv 3.40 % 3.47 % 10
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_mean 1349 ns 1334 ns 10
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_median 1339 ns 1350 ns 10
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_stddev 32.5 ns 39.8 ns 10
|
|
|
|
|
replace runtime symbols with simstr and memorization of all search results_cv 2.41 % 2.99 % 10
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_mean 1146 ns 1135 ns 10
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_median 1137 ns 1147 ns 10
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_stddev 29.7 ns 31.0 ns 10
|
|
|
|
|
replace const symbols with string expressions and without remembering all search results_cv 2.59 % 2.73 % 10
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_mean 1213 ns 1197 ns 10
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_median 1200 ns 1186 ns 10
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_stddev 35.7 ns 30.7 ns 10
|
|
|
|
|
replace const symbols with string expressions and memorization of all search results_cv 2.94 % 2.57 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
-- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_mean 314 ns 312 ns 10
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_median 315 ns 311 ns 10
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 7.64 ns 9.08 ns 10
|
|
|
|
|
Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.43 % 2.91 % 10
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_mean 369 ns 367 ns 10
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_median 363 ns 360 ns 10
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_stddev 14.2 ns 16.9 ns 10
|
|
|
|
|
Short replace symbols with std::string find_first_of + replace_cv 3.83 % 4.61 % 10
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_mean 322 ns 321 ns 10
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_median 321 ns 321 ns 10
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_stddev 9.99 ns 9.98 ns 10
|
|
|
|
|
Short replace symbols with std::string_view find_first_of + copy_cv 3.10 % 3.11 % 10
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_mean 258 ns 257 ns 10
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_median 259 ns 259 ns 10
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.29 ns 6.43 ns 10
|
|
|
|
|
Short replace runtime symbols with string expressions and without remembering all search results_cv 1.66 % 2.50 % 10
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_mean 344 ns 343 ns 10
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_median 340 ns 339 ns 10
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_stddev 11.9 ns 12.5 ns 10
|
|
|
|
|
Short replace runtime symbols with simstr and memorization of all search results_cv 3.46 % 3.64 % 10
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_mean 213 ns 213 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_median 214 ns 213 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_stddev 4.05 ns 4.51 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and without remembering all search results_cv 1.90 % 2.12 % 10
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_mean 303 ns 301 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_median 300 ns 298 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_stddev 8.35 ns 9.57 ns 10
|
|
|
|
|
Short replace const symbols with string expressions and memorization of all search results_cv 2.75 % 3.18 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
replace bb to ---- in std::string|64_mean 227 ns 223 ns 10
|
|
|
|
|
replace bb to ---- in std::string|64_median 226 ns 222 ns 10
|
|
|
|
|
replace bb to ---- in std::string|64_stddev 6.99 ns 4.02 ns 10
|
|
|
|
|
replace bb to ---- in std::string|64_cv 3.08 % 1.80 % 10
|
|
|
|
|
replace bb to ---- in std::string|256_mean 765 ns 760 ns 10
|
|
|
|
|
replace bb to ---- in std::string|256_median 766 ns 753 ns 10
|
|
|
|
|
replace bb to ---- in std::string|256_stddev 21.8 ns 20.0 ns 10
|
|
|
|
|
replace bb to ---- in std::string|256_cv 2.85 % 2.63 % 10
|
|
|
|
|
replace bb to ---- in std::string|512_mean 1465 ns 1456 ns 10
|
|
|
|
|
replace bb to ---- in std::string|512_median 1468 ns 1451 ns 10
|
|
|
|
|
replace bb to ---- in std::string|512_stddev 71.6 ns 73.0 ns 10
|
|
|
|
|
replace bb to ---- in std::string|512_cv 4.89 % 5.01 % 10
|
|
|
|
|
replace bb to ---- in std::string|1024_mean 3193 ns 3121 ns 10
|
|
|
|
|
replace bb to ---- in std::string|1024_median 3207 ns 3181 ns 10
|
|
|
|
|
replace bb to ---- in std::string|1024_stddev 145 ns 115 ns 10
|
|
|
|
|
replace bb to ---- in std::string|1024_cv 4.53 % 3.67 % 10
|
|
|
|
|
replace bb to ---- in std::string|2048_mean 7883 ns 7778 ns 10
|
|
|
|
|
replace bb to ---- in std::string|2048_median 7810 ns 7673 ns 10
|
|
|
|
|
replace bb to ---- in std::string|2048_stddev 224 ns 205 ns 10
|
|
|
|
|
replace bb to ---- in std::string|2048_cv 2.84 % 2.63 % 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_mean 320 ns 314 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_median 320 ns 315 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_stddev 16.3 ns 11.2 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|64_cv 5.11 % 3.55 % 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_mean 629 ns 621 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_median 621 ns 614 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_stddev 18.4 ns 13.6 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|256_cv 2.92 % 2.18 % 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_mean 1065 ns 1057 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_median 1056 ns 1050 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_stddev 31.2 ns 30.6 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|512_cv 2.93 % 2.89 % 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_mean 1907 ns 1879 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_median 1880 ns 1883 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_stddev 61.4 ns 50.1 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|1024_cv 3.22 % 2.67 % 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_mean 3579 ns 3522 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_median 3524 ns 3530 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_stddev 95.4 ns 43.6 ns 10
|
|
|
|
|
replace bb to ---- in lstringa<8>|2048_cv 2.67 % 1.24 % 10
|
|
|
|
|
replace bb to ---- by init stringa|64_mean 172 ns 168 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|64_median 171 ns 164 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|64_stddev 9.74 ns 8.35 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|64_cv 5.68 % 4.97 % 10
|
|
|
|
|
replace bb to ---- by init stringa|256_mean 377 ns 375 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|256_median 374 ns 372 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|256_stddev 8.32 ns 8.65 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|256_cv 2.21 % 2.31 % 10
|
|
|
|
|
replace bb to ---- by init stringa|512_mean 813 ns 802 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|512_median 808 ns 802 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|512_stddev 20.4 ns 18.4 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|512_cv 2.51 % 2.29 % 10
|
|
|
|
|
replace bb to ---- by init stringa|1024_mean 1637 ns 1625 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|1024_median 1614 ns 1604 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|1024_stddev 49.5 ns 52.5 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|1024_cv 3.02 % 3.23 % 10
|
|
|
|
|
replace bb to ---- by init stringa|2048_mean 3090 ns 3062 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|2048_median 3057 ns 3048 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|2048_stddev 93.5 ns 68.4 ns 10
|
|
|
|
|
replace bb to ---- by init stringa|2048_cv 3.03 % 2.24 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
replace bb to -- in std::string|64_mean 190 ns 190 ns 10
|
|
|
|
|
replace bb to -- in std::string|64_median 190 ns 190 ns 10
|
|
|
|
|
replace bb to -- in std::string|64_stddev 5.77 ns 7.18 ns 10
|
|
|
|
|
replace bb to -- in std::string|64_cv 3.03 % 3.77 % 10
|
|
|
|
|
replace bb to -- in std::string|256_mean 468 ns 466 ns 10
|
|
|
|
|
replace bb to -- in std::string|256_median 465 ns 460 ns 10
|
|
|
|
|
replace bb to -- in std::string|256_stddev 8.61 ns 10.2 ns 10
|
|
|
|
|
replace bb to -- in std::string|256_cv 1.84 % 2.18 % 10
|
|
|
|
|
replace bb to -- in std::string|512_mean 842 ns 833 ns 10
|
|
|
|
|
replace bb to -- in std::string|512_median 835 ns 837 ns 10
|
|
|
|
|
replace bb to -- in std::string|512_stddev 23.2 ns 19.2 ns 10
|
|
|
|
|
replace bb to -- in std::string|512_cv 2.76 % 2.31 % 10
|
|
|
|
|
replace bb to -- in std::string|1024_mean 1614 ns 1597 ns 10
|
|
|
|
|
replace bb to -- in std::string|1024_median 1579 ns 1569 ns 10
|
|
|
|
|
replace bb to -- in std::string|1024_stddev 65.9 ns 61.1 ns 10
|
|
|
|
|
replace bb to -- in std::string|1024_cv 4.09 % 3.82 % 10
|
|
|
|
|
replace bb to -- in std::string|2048_mean 3157 ns 3134 ns 10
|
|
|
|
|
replace bb to -- in std::string|2048_median 3144 ns 3115 ns 10
|
|
|
|
|
replace bb to -- in std::string|2048_stddev 79.0 ns 44.7 ns 10
|
|
|
|
|
replace bb to -- in std::string|2048_cv 2.50 % 1.43 % 10
|
|
|
|
|
replace bb to -- in lstringa<8>|64_mean 185 ns 184 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|64_median 184 ns 181 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|64_stddev 4.07 ns 6.14 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|64_cv 2.20 % 3.34 % 10
|
|
|
|
|
replace bb to -- in lstringa<8>|256_mean 435 ns 429 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|256_median 431 ns 424 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|256_stddev 21.1 ns 20.0 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|256_cv 4.84 % 4.65 % 10
|
|
|
|
|
replace bb to -- in lstringa<8>|512_mean 763 ns 753 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|512_median 760 ns 753 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|512_stddev 15.0 ns 13.2 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|512_cv 1.96 % 1.75 % 10
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_mean 1404 ns 1394 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_median 1395 ns 1397 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_stddev 42.3 ns 39.7 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|1024_cv 3.01 % 2.85 % 10
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_mean 2741 ns 2716 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_median 2744 ns 2727 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_stddev 76.5 ns 67.3 ns 10
|
|
|
|
|
replace bb to -- in lstringa<8>|2048_cv 2.79 % 2.48 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
replace bb to -- by init stringa|64_mean 162 ns 161 ns 10
|
2026-01-21 11:59:17 +00:00
|
|
|
replace bb to -- by init stringa|64_median 164 ns 162 ns 10
|
|
|
|
|
replace bb to -- by init stringa|64_stddev 4.13 ns 4.20 ns 10
|
|
|
|
|
replace bb to -- by init stringa|64_cv 2.55 % 2.61 % 10
|
|
|
|
|
replace bb to -- by init stringa|256_mean 357 ns 353 ns 10
|
|
|
|
|
replace bb to -- by init stringa|256_median 358 ns 353 ns 10
|
|
|
|
|
replace bb to -- by init stringa|256_stddev 11.8 ns 10.7 ns 10
|
|
|
|
|
replace bb to -- by init stringa|256_cv 3.30 % 3.03 % 10
|
|
|
|
|
replace bb to -- by init stringa|512_mean 580 ns 564 ns 10
|
|
|
|
|
replace bb to -- by init stringa|512_median 577 ns 558 ns 10
|
|
|
|
|
replace bb to -- by init stringa|512_stddev 23.9 ns 11.8 ns 10
|
|
|
|
|
replace bb to -- by init stringa|512_cv 4.13 % 2.09 % 10
|
|
|
|
|
replace bb to -- by init stringa|1024_mean 1091 ns 1077 ns 10
|
|
|
|
|
replace bb to -- by init stringa|1024_median 1091 ns 1086 ns 10
|
|
|
|
|
replace bb to -- by init stringa|1024_stddev 48.5 ns 38.9 ns 10
|
|
|
|
|
replace bb to -- by init stringa|1024_cv 4.45 % 3.62 % 10
|
|
|
|
|
replace bb to -- by init stringa|2048_mean 1998 ns 1972 ns 10
|
|
|
|
|
replace bb to -- by init stringa|2048_median 2010 ns 1972 ns 10
|
|
|
|
|
replace bb to -- by init stringa|2048_stddev 51.7 ns 49.0 ns 10
|
|
|
|
|
replace bb to -- by init stringa|2048_cv 2.59 % 2.48 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
hashStrMapA<size_t> emplace & find stringa;_mean 3693883 ns 3674930 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_median 3687852 ns 3666201 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_stddev 226433 ns 207589 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find stringa;_cv 6.13 % 5.65 % 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5258881 ns 5231585 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5227104 ns 5161830 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 147989 ns 135578 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.81 % 2.59 % 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_mean 3418166 ns 3416054 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_median 3409800 ns 3408395 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_stddev 67498 ns 73996 ns 10
|
|
|
|
|
hashStrMapA<size_t> emplace & find ssa;_cv 1.97 % 2.17 % 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6295014 ns 6277902 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6199714 ns 6138393 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 245175 ns 263061 ns 10
|
|
|
|
|
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 3.89 % 4.19 % 10
|
2025-11-26 19:15:50 +00:00
|
|
|
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
|
2026-01-21 11:59:17 +00:00
|
|
|
Build func full name std::string;_mean 1533 ns 1522 ns 10
|
|
|
|
|
Build func full name std::string;_median 1513 ns 1491 ns 10
|
|
|
|
|
Build func full name std::string;_stddev 58.1 ns 59.6 ns 10
|
|
|
|
|
Build func full name std::string;_cv 3.79 % 3.92 % 10
|
|
|
|
|
Build func full name std::string 1;_mean 1602 ns 1588 ns 10
|
|
|
|
|
Build func full name std::string 1;_median 1581 ns 1573 ns 10
|
|
|
|
|
Build func full name std::string 1;_stddev 71.7 ns 70.5 ns 10
|
|
|
|
|
Build func full name std::string 1;_cv 4.48 % 4.44 % 10
|
|
|
|
|
Build func full name std::stream;_mean 8228 ns 8161 ns 10
|
|
|
|
|
Build func full name std::stream;_median 8257 ns 8109 ns 10
|
|
|
|
|
Build func full name std::stream;_stddev 326 ns 305 ns 10
|
|
|
|
|
Build func full name std::stream;_cv 3.96 % 3.74 % 10
|
|
|
|
|
Build func full name stringa;_mean 818 ns 815 ns 10
|
|
|
|
|
Build func full name stringa;_median 817 ns 816 ns 10
|
|
|
|
|
Build func full name stringa;_stddev 22.1 ns 24.8 ns 10
|
|
|
|
|
Build func full name stringa;_cv 2.70 % 3.04 % 10
|
|
|
|
|
Build func full name stringa 1;_mean 959 ns 952 ns 10
|
|
|
|
|
Build func full name stringa 1;_median 936 ns 940 ns 10
|
|
|
|
|
Build func full name stringa 1;_stddev 50.6 ns 43.1 ns 10
|
|
|
|
|
Build func full name stringa 1;_cv 5.27 % 4.52 % 10
|