simstr/bench/results/004-Xeon E5-2682 v4, WASM C...

785 lines
117 KiB
Plaintext

Run on (32 X 2513.96 MHz CPU s)
Chromium: 142.0.7444.60 webasm
--------------------------------------------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------
----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e;_mean 5.87 ns 5.87 ns 10
std::string e;_median 5.83 ns 5.83 ns 10
std::string e;_stddev 0.100 ns 0.100 ns 10
std::string e;_cv 1.71 % 1.71 % 10
std::string_view e;_mean 5.26 ns 5.26 ns 10
std::string_view e;_median 5.26 ns 5.26 ns 10
std::string_view e;_stddev 0.022 ns 0.022 ns 10
std::string_view e;_cv 0.43 % 0.43 % 10
ssa e;_mean 4.67 ns 4.67 ns 10
ssa e;_median 4.67 ns 4.67 ns 10
ssa e;_stddev 0.023 ns 0.023 ns 10
ssa e;_cv 0.50 % 0.49 % 10
stringa e;_mean 4.82 ns 4.82 ns 10
stringa e;_median 4.81 ns 4.81 ns 10
stringa e;_stddev 0.040 ns 0.040 ns 10
stringa e;_cv 0.83 % 0.83 % 10
lstringa<20> e;_mean 4.64 ns 4.64 ns 10
lstringa<20> e;_median 4.62 ns 4.62 ns 10
lstringa<20> e;_stddev 0.076 ns 0.076 ns 10
lstringa<20> e;_cv 1.63 % 1.63 % 10
lstringa<40> e;_mean 4.76 ns 4.76 ns 10
lstringa<40> e;_median 4.72 ns 4.72 ns 10
lstringa<40> e;_stddev 0.128 ns 0.128 ns 10
lstringa<40> e;_cv 2.68 % 2.68 % 10
----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "Test text";_mean 5.17 ns 5.17 ns 10
std::string e = "Test text";_median 5.16 ns 5.16 ns 10
std::string e = "Test text";_stddev 0.060 ns 0.060 ns 10
std::string e = "Test text";_cv 1.16 % 1.16 % 10
std::string_view e = "Test text";_mean 5.57 ns 5.57 ns 10
std::string_view e = "Test text";_median 5.56 ns 5.56 ns 10
std::string_view e = "Test text";_stddev 0.026 ns 0.026 ns 10
std::string_view e = "Test text";_cv 0.47 % 0.47 % 10
ssa e = "Test text";_mean 3.41 ns 3.41 ns 10
ssa e = "Test text";_median 3.41 ns 3.41 ns 10
ssa e = "Test text";_stddev 0.029 ns 0.029 ns 10
ssa e = "Test text";_cv 0.84 % 0.84 % 10
stringa e = "Test text";_mean 5.07 ns 5.07 ns 10
stringa e = "Test text";_median 5.01 ns 5.01 ns 10
stringa e = "Test text";_stddev 0.168 ns 0.168 ns 10
stringa e = "Test text";_cv 3.32 % 3.32 % 10
lstringa<20> e = "Test text";_mean 5.37 ns 5.37 ns 10
lstringa<20> e = "Test text";_median 5.37 ns 5.37 ns 10
lstringa<20> e = "Test text";_stddev 0.102 ns 0.102 ns 10
lstringa<20> e = "Test text";_cv 1.90 % 1.90 % 10
lstringa<40> e = "Test text";_mean 5.37 ns 5.37 ns 10
lstringa<40> e = "Test text";_median 5.36 ns 5.36 ns 10
lstringa<40> e = "Test text";_stddev 0.061 ns 0.061 ns 10
lstringa<40> e = "Test text";_cv 1.13 % 1.13 % 10
----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890";_mean 63.4 ns 63.4 ns 10
std::string e = "123456789012345678901234567890";_median 63.5 ns 63.5 ns 10
std::string e = "123456789012345678901234567890";_stddev 2.12 ns 2.12 ns 10
std::string e = "123456789012345678901234567890";_cv 3.35 % 3.35 % 10
std::string_view e = "123456789012345678901234567890";_mean 5.58 ns 5.58 ns 10
std::string_view e = "123456789012345678901234567890";_median 5.57 ns 5.57 ns 10
std::string_view e = "123456789012345678901234567890";_stddev 0.045 ns 0.045 ns 10
std::string_view e = "123456789012345678901234567890";_cv 0.81 % 0.81 % 10
ssa e = "123456789012345678901234567890";_mean 3.33 ns 3.33 ns 10
ssa e = "123456789012345678901234567890";_median 3.33 ns 3.33 ns 10
ssa e = "123456789012345678901234567890";_stddev 0.026 ns 0.026 ns 10
ssa e = "123456789012345678901234567890";_cv 0.78 % 0.78 % 10
stringa e = "123456789012345678901234567890";_mean 4.95 ns 4.95 ns 10
stringa e = "123456789012345678901234567890";_median 4.90 ns 4.90 ns 10
stringa e = "123456789012345678901234567890";_stddev 0.103 ns 0.103 ns 10
stringa e = "123456789012345678901234567890";_cv 2.08 % 2.08 % 10
lstringa<20> e = "123456789012345678901234567890";_mean 63.1 ns 63.1 ns 10
lstringa<20> e = "123456789012345678901234567890";_median 63.0 ns 63.0 ns 10
lstringa<20> e = "123456789012345678901234567890";_stddev 2.03 ns 2.03 ns 10
lstringa<20> e = "123456789012345678901234567890";_cv 3.22 % 3.22 % 10
lstringa<40> e = "123456789012345678901234567890";_mean 5.86 ns 5.86 ns 10
lstringa<40> e = "123456789012345678901234567890";_median 5.90 ns 5.90 ns 10
lstringa<40> e = "123456789012345678901234567890";_stddev 0.090 ns 0.090 ns 10
lstringa<40> e = "123456789012345678901234567890";_cv 1.53 % 1.53 % 10
----- 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 11.0 ns 11.0 ns 10
std::string e = "Test text"; auto c{e};_median 11.0 ns 11.0 ns 10
std::string e = "Test text"; auto c{e};_stddev 0.061 ns 0.061 ns 10
std::string e = "Test text"; auto c{e};_cv 0.55 % 0.55 % 10
std::string_view e = "Test text"; auto c{e};_mean 5.91 ns 5.91 ns 10
std::string_view e = "Test text"; auto c{e};_median 5.91 ns 5.91 ns 10
std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 10
std::string_view e = "Test text"; auto c{e};_cv 0.24 % 0.24 % 10
ssa e = "Test text"; auto c{e};_mean 6.84 ns 6.84 ns 10
ssa e = "Test text"; auto c{e};_median 6.85 ns 6.85 ns 10
ssa e = "Test text"; auto c{e};_stddev 0.043 ns 0.043 ns 10
ssa e = "Test text"; auto c{e};_cv 0.62 % 0.62 % 10
stringa e = "Test text"; auto c{e};_mean 5.18 ns 5.18 ns 10
stringa e = "Test text"; auto c{e};_median 5.15 ns 5.15 ns 10
stringa e = "Test text"; auto c{e};_stddev 0.150 ns 0.150 ns 10
stringa e = "Test text"; auto c{e};_cv 2.90 % 2.90 % 10
lstringa<20> e = "Test text"; auto c{e};_mean 17.5 ns 17.5 ns 10
lstringa<20> e = "Test text"; auto c{e};_median 17.5 ns 17.5 ns 10
lstringa<20> e = "Test text"; auto c{e};_stddev 0.608 ns 0.608 ns 10
lstringa<20> e = "Test text"; auto c{e};_cv 3.48 % 3.48 % 10
lstringa<40> e = "Test text"; auto c{e};_mean 17.4 ns 17.4 ns 10
lstringa<40> e = "Test text"; auto c{e};_median 17.5 ns 17.5 ns 10
lstringa<40> e = "Test text"; auto c{e};_stddev 0.419 ns 0.419 ns 10
lstringa<40> e = "Test text"; auto c{e};_cv 2.40 % 2.40 % 10
----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string e = "123456789012345678901234567890"; auto c{e};_mean 93.3 ns 93.3 ns 10
std::string e = "123456789012345678901234567890"; auto c{e};_median 92.5 ns 92.5 ns 10
std::string e = "123456789012345678901234567890"; auto c{e};_stddev 3.13 ns 3.13 ns 10
std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.35 % 3.35 % 10
std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 5.57 ns 5.57 ns 10
std::string_view e = "123456789012345678901234567890"; auto c{e};_median 5.57 ns 5.57 ns 10
std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 10
std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.35 % 0.35 % 10
ssa e = "123456789012345678901234567890"; auto c{e};_mean 3.32 ns 3.32 ns 10
ssa e = "123456789012345678901234567890"; auto c{e};_median 3.32 ns 3.32 ns 10
ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.021 ns 0.021 ns 10
ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.63 % 0.63 % 10
stringa e = "123456789012345678901234567890"; auto c{e};_mean 4.89 ns 4.89 ns 10
stringa e = "123456789012345678901234567890"; auto c{e};_median 4.87 ns 4.87 ns 10
stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.063 ns 0.063 ns 10
stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.30 % 1.30 % 10
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 66.3 ns 66.3 ns 10
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 66.0 ns 66.1 ns 10
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.64 ns 2.64 ns 10
lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.98 % 3.98 % 10
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 17.0 ns 17.0 ns 10
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 16.7 ns 16.7 ns 10
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.960 ns 0.960 ns 10
lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 5.66 % 5.66 % 10
----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find;_mean 101 ns 101 ns 10
std::string::find;_median 101 ns 101 ns 10
std::string::find;_stddev 1.61 ns 1.61 ns 10
std::string::find;_cv 1.59 % 1.59 % 10
std::string_view::find;_mean 103 ns 103 ns 10
std::string_view::find;_median 102 ns 102 ns 10
std::string_view::find;_stddev 4.97 ns 4.97 ns 10
std::string_view::find;_cv 4.83 % 4.83 % 10
ssa::find;_mean 102 ns 102 ns 10
ssa::find;_median 102 ns 102 ns 10
ssa::find;_stddev 2.15 ns 2.15 ns 10
ssa::find;_cv 2.11 % 2.11 % 10
stringa::find;_mean 105 ns 105 ns 10
stringa::find;_median 104 ns 104 ns 10
stringa::find;_stddev 4.34 ns 4.34 ns 10
stringa::find;_cv 4.15 % 4.15 % 10
lstringa<20>::find;_mean 99.9 ns 99.9 ns 10
lstringa<20>::find;_median 99.9 ns 99.9 ns 10
lstringa<20>::find;_stddev 1.61 ns 1.61 ns 10
lstringa<20>::find;_cv 1.61 % 1.61 % 10
lstringa<40>::find;_mean 100 ns 100 ns 10
lstringa<40>::find;_median 99.2 ns 99.2 ns 10
lstringa<40>::find;_stddev 3.67 ns 3.67 ns 10
lstringa<40>::find;_cv 3.66 % 3.66 % 10
------- 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 97.2 ns 97.2 ns 10
std::string copy{str_with_len_N};/15_median 98.2 ns 98.2 ns 10
std::string copy{str_with_len_N};/15_stddev 5.39 ns 5.39 ns 10
std::string copy{str_with_len_N};/15_cv 5.55 % 5.55 % 10
std::string copy{str_with_len_N};/16_mean 94.6 ns 94.6 ns 10
std::string copy{str_with_len_N};/16_median 95.7 ns 95.7 ns 10
std::string copy{str_with_len_N};/16_stddev 3.09 ns 3.09 ns 10
std::string copy{str_with_len_N};/16_cv 3.27 % 3.27 % 10
std::string copy{str_with_len_N};/23_mean 91.6 ns 91.6 ns 10
std::string copy{str_with_len_N};/23_median 91.7 ns 91.7 ns 10
std::string copy{str_with_len_N};/23_stddev 3.83 ns 3.83 ns 10
std::string copy{str_with_len_N};/23_cv 4.18 % 4.18 % 10
std::string copy{str_with_len_N};/24_mean 94.5 ns 94.5 ns 10
std::string copy{str_with_len_N};/24_median 94.9 ns 94.9 ns 10
std::string copy{str_with_len_N};/24_stddev 3.26 ns 3.26 ns 10
std::string copy{str_with_len_N};/24_cv 3.45 % 3.45 % 10
std::string copy{str_with_len_N};/32_mean 97.0 ns 97.0 ns 10
std::string copy{str_with_len_N};/32_median 97.4 ns 97.4 ns 10
std::string copy{str_with_len_N};/32_stddev 3.12 ns 3.12 ns 10
std::string copy{str_with_len_N};/32_cv 3.22 % 3.22 % 10
std::string copy{str_with_len_N};/64_mean 98.1 ns 98.1 ns 10
std::string copy{str_with_len_N};/64_median 97.6 ns 97.6 ns 10
std::string copy{str_with_len_N};/64_stddev 4.22 ns 4.22 ns 10
std::string copy{str_with_len_N};/64_cv 4.30 % 4.30 % 10
std::string copy{str_with_len_N};/128_mean 103 ns 103 ns 10
std::string copy{str_with_len_N};/128_median 100 ns 100 ns 10
std::string copy{str_with_len_N};/128_stddev 9.59 ns 9.59 ns 10
std::string copy{str_with_len_N};/128_cv 9.29 % 9.29 % 10
std::string copy{str_with_len_N};/256_mean 161 ns 161 ns 10
std::string copy{str_with_len_N};/256_median 180 ns 180 ns 10
std::string copy{str_with_len_N};/256_stddev 40.6 ns 40.6 ns 10
std::string copy{str_with_len_N};/256_cv 25.29 % 25.29 % 10
std::string copy{str_with_len_N};/512_mean 151 ns 151 ns 10
std::string copy{str_with_len_N};/512_median 150 ns 150 ns 10
std::string copy{str_with_len_N};/512_stddev 38.1 ns 38.1 ns 10
std::string copy{str_with_len_N};/512_cv 25.27 % 25.27 % 10
std::string copy{str_with_len_N};/1024_mean 131 ns 131 ns 10
std::string copy{str_with_len_N};/1024_median 126 ns 126 ns 10
std::string copy{str_with_len_N};/1024_stddev 21.4 ns 21.4 ns 10
std::string copy{str_with_len_N};/1024_cv 16.31 % 16.31 % 10
std::string copy{str_with_len_N};/2048_mean 148 ns 148 ns 10
std::string copy{str_with_len_N};/2048_median 145 ns 145 ns 10
std::string copy{str_with_len_N};/2048_stddev 10.5 ns 10.5 ns 10
std::string copy{str_with_len_N};/2048_cv 7.09 % 7.09 % 10
std::string copy{str_with_len_N};/4096_mean 185 ns 185 ns 10
std::string copy{str_with_len_N};/4096_median 183 ns 183 ns 10
std::string copy{str_with_len_N};/4096_stddev 8.27 ns 8.27 ns 10
std::string copy{str_with_len_N};/4096_cv 4.47 % 4.47 % 10
stringa copy{str_with_len_N};/15_mean 5.19 ns 5.19 ns 10
stringa copy{str_with_len_N};/15_median 5.13 ns 5.13 ns 10
stringa copy{str_with_len_N};/15_stddev 0.223 ns 0.223 ns 10
stringa copy{str_with_len_N};/15_cv 4.29 % 4.29 % 10
stringa copy{str_with_len_N};/16_mean 10.0 ns 10.0 ns 10
stringa copy{str_with_len_N};/16_median 9.95 ns 9.95 ns 10
stringa copy{str_with_len_N};/16_stddev 0.218 ns 0.218 ns 10
stringa copy{str_with_len_N};/16_cv 2.17 % 2.17 % 10
stringa copy{str_with_len_N};/23_mean 9.97 ns 9.97 ns 10
stringa copy{str_with_len_N};/23_median 9.91 ns 9.91 ns 10
stringa copy{str_with_len_N};/23_stddev 0.223 ns 0.223 ns 10
stringa copy{str_with_len_N};/23_cv 2.23 % 2.23 % 10
stringa copy{str_with_len_N};/24_mean 10.1 ns 10.1 ns 10
stringa copy{str_with_len_N};/24_median 9.98 ns 9.98 ns 10
stringa copy{str_with_len_N};/24_stddev 0.238 ns 0.238 ns 10
stringa copy{str_with_len_N};/24_cv 2.36 % 2.36 % 10
stringa copy{str_with_len_N};/32_mean 10.0 ns 10.0 ns 10
stringa copy{str_with_len_N};/32_median 10.0 ns 10.0 ns 10
stringa copy{str_with_len_N};/32_stddev 0.122 ns 0.122 ns 10
stringa copy{str_with_len_N};/32_cv 1.21 % 1.21 % 10
stringa copy{str_with_len_N};/64_mean 9.95 ns 9.95 ns 10
stringa copy{str_with_len_N};/64_median 9.90 ns 9.90 ns 10
stringa copy{str_with_len_N};/64_stddev 0.145 ns 0.145 ns 10
stringa copy{str_with_len_N};/64_cv 1.46 % 1.46 % 10
stringa copy{str_with_len_N};/128_mean 9.93 ns 9.93 ns 10
stringa copy{str_with_len_N};/128_median 9.90 ns 9.90 ns 10
stringa copy{str_with_len_N};/128_stddev 0.178 ns 0.178 ns 10
stringa copy{str_with_len_N};/128_cv 1.79 % 1.79 % 10
stringa copy{str_with_len_N};/256_mean 9.95 ns 9.95 ns 10
stringa copy{str_with_len_N};/256_median 9.92 ns 9.92 ns 10
stringa copy{str_with_len_N};/256_stddev 0.112 ns 0.112 ns 10
stringa copy{str_with_len_N};/256_cv 1.13 % 1.13 % 10
stringa copy{str_with_len_N};/512_mean 10.0 ns 10.0 ns 10
stringa copy{str_with_len_N};/512_median 9.94 ns 9.94 ns 10
stringa copy{str_with_len_N};/512_stddev 0.214 ns 0.214 ns 10
stringa copy{str_with_len_N};/512_cv 2.13 % 2.13 % 10
stringa copy{str_with_len_N};/1024_mean 9.92 ns 9.92 ns 10
stringa copy{str_with_len_N};/1024_median 9.90 ns 9.90 ns 10
stringa copy{str_with_len_N};/1024_stddev 0.113 ns 0.113 ns 10
stringa copy{str_with_len_N};/1024_cv 1.14 % 1.14 % 10
stringa copy{str_with_len_N};/2048_mean 10.0 ns 10.0 ns 10
stringa copy{str_with_len_N};/2048_median 9.97 ns 9.97 ns 10
stringa copy{str_with_len_N};/2048_stddev 0.174 ns 0.174 ns 10
stringa copy{str_with_len_N};/2048_cv 1.73 % 1.73 % 10
stringa copy{str_with_len_N};/4096_mean 10.1 ns 10.1 ns 10
stringa copy{str_with_len_N};/4096_median 9.99 ns 9.99 ns 10
stringa copy{str_with_len_N};/4096_stddev 0.212 ns 0.212 ns 10
stringa copy{str_with_len_N};/4096_cv 2.11 % 2.11 % 10
lstringa<16> copy{str_with_len_N};/15_mean 17.2 ns 17.2 ns 10
lstringa<16> copy{str_with_len_N};/15_median 17.0 ns 17.0 ns 10
lstringa<16> copy{str_with_len_N};/15_stddev 1.43 ns 1.43 ns 10
lstringa<16> copy{str_with_len_N};/15_cv 8.29 % 8.29 % 10
lstringa<16> copy{str_with_len_N};/16_mean 17.0 ns 17.0 ns 10
lstringa<16> copy{str_with_len_N};/16_median 17.0 ns 17.0 ns 10
lstringa<16> copy{str_with_len_N};/16_stddev 0.735 ns 0.735 ns 10
lstringa<16> copy{str_with_len_N};/16_cv 4.33 % 4.33 % 10
lstringa<16> copy{str_with_len_N};/23_mean 77.8 ns 77.8 ns 10
lstringa<16> copy{str_with_len_N};/23_median 77.4 ns 77.4 ns 10
lstringa<16> copy{str_with_len_N};/23_stddev 2.84 ns 2.84 ns 10
lstringa<16> copy{str_with_len_N};/23_cv 3.65 % 3.65 % 10
lstringa<16> copy{str_with_len_N};/24_mean 76.5 ns 76.5 ns 10
lstringa<16> copy{str_with_len_N};/24_median 76.1 ns 76.1 ns 10
lstringa<16> copy{str_with_len_N};/24_stddev 1.45 ns 1.45 ns 10
lstringa<16> copy{str_with_len_N};/24_cv 1.90 % 1.90 % 10
lstringa<16> copy{str_with_len_N};/32_mean 79.5 ns 79.5 ns 10
lstringa<16> copy{str_with_len_N};/32_median 80.2 ns 80.2 ns 10
lstringa<16> copy{str_with_len_N};/32_stddev 3.63 ns 3.63 ns 10
lstringa<16> copy{str_with_len_N};/32_cv 4.57 % 4.57 % 10
lstringa<16> copy{str_with_len_N};/64_mean 82.9 ns 82.9 ns 10
lstringa<16> copy{str_with_len_N};/64_median 81.8 ns 81.8 ns 10
lstringa<16> copy{str_with_len_N};/64_stddev 7.03 ns 7.03 ns 10
lstringa<16> copy{str_with_len_N};/64_cv 8.48 % 8.48 % 10
lstringa<16> copy{str_with_len_N};/128_mean 83.0 ns 83.0 ns 10
lstringa<16> copy{str_with_len_N};/128_median 82.3 ns 82.3 ns 10
lstringa<16> copy{str_with_len_N};/128_stddev 5.89 ns 5.89 ns 10
lstringa<16> copy{str_with_len_N};/128_cv 7.10 % 7.10 % 10
lstringa<16> copy{str_with_len_N};/256_mean 133 ns 133 ns 10
lstringa<16> copy{str_with_len_N};/256_median 152 ns 152 ns 10
lstringa<16> copy{str_with_len_N};/256_stddev 34.9 ns 34.9 ns 10
lstringa<16> copy{str_with_len_N};/256_cv 26.21 % 26.21 % 10
lstringa<16> copy{str_with_len_N};/512_mean 130 ns 130 ns 10
lstringa<16> copy{str_with_len_N};/512_median 131 ns 131 ns 10
lstringa<16> copy{str_with_len_N};/512_stddev 38.4 ns 38.4 ns 10
lstringa<16> copy{str_with_len_N};/512_cv 29.57 % 29.57 % 10
lstringa<16> copy{str_with_len_N};/1024_mean 111 ns 111 ns 10
lstringa<16> copy{str_with_len_N};/1024_median 102 ns 102 ns 10
lstringa<16> copy{str_with_len_N};/1024_stddev 19.9 ns 19.9 ns 10
lstringa<16> copy{str_with_len_N};/1024_cv 17.84 % 17.84 % 10
lstringa<16> copy{str_with_len_N};/2048_mean 122 ns 122 ns 10
lstringa<16> copy{str_with_len_N};/2048_median 122 ns 122 ns 10
lstringa<16> copy{str_with_len_N};/2048_stddev 4.77 ns 4.77 ns 10
lstringa<16> copy{str_with_len_N};/2048_cv 3.91 % 3.91 % 10
lstringa<16> copy{str_with_len_N};/4096_mean 167 ns 167 ns 10
lstringa<16> copy{str_with_len_N};/4096_median 167 ns 167 ns 10
lstringa<16> copy{str_with_len_N};/4096_stddev 2.97 ns 2.97 ns 10
lstringa<16> copy{str_with_len_N};/4096_cv 1.77 % 1.77 % 10
lstringa<512> copy{str_with_len_N};/15_mean 17.9 ns 17.9 ns 10
lstringa<512> copy{str_with_len_N};/15_median 17.8 ns 17.8 ns 10
lstringa<512> copy{str_with_len_N};/15_stddev 0.742 ns 0.742 ns 10
lstringa<512> copy{str_with_len_N};/15_cv 4.16 % 4.16 % 10
lstringa<512> copy{str_with_len_N};/16_mean 18.5 ns 18.5 ns 10
lstringa<512> copy{str_with_len_N};/16_median 18.3 ns 18.3 ns 10
lstringa<512> copy{str_with_len_N};/16_stddev 1.16 ns 1.16 ns 10
lstringa<512> copy{str_with_len_N};/16_cv 6.28 % 6.28 % 10
lstringa<512> copy{str_with_len_N};/23_mean 18.6 ns 18.6 ns 10
lstringa<512> copy{str_with_len_N};/23_median 18.4 ns 18.4 ns 10
lstringa<512> copy{str_with_len_N};/23_stddev 0.848 ns 0.848 ns 10
lstringa<512> copy{str_with_len_N};/23_cv 4.56 % 4.56 % 10
lstringa<512> copy{str_with_len_N};/24_mean 18.8 ns 18.8 ns 10
lstringa<512> copy{str_with_len_N};/24_median 18.6 ns 18.6 ns 10
lstringa<512> copy{str_with_len_N};/24_stddev 0.881 ns 0.881 ns 10
lstringa<512> copy{str_with_len_N};/24_cv 4.68 % 4.68 % 10
lstringa<512> copy{str_with_len_N};/32_mean 25.0 ns 25.0 ns 10
lstringa<512> copy{str_with_len_N};/32_median 24.3 ns 24.3 ns 10
lstringa<512> copy{str_with_len_N};/32_stddev 1.68 ns 1.68 ns 10
lstringa<512> copy{str_with_len_N};/32_cv 6.71 % 6.71 % 10
lstringa<512> copy{str_with_len_N};/64_mean 21.2 ns 21.2 ns 10
lstringa<512> copy{str_with_len_N};/64_median 21.0 ns 21.0 ns 10
lstringa<512> copy{str_with_len_N};/64_stddev 0.789 ns 0.789 ns 10
lstringa<512> copy{str_with_len_N};/64_cv 3.72 % 3.72 % 10
lstringa<512> copy{str_with_len_N};/128_mean 22.3 ns 22.3 ns 10
lstringa<512> copy{str_with_len_N};/128_median 22.2 ns 22.2 ns 10
lstringa<512> copy{str_with_len_N};/128_stddev 0.675 ns 0.675 ns 10
lstringa<512> copy{str_with_len_N};/128_cv 3.02 % 3.02 % 10
lstringa<512> copy{str_with_len_N};/256_mean 24.0 ns 24.0 ns 10
lstringa<512> copy{str_with_len_N};/256_median 23.9 ns 23.9 ns 10
lstringa<512> copy{str_with_len_N};/256_stddev 0.383 ns 0.383 ns 10
lstringa<512> copy{str_with_len_N};/256_cv 1.60 % 1.60 % 10
lstringa<512> copy{str_with_len_N};/512_mean 26.8 ns 26.8 ns 10
lstringa<512> copy{str_with_len_N};/512_median 26.7 ns 26.7 ns 10
lstringa<512> copy{str_with_len_N};/512_stddev 0.830 ns 0.830 ns 10
lstringa<512> copy{str_with_len_N};/512_cv 3.09 % 3.09 % 10
lstringa<512> copy{str_with_len_N};/1024_mean 113 ns 113 ns 10
lstringa<512> copy{str_with_len_N};/1024_median 106 ns 106 ns 10
lstringa<512> copy{str_with_len_N};/1024_stddev 26.0 ns 26.0 ns 10
lstringa<512> copy{str_with_len_N};/1024_cv 23.08 % 23.08 % 10
lstringa<512> copy{str_with_len_N};/2048_mean 129 ns 129 ns 10
lstringa<512> copy{str_with_len_N};/2048_median 129 ns 129 ns 10
lstringa<512> copy{str_with_len_N};/2048_stddev 5.50 ns 5.50 ns 10
lstringa<512> copy{str_with_len_N};/2048_cv 4.26 % 4.26 % 10
lstringa<512> copy{str_with_len_N};/4096_mean 169 ns 169 ns 10
lstringa<512> copy{str_with_len_N};/4096_median 167 ns 167 ns 10
lstringa<512> copy{str_with_len_N};/4096_stddev 5.95 ns 5.95 ns 10
lstringa<512> copy{str_with_len_N};/4096_cv 3.51 % 3.51 % 10
----- 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 204 ns 204 ns 10
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 203 ns 203 ns 10
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 10.00 ns 10.00 ns 10
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 4.89 % 4.89 % 10
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 65.9 ns 65.9 ns 10
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 65.8 ns 65.8 ns 10
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.675 ns 0.675 ns 10
std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.02 % 1.02 % 10
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 58.9 ns 58.9 ns 10
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 57.5 ns 57.5 ns 10
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 3.92 ns 3.92 ns 10
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 6.65 % 6.65 % 10
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 54.2 ns 54.2 ns 10
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_median 54.0 ns 54.0 ns 10
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 2.00 ns 2.00 ns 10
ssa s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 3.69 % 3.69 % 10
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_mean 54.1 ns 54.1 ns 10
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_median 53.9 ns 53.9 ns 10
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_stddev 1.31 ns 1.31 ns 10
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>_cv 2.42 % 2.42 % 10
----- 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 158 ns 158 ns 10
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 154 ns 154 ns 10
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 7.54 ns 7.54 ns 10
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.78 % 4.78 % 10
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 85.4 ns 85.4 ns 10
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 85.3 ns 85.3 ns 10
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 1.31 ns 1.31 ns 10
std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.53 % 1.53 % 10
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 50.4 ns 50.4 ns 10
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 50.7 ns 50.7 ns 10
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.67 ns 1.67 ns 10
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 3.32 % 3.32 % 10
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 47.5 ns 47.5 ns 10
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 47.3 ns 47.3 ns 10
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 1.31 ns 1.31 ns 10
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 2.76 % 2.76 % 10
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_mean 47.2 ns 47.2 ns 10
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_median 46.5 ns 46.5 ns 10
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_stddev 2.98 ns 2.98 ns 10
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>_cv 6.32 % 6.32 % 10
----- 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 226 ns 226 ns 10
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 225 ns 225 ns 10
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 13.9 ns 13.9 ns 10
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 6.15 % 6.15 % 10
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_mean 80.3 ns 80.3 ns 10
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_median 79.8 ns 79.8 ns 10
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_stddev 2.73 ns 2.73 ns 10
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflow_cv 3.40 % 3.40 % 10
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_mean 53.0 ns 53.0 ns 10
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_median 52.8 ns 52.8 ns 10
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_stddev 0.840 ns 0.840 ns 10
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflow_cv 1.58 % 1.58 % 10
----- 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 460 ns 460 ns 10
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 454 ns 454 ns 10
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 19.7 ns 19.7 ns 10
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 4.28 % 4.28 % 10
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 294 ns 294 ns 10
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 291 ns 291 ns 10
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 6.63 ns 6.63 ns 10
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.26 % 2.26 % 10
ssa s = "1234.567e10"; double res = *s.to_double()_mean 105 ns 105 ns 10
ssa s = "1234.567e10"; double res = *s.to_double()_median 103 ns 103 ns 10
ssa s = "1234.567e10"; double res = *s.to_double()_stddev 6.39 ns 6.38 ns 10
ssa s = "1234.567e10"; double res = *s.to_double()_cv 6.06 % 6.06 % 10
-- 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 11819 ns 11819 ns 10
std::stringstream str; ... str << "abbaabbaabbaabba";_median 11691 ns 11691 ns 10
std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 494 ns 494 ns 10
std::stringstream str; ... str << "abbaabbaabbaabba";_cv 4.18 % 4.18 % 10
std::string str; ... str += "abbaabbaabbaabba";_mean 1174 ns 1174 ns 10
std::string str; ... str += "abbaabbaabbaabba";_median 1168 ns 1168 ns 10
std::string str; ... str += "abbaabbaabbaabba";_stddev 76.0 ns 76.0 ns 10
std::string str; ... str += "abbaabbaabbaabba";_cv 6.48 % 6.47 % 10
lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 1294 ns 1294 ns 10
lstringa<8> str; ... str += "abbaabbaabbaabba";_median 1287 ns 1287 ns 10
lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 68.2 ns 68.2 ns 10
lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 5.27 % 5.27 % 10
lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 900 ns 900 ns 10
lstringa<128> str; ... str += "abbaabbaabbaabba";_median 912 ns 912 ns 10
lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 52.1 ns 52.1 ns 10
lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.79 % 5.79 % 10
lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 637 ns 637 ns 10
lstringa<512> str; ... str += "abbaabbaabbaabba";_median 631 ns 631 ns 10
lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 44.2 ns 44.2 ns 10
lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.94 % 6.94 % 10
lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 501 ns 501 ns 10
lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 497 ns 497 ns 10
lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 11.0 ns 11.0 ns 10
lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.20 % 2.20 % 10
-- 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 11807 ns 11807 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 11726 ns 11726 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 449 ns 449 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.80 % 3.80 % 10
std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4085 ns 4085 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4020 ns 4020 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 196 ns 196 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 4.81 % 4.81 % 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1439 ns 1439 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1449 ns 1449 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 74.9 ns 74.9 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.20 % 5.20 % 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 1179 ns 1179 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 1186 ns 1186 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 98.7 ns 98.7 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 8.37 % 8.37 % 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 934 ns 934 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 924 ns 924 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 80.9 ns 80.9 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 8.67 % 8.67 % 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 734 ns 734 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 727 ns 727 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 22.0 ns 22.0 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.00 % 3.00 % 10
-- 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 609176 ns 609186 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 604318 ns 604351 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 23440 ns 23440 ns 10
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.85 % 3.85 % 10
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 207760 ns 207762 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 210493 ns 210494 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 8896 ns 8897 ns 10
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.28 % 4.28 % 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 53812 ns 53812 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 53544 ns 53544 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2281 ns 2281 ns 10
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.24 % 4.24 % 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 51889 ns 51889 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 51942 ns 51942 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1660 ns 1660 ns 10
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.20 % 3.20 % 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 50113 ns 50114 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 50056 ns 50057 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 811 ns 811 ns 10
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.62 % 1.62 % 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 52780 ns 52781 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 51519 ns 51519 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2889 ns 2889 ns 10
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.47 % 5.47 % 10
-- 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 11836 ns 11836 ns 10
std::stringstream str; ... str << str_var1 << str_var2;_median 11842 ns 11842 ns 10
std::stringstream str; ... str << str_var1 << str_var2;_stddev 396 ns 396 ns 10
std::stringstream str; ... str << str_var1 << str_var2;_cv 3.35 % 3.35 % 10
std::string str; ... str += str_var1 + str_var2;_mean 4507 ns 4507 ns 10
std::string str; ... str += str_var1 + str_var2;_median 4543 ns 4543 ns 10
std::string str; ... str += str_var1 + str_var2;_stddev 123 ns 123 ns 10
std::string str; ... str += str_var1 + str_var2;_cv 2.73 % 2.73 % 10
lstringa<16> str; ... str += str_var1 + str_var2;_mean 1657 ns 1657 ns 10
lstringa<16> str; ... str += str_var1 + str_var2;_median 1646 ns 1646 ns 10
lstringa<16> str; ... str += str_var1 + str_var2;_stddev 80.2 ns 80.2 ns 10
lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.84 % 4.84 % 10
lstringa<128> str; ... str += str_var1 + str_var2;_mean 1413 ns 1413 ns 10
lstringa<128> str; ... str += str_var1 + str_var2;_median 1392 ns 1392 ns 10
lstringa<128> str; ... str += str_var1 + str_var2;_stddev 97.3 ns 97.3 ns 10
lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.89 % 6.89 % 10
lstringa<512> str; ... str += str_var1 + str_var2;_mean 1088 ns 1088 ns 10
lstringa<512> str; ... str += str_var1 + str_var2;_median 1065 ns 1065 ns 10
lstringa<512> str; ... str += str_var1 + str_var2;_stddev 58.8 ns 58.8 ns 10
lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.40 % 5.40 % 10
lstringa<1024> str; ... str += str_var1 + str_var2;_mean 977 ns 977 ns 10
lstringa<1024> str; ... str += str_var1 + str_var2;_median 979 ns 979 ns 10
lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 45.7 ns 45.7 ns 10
lstringa<1024> str; ... str += str_var1 + str_var2;_cv 4.68 % 4.68 % 10
-- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::stringstream str; str << "test = " << k << " times";_mean 19450 ns 19450 ns 10
std::stringstream str; str << "test = " << k << " times";_median 19297 ns 19297 ns 10
std::stringstream str; str << "test = " << k << " times";_stddev 1456 ns 1456 ns 10
std::stringstream str; str << "test = " << k << " times";_cv 7.49 % 7.49 % 10
std::string str = "test = " + std::to_string(k) + " times";_mean 3261 ns 3261 ns 10
std::string str = "test = " + std::to_string(k) + " times";_median 3216 ns 3216 ns 10
std::string str = "test = " + std::to_string(k) + " times";_stddev 181 ns 181 ns 10
std::string str = "test = " + std::to_string(k) + " times";_cv 5.55 % 5.55 % 10
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 7677 ns 7677 ns 10
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 7790 ns 7791 ns 10
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 383 ns 383 ns 10
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 4.99 % 4.99 % 10
std::string str = std::format("test = {} times", k);_mean 4200 ns 4200 ns 10
std::string str = std::format("test = {} times", k);_median 4204 ns 4204 ns 10
std::string str = std::format("test = {} times", k);_stddev 136 ns 136 ns 10
std::string str = std::format("test = {} times", k);_cv 3.24 % 3.24 % 10
lstringa<8> str; str.format("test = {} times", k);_mean 6598 ns 6598 ns 10
lstringa<8> str; str.format("test = {} times", k);_median 6515 ns 6515 ns 10
lstringa<8> str; str.format("test = {} times", k);_stddev 407 ns 407 ns 10
lstringa<8> str; str.format("test = {} times", k);_cv 6.17 % 6.17 % 10
lstringa<32> str; str.format("test = {} times", k);_mean 4632 ns 4632 ns 10
lstringa<32> str; str.format("test = {} times", k);_median 4696 ns 4696 ns 10
lstringa<32> str; str.format("test = {} times", k);_stddev 149 ns 149 ns 10
lstringa<32> str; str.format("test = {} times", k);_cv 3.22 % 3.22 % 10
lstringa<8> str = "test = " + k + " times";_mean 1342 ns 1342 ns 10
lstringa<8> str = "test = " + k + " times";_median 1347 ns 1347 ns 10
lstringa<8> str = "test = " + k + " times";_stddev 41.9 ns 41.9 ns 10
lstringa<8> str = "test = " + k + " times";_cv 3.13 % 3.13 % 10
lstringa<32> str = "test = " + k + " times";_mean 614 ns 614 ns 10
lstringa<32> str = "test = " + k + " times";_median 603 ns 603 ns 10
lstringa<32> str = "test = " + k + " times";_stddev 35.5 ns 35.5 ns 10
lstringa<32> str = "test = " + k + " times";_cv 5.78 % 5.78 % 10
stringa str = "test = " + k + " times";_mean 1303 ns 1303 ns 10
stringa str = "test = " + k + " times";_median 1307 ns 1307 ns 10
stringa str = "test = " + k + " times";_stddev 58.0 ns 58.0 ns 10
stringa str = "test = " + k + " times";_cv 4.45 % 4.45 % 10
-- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000
std::string::find + substr + std::strtol_mean 1414 ns 1414 ns 10
std::string::find + substr + std::strtol_median 1408 ns 1408 ns 10
std::string::find + substr + std::strtol_stddev 67.5 ns 67.5 ns 10
std::string::find + substr + std::strtol_cv 4.78 % 4.78 % 10
ssa::splitter + ssa::as_int_mean 670 ns 670 ns 10
ssa::splitter + ssa::as_int_median 654 ns 654 ns 10
ssa::splitter + ssa::as_int_stddev 34.0 ns 34.0 ns 10
ssa::splitter + ssa::as_int_cv 5.07 % 5.07 % 10
ssa::splitf + functor_mean 939 ns 939 ns 10
ssa::splitf + functor_median 927 ns 927 ns 10
ssa::splitf + functor_stddev 32.8 ns 32.8 ns 10
ssa::splitf + functor_cv 3.49 % 3.49 % 10
-- 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 6175 ns 6175 ns 10
Naive (and wrong) replace symbols with std::string find + replace_median 6116 ns 6116 ns 10
Naive (and wrong) replace symbols with std::string find + replace_stddev 236 ns 236 ns 10
Naive (and wrong) replace symbols with std::string find + replace_cv 3.82 % 3.82 % 10
replace symbols with std::string find_first_of + replace_mean 10124 ns 10125 ns 10
replace symbols with std::string find_first_of + replace_median 10071 ns 10071 ns 10
replace symbols with std::string find_first_of + replace_stddev 222 ns 222 ns 10
replace symbols with std::string find_first_of + replace_cv 2.20 % 2.20 % 10
replace symbols with std::string_view find_first_of + copy_mean 5505 ns 5505 ns 10
replace symbols with std::string_view find_first_of + copy_median 5527 ns 5527 ns 10
replace symbols with std::string_view find_first_of + copy_stddev 215 ns 215 ns 10
replace symbols with std::string_view find_first_of + copy_cv 3.91 % 3.91 % 10
replace runtime symbols with string expressions and without remembering all search results_mean 5599 ns 5599 ns 10
replace runtime symbols with string expressions and without remembering all search results_median 5526 ns 5526 ns 10
replace runtime symbols with string expressions and without remembering all search results_stddev 255 ns 255 ns 10
replace runtime symbols with string expressions and without remembering all search results_cv 4.56 % 4.56 % 10
replace runtime symbols with simstr and memorization of all search results_mean 5123 ns 5123 ns 10
replace runtime symbols with simstr and memorization of all search results_median 5130 ns 5130 ns 10
replace runtime symbols with simstr and memorization of all search results_stddev 196 ns 196 ns 10
replace runtime symbols with simstr and memorization of all search results_cv 3.83 % 3.83 % 10
replace const symbols with string expressions and without remembering all search results_mean 4773 ns 4773 ns 10
replace const symbols with string expressions and without remembering all search results_median 4789 ns 4789 ns 10
replace const symbols with string expressions and without remembering all search results_stddev 152 ns 152 ns 10
replace const symbols with string expressions and without remembering all search results_cv 3.18 % 3.18 % 10
replace const symbols with string expressions and memorization of all search results_mean 4477 ns 4477 ns 10
replace const symbols with string expressions and memorization of all search results_median 4417 ns 4417 ns 10
replace const symbols with string expressions and memorization of all search results_stddev 232 ns 232 ns 10
replace const symbols with string expressions and memorization of all search results_cv 5.18 % 5.18 % 10
-- 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 827 ns 827 ns 10
Short Naive (and wrong) replace symbols with std::string find + replace_median 805 ns 805 ns 10
Short Naive (and wrong) replace symbols with std::string find + replace_stddev 55.5 ns 55.5 ns 10
Short Naive (and wrong) replace symbols with std::string find + replace_cv 6.71 % 6.71 % 10
Short replace symbols with std::string find_first_of + replace_mean 1187 ns 1187 ns 10
Short replace symbols with std::string find_first_of + replace_median 1191 ns 1192 ns 10
Short replace symbols with std::string find_first_of + replace_stddev 22.7 ns 22.7 ns 10
Short replace symbols with std::string find_first_of + replace_cv 1.92 % 1.92 % 10
Short replace symbols with std::string_view find_first_of + copy_mean 694 ns 694 ns 10
Short replace symbols with std::string_view find_first_of + copy_median 695 ns 695 ns 10
Short replace symbols with std::string_view find_first_of + copy_stddev 35.3 ns 35.3 ns 10
Short replace symbols with std::string_view find_first_of + copy_cv 5.09 % 5.09 % 10
Short replace runtime symbols with string expressions and without remembering all search results_mean 583 ns 583 ns 10
Short replace runtime symbols with string expressions and without remembering all search results_median 580 ns 580 ns 10
Short replace runtime symbols with string expressions and without remembering all search results_stddev 14.7 ns 14.7 ns 10
Short replace runtime symbols with string expressions and without remembering all search results_cv 2.52 % 2.52 % 10
Short replace runtime symbols with simstr and memorization of all search results_mean 669 ns 669 ns 10
Short replace runtime symbols with simstr and memorization of all search results_median 653 ns 653 ns 10
Short replace runtime symbols with simstr and memorization of all search results_stddev 41.6 ns 41.6 ns 10
Short replace runtime symbols with simstr and memorization of all search results_cv 6.22 % 6.22 % 10
Short replace const symbols with string expressions and without remembering all search results_mean 440 ns 440 ns 10
Short replace const symbols with string expressions and without remembering all search results_median 434 ns 434 ns 10
Short replace const symbols with string expressions and without remembering all search results_stddev 21.5 ns 21.5 ns 10
Short replace const symbols with string expressions and without remembering all search results_cv 4.89 % 4.89 % 10
Short replace const symbols with string expressions and memorization of all search results_mean 512 ns 512 ns 10
Short replace const symbols with string expressions and memorization of all search results_median 497 ns 497 ns 10
Short replace const symbols with string expressions and memorization of all search results_stddev 42.4 ns 42.4 ns 10
Short replace const symbols with string expressions and memorization of all search results_cv 8.29 % 8.29 % 10
----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to ---- in std::string|64_mean 759 ns 759 ns 10
replace bb to ---- in std::string|64_median 756 ns 756 ns 10
replace bb to ---- in std::string|64_stddev 35.6 ns 35.6 ns 10
replace bb to ---- in std::string|64_cv 4.69 % 4.69 % 10
replace bb to ---- in std::string|256_mean 2371 ns 2371 ns 10
replace bb to ---- in std::string|256_median 2356 ns 2356 ns 10
replace bb to ---- in std::string|256_stddev 141 ns 141 ns 10
replace bb to ---- in std::string|256_cv 5.97 % 5.97 % 10
replace bb to ---- in std::string|512_mean 4397 ns 4397 ns 10
replace bb to ---- in std::string|512_median 4347 ns 4347 ns 10
replace bb to ---- in std::string|512_stddev 209 ns 209 ns 10
replace bb to ---- in std::string|512_cv 4.75 % 4.75 % 10
replace bb to ---- in std::string|1024_mean 8983 ns 8983 ns 10
replace bb to ---- in std::string|1024_median 8903 ns 8903 ns 10
replace bb to ---- in std::string|1024_stddev 716 ns 716 ns 10
replace bb to ---- in std::string|1024_cv 7.97 % 7.97 % 10
replace bb to ---- in std::string|2048_mean 20059 ns 20059 ns 10
replace bb to ---- in std::string|2048_median 20184 ns 20184 ns 10
replace bb to ---- in std::string|2048_stddev 599 ns 599 ns 10
replace bb to ---- in std::string|2048_cv 2.99 % 2.99 % 10
replace bb to ---- in lstringa<8>|64_mean 734 ns 734 ns 10
replace bb to ---- in lstringa<8>|64_median 729 ns 729 ns 10
replace bb to ---- in lstringa<8>|64_stddev 12.3 ns 12.3 ns 10
replace bb to ---- in lstringa<8>|64_cv 1.67 % 1.67 % 10
replace bb to ---- in lstringa<8>|256_mean 2096 ns 2096 ns 10
replace bb to ---- in lstringa<8>|256_median 2094 ns 2094 ns 10
replace bb to ---- in lstringa<8>|256_stddev 98.1 ns 98.1 ns 10
replace bb to ---- in lstringa<8>|256_cv 4.68 % 4.68 % 10
replace bb to ---- in lstringa<8>|512_mean 3770 ns 3770 ns 10
replace bb to ---- in lstringa<8>|512_median 3744 ns 3744 ns 10
replace bb to ---- in lstringa<8>|512_stddev 171 ns 171 ns 10
replace bb to ---- in lstringa<8>|512_cv 4.53 % 4.53 % 10
replace bb to ---- in lstringa<8>|1024_mean 7288 ns 7288 ns 10
replace bb to ---- in lstringa<8>|1024_median 7121 ns 7121 ns 10
replace bb to ---- in lstringa<8>|1024_stddev 470 ns 470 ns 10
replace bb to ---- in lstringa<8>|1024_cv 6.45 % 6.45 % 10
replace bb to ---- in lstringa<8>|2048_mean 13342 ns 13342 ns 10
replace bb to ---- in lstringa<8>|2048_median 13306 ns 13306 ns 10
replace bb to ---- in lstringa<8>|2048_stddev 401 ns 401 ns 10
replace bb to ---- in lstringa<8>|2048_cv 3.01 % 3.01 % 10
replace bb to ---- by init stringa|64_mean 498 ns 498 ns 10
replace bb to ---- by init stringa|64_median 490 ns 490 ns 10
replace bb to ---- by init stringa|64_stddev 42.1 ns 42.1 ns 10
replace bb to ---- by init stringa|64_cv 8.46 % 8.46 % 10
replace bb to ---- by init stringa|256_mean 1896 ns 1896 ns 10
replace bb to ---- by init stringa|256_median 1905 ns 1905 ns 10
replace bb to ---- by init stringa|256_stddev 42.1 ns 42.1 ns 10
replace bb to ---- by init stringa|256_cv 2.22 % 2.22 % 10
replace bb to ---- by init stringa|512_mean 3611 ns 3611 ns 10
replace bb to ---- by init stringa|512_median 3605 ns 3605 ns 10
replace bb to ---- by init stringa|512_stddev 99.0 ns 99.0 ns 10
replace bb to ---- by init stringa|512_cv 2.74 % 2.74 % 10
replace bb to ---- by init stringa|1024_mean 6933 ns 6933 ns 10
replace bb to ---- by init stringa|1024_median 6974 ns 6974 ns 10
replace bb to ---- by init stringa|1024_stddev 208 ns 208 ns 10
replace bb to ---- by init stringa|1024_cv 3.00 % 3.00 % 10
replace bb to ---- by init stringa|2048_mean 13812 ns 13812 ns 10
replace bb to ---- by init stringa|2048_median 13831 ns 13831 ns 10
replace bb to ---- by init stringa|2048_stddev 412 ns 412 ns 10
replace bb to ---- by init stringa|2048_cv 2.98 % 2.98 % 10
----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
replace bb to -- in std::string|64_mean 545 ns 545 ns 10
replace bb to -- in std::string|64_median 546 ns 546 ns 10
replace bb to -- in std::string|64_stddev 13.4 ns 13.4 ns 10
replace bb to -- in std::string|64_cv 2.45 % 2.45 % 10
replace bb to -- in std::string|256_mean 1885 ns 1885 ns 10
replace bb to -- in std::string|256_median 1853 ns 1853 ns 10
replace bb to -- in std::string|256_stddev 113 ns 113 ns 10
replace bb to -- in std::string|256_cv 6.00 % 6.00 % 10
replace bb to -- in std::string|512_mean 3368 ns 3368 ns 10
replace bb to -- in std::string|512_median 3358 ns 3358 ns 10
replace bb to -- in std::string|512_stddev 107 ns 107 ns 10
replace bb to -- in std::string|512_cv 3.17 % 3.17 % 10
replace bb to -- in std::string|1024_mean 6925 ns 6925 ns 10
replace bb to -- in std::string|1024_median 6910 ns 6910 ns 10
replace bb to -- in std::string|1024_stddev 344 ns 344 ns 10
replace bb to -- in std::string|1024_cv 4.97 % 4.97 % 10
replace bb to -- in std::string|2048_mean 13051 ns 13051 ns 10
replace bb to -- in std::string|2048_median 12940 ns 12940 ns 10
replace bb to -- in std::string|2048_stddev 417 ns 417 ns 10
replace bb to -- in std::string|2048_cv 3.19 % 3.19 % 10
replace bb to -- in lstringa<8>|64_mean 483 ns 483 ns 10
replace bb to -- in lstringa<8>|64_median 477 ns 477 ns 10
replace bb to -- in lstringa<8>|64_stddev 28.3 ns 28.3 ns 10
replace bb to -- in lstringa<8>|64_cv 5.85 % 5.85 % 10
replace bb to -- in lstringa<8>|256_mean 1542 ns 1542 ns 10
replace bb to -- in lstringa<8>|256_median 1531 ns 1531 ns 10
replace bb to -- in lstringa<8>|256_stddev 78.0 ns 78.0 ns 10
replace bb to -- in lstringa<8>|256_cv 5.06 % 5.06 % 10
replace bb to -- in lstringa<8>|512_mean 2827 ns 2827 ns 10
replace bb to -- in lstringa<8>|512_median 2815 ns 2815 ns 10
replace bb to -- in lstringa<8>|512_stddev 123 ns 123 ns 10
replace bb to -- in lstringa<8>|512_cv 4.34 % 4.34 % 10
replace bb to -- in lstringa<8>|1024_mean 5568 ns 5568 ns 10
replace bb to -- in lstringa<8>|1024_median 5501 ns 5501 ns 10
replace bb to -- in lstringa<8>|1024_stddev 387 ns 387 ns 10
replace bb to -- in lstringa<8>|1024_cv 6.95 % 6.95 % 10
replace bb to -- in lstringa<8>|2048_mean 10863 ns 10863 ns 10
replace bb to -- in lstringa<8>|2048_median 10863 ns 10863 ns 10
replace bb to -- in lstringa<8>|2048_stddev 541 ns 541 ns 10
replace bb to -- in lstringa<8>|2048_cv 4.98 % 4.98 % 10
replace bb to -- by init stringa|64_mean 363 ns 363 ns 10
replace bb to -- by init stringa|64_median 356 ns 356 ns 10
replace bb to -- by init stringa|64_stddev 23.8 ns 23.8 ns 10
replace bb to -- by init stringa|64_cv 6.57 % 6.56 % 10
replace bb to -- by init stringa|256_mean 1249 ns 1249 ns 10
replace bb to -- by init stringa|256_median 1176 ns 1176 ns 10
replace bb to -- by init stringa|256_stddev 145 ns 145 ns 10
replace bb to -- by init stringa|256_cv 11.61 % 11.61 % 10
replace bb to -- by init stringa|512_mean 2243 ns 2243 ns 10
replace bb to -- by init stringa|512_median 2206 ns 2206 ns 10
replace bb to -- by init stringa|512_stddev 131 ns 131 ns 10
replace bb to -- by init stringa|512_cv 5.85 % 5.85 % 10
replace bb to -- by init stringa|1024_mean 4204 ns 4204 ns 10
replace bb to -- by init stringa|1024_median 4185 ns 4185 ns 10
replace bb to -- by init stringa|1024_stddev 123 ns 123 ns 10
replace bb to -- by init stringa|1024_cv 2.92 % 2.92 % 10
replace bb to -- by init stringa|2048_mean 8206 ns 8207 ns 10
replace bb to -- by init stringa|2048_median 8270 ns 8270 ns 10
replace bb to -- by init stringa|2048_stddev 171 ns 171 ns 10
replace bb to -- by init stringa|2048_cv 2.09 % 2.09 % 10
----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
hashStrMapA<size_t> emplace & find stringa;_mean 5371717 ns 5371764 ns 10
hashStrMapA<size_t> emplace & find stringa;_median 5351902 ns 5351957 ns 10
hashStrMapA<size_t> emplace & find stringa;_stddev 95139 ns 95136 ns 10
hashStrMapA<size_t> emplace & find stringa;_cv 1.77 % 1.77 % 10
std::unordered_map<std::string, size_t> emplace & find std::string;_mean 5883527 ns 5883602 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string;_median 5863441 ns 5863495 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string;_stddev 121360 ns 121344 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string;_cv 2.06 % 2.06 % 10
hashStrMapA<size_t> emplace & find ssa;_mean 5376097 ns 5376160 ns 10
hashStrMapA<size_t> emplace & find ssa;_median 5396723 ns 5396748 ns 10
hashStrMapA<size_t> emplace & find ssa;_stddev 55934 ns 55933 ns 10
hashStrMapA<size_t> emplace & find ssa;_cv 1.04 % 1.04 % 10
std::unordered_map<std::string, size_t> emplace & find std::string_view;_mean 6884220 ns 6884269 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string_view;_median 6758571 ns 6758571 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string_view;_stddev 494224 ns 494235 ns 10
std::unordered_map<std::string, size_t> emplace & find std::string_view;_cv 7.18 % 7.18 % 10
----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000
Build func full name std::string;_mean 4861 ns 4861 ns 10
Build func full name std::string;_median 4830 ns 4830 ns 10
Build func full name std::string;_stddev 214 ns 214 ns 10
Build func full name std::string;_cv 4.41 % 4.41 % 10
Build func full name std::string 1;_mean 5220 ns 5220 ns 10
Build func full name std::string 1;_median 5168 ns 5168 ns 10
Build func full name std::string 1;_stddev 379 ns 379 ns 10
Build func full name std::string 1;_cv 7.27 % 7.27 % 10
Build func full name std::stream;_mean 16474 ns 16474 ns 10
Build func full name std::stream;_median 16253 ns 16253 ns 10
Build func full name std::stream;_stddev 1049 ns 1049 ns 10
Build func full name std::stream;_cv 6.37 % 6.37 % 10
Build func full name stringa;_mean 2853 ns 2853 ns 10
Build func full name stringa;_median 2857 ns 2857 ns 10
Build func full name stringa;_stddev 63.2 ns 63.2 ns 10
Build func full name stringa;_cv 2.22 % 2.22 % 10
Build func full name stringa 1;_mean 3292 ns 3292 ns 10
Build func full name stringa 1;_median 3292 ns 3292 ns 10
Build func full name stringa 1;_stddev 91.3 ns 91.3 ns 10
Build func full name stringa 1;_cv 2.77 % 2.77 % 10