2026-01-29T20:00:21+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: L1 Data 32 KiB (x16) L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) Load Average: 0.00, 0.00, 0.00 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. -------------------------------------------------------------------------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat std::string and number by std to std::string_mean 209 ns 209 ns 10 Concat std::string and number by std to std::string_median 209 ns 209 ns 10 Concat std::string and number by std to std::string_stddev 5.32 ns 5.32 ns 10 Concat std::string and number by std to std::string_cv 2.54 % 2.54 % 10 Concat std::string and number by StrExpr to std::string_mean 104 ns 104 ns 10 Concat std::string and number by StrExpr to std::string_median 103 ns 103 ns 10 Concat std::string and number by StrExpr to std::string_stddev 4.35 ns 4.35 ns 10 Concat std::string and number by StrExpr to std::string_cv 4.18 % 4.18 % 10 Concat stringa and number by StrExpr to simstr::stringa_mean 81.5 ns 81.5 ns 10 Concat stringa and number by StrExpr to simstr::stringa_median 74.4 ns 74.4 ns 10 Concat stringa and number by StrExpr to simstr::stringa_stddev 14.0 ns 14.0 ns 10 Concat stringa and number by StrExpr to simstr::stringa_cv 17.20 % 17.20 % 10 Concat stringa and number by e_concat to simstr::stringa_mean 80.2 ns 80.2 ns 10 Concat stringa and number by e_concat to simstr::stringa_median 78.0 ns 78.0 ns 10 Concat stringa and number by e_concat to simstr::stringa_stddev 6.12 ns 6.12 ns 10 Concat stringa and number by e_concat to simstr::stringa_cv 7.63 % 7.63 % 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 935 ns 935 ns 10 Concat std::string and hex number by std to std::string_median 939 ns 939 ns 10 Concat std::string and hex number by std to std::string_stddev 24.7 ns 24.7 ns 10 Concat std::string and hex number by std to std::string_cv 2.65 % 2.65 % 10 Concat std::string and hex number by StrExpr to std::string_mean 69.6 ns 69.6 ns 10 Concat std::string and hex number by StrExpr to std::string_median 69.1 ns 69.1 ns 10 Concat std::string and hex number by StrExpr to std::string_stddev 2.24 ns 2.24 ns 10 Concat std::string and hex number by StrExpr to std::string_cv 3.22 % 3.22 % 10 Concat stringa and hex number by StrExpr to simstr::stringa_mean 70.4 ns 70.4 ns 10 Concat stringa and hex number by StrExpr to simstr::stringa_median 70.5 ns 70.5 ns 10 Concat stringa and hex number by StrExpr to simstr::stringa_stddev 2.74 ns 2.74 ns 10 Concat stringa and hex number by StrExpr to simstr::stringa_cv 3.90 % 3.90 % 10 Concat stringa and hex number by e_concat to simstr::stringa_mean 78.9 ns 78.9 ns 10 Concat stringa and hex number by e_concat to simstr::stringa_median 78.4 ns 78.4 ns 10 Concat stringa and hex number by e_concat to simstr::stringa_stddev 2.99 ns 2.99 ns 10 Concat stringa and hex number by e_concat to simstr::stringa_cv 3.78 % 3.78 % 10 Concat stringa and hex number by e_subst to simstr::stringa_mean 157 ns 157 ns 10 Concat stringa and hex number by e_subst to simstr::stringa_median 148 ns 148 ns 10 Concat stringa and hex number by e_subst to simstr::stringa_stddev 19.8 ns 19.8 ns 10 Concat stringa and hex number by e_subst to simstr::stringa_cv 12.66 % 12.66 % 10 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat std::string by std to std::string_mean 45.5 ns 45.5 ns 10 Concat std::string by std to std::string_median 45.4 ns 45.4 ns 10 Concat std::string by std to std::string_stddev 2.31 ns 2.30 ns 10 Concat std::string by std to std::string_cv 5.07 % 5.07 % 10 Concat std::string by StrExpr to std::string_mean 36.8 ns 36.8 ns 10 Concat std::string by StrExpr to std::string_median 36.3 ns 36.3 ns 10 Concat std::string by StrExpr to std::string_stddev 2.47 ns 2.47 ns 10 Concat std::string by StrExpr to std::string_cv 6.72 % 6.72 % 10 Concat stringa by StrExpr to stringa_mean 27.2 ns 27.2 ns 10 Concat stringa by StrExpr to stringa_median 27.2 ns 27.2 ns 10 Concat stringa by StrExpr to stringa_stddev 0.735 ns 0.735 ns 10 Concat stringa by StrExpr to stringa_cv 2.70 % 2.70 % 10 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 Find concat three std::string_mean 135 ns 135 ns 10 Find concat three std::string_median 131 ns 131 ns 10 Find concat three std::string_stddev 10.3 ns 10.3 ns 10 Find concat three std::string_cv 7.63 % 7.63 % 10 Find concat three strexpr_mean 44.3 ns 44.3 ns 10 Find concat three strexpr_median 41.9 ns 41.9 ns 10 Find concat three strexpr_stddev 5.46 ns 5.46 ns 10 Find concat three strexpr_cv 12.33 % 12.33 % 10 Find concat three simstr_mean 53.4 ns 53.4 ns 10 Find concat three simstr_median 52.9 ns 52.9 ns 10 Find concat three simstr_stddev 0.832 ns 0.832 ns 10 Find concat three simstr_cv 1.56 % 1.56 % 10 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 BuildTypeNameStr 0/0_mean 10.1 ns 10.1 ns 10 BuildTypeNameStr 0/0_median 10.1 ns 10.1 ns 10 BuildTypeNameStr 0/0_stddev 0.296 ns 0.296 ns 10 BuildTypeNameStr 0/0_cv 2.93 % 2.93 % 10 BuildTypeNameExp 0/0_mean 7.22 ns 7.22 ns 10 BuildTypeNameExp 0/0_median 7.20 ns 7.20 ns 10 BuildTypeNameExp 0/0_stddev 0.085 ns 0.085 ns 10 BuildTypeNameExp 0/0_cv 1.18 % 1.18 % 10 BuildTypeNameSim 0/0_mean 5.45 ns 5.45 ns 10 BuildTypeNameSim 0/0_median 5.42 ns 5.42 ns 10 BuildTypeNameSim 0/0_stddev 0.684 ns 0.684 ns 10 BuildTypeNameSim 0/0_cv 12.55 % 12.55 % 10 BuildTypeNameStr 10/10_mean 86.4 ns 86.4 ns 10 BuildTypeNameStr 10/10_median 86.5 ns 86.5 ns 10 BuildTypeNameStr 10/10_stddev 3.23 ns 3.23 ns 10 BuildTypeNameStr 10/10_cv 3.73 % 3.73 % 10 BuildTypeNameExp 10/10_mean 24.9 ns 24.9 ns 10 BuildTypeNameExp 10/10_median 24.6 ns 24.6 ns 10 BuildTypeNameExp 10/10_stddev 0.624 ns 0.624 ns 10 BuildTypeNameExp 10/10_cv 2.51 % 2.51 % 10 BuildTypeNameSim 10/10_mean 22.2 ns 22.2 ns 10 BuildTypeNameSim 10/10_median 22.2 ns 22.2 ns 10 BuildTypeNameSim 10/10_stddev 0.518 ns 0.518 ns 10 BuildTypeNameSim 10/10_cv 2.33 % 2.33 % 10 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat with replace str_mean 231 ns 231 ns 10 Concat with replace str_median 230 ns 230 ns 10 Concat with replace str_stddev 9.78 ns 9.78 ns 10 Concat with replace str_cv 4.23 % 4.23 % 10 Concat with replace exp_mean 139 ns 139 ns 10 Concat with replace exp_median 132 ns 132 ns 10 Concat with replace exp_stddev 17.4 ns 17.4 ns 10 Concat with replace exp_cv 12.55 % 12.55 % 10 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e;_mean 1.15 ns 1.15 ns 10 std::string e;_median 1.14 ns 1.14 ns 10 std::string e;_stddev 0.052 ns 0.052 ns 10 std::string e;_cv 4.56 % 4.56 % 10 std::string_view e;_mean 0.772 ns 0.772 ns 10 std::string_view e;_median 0.764 ns 0.764 ns 10 std::string_view e;_stddev 0.034 ns 0.034 ns 10 std::string_view e;_cv 4.41 % 4.41 % 10 ssa e;_mean 0.190 ns 0.190 ns 10 ssa e;_median 0.188 ns 0.188 ns 10 ssa e;_stddev 0.009 ns 0.009 ns 10 ssa e;_cv 4.74 % 4.74 % 10 stringa e;_mean 0.750 ns 0.750 ns 10 stringa e;_median 0.754 ns 0.754 ns 10 stringa e;_stddev 0.020 ns 0.020 ns 10 stringa e;_cv 2.60 % 2.60 % 10 lstringa<20> e;_mean 1.11 ns 1.11 ns 10 lstringa<20> e;_median 1.11 ns 1.11 ns 10 lstringa<20> e;_stddev 0.019 ns 0.019 ns 10 lstringa<20> e;_cv 1.67 % 1.67 % 10 lstringa<40> e;_mean 1.12 ns 1.12 ns 10 lstringa<40> e;_median 1.11 ns 1.11 ns 10 lstringa<40> e;_stddev 0.039 ns 0.039 ns 10 lstringa<40> e;_cv 3.51 % 3.51 % 10 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "Test text";_mean 1.87 ns 1.87 ns 10 std::string e = "Test text";_median 1.87 ns 1.87 ns 10 std::string e = "Test text";_stddev 0.037 ns 0.037 ns 10 std::string e = "Test text";_cv 1.97 % 1.97 % 10 std::string_view e = "Test text";_mean 0.806 ns 0.806 ns 10 std::string_view e = "Test text";_median 0.803 ns 0.803 ns 10 std::string_view e = "Test text";_stddev 0.064 ns 0.064 ns 10 std::string_view e = "Test text";_cv 7.94 % 7.94 % 10 ssa e = "Test text";_mean 0.750 ns 0.750 ns 10 ssa e = "Test text";_median 0.737 ns 0.737 ns 10 ssa e = "Test text";_stddev 0.037 ns 0.037 ns 10 ssa e = "Test text";_cv 4.90 % 4.90 % 10 stringa e = "Test text";_mean 1.12 ns 1.12 ns 10 stringa e = "Test text";_median 1.13 ns 1.13 ns 10 stringa e = "Test text";_stddev 0.031 ns 0.031 ns 10 stringa e = "Test text";_cv 2.73 % 2.73 % 10 lstringa<20> e = "Test text";_mean 1.92 ns 1.92 ns 10 lstringa<20> e = "Test text";_median 1.88 ns 1.88 ns 10 lstringa<20> e = "Test text";_stddev 0.116 ns 0.116 ns 10 lstringa<20> e = "Test text";_cv 6.06 % 6.06 % 10 lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 10 lstringa<40> e = "Test text";_median 1.88 ns 1.88 ns 10 lstringa<40> e = "Test text";_stddev 0.039 ns 0.039 ns 10 lstringa<40> e = "Test text";_cv 2.09 % 2.09 % 10 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "123456789012345678901234567890";_mean 19.5 ns 19.5 ns 10 std::string e = "123456789012345678901234567890";_median 19.4 ns 19.4 ns 10 std::string e = "123456789012345678901234567890";_stddev 0.902 ns 0.902 ns 10 std::string e = "123456789012345678901234567890";_cv 4.63 % 4.63 % 10 std::string_view e = "123456789012345678901234567890";_mean 0.744 ns 0.744 ns 10 std::string_view e = "123456789012345678901234567890";_median 0.750 ns 0.750 ns 10 std::string_view e = "123456789012345678901234567890";_stddev 0.016 ns 0.016 ns 10 std::string_view e = "123456789012345678901234567890";_cv 2.12 % 2.12 % 10 ssa e = "123456789012345678901234567890";_mean 0.738 ns 0.738 ns 10 ssa e = "123456789012345678901234567890";_median 0.735 ns 0.735 ns 10 ssa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 10 ssa e = "123456789012345678901234567890";_cv 2.06 % 2.06 % 10 stringa e = "123456789012345678901234567890";_mean 1.11 ns 1.11 ns 10 stringa e = "123456789012345678901234567890";_median 1.11 ns 1.11 ns 10 stringa e = "123456789012345678901234567890";_stddev 0.019 ns 0.019 ns 10 stringa e = "123456789012345678901234567890";_cv 1.68 % 1.68 % 10 lstringa<20> e = "123456789012345678901234567890";_mean 23.0 ns 23.0 ns 10 lstringa<20> e = "123456789012345678901234567890";_median 22.2 ns 22.2 ns 10 lstringa<20> e = "123456789012345678901234567890";_stddev 2.69 ns 2.69 ns 10 lstringa<20> e = "123456789012345678901234567890";_cv 11.68 % 11.68 % 10 lstringa<40> e = "123456789012345678901234567890";_mean 1.96 ns 1.96 ns 10 lstringa<40> e = "123456789012345678901234567890";_median 1.97 ns 1.97 ns 10 lstringa<40> e = "123456789012345678901234567890";_stddev 0.095 ns 0.095 ns 10 lstringa<40> e = "123456789012345678901234567890";_cv 4.82 % 4.82 % 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 4.97 ns 4.97 ns 10 std::string e = "Test text"; auto c{e};_median 4.90 ns 4.90 ns 10 std::string e = "Test text"; auto c{e};_stddev 0.289 ns 0.289 ns 10 std::string e = "Test text"; auto c{e};_cv 5.82 % 5.82 % 10 std::string_view e = "Test text"; auto c{e};_mean 0.399 ns 0.399 ns 10 std::string_view e = "Test text"; auto c{e};_median 0.400 ns 0.400 ns 10 std::string_view e = "Test text"; auto c{e};_stddev 0.026 ns 0.026 ns 10 std::string_view e = "Test text"; auto c{e};_cv 6.44 % 6.44 % 10 ssa e = "Test text"; auto c{e};_mean 0.381 ns 0.381 ns 10 ssa e = "Test text"; auto c{e};_median 0.372 ns 0.372 ns 10 ssa e = "Test text"; auto c{e};_stddev 0.020 ns 0.020 ns 10 ssa e = "Test text"; auto c{e};_cv 5.23 % 5.23 % 10 stringa e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 10 stringa e = "Test text"; auto c{e};_median 1.14 ns 1.14 ns 10 stringa e = "Test text"; auto c{e};_stddev 0.077 ns 0.077 ns 10 stringa e = "Test text"; auto c{e};_cv 6.65 % 6.65 % 10 lstringa<20> e = "Test text"; auto c{e};_mean 4.56 ns 4.56 ns 10 lstringa<20> e = "Test text"; auto c{e};_median 4.55 ns 4.55 ns 10 lstringa<20> e = "Test text"; auto c{e};_stddev 0.166 ns 0.166 ns 10 lstringa<20> e = "Test text"; auto c{e};_cv 3.64 % 3.64 % 10 lstringa<40> e = "Test text"; auto c{e};_mean 4.61 ns 4.61 ns 10 lstringa<40> e = "Test text"; auto c{e};_median 4.49 ns 4.49 ns 10 lstringa<40> e = "Test text"; auto c{e};_stddev 0.316 ns 0.316 ns 10 lstringa<40> e = "Test text"; auto c{e};_cv 6.85 % 6.85 % 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 25.3 ns 25.3 ns 10 std::string e = "123456789012345678901234567890"; auto c{e};_median 24.7 ns 24.7 ns 10 std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.69 ns 2.69 ns 10 std::string e = "123456789012345678901234567890"; auto c{e};_cv 10.65 % 10.65 % 10 std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.731 ns 0.731 ns 10 std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.728 ns 0.728 ns 10 std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.011 ns 10 std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.57 % 1.57 % 10 ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.731 ns 0.731 ns 10 ssa e = "123456789012345678901234567890"; auto c{e};_median 0.729 ns 0.729 ns 10 ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.011 ns 10 ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.52 % 1.52 % 10 stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.13 ns 1.13 ns 10 stringa e = "123456789012345678901234567890"; auto c{e};_median 1.13 ns 1.13 ns 10 stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.035 ns 0.035 ns 10 stringa e = "123456789012345678901234567890"; auto c{e};_cv 3.09 % 3.09 % 10 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 22.5 ns 22.5 ns 10 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.2 ns 21.2 ns 10 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 3.29 ns 3.29 ns 10 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 14.58 % 14.58 % 10 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.61 ns 4.61 ns 10 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.46 ns 4.46 ns 10 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.347 ns 0.347 ns 10 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 7.53 % 7.53 % 10 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string::find;_mean 7.74 ns 7.74 ns 10 std::string::find;_median 7.49 ns 7.49 ns 10 std::string::find;_stddev 0.713 ns 0.713 ns 10 std::string::find;_cv 9.21 % 9.21 % 10 std::string_view::find;_mean 6.68 ns 6.68 ns 10 std::string_view::find;_median 6.60 ns 6.60 ns 10 std::string_view::find;_stddev 0.215 ns 0.215 ns 10 std::string_view::find;_cv 3.22 % 3.22 % 10 ssa::find;_mean 6.45 ns 6.45 ns 10 ssa::find;_median 6.26 ns 6.26 ns 10 ssa::find;_stddev 0.315 ns 0.315 ns 10 ssa::find;_cv 4.88 % 4.88 % 10 stringa::find;_mean 6.78 ns 6.78 ns 10 stringa::find;_median 6.65 ns 6.65 ns 10 stringa::find;_stddev 0.345 ns 0.345 ns 10 stringa::find;_cv 5.08 % 5.08 % 10 lstringa<20>::find;_mean 6.95 ns 6.95 ns 10 lstringa<20>::find;_median 6.84 ns 6.84 ns 10 lstringa<20>::find;_stddev 0.485 ns 0.485 ns 10 lstringa<20>::find;_cv 6.97 % 6.97 % 10 lstringa<40>::find;_mean 6.87 ns 6.87 ns 10 lstringa<40>::find;_median 6.84 ns 6.84 ns 10 lstringa<40>::find;_stddev 0.358 ns 0.358 ns 10 lstringa<40>::find;_cv 5.21 % 5.21 % 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 5.03 ns 5.03 ns 10 std::string copy{str_with_len_N};/15_median 4.93 ns 4.93 ns 10 std::string copy{str_with_len_N};/15_stddev 0.269 ns 0.269 ns 10 std::string copy{str_with_len_N};/15_cv 5.34 % 5.34 % 10 std::string copy{str_with_len_N};/16_mean 23.7 ns 23.7 ns 10 std::string copy{str_with_len_N};/16_median 23.6 ns 23.6 ns 10 std::string copy{str_with_len_N};/16_stddev 0.910 ns 0.910 ns 10 std::string copy{str_with_len_N};/16_cv 3.84 % 3.84 % 10 std::string copy{str_with_len_N};/23_mean 23.2 ns 23.2 ns 10 std::string copy{str_with_len_N};/23_median 23.1 ns 23.1 ns 10 std::string copy{str_with_len_N};/23_stddev 0.611 ns 0.611 ns 10 std::string copy{str_with_len_N};/23_cv 2.64 % 2.64 % 10 std::string copy{str_with_len_N};/24_mean 23.2 ns 23.2 ns 10 std::string copy{str_with_len_N};/24_median 23.0 ns 23.0 ns 10 std::string copy{str_with_len_N};/24_stddev 0.560 ns 0.560 ns 10 std::string copy{str_with_len_N};/24_cv 2.41 % 2.41 % 10 std::string copy{str_with_len_N};/32_mean 25.6 ns 25.6 ns 10 std::string copy{str_with_len_N};/32_median 26.6 ns 26.6 ns 10 std::string copy{str_with_len_N};/32_stddev 2.29 ns 2.29 ns 10 std::string copy{str_with_len_N};/32_cv 8.96 % 8.96 % 10 std::string copy{str_with_len_N};/64_mean 24.7 ns 24.7 ns 10 std::string copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 10 std::string copy{str_with_len_N};/64_stddev 3.14 ns 3.14 ns 10 std::string copy{str_with_len_N};/64_cv 12.69 % 12.69 % 10 std::string copy{str_with_len_N};/128_mean 25.9 ns 25.9 ns 10 std::string copy{str_with_len_N};/128_median 25.7 ns 25.7 ns 10 std::string copy{str_with_len_N};/128_stddev 1.25 ns 1.25 ns 10 std::string copy{str_with_len_N};/128_cv 4.81 % 4.81 % 10 std::string copy{str_with_len_N};/256_mean 25.5 ns 25.5 ns 10 std::string copy{str_with_len_N};/256_median 25.2 ns 25.2 ns 10 std::string copy{str_with_len_N};/256_stddev 1.52 ns 1.52 ns 10 std::string copy{str_with_len_N};/256_cv 5.95 % 5.95 % 10 std::string copy{str_with_len_N};/512_mean 29.8 ns 29.8 ns 10 std::string copy{str_with_len_N};/512_median 29.9 ns 29.9 ns 10 std::string copy{str_with_len_N};/512_stddev 0.807 ns 0.807 ns 10 std::string copy{str_with_len_N};/512_cv 2.70 % 2.70 % 10 std::string copy{str_with_len_N};/1024_mean 46.4 ns 46.4 ns 10 std::string copy{str_with_len_N};/1024_median 46.3 ns 46.3 ns 10 std::string copy{str_with_len_N};/1024_stddev 1.36 ns 1.36 ns 10 std::string copy{str_with_len_N};/1024_cv 2.94 % 2.94 % 10 std::string copy{str_with_len_N};/2048_mean 124 ns 124 ns 10 std::string copy{str_with_len_N};/2048_median 123 ns 123 ns 10 std::string copy{str_with_len_N};/2048_stddev 9.70 ns 9.70 ns 10 std::string copy{str_with_len_N};/2048_cv 7.85 % 7.85 % 10 std::string copy{str_with_len_N};/4096_mean 158 ns 158 ns 10 std::string copy{str_with_len_N};/4096_median 161 ns 161 ns 10 std::string copy{str_with_len_N};/4096_stddev 11.5 ns 11.5 ns 10 std::string copy{str_with_len_N};/4096_cv 7.27 % 7.27 % 10 stringa copy{str_with_len_N};/15_mean 1.12 ns 1.12 ns 10 stringa copy{str_with_len_N};/15_median 1.11 ns 1.11 ns 10 stringa copy{str_with_len_N};/15_stddev 0.040 ns 0.040 ns 10 stringa copy{str_with_len_N};/15_cv 3.57 % 3.57 % 10 stringa copy{str_with_len_N};/16_mean 1.13 ns 1.13 ns 10 stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 10 stringa copy{str_with_len_N};/16_stddev 0.043 ns 0.043 ns 10 stringa copy{str_with_len_N};/16_cv 3.81 % 3.81 % 10 stringa copy{str_with_len_N};/23_mean 1.13 ns 1.13 ns 10 stringa copy{str_with_len_N};/23_median 1.13 ns 1.13 ns 10 stringa copy{str_with_len_N};/23_stddev 0.041 ns 0.041 ns 10 stringa copy{str_with_len_N};/23_cv 3.65 % 3.65 % 10 stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/24_median 16.0 ns 16.0 ns 10 stringa copy{str_with_len_N};/24_stddev 0.268 ns 0.268 ns 10 stringa copy{str_with_len_N};/24_cv 1.66 % 1.66 % 10 stringa copy{str_with_len_N};/32_mean 16.2 ns 16.2 ns 10 stringa copy{str_with_len_N};/32_median 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/32_stddev 0.365 ns 0.365 ns 10 stringa copy{str_with_len_N};/32_cv 2.25 % 2.25 % 10 stringa copy{str_with_len_N};/64_mean 16.6 ns 16.6 ns 10 stringa copy{str_with_len_N};/64_median 16.8 ns 16.8 ns 10 stringa copy{str_with_len_N};/64_stddev 0.488 ns 0.488 ns 10 stringa copy{str_with_len_N};/64_cv 2.94 % 2.94 % 10 stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/128_median 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/128_stddev 0.158 ns 0.158 ns 10 stringa copy{str_with_len_N};/128_cv 0.98 % 0.98 % 10 stringa copy{str_with_len_N};/256_mean 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/256_median 16.0 ns 16.0 ns 10 stringa copy{str_with_len_N};/256_stddev 0.215 ns 0.215 ns 10 stringa copy{str_with_len_N};/256_cv 1.34 % 1.34 % 10 stringa copy{str_with_len_N};/512_mean 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/512_median 16.1 ns 16.1 ns 10 stringa copy{str_with_len_N};/512_stddev 0.235 ns 0.235 ns 10 stringa copy{str_with_len_N};/512_cv 1.46 % 1.46 % 10 stringa copy{str_with_len_N};/1024_mean 16.6 ns 16.6 ns 10 stringa copy{str_with_len_N};/1024_median 16.4 ns 16.4 ns 10 stringa copy{str_with_len_N};/1024_stddev 0.648 ns 0.648 ns 10 stringa copy{str_with_len_N};/1024_cv 3.91 % 3.91 % 10 stringa copy{str_with_len_N};/2048_mean 16.9 ns 16.9 ns 10 stringa copy{str_with_len_N};/2048_median 17.0 ns 17.0 ns 10 stringa copy{str_with_len_N};/2048_stddev 0.652 ns 0.652 ns 10 stringa copy{str_with_len_N};/2048_cv 3.86 % 3.86 % 10 stringa copy{str_with_len_N};/4096_mean 16.5 ns 16.5 ns 10 stringa copy{str_with_len_N};/4096_median 16.4 ns 16.4 ns 10 stringa copy{str_with_len_N};/4096_stddev 0.567 ns 0.567 ns 10 stringa copy{str_with_len_N};/4096_cv 3.44 % 3.44 % 10 lstringa<16> copy{str_with_len_N};/15_mean 4.44 ns 4.44 ns 10 lstringa<16> copy{str_with_len_N};/15_median 4.43 ns 4.43 ns 10 lstringa<16> copy{str_with_len_N};/15_stddev 0.115 ns 0.115 ns 10 lstringa<16> copy{str_with_len_N};/15_cv 2.58 % 2.58 % 10 lstringa<16> copy{str_with_len_N};/16_mean 4.46 ns 4.46 ns 10 lstringa<16> copy{str_with_len_N};/16_median 4.42 ns 4.42 ns 10 lstringa<16> copy{str_with_len_N};/16_stddev 0.134 ns 0.134 ns 10 lstringa<16> copy{str_with_len_N};/16_cv 3.00 % 3.00 % 10 lstringa<16> copy{str_with_len_N};/23_mean 4.53 ns 4.53 ns 10 lstringa<16> copy{str_with_len_N};/23_median 4.51 ns 4.51 ns 10 lstringa<16> copy{str_with_len_N};/23_stddev 0.153 ns 0.153 ns 10 lstringa<16> copy{str_with_len_N};/23_cv 3.39 % 3.39 % 10 lstringa<16> copy{str_with_len_N};/24_mean 26.9 ns 26.9 ns 10 lstringa<16> copy{str_with_len_N};/24_median 25.4 ns 25.4 ns 10 lstringa<16> copy{str_with_len_N};/24_stddev 3.47 ns 3.47 ns 10 lstringa<16> copy{str_with_len_N};/24_cv 12.90 % 12.90 % 10 lstringa<16> copy{str_with_len_N};/32_mean 23.8 ns 23.8 ns 10 lstringa<16> copy{str_with_len_N};/32_median 23.6 ns 23.6 ns 10 lstringa<16> copy{str_with_len_N};/32_stddev 0.641 ns 0.641 ns 10 lstringa<16> copy{str_with_len_N};/32_cv 2.69 % 2.69 % 10 lstringa<16> copy{str_with_len_N};/64_mean 25.6 ns 25.6 ns 10 lstringa<16> copy{str_with_len_N};/64_median 25.3 ns 25.3 ns 10 lstringa<16> copy{str_with_len_N};/64_stddev 1.31 ns 1.31 ns 10 lstringa<16> copy{str_with_len_N};/64_cv 5.10 % 5.10 % 10 lstringa<16> copy{str_with_len_N};/128_mean 27.1 ns 27.1 ns 10 lstringa<16> copy{str_with_len_N};/128_median 25.9 ns 25.9 ns 10 lstringa<16> copy{str_with_len_N};/128_stddev 2.92 ns 2.92 ns 10 lstringa<16> copy{str_with_len_N};/128_cv 10.79 % 10.79 % 10 lstringa<16> copy{str_with_len_N};/256_mean 30.6 ns 30.6 ns 10 lstringa<16> copy{str_with_len_N};/256_median 30.5 ns 30.5 ns 10 lstringa<16> copy{str_with_len_N};/256_stddev 3.57 ns 3.57 ns 10 lstringa<16> copy{str_with_len_N};/256_cv 11.68 % 11.68 % 10 lstringa<16> copy{str_with_len_N};/512_mean 30.0 ns 30.0 ns 10 lstringa<16> copy{str_with_len_N};/512_median 29.7 ns 29.7 ns 10 lstringa<16> copy{str_with_len_N};/512_stddev 1.34 ns 1.34 ns 10 lstringa<16> copy{str_with_len_N};/512_cv 4.45 % 4.45 % 10 lstringa<16> copy{str_with_len_N};/1024_mean 98.8 ns 98.8 ns 10 lstringa<16> copy{str_with_len_N};/1024_median 100 ns 100 ns 10 lstringa<16> copy{str_with_len_N};/1024_stddev 8.86 ns 8.86 ns 10 lstringa<16> copy{str_with_len_N};/1024_cv 8.97 % 8.97 % 10 lstringa<16> copy{str_with_len_N};/2048_mean 118 ns 118 ns 10 lstringa<16> copy{str_with_len_N};/2048_median 117 ns 117 ns 10 lstringa<16> copy{str_with_len_N};/2048_stddev 14.7 ns 14.7 ns 10 lstringa<16> copy{str_with_len_N};/2048_cv 12.46 % 12.46 % 10 lstringa<16> copy{str_with_len_N};/4096_mean 135 ns 135 ns 10 lstringa<16> copy{str_with_len_N};/4096_median 129 ns 129 ns 10 lstringa<16> copy{str_with_len_N};/4096_stddev 15.6 ns 15.6 ns 10 lstringa<16> copy{str_with_len_N};/4096_cv 11.60 % 11.60 % 10 lstringa<512> copy{str_with_len_N};/15_mean 5.21 ns 5.21 ns 10 lstringa<512> copy{str_with_len_N};/15_median 5.24 ns 5.24 ns 10 lstringa<512> copy{str_with_len_N};/15_stddev 0.121 ns 0.121 ns 10 lstringa<512> copy{str_with_len_N};/15_cv 2.32 % 2.32 % 10 lstringa<512> copy{str_with_len_N};/16_mean 5.22 ns 5.22 ns 10 lstringa<512> copy{str_with_len_N};/16_median 5.17 ns 5.17 ns 10 lstringa<512> copy{str_with_len_N};/16_stddev 0.171 ns 0.171 ns 10 lstringa<512> copy{str_with_len_N};/16_cv 3.29 % 3.29 % 10 lstringa<512> copy{str_with_len_N};/23_mean 5.39 ns 5.39 ns 10 lstringa<512> copy{str_with_len_N};/23_median 5.32 ns 5.32 ns 10 lstringa<512> copy{str_with_len_N};/23_stddev 0.259 ns 0.259 ns 10 lstringa<512> copy{str_with_len_N};/23_cv 4.81 % 4.81 % 10 lstringa<512> copy{str_with_len_N};/24_mean 5.85 ns 5.85 ns 10 lstringa<512> copy{str_with_len_N};/24_median 5.59 ns 5.59 ns 10 lstringa<512> copy{str_with_len_N};/24_stddev 0.684 ns 0.684 ns 10 lstringa<512> copy{str_with_len_N};/24_cv 11.70 % 11.70 % 10 lstringa<512> copy{str_with_len_N};/32_mean 4.85 ns 4.85 ns 10 lstringa<512> copy{str_with_len_N};/32_median 4.81 ns 4.81 ns 10 lstringa<512> copy{str_with_len_N};/32_stddev 0.165 ns 0.165 ns 10 lstringa<512> copy{str_with_len_N};/32_cv 3.41 % 3.41 % 10 lstringa<512> copy{str_with_len_N};/64_mean 7.00 ns 7.00 ns 10 lstringa<512> copy{str_with_len_N};/64_median 6.89 ns 6.89 ns 10 lstringa<512> copy{str_with_len_N};/64_stddev 0.337 ns 0.337 ns 10 lstringa<512> copy{str_with_len_N};/64_cv 4.82 % 4.82 % 10 lstringa<512> copy{str_with_len_N};/128_mean 7.11 ns 7.11 ns 10 lstringa<512> copy{str_with_len_N};/128_median 7.16 ns 7.16 ns 10 lstringa<512> copy{str_with_len_N};/128_stddev 0.155 ns 0.155 ns 10 lstringa<512> copy{str_with_len_N};/128_cv 2.18 % 2.18 % 10 lstringa<512> copy{str_with_len_N};/256_mean 16.4 ns 16.4 ns 10 lstringa<512> copy{str_with_len_N};/256_median 16.3 ns 16.3 ns 10 lstringa<512> copy{str_with_len_N};/256_stddev 0.377 ns 0.377 ns 10 lstringa<512> copy{str_with_len_N};/256_cv 2.30 % 2.30 % 10 lstringa<512> copy{str_with_len_N};/512_mean 10.6 ns 10.6 ns 10 lstringa<512> copy{str_with_len_N};/512_median 10.5 ns 10.5 ns 10 lstringa<512> copy{str_with_len_N};/512_stddev 0.362 ns 0.362 ns 10 lstringa<512> copy{str_with_len_N};/512_cv 3.41 % 3.41 % 10 lstringa<512> copy{str_with_len_N};/1024_mean 98.4 ns 98.4 ns 10 lstringa<512> copy{str_with_len_N};/1024_median 98.1 ns 98.1 ns 10 lstringa<512> copy{str_with_len_N};/1024_stddev 8.39 ns 8.39 ns 10 lstringa<512> copy{str_with_len_N};/1024_cv 8.52 % 8.52 % 10 lstringa<512> copy{str_with_len_N};/2048_mean 117 ns 117 ns 10 lstringa<512> copy{str_with_len_N};/2048_median 118 ns 118 ns 10 lstringa<512> copy{str_with_len_N};/2048_stddev 10.2 ns 10.2 ns 10 lstringa<512> copy{str_with_len_N};/2048_cv 8.73 % 8.73 % 10 lstringa<512> copy{str_with_len_N};/4096_mean 137 ns 137 ns 10 lstringa<512> copy{str_with_len_N};/4096_median 136 ns 136 ns 10 lstringa<512> copy{str_with_len_N};/4096_stddev 16.5 ns 16.5 ns 10 lstringa<512> copy{str_with_len_N};/4096_cv 12.02 % 12.02 % 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 28.4 ns 28.4 ns 10 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.6 ns 27.6 ns 10 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 2.05 ns 2.05 ns 10 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 7.21 % 7.21 % 10 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.5 ns 12.5 ns 10 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.4 ns 12.4 ns 10 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.654 ns 0.654 ns 10 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 5.23 % 5.23 % 10 stringa s = "123456789"; int res = s.to_int_mean 9.33 ns 9.33 ns 10 stringa s = "123456789"; int res = s.to_int_median 9.36 ns 9.36 ns 10 stringa s = "123456789"; int res = s.to_int_stddev 0.166 ns 0.166 ns 10 stringa s = "123456789"; int res = s.to_int_cv 1.78 % 1.78 % 10 ssa s = "123456789"; int res = s.to_int_mean 8.06 ns 8.06 ns 10 ssa s = "123456789"; int res = s.to_int_median 7.97 ns 7.97 ns 10 ssa s = "123456789"; int res = s.to_int_stddev 0.440 ns 0.440 ns 10 ssa s = "123456789"; int res = s.to_int_cv 5.46 % 5.46 % 10 lstringa<20> s = "123456789"; int res = s.to_int_mean 8.31 ns 8.31 ns 10 lstringa<20> s = "123456789"; int res = s.to_int_median 8.24 ns 8.24 ns 10 lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.310 ns 0.310 ns 10 lstringa<20> s = "123456789"; int res = s.to_int_cv 3.73 % 3.73 % 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 23.7 ns 23.7 ns 10 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.5 ns 23.5 ns 10 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.784 ns 0.784 ns 10 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.31 % 3.31 % 10 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.69 ns 9.69 ns 10 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.58 ns 9.58 ns 10 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.282 ns 0.282 ns 10 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.90 % 2.90 % 10 stringa s = "abcDef"; int res = s.to_int_mean 8.60 ns 8.60 ns 10 stringa s = "abcDef"; int res = s.to_int_median 8.54 ns 8.54 ns 10 stringa s = "abcDef"; int res = s.to_int_stddev 0.263 ns 0.263 ns 10 stringa s = "abcDef"; int res = s.to_int_cv 3.06 % 3.06 % 10 ssa s = "abcDef"; int res = s.to_int_mean 8.20 ns 8.20 ns 10 ssa s = "abcDef"; int res = s.to_int_median 7.91 ns 7.91 ns 10 ssa s = "abcDef"; int res = s.to_int_stddev 0.715 ns 0.715 ns 10 ssa s = "abcDef"; int res = s.to_int_cv 8.72 % 8.72 % 10 lstringa<20> s = "abcDef"; int res = s.to_int_mean 8.19 ns 8.19 ns 10 lstringa<20> s = "abcDef"; int res = s.to_int_median 8.17 ns 8.17 ns 10 lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.206 ns 0.206 ns 10 lstringa<20> s = "abcDef"; int res = s.to_int_cv 2.52 % 2.52 % 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 28.5 ns 28.5 ns 10 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.3 ns 28.3 ns 10 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.859 ns 0.859 ns 10 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.02 % 3.02 % 10 stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 15.0 ns 15.0 ns 10 stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 14.6 ns 14.6 ns 10 stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.593 ns 0.593 ns 10 stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 3.96 % 3.96 % 10 ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 10.8 ns 10.8 ns 10 ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 10.8 ns 10.8 ns 10 ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.259 ns 0.259 ns 10 ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 2.40 % 2.40 % 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 65.2 ns 65.2 ns 10 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 65.6 ns 65.6 ns 10 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.33 ns 2.33 ns 10 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.57 % 3.57 % 10 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 25.6 ns 25.6 ns 10 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.8 ns 24.8 ns 10 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.31 ns 2.31 ns 10 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 9.02 % 9.02 % 10 ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.8 ns 24.8 ns 10 ssa s = "1234.567e10"; double res = *s.to_double()_median 24.8 ns 24.8 ns 10 ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.638 ns 0.638 ns 10 ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.57 % 2.57 % 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 1362 ns 1362 ns 10 std::stringstream str; ... str << "abbaabbaabbaabba";_median 1362 ns 1362 ns 10 std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 32.2 ns 32.2 ns 10 std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.36 % 2.36 % 10 std::string str; ... str += "abbaabbaabbaabba";_mean 368 ns 368 ns 10 std::string str; ... str += "abbaabbaabbaabba";_median 356 ns 356 ns 10 std::string str; ... str += "abbaabbaabbaabba";_stddev 30.5 ns 30.5 ns 10 std::string str; ... str += "abbaabbaabbaabba";_cv 8.30 % 8.30 % 10 lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 399 ns 399 ns 10 lstringa<8> str; ... str += "abbaabbaabbaabba";_median 396 ns 396 ns 10 lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 21.8 ns 21.8 ns 10 lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 5.48 % 5.48 % 10 lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 274 ns 274 ns 10 lstringa<128> str; ... str += "abbaabbaabbaabba";_median 264 ns 264 ns 10 lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 24.7 ns 24.7 ns 10 lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 9.00 % 9.00 % 10 lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 254 ns 254 ns 10 lstringa<512> str; ... str += "abbaabbaabbaabba";_median 248 ns 248 ns 10 lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 21.2 ns 21.2 ns 10 lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 8.37 % 8.37 % 10 lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 139 ns 139 ns 10 lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 138 ns 138 ns 10 lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.30 ns 2.30 ns 10 lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.65 % 1.65 % 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 1381 ns 1381 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1362 ns 1362 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 66.4 ns 66.4 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.81 % 4.81 % 10 std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1279 ns 1279 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1262 ns 1262 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 94.3 ns 94.3 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 7.37 % 7.37 % 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 475 ns 475 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 471 ns 471 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 28.4 ns 28.4 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.99 % 5.99 % 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 413 ns 413 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 406 ns 406 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 54.3 ns 54.3 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 13.15 % 13.15 % 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 323 ns 323 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 324 ns 324 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 19.5 ns 19.5 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.05 % 6.05 % 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 243 ns 243 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 241 ns 241 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.61 ns 7.61 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.13 % 3.13 % 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 75087 ns 75088 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 74409 ns 74409 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 3096 ns 3096 ns 10 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.12 % 4.12 % 10 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 74728 ns 74728 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73562 ns 73561 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3537 ns 3537 ns 10 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.73 % 4.73 % 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20069 ns 20069 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19970 ns 19970 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 657 ns 657 ns 10 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.27 % 3.27 % 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19059 ns 19059 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18980 ns 18980 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1643 ns 1643 ns 10 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 8.62 % 8.62 % 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17233 ns 17233 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17184 ns 17184 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 375 ns 375 ns 10 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.18 % 2.18 % 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17586 ns 17587 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17252 ns 17252 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1379 ns 1379 ns 10 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.84 % 7.84 % 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 1393 ns 1393 ns 10 std::stringstream str; ... str << str_var1 << str_var2;_median 1369 ns 1369 ns 10 std::stringstream str; ... str << str_var1 << str_var2;_stddev 52.1 ns 52.1 ns 10 std::stringstream str; ... str << str_var1 << str_var2;_cv 3.74 % 3.74 % 10 std::string str; ... str += str_var1 + str_var2;_mean 1436 ns 1436 ns 10 std::string str; ... str += str_var1 + str_var2;_median 1438 ns 1438 ns 10 std::string str; ... str += str_var1 + str_var2;_stddev 39.2 ns 39.2 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 560 ns 560 ns 10 lstringa<16> str; ... str += str_var1 + str_var2;_median 548 ns 548 ns 10 lstringa<16> str; ... str += str_var1 + str_var2;_stddev 59.5 ns 59.5 ns 10 lstringa<16> str; ... str += str_var1 + str_var2;_cv 10.62 % 10.62 % 10 lstringa<128> str; ... str += str_var1 + str_var2;_mean 446 ns 446 ns 10 lstringa<128> str; ... str += str_var1 + str_var2;_median 447 ns 447 ns 10 lstringa<128> str; ... str += str_var1 + str_var2;_stddev 11.5 ns 11.5 ns 10 lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.59 % 2.59 % 10 lstringa<512> str; ... str += str_var1 + str_var2;_mean 400 ns 400 ns 10 lstringa<512> str; ... str += str_var1 + str_var2;_median 397 ns 397 ns 10 lstringa<512> str; ... str += str_var1 + str_var2;_stddev 15.7 ns 15.7 ns 10 lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.92 % 3.92 % 10 lstringa<1024> str; ... str += str_var1 + str_var2;_mean 307 ns 307 ns 10 lstringa<1024> str; ... str += str_var1 + str_var2;_median 301 ns 301 ns 10 lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 15.5 ns 15.5 ns 10 lstringa<1024> str; ... str += str_var1 + str_var2;_cv 5.03 % 5.03 % 10 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; str << "test = " << k << " times";_mean 3076 ns 3076 ns 10 std::stringstream str; str << "test = " << k << " times";_median 3051 ns 3051 ns 10 std::stringstream str; str << "test = " << k << " times";_stddev 142 ns 142 ns 10 std::stringstream str; str << "test = " << k << " times";_cv 4.61 % 4.61 % 10 std::string str = "test = " + std::to_string(k) + " times";_mean 470 ns 470 ns 10 std::string str = "test = " + std::to_string(k) + " times";_median 460 ns 460 ns 10 std::string str = "test = " + std::to_string(k) + " times";_stddev 34.9 ns 34.9 ns 10 std::string str = "test = " + std::to_string(k) + " times";_cv 7.43 % 7.43 % 10 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1714 ns 1714 ns 10 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1713 ns 1713 ns 10 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 125 ns 125 ns 10 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 7.29 % 7.29 % 10 std::string str = std::format("test = {} times", k);_mean 1289 ns 1289 ns 10 std::string str = std::format("test = {} times", k);_median 1302 ns 1302 ns 10 std::string str = std::format("test = {} times", k);_stddev 50.5 ns 50.5 ns 10 std::string str = std::format("test = {} times", k);_cv 3.92 % 3.92 % 10 lstringa<8> str; str.format("test = {} times", k);_mean 1588 ns 1588 ns 10 lstringa<8> str; str.format("test = {} times", k);_median 1557 ns 1557 ns 10 lstringa<8> str; str.format("test = {} times", k);_stddev 61.0 ns 61.0 ns 10 lstringa<8> str; str.format("test = {} times", k);_cv 3.84 % 3.84 % 10 lstringa<32> str; str.format("test = {} times", k);_mean 1059 ns 1059 ns 10 lstringa<32> str; str.format("test = {} times", k);_median 1055 ns 1055 ns 10 lstringa<32> str; str.format("test = {} times", k);_stddev 39.9 ns 39.9 ns 10 lstringa<32> str; str.format("test = {} times", k);_cv 3.76 % 3.76 % 10 lstringa<8> str = "test = " + k + " times";_mean 332 ns 332 ns 10 lstringa<8> str = "test = " + k + " times";_median 326 ns 326 ns 10 lstringa<8> str = "test = " + k + " times";_stddev 17.5 ns 17.5 ns 10 lstringa<8> str = "test = " + k + " times";_cv 5.28 % 5.28 % 10 lstringa<32> str = "test = " + k + " times";_mean 160 ns 160 ns 10 lstringa<32> str = "test = " + k + " times";_median 160 ns 160 ns 10 lstringa<32> str = "test = " + k + " times";_stddev 3.53 ns 3.53 ns 10 lstringa<32> str = "test = " + k + " times";_cv 2.20 % 2.20 % 10 stringa str = "test = " + k + " times";_mean 167 ns 167 ns 10 stringa str = "test = " + k + " times";_median 163 ns 163 ns 10 stringa str = "test = " + k + " times";_stddev 11.8 ns 11.8 ns 10 stringa str = "test = " + k + " times";_cv 7.10 % 7.10 % 10 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string::find + substr + std::strtol_mean 271 ns 271 ns 10 std::string::find + substr + std::strtol_median 271 ns 271 ns 10 std::string::find + substr + std::strtol_stddev 10.4 ns 10.4 ns 10 std::string::find + substr + std::strtol_cv 3.83 % 3.83 % 10 ssa::splitter + ssa::as_int_mean 133 ns 133 ns 10 ssa::splitter + ssa::as_int_median 131 ns 131 ns 10 ssa::splitter + ssa::as_int_stddev 3.27 ns 3.27 ns 10 ssa::splitter + ssa::as_int_cv 2.46 % 2.46 % 10 ssa::splitf + functor_mean 131 ns 131 ns 10 ssa::splitf + functor_median 126 ns 126 ns 10 ssa::splitf + functor_stddev 10.8 ns 10.8 ns 10 ssa::splitf + functor_cv 8.28 % 8.28 % 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 845 ns 845 ns 10 Naive (and wrong) replace symbols with std::string find + replace_median 842 ns 842 ns 10 Naive (and wrong) replace symbols with std::string find + replace_stddev 31.9 ns 31.9 ns 10 Naive (and wrong) replace symbols with std::string find + replace_cv 3.78 % 3.78 % 10 replace symbols with std::string find_first_of + replace_mean 2401 ns 2401 ns 10 replace symbols with std::string find_first_of + replace_median 2379 ns 2379 ns 10 replace symbols with std::string find_first_of + replace_stddev 103 ns 103 ns 10 replace symbols with std::string find_first_of + replace_cv 4.30 % 4.30 % 10 replace symbols with std::string_view find_first_of + copy_mean 1157 ns 1157 ns 10 replace symbols with std::string_view find_first_of + copy_median 1127 ns 1127 ns 10 replace symbols with std::string_view find_first_of + copy_stddev 113 ns 113 ns 10 replace symbols with std::string_view find_first_of + copy_cv 9.78 % 9.78 % 10 replace runtime symbols with string expressions and without remembering all search results_mean 1495 ns 1495 ns 10 replace runtime symbols with string expressions and without remembering all search results_median 1487 ns 1487 ns 10 replace runtime symbols with string expressions and without remembering all search results_stddev 60.4 ns 60.4 ns 10 replace runtime symbols with string expressions and without remembering all search results_cv 4.04 % 4.04 % 10 replace runtime symbols with simstr and memorization of all search results_mean 1055 ns 1055 ns 10 replace runtime symbols with simstr and memorization of all search results_median 1046 ns 1046 ns 10 replace runtime symbols with simstr and memorization of all search results_stddev 51.4 ns 51.4 ns 10 replace runtime symbols with simstr and memorization of all search results_cv 4.87 % 4.87 % 10 replace const symbols with string expressions and without remembering all search results_mean 1238 ns 1238 ns 10 replace const symbols with string expressions and without remembering all search results_median 1236 ns 1236 ns 10 replace const symbols with string expressions and without remembering all search results_stddev 48.4 ns 48.4 ns 10 replace const symbols with string expressions and without remembering all search results_cv 3.91 % 3.91 % 10 replace const symbols with string expressions and memorization of all search results_mean 872 ns 872 ns 10 replace const symbols with string expressions and memorization of all search results_median 878 ns 878 ns 10 replace const symbols with string expressions and memorization of all search results_stddev 31.4 ns 31.4 ns 10 replace const symbols with string expressions and memorization of all search results_cv 3.60 % 3.60 % 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 175 ns 175 ns 10 Short Naive (and wrong) replace symbols with std::string find + replace_median 170 ns 170 ns 10 Short Naive (and wrong) replace symbols with std::string find + replace_stddev 15.2 ns 15.2 ns 10 Short Naive (and wrong) replace symbols with std::string find + replace_cv 8.68 % 8.68 % 10 Short replace symbols with std::string find_first_of + replace_mean 319 ns 319 ns 10 Short replace symbols with std::string find_first_of + replace_median 320 ns 320 ns 10 Short replace symbols with std::string find_first_of + replace_stddev 5.69 ns 5.69 ns 10 Short replace symbols with std::string find_first_of + replace_cv 1.79 % 1.79 % 10 Short replace symbols with std::string_view find_first_of + copy_mean 183 ns 183 ns 10 Short replace symbols with std::string_view find_first_of + copy_median 179 ns 179 ns 10 Short replace symbols with std::string_view find_first_of + copy_stddev 8.97 ns 8.97 ns 10 Short replace symbols with std::string_view find_first_of + copy_cv 4.91 % 4.91 % 10 Short replace runtime symbols with string expressions and without remembering all search results_mean 225 ns 225 ns 10 Short replace runtime symbols with string expressions and without remembering all search results_median 225 ns 225 ns 10 Short replace runtime symbols with string expressions and without remembering all search results_stddev 7.70 ns 7.70 ns 10 Short replace runtime symbols with string expressions and without remembering all search results_cv 3.43 % 3.43 % 10 Short replace runtime symbols with simstr and memorization of all search results_mean 206 ns 206 ns 10 Short replace runtime symbols with simstr and memorization of all search results_median 204 ns 204 ns 10 Short replace runtime symbols with simstr and memorization of all search results_stddev 7.76 ns 7.76 ns 10 Short replace runtime symbols with simstr and memorization of all search results_cv 3.77 % 3.77 % 10 Short replace const symbols with string expressions and without remembering all search results_mean 162 ns 162 ns 10 Short replace const symbols with string expressions and without remembering all search results_median 161 ns 161 ns 10 Short replace const symbols with string expressions and without remembering all search results_stddev 3.93 ns 3.93 ns 10 Short replace const symbols with string expressions and without remembering all search results_cv 2.43 % 2.43 % 10 Short replace const symbols with string expressions and memorization of all search results_mean 156 ns 156 ns 10 Short replace const symbols with string expressions and memorization of all search results_median 156 ns 156 ns 10 Short replace const symbols with string expressions and memorization of all search results_stddev 4.64 ns 4.64 ns 10 Short replace const symbols with string expressions and memorization of all search results_cv 2.97 % 2.97 % 10 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 replace bb to ---- in std::string|64_mean 164 ns 164 ns 10 replace bb to ---- in std::string|64_median 168 ns 168 ns 10 replace bb to ---- in std::string|64_stddev 7.02 ns 7.02 ns 10 replace bb to ---- in std::string|64_cv 4.28 % 4.28 % 10 replace bb to ---- in std::string|256_mean 492 ns 492 ns 10 replace bb to ---- in std::string|256_median 483 ns 483 ns 10 replace bb to ---- in std::string|256_stddev 13.6 ns 13.6 ns 10 replace bb to ---- in std::string|256_cv 2.76 % 2.76 % 10 replace bb to ---- in std::string|512_mean 1119 ns 1119 ns 10 replace bb to ---- in std::string|512_median 1123 ns 1123 ns 10 replace bb to ---- in std::string|512_stddev 101 ns 101 ns 10 replace bb to ---- in std::string|512_cv 9.01 % 9.01 % 10 replace bb to ---- in std::string|1024_mean 2211 ns 2211 ns 10 replace bb to ---- in std::string|1024_median 2166 ns 2166 ns 10 replace bb to ---- in std::string|1024_stddev 152 ns 152 ns 10 replace bb to ---- in std::string|1024_cv 6.87 % 6.87 % 10 replace bb to ---- in std::string|2048_mean 5959 ns 5959 ns 10 replace bb to ---- in std::string|2048_median 5793 ns 5793 ns 10 replace bb to ---- in std::string|2048_stddev 471 ns 471 ns 10 replace bb to ---- in std::string|2048_cv 7.90 % 7.90 % 10 replace bb to ---- in lstringa<8>|64_mean 148 ns 148 ns 10 replace bb to ---- in lstringa<8>|64_median 146 ns 146 ns 10 replace bb to ---- in lstringa<8>|64_stddev 7.41 ns 7.41 ns 10 replace bb to ---- in lstringa<8>|64_cv 5.01 % 5.01 % 10 replace bb to ---- in lstringa<8>|256_mean 485 ns 485 ns 10 replace bb to ---- in lstringa<8>|256_median 486 ns 486 ns 10 replace bb to ---- in lstringa<8>|256_stddev 18.3 ns 18.3 ns 10 replace bb to ---- in lstringa<8>|256_cv 3.76 % 3.76 % 10 replace bb to ---- in lstringa<8>|512_mean 893 ns 893 ns 10 replace bb to ---- in lstringa<8>|512_median 885 ns 885 ns 10 replace bb to ---- in lstringa<8>|512_stddev 50.3 ns 50.3 ns 10 replace bb to ---- in lstringa<8>|512_cv 5.64 % 5.64 % 10 replace bb to ---- in lstringa<8>|1024_mean 1845 ns 1845 ns 10 replace bb to ---- in lstringa<8>|1024_median 1827 ns 1827 ns 10 replace bb to ---- in lstringa<8>|1024_stddev 82.0 ns 82.0 ns 10 replace bb to ---- in lstringa<8>|1024_cv 4.44 % 4.44 % 10 replace bb to ---- in lstringa<8>|2048_mean 3614 ns 3614 ns 10 replace bb to ---- in lstringa<8>|2048_median 3507 ns 3507 ns 10 replace bb to ---- in lstringa<8>|2048_stddev 378 ns 378 ns 10 replace bb to ---- in lstringa<8>|2048_cv 10.46 % 10.46 % 10 replace bb to ---- by init stringa|64_mean 110 ns 110 ns 10 replace bb to ---- by init stringa|64_median 111 ns 111 ns 10 replace bb to ---- by init stringa|64_stddev 13.0 ns 13.0 ns 10 replace bb to ---- by init stringa|64_cv 11.74 % 11.74 % 10 replace bb to ---- by init stringa|256_mean 305 ns 305 ns 10 replace bb to ---- by init stringa|256_median 305 ns 305 ns 10 replace bb to ---- by init stringa|256_stddev 6.14 ns 6.14 ns 10 replace bb to ---- by init stringa|256_cv 2.01 % 2.01 % 10 replace bb to ---- by init stringa|512_mean 751 ns 752 ns 10 replace bb to ---- by init stringa|512_median 740 ns 740 ns 10 replace bb to ---- by init stringa|512_stddev 24.4 ns 23.4 ns 10 replace bb to ---- by init stringa|512_cv 3.26 % 3.12 % 10 replace bb to ---- by init stringa|1024_mean 1630 ns 1630 ns 10 replace bb to ---- by init stringa|1024_median 1632 ns 1632 ns 10 replace bb to ---- by init stringa|1024_stddev 29.0 ns 29.0 ns 10 replace bb to ---- by init stringa|1024_cv 1.78 % 1.78 % 10 replace bb to ---- by init stringa|2048_mean 3440 ns 3440 ns 10 replace bb to ---- by init stringa|2048_median 3418 ns 3418 ns 10 replace bb to ---- by init stringa|2048_stddev 162 ns 162 ns 10 replace bb to ---- by init stringa|2048_cv 4.72 % 4.72 % 10 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 replace bb to -- in std::string|64_mean 118 ns 118 ns 10 replace bb to -- in std::string|64_median 118 ns 118 ns 10 replace bb to -- in std::string|64_stddev 3.11 ns 3.11 ns 10 replace bb to -- in std::string|64_cv 2.63 % 2.63 % 10 replace bb to -- in std::string|256_mean 418 ns 418 ns 10 replace bb to -- in std::string|256_median 408 ns 408 ns 10 replace bb to -- in std::string|256_stddev 50.6 ns 50.6 ns 10 replace bb to -- in std::string|256_cv 12.10 % 12.10 % 10 replace bb to -- in std::string|512_mean 773 ns 773 ns 10 replace bb to -- in std::string|512_median 747 ns 747 ns 10 replace bb to -- in std::string|512_stddev 70.5 ns 70.5 ns 10 replace bb to -- in std::string|512_cv 9.12 % 9.12 % 10 replace bb to -- in std::string|1024_mean 1538 ns 1538 ns 10 replace bb to -- in std::string|1024_median 1556 ns 1556 ns 10 replace bb to -- in std::string|1024_stddev 133 ns 133 ns 10 replace bb to -- in std::string|1024_cv 8.65 % 8.65 % 10 replace bb to -- in std::string|2048_mean 2919 ns 2919 ns 10 replace bb to -- in std::string|2048_median 2914 ns 2914 ns 10 replace bb to -- in std::string|2048_stddev 56.1 ns 56.1 ns 10 replace bb to -- in std::string|2048_cv 1.92 % 1.92 % 10 replace bb to -- in lstringa<8>|64_mean 100 ns 100 ns 10 replace bb to -- in lstringa<8>|64_median 102 ns 102 ns 10 replace bb to -- in lstringa<8>|64_stddev 4.32 ns 4.32 ns 10 replace bb to -- in lstringa<8>|64_cv 4.31 % 4.31 % 10 replace bb to -- in lstringa<8>|256_mean 298 ns 298 ns 10 replace bb to -- in lstringa<8>|256_median 290 ns 290 ns 10 replace bb to -- in lstringa<8>|256_stddev 22.6 ns 22.6 ns 10 replace bb to -- in lstringa<8>|256_cv 7.58 % 7.58 % 10 replace bb to -- in lstringa<8>|512_mean 551 ns 551 ns 10 replace bb to -- in lstringa<8>|512_median 548 ns 548 ns 10 replace bb to -- in lstringa<8>|512_stddev 25.9 ns 25.9 ns 10 replace bb to -- in lstringa<8>|512_cv 4.70 % 4.70 % 10 replace bb to -- in lstringa<8>|1024_mean 1105 ns 1105 ns 10 replace bb to -- in lstringa<8>|1024_median 1094 ns 1094 ns 10 replace bb to -- in lstringa<8>|1024_stddev 41.5 ns 41.5 ns 10 replace bb to -- in lstringa<8>|1024_cv 3.76 % 3.76 % 10 replace bb to -- in lstringa<8>|2048_mean 2117 ns 2117 ns 10 replace bb to -- in lstringa<8>|2048_median 2123 ns 2124 ns 10 replace bb to -- in lstringa<8>|2048_stddev 72.1 ns 72.1 ns 10 replace bb to -- in lstringa<8>|2048_cv 3.41 % 3.41 % 10 replace bb to -- by init stringa|64_mean 95.6 ns 95.6 ns 10 replace bb to -- by init stringa|64_median 92.9 ns 92.9 ns 10 replace bb to -- by init stringa|64_stddev 6.38 ns 6.38 ns 10 replace bb to -- by init stringa|64_cv 6.68 % 6.68 % 10 replace bb to -- by init stringa|256_mean 270 ns 270 ns 10 replace bb to -- by init stringa|256_median 266 ns 266 ns 10 replace bb to -- by init stringa|256_stddev 9.47 ns 9.47 ns 10 replace bb to -- by init stringa|256_cv 3.50 % 3.50 % 10 replace bb to -- by init stringa|512_mean 553 ns 553 ns 10 replace bb to -- by init stringa|512_median 544 ns 544 ns 10 replace bb to -- by init stringa|512_stddev 56.9 ns 56.9 ns 10 replace bb to -- by init stringa|512_cv 10.28 % 10.28 % 10 replace bb to -- by init stringa|1024_mean 1031 ns 1031 ns 10 replace bb to -- by init stringa|1024_median 1022 ns 1022 ns 10 replace bb to -- by init stringa|1024_stddev 30.1 ns 30.1 ns 10 replace bb to -- by init stringa|1024_cv 2.92 % 2.92 % 10 replace bb to -- by init stringa|2048_mean 1966 ns 1966 ns 10 replace bb to -- by init stringa|2048_median 1965 ns 1965 ns 10 replace bb to -- by init stringa|2048_stddev 38.2 ns 38.2 ns 10 replace bb to -- by init stringa|2048_cv 1.94 % 1.94 % 10 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 hashStrMapA emplace & find stringa;_mean 3722226 ns 3722240 ns 10 hashStrMapA emplace & find stringa;_median 3726028 ns 3726040 ns 10 hashStrMapA emplace & find stringa;_stddev 72547 ns 72547 ns 10 hashStrMapA emplace & find stringa;_cv 1.95 % 1.95 % 10 std::unordered_map emplace & find std::string;_mean 3711685 ns 3711658 ns 10 std::unordered_map emplace & find std::string;_median 3695646 ns 3695658 ns 10 std::unordered_map emplace & find std::string;_stddev 102501 ns 102437 ns 10 std::unordered_map emplace & find std::string;_cv 2.76 % 2.76 % 10 hashStrMapA emplace & find ssa;_mean 3706802 ns 3706817 ns 10 hashStrMapA emplace & find ssa;_median 3698296 ns 3698309 ns 10 hashStrMapA emplace & find ssa;_stddev 57482 ns 57482 ns 10 hashStrMapA emplace & find ssa;_cv 1.55 % 1.55 % 10 std::unordered_map emplace & find std::string_view;_mean 4055890 ns 4055903 ns 10 std::unordered_map emplace & find std::string_view;_median 4024701 ns 4024711 ns 10 std::unordered_map emplace & find std::string_view;_stddev 133788 ns 133788 ns 10 std::unordered_map emplace & find std::string_view;_cv 3.30 % 3.30 % 10 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Build func full name std::string;_mean 943 ns 943 ns 10 Build func full name std::string;_median 943 ns 943 ns 10 Build func full name std::string;_stddev 41.8 ns 41.8 ns 10 Build func full name std::string;_cv 4.44 % 4.44 % 10 Build func full name std::string 1;_mean 1022 ns 1022 ns 10 Build func full name std::string 1;_median 1021 ns 1021 ns 10 Build func full name std::string 1;_stddev 38.0 ns 38.0 ns 10 Build func full name std::string 1;_cv 3.72 % 3.72 % 10 Build func full name std::stream;_mean 2671 ns 2671 ns 10 Build func full name std::stream;_median 2617 ns 2617 ns 10 Build func full name std::stream;_stddev 224 ns 224 ns 10 Build func full name std::stream;_cv 8.37 % 8.37 % 10 Build func full name stringa;_mean 612 ns 612 ns 10 Build func full name stringa;_median 597 ns 597 ns 10 Build func full name stringa;_stddev 42.2 ns 42.2 ns 10 Build func full name stringa;_cv 6.89 % 6.89 % 10 Build func full name stringa 1;_mean 657 ns 657 ns 10 Build func full name stringa 1;_median 650 ns 650 ns 10 Build func full name stringa 1;_stddev 38.8 ns 38.8 ns 10 Build func full name stringa 1;_cv 5.90 % 5.90 % 10