Benchmarks of simstr, version 1.6.4 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Run on (32 X 2513.96 MHz CPU s) Firefox: 146.0.1.60 webasm -------------------------------------------------------------------------------------------------------------------------------------------------------- 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 891 ns 891 ns 4 Concat std::string and number by std to std::string_median 878 ns 878 ns 4 Concat std::string and number by std to std::string_stddev 66.3 ns 66.3 ns 4 Concat std::string and number by std to std::string_cv 7.44 % 7.44 % 4 Concat std::string and number by StrExpr to std::string_mean 402 ns 402 ns 4 Concat std::string and number by StrExpr to std::string_median 393 ns 393 ns 4 Concat std::string and number by StrExpr to std::string_stddev 19.0 ns 19.0 ns 4 Concat std::string and number by StrExpr to std::string_cv 4.73 % 4.73 % 4 Concat stringa and number by StrExpr to simstr::stringa_mean 230 ns 230 ns 4 Concat stringa and number by StrExpr to simstr::stringa_median 232 ns 232 ns 4 Concat stringa and number by StrExpr to simstr::stringa_stddev 19.5 ns 19.5 ns 4 Concat stringa and number by StrExpr to simstr::stringa_cv 8.50 % 8.50 % 4 Concat stringa and number by e_concat to simstr::stringa_mean 196 ns 196 ns 4 Concat stringa and number by e_concat to simstr::stringa_median 196 ns 196 ns 4 Concat stringa and number by e_concat to simstr::stringa_stddev 5.39 ns 5.39 ns 4 Concat stringa and number by e_concat to simstr::stringa_cv 2.75 % 2.75 % 4 ----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat std::string and format hex number and literal to std::string_mean 1301 ns 1301 ns 4 Concat std::string and format hex number and literal to std::string_median 1297 ns 1297 ns 4 Concat std::string and format hex number and literal to std::string_stddev 34.9 ns 34.9 ns 4 Concat std::string and format hex number and literal to std::string_cv 2.68 % 2.68 % 4 std::format std::string and hex number by literal to std::string_mean 1590 ns 1590 ns 4 std::format std::string and hex number by literal to std::string_median 1587 ns 1587 ns 4 std::format std::string and hex number by literal to std::string_stddev 34.8 ns 34.8 ns 4 std::format std::string and hex number by literal to std::string_cv 2.19 % 2.19 % 4 Concat std::string and std::to_chars and string to std::string_mean 611 ns 611 ns 4 Concat std::string and std::to_chars and string to std::string_median 604 ns 605 ns 4 Concat std::string and std::to_chars and string to std::string_stddev 14.9 ns 14.8 ns 4 Concat std::string and std::to_chars and string to std::string_cv 2.44 % 2.42 % 4 Concat std::string and hex number and literal by StrExpr to std::string_mean 419 ns 419 ns 4 Concat std::string and hex number and literal by StrExpr to std::string_median 420 ns 420 ns 4 Concat std::string and hex number and literal by StrExpr to std::string_stddev 29.1 ns 29.1 ns 4 Concat std::string and hex number and literal by StrExpr to std::string_cv 6.95 % 6.95 % 4 Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 220 ns 220 ns 4 Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 221 ns 221 ns 4 Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 21.1 ns 21.1 ns 4 Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 9.60 % 9.60 % 4 Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 214 ns 214 ns 4 Concat stringa and hex number and literal by e_concat to simstr::stringa_median 213 ns 213 ns 4 Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 9.28 ns 9.28 ns 4 Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 4.34 % 4.34 % 4 Subst stringa and hex number by e_subst literal to simstr::stringa_mean 463 ns 463 ns 4 Subst stringa and hex number by e_subst literal to simstr::stringa_median 477 ns 477 ns 4 Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 35.6 ns 35.6 ns 4 Subst stringa and hex number by e_subst literal to simstr::stringa_cv 7.67 % 7.67 % 4 Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 770 ns 770 ns 4 Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 779 ns 779 ns 4 Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 43.5 ns 43.5 ns 4 Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 5.65 % 5.65 % 4 ----- format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 "art "_ss + i / 0x8a010_fmt + " end"_mean 497 ns 497 ns 4 "art "_ss + i / 0x8a010_fmt + " end"_median 507 ns 507 ns 4 "art "_ss + i / 0x8a010_fmt + " end"_stddev 37.5 ns 37.5 ns 4 "art "_ss + i / 0x8a010_fmt + " end"_cv 7.55 % 7.55 % 4 e_subst("art {} end", i / 0x8a010_fmt)_mean 682 ns 683 ns 4 e_subst("art {} end", i / 0x8a010_fmt)_median 684 ns 684 ns 4 e_subst("art {} end", i / 0x8a010_fmt)_stddev 20.2 ns 19.8 ns 4 e_subst("art {} end", i / 0x8a010_fmt)_cv 2.96 % 2.90 % 4 e_vsubst(pattern, i / 0x8a010_fmt)_mean 999 ns 999 ns 4 e_vsubst(pattern, i / 0x8a010_fmt)_median 998 ns 998 ns 4 e_vsubst(pattern, i / 0x8a010_fmt)_stddev 9.96 ns 9.96 ns 4 e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.00 % 1.00 % 4 std::format("art {:#010o} end", i)_mean 1770 ns 1770 ns 4 std::format("art {:#010o} end", i)_median 1779 ns 1779 ns 4 std::format("art {:#010o} end", i)_stddev 42.1 ns 42.1 ns 4 std::format("art {:#010o} end", i)_cv 2.38 % 2.38 % 4 std::vformat(pattern, std::make_format_args(i))_mean 1790 ns 1790 ns 4 std::vformat(pattern, std::make_format_args(i))_median 1803 ns 1803 ns 4 std::vformat(pattern, std::make_format_args(i))_stddev 63.4 ns 63.4 ns 4 std::vformat(pattern, std::make_format_args(i))_cv 3.54 % 3.54 % 4 strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 4124 ns 4124 ns 4 strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 4096 ns 4096 ns 4 strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 120 ns 120 ns 4 strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.92 % 2.92 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat std::string by std to std::string_mean 102 ns 102 ns 4 Concat std::string by std to std::string_median 102 ns 102 ns 4 Concat std::string by std to std::string_stddev 0.936 ns 0.936 ns 4 Concat std::string by std to std::string_cv 0.92 % 0.92 % 4 Concat std::string by StrExpr to std::string_mean 119 ns 119 ns 4 Concat std::string by StrExpr to std::string_median 118 ns 118 ns 4 Concat std::string by StrExpr to std::string_stddev 5.22 ns 5.22 ns 4 Concat std::string by StrExpr to std::string_cv 4.39 % 4.39 % 4 Concat stringa by StrExpr to stringa_mean 93.6 ns 93.6 ns 4 Concat stringa by StrExpr to stringa_median 94.6 ns 94.6 ns 4 Concat stringa by StrExpr to stringa_stddev 2.79 ns 2.79 ns 4 Concat stringa by StrExpr to stringa_cv 2.98 % 2.98 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 Find concat three std::string_mean 157 ns 157 ns 4 Find concat three std::string_median 156 ns 156 ns 4 Find concat three std::string_stddev 7.12 ns 7.12 ns 4 Find concat three std::string_cv 4.53 % 4.53 % 4 Find concat three strexpr_mean 102 ns 102 ns 4 Find concat three strexpr_median 101 ns 101 ns 4 Find concat three strexpr_stddev 3.58 ns 3.58 ns 4 Find concat three strexpr_cv 3.50 % 3.50 % 4 Find concat three simstr_mean 72.5 ns 72.5 ns 4 Find concat three simstr_median 72.7 ns 72.7 ns 4 Find concat three simstr_stddev 1.58 ns 1.58 ns 4 Find concat three simstr_cv 2.18 % 2.18 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 BuildTypeNameStr 0/0_mean 17.5 ns 17.5 ns 4 BuildTypeNameStr 0/0_median 17.3 ns 17.3 ns 4 BuildTypeNameStr 0/0_stddev 1.09 ns 1.09 ns 4 BuildTypeNameStr 0/0_cv 6.24 % 6.24 % 4 BuildTypeNameExp 0/0_mean 16.4 ns 16.4 ns 4 BuildTypeNameExp 0/0_median 16.0 ns 16.0 ns 4 BuildTypeNameExp 0/0_stddev 1.13 ns 1.13 ns 4 BuildTypeNameExp 0/0_cv 6.89 % 6.89 % 4 BuildTypeNameSim 0/0_mean 16.5 ns 16.5 ns 4 BuildTypeNameSim 0/0_median 16.6 ns 16.6 ns 4 BuildTypeNameSim 0/0_stddev 0.683 ns 0.683 ns 4 BuildTypeNameSim 0/0_cv 4.15 % 4.15 % 4 BuildTypeNameStr 10/10_mean 283 ns 283 ns 4 BuildTypeNameStr 10/10_median 282 ns 282 ns 4 BuildTypeNameStr 10/10_stddev 5.99 ns 5.99 ns 4 BuildTypeNameStr 10/10_cv 2.12 % 2.12 % 4 BuildTypeNameExp 10/10_mean 98.2 ns 98.2 ns 4 BuildTypeNameExp 10/10_median 97.6 ns 97.6 ns 4 BuildTypeNameExp 10/10_stddev 7.37 ns 7.37 ns 4 BuildTypeNameExp 10/10_cv 7.51 % 7.51 % 4 BuildTypeNameSim 10/10_mean 74.6 ns 74.6 ns 4 BuildTypeNameSim 10/10_median 73.4 ns 73.4 ns 4 BuildTypeNameSim 10/10_stddev 7.30 ns 7.30 ns 4 BuildTypeNameSim 10/10_cv 9.79 % 9.79 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat with replace str_mean 436 ns 436 ns 4 Concat with replace str_median 435 ns 435 ns 4 Concat with replace str_stddev 17.1 ns 17.1 ns 4 Concat with replace str_cv 3.93 % 3.93 % 4 Concat with replace exp_mean 259 ns 259 ns 4 Concat with replace exp_median 261 ns 261 ns 4 Concat with replace exp_stddev 10.3 ns 10.3 ns 4 Concat with replace exp_cv 3.97 % 3.97 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e;_mean 2.15 ns 2.15 ns 4 std::string e;_median 2.15 ns 2.15 ns 4 std::string e;_stddev 0.034 ns 0.034 ns 4 std::string e;_cv 1.59 % 1.59 % 4 std::string_view e;_mean 1.03 ns 1.03 ns 4 std::string_view e;_median 1.02 ns 1.02 ns 4 std::string_view e;_stddev 0.041 ns 0.041 ns 4 std::string_view e;_cv 4.01 % 4.01 % 4 ssa e;_mean 0.941 ns 0.941 ns 4 ssa e;_median 0.939 ns 0.939 ns 4 ssa e;_stddev 0.009 ns 0.009 ns 4 ssa e;_cv 0.96 % 0.96 % 4 stringa e;_mean 2.15 ns 2.15 ns 4 stringa e;_median 2.15 ns 2.15 ns 4 stringa e;_stddev 0.005 ns 0.005 ns 4 stringa e;_cv 0.23 % 0.23 % 4 lstringa<20> e;_mean 2.25 ns 2.25 ns 4 lstringa<20> e;_median 2.23 ns 2.23 ns 4 lstringa<20> e;_stddev 0.076 ns 0.076 ns 4 lstringa<20> e;_cv 3.40 % 3.40 % 4 lstringa<40> e;_mean 2.51 ns 2.51 ns 4 lstringa<40> e;_median 2.51 ns 2.51 ns 4 lstringa<40> e;_stddev 0.020 ns 0.020 ns 4 lstringa<40> e;_cv 0.78 % 0.78 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "Test text";_mean 2.32 ns 2.32 ns 4 std::string e = "Test text";_median 2.28 ns 2.28 ns 4 std::string e = "Test text";_stddev 0.090 ns 0.090 ns 4 std::string e = "Test text";_cv 3.87 % 3.87 % 4 std::string_view e = "Test text";_mean 1.23 ns 1.23 ns 4 std::string_view e = "Test text";_median 1.24 ns 1.24 ns 4 std::string_view e = "Test text";_stddev 0.011 ns 0.011 ns 4 std::string_view e = "Test text";_cv 0.89 % 0.89 % 4 ssa e = "Test text";_mean 0.982 ns 0.982 ns 4 ssa e = "Test text";_median 0.975 ns 0.975 ns 4 ssa e = "Test text";_stddev 0.028 ns 0.028 ns 4 ssa e = "Test text";_cv 2.84 % 2.84 % 4 stringa e = "Test text";_mean 2.25 ns 2.25 ns 4 stringa e = "Test text";_median 2.26 ns 2.26 ns 4 stringa e = "Test text";_stddev 0.135 ns 0.135 ns 4 stringa e = "Test text";_cv 5.98 % 5.98 % 4 lstringa<20> e = "Test text";_mean 2.73 ns 2.73 ns 4 lstringa<20> e = "Test text";_median 2.71 ns 2.71 ns 4 lstringa<20> e = "Test text";_stddev 0.108 ns 0.108 ns 4 lstringa<20> e = "Test text";_cv 3.95 % 3.95 % 4 lstringa<40> e = "Test text";_mean 2.65 ns 2.65 ns 4 lstringa<40> e = "Test text";_median 2.65 ns 2.65 ns 4 lstringa<40> e = "Test text";_stddev 0.007 ns 0.007 ns 4 lstringa<40> e = "Test text";_cv 0.26 % 0.26 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "123456789012345678901234567890";_mean 15.9 ns 15.9 ns 4 std::string e = "123456789012345678901234567890";_median 15.9 ns 15.9 ns 4 std::string e = "123456789012345678901234567890";_stddev 0.414 ns 0.414 ns 4 std::string e = "123456789012345678901234567890";_cv 2.61 % 2.61 % 4 std::string_view e = "123456789012345678901234567890";_mean 1.26 ns 1.26 ns 4 std::string_view e = "123456789012345678901234567890";_median 1.26 ns 1.26 ns 4 std::string_view e = "123456789012345678901234567890";_stddev 0.054 ns 0.054 ns 4 std::string_view e = "123456789012345678901234567890";_cv 4.29 % 4.29 % 4 ssa e = "123456789012345678901234567890";_mean 0.971 ns 0.971 ns 4 ssa e = "123456789012345678901234567890";_median 0.972 ns 0.972 ns 4 ssa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 4 ssa e = "123456789012345678901234567890";_cv 1.51 % 1.51 % 4 stringa e = "123456789012345678901234567890";_mean 2.23 ns 2.23 ns 4 stringa e = "123456789012345678901234567890";_median 2.22 ns 2.22 ns 4 stringa e = "123456789012345678901234567890";_stddev 0.062 ns 0.062 ns 4 stringa e = "123456789012345678901234567890";_cv 2.80 % 2.80 % 4 lstringa<20> e = "123456789012345678901234567890";_mean 16.5 ns 16.5 ns 4 lstringa<20> e = "123456789012345678901234567890";_median 16.6 ns 16.6 ns 4 lstringa<20> e = "123456789012345678901234567890";_stddev 0.463 ns 0.463 ns 4 lstringa<20> e = "123456789012345678901234567890";_cv 2.80 % 2.80 % 4 lstringa<40> e = "123456789012345678901234567890";_mean 3.16 ns 3.16 ns 4 lstringa<40> e = "123456789012345678901234567890";_median 3.11 ns 3.11 ns 4 lstringa<40> e = "123456789012345678901234567890";_stddev 0.289 ns 0.289 ns 4 lstringa<40> e = "123456789012345678901234567890";_cv 9.16 % 9.16 % 4 ----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "Test text"; auto c{e};_mean 2.24 ns 2.24 ns 4 std::string e = "Test text"; auto c{e};_median 2.24 ns 2.24 ns 4 std::string e = "Test text"; auto c{e};_stddev 0.055 ns 0.055 ns 4 std::string e = "Test text"; auto c{e};_cv 2.45 % 2.45 % 4 std::string_view e = "Test text"; auto c{e};_mean 1.24 ns 1.24 ns 4 std::string_view e = "Test text"; auto c{e};_median 1.24 ns 1.24 ns 4 std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4 std::string_view e = "Test text"; auto c{e};_cv 1.13 % 1.13 % 4 ssa e = "Test text"; auto c{e};_mean 1.23 ns 1.23 ns 4 ssa e = "Test text"; auto c{e};_median 1.24 ns 1.24 ns 4 ssa e = "Test text"; auto c{e};_stddev 0.034 ns 0.034 ns 4 ssa e = "Test text"; auto c{e};_cv 2.78 % 2.78 % 4 stringa e = "Test text"; auto c{e};_mean 2.61 ns 2.61 ns 4 stringa e = "Test text"; auto c{e};_median 2.61 ns 2.61 ns 4 stringa e = "Test text"; auto c{e};_stddev 0.058 ns 0.058 ns 4 stringa e = "Test text"; auto c{e};_cv 2.21 % 2.21 % 4 lstringa<20> e = "Test text"; auto c{e};_mean 16.2 ns 16.2 ns 4 lstringa<20> e = "Test text"; auto c{e};_median 16.1 ns 16.1 ns 4 lstringa<20> e = "Test text"; auto c{e};_stddev 1.26 ns 1.26 ns 4 lstringa<20> e = "Test text"; auto c{e};_cv 7.76 % 7.76 % 4 lstringa<40> e = "Test text"; auto c{e};_mean 14.7 ns 14.7 ns 4 lstringa<40> e = "Test text"; auto c{e};_median 14.7 ns 14.7 ns 4 lstringa<40> e = "Test text"; auto c{e};_stddev 0.936 ns 0.936 ns 4 lstringa<40> e = "Test text"; auto c{e};_cv 6.38 % 6.38 % 4 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string e = "123456789012345678901234567890"; auto c{e};_mean 37.7 ns 37.7 ns 4 std::string e = "123456789012345678901234567890"; auto c{e};_median 38.0 ns 38.0 ns 4 std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.53 ns 1.53 ns 4 std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.06 % 4.06 % 4 std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.23 ns 1.23 ns 4 std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.22 ns 1.22 ns 4 std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.022 ns 0.022 ns 4 std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.83 % 1.83 % 4 ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.989 ns 0.989 ns 4 ssa e = "123456789012345678901234567890"; auto c{e};_median 0.986 ns 0.986 ns 4 ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.025 ns 4 ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.55 % 2.55 % 4 stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.19 ns 2.19 ns 4 stringa e = "123456789012345678901234567890"; auto c{e};_median 2.18 ns 2.18 ns 4 stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.016 ns 4 stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.74 % 0.74 % 4 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 16.2 ns 16.2 ns 4 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 16.1 ns 16.1 ns 4 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.579 ns 0.579 ns 4 lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.58 % 3.58 % 4 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 13.7 ns 13.7 ns 4 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 13.7 ns 13.7 ns 4 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.534 ns 0.534 ns 4 lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 3.88 % 3.88 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string::find;_mean 45.9 ns 45.9 ns 4 std::string::find;_median 45.8 ns 45.8 ns 4 std::string::find;_stddev 0.967 ns 0.967 ns 4 std::string::find;_cv 2.11 % 2.11 % 4 std::string_view::find;_mean 51.0 ns 51.0 ns 4 std::string_view::find;_median 51.2 ns 51.2 ns 4 std::string_view::find;_stddev 1.35 ns 1.35 ns 4 std::string_view::find;_cv 2.65 % 2.65 % 4 ssa::find;_mean 48.9 ns 48.9 ns 4 ssa::find;_median 48.9 ns 48.9 ns 4 ssa::find;_stddev 0.252 ns 0.252 ns 4 ssa::find;_cv 0.52 % 0.52 % 4 stringa::find;_mean 51.8 ns 51.8 ns 4 stringa::find;_median 52.0 ns 52.0 ns 4 stringa::find;_stddev 2.78 ns 2.78 ns 4 stringa::find;_cv 5.36 % 5.36 % 4 lstringa<20>::find;_mean 44.6 ns 44.6 ns 4 lstringa<20>::find;_median 44.8 ns 44.8 ns 4 lstringa<20>::find;_stddev 1.35 ns 1.35 ns 4 lstringa<20>::find;_cv 3.02 % 3.02 % 4 lstringa<40>::find;_mean 43.8 ns 43.8 ns 4 lstringa<40>::find;_median 43.5 ns 43.5 ns 4 lstringa<40>::find;_stddev 1.45 ns 1.45 ns 4 lstringa<40>::find;_cv 3.31 % 3.31 % 4 ------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string copy{str_with_len_N};/15_mean 38.2 ns 38.2 ns 4 std::string copy{str_with_len_N};/15_median 38.0 ns 38.0 ns 4 std::string copy{str_with_len_N};/15_stddev 1.61 ns 1.61 ns 4 std::string copy{str_with_len_N};/15_cv 4.23 % 4.23 % 4 std::string copy{str_with_len_N};/16_mean 36.1 ns 36.1 ns 4 std::string copy{str_with_len_N};/16_median 36.0 ns 36.0 ns 4 std::string copy{str_with_len_N};/16_stddev 0.461 ns 0.461 ns 4 std::string copy{str_with_len_N};/16_cv 1.28 % 1.28 % 4 std::string copy{str_with_len_N};/23_mean 36.6 ns 36.6 ns 4 std::string copy{str_with_len_N};/23_median 36.1 ns 36.1 ns 4 std::string copy{str_with_len_N};/23_stddev 1.53 ns 1.53 ns 4 std::string copy{str_with_len_N};/23_cv 4.18 % 4.18 % 4 std::string copy{str_with_len_N};/24_mean 37.7 ns 37.7 ns 4 std::string copy{str_with_len_N};/24_median 36.9 ns 36.9 ns 4 std::string copy{str_with_len_N};/24_stddev 2.37 ns 2.37 ns 4 std::string copy{str_with_len_N};/24_cv 6.27 % 6.27 % 4 std::string copy{str_with_len_N};/32_mean 45.9 ns 45.9 ns 4 std::string copy{str_with_len_N};/32_median 39.2 ns 39.2 ns 4 std::string copy{str_with_len_N};/32_stddev 14.4 ns 14.4 ns 4 std::string copy{str_with_len_N};/32_cv 31.41 % 31.41 % 4 std::string copy{str_with_len_N};/64_mean 44.9 ns 44.9 ns 4 std::string copy{str_with_len_N};/64_median 41.3 ns 41.3 ns 4 std::string copy{str_with_len_N};/64_stddev 8.96 ns 8.96 ns 4 std::string copy{str_with_len_N};/64_cv 19.94 % 19.94 % 4 std::string copy{str_with_len_N};/128_mean 44.1 ns 44.1 ns 4 std::string copy{str_with_len_N};/128_median 41.2 ns 41.2 ns 4 std::string copy{str_with_len_N};/128_stddev 7.30 ns 7.30 ns 4 std::string copy{str_with_len_N};/128_cv 16.54 % 16.54 % 4 std::string copy{str_with_len_N};/256_mean 54.8 ns 54.8 ns 4 std::string copy{str_with_len_N};/256_median 52.8 ns 52.8 ns 4 std::string copy{str_with_len_N};/256_stddev 11.7 ns 11.7 ns 4 std::string copy{str_with_len_N};/256_cv 21.36 % 21.36 % 4 std::string copy{str_with_len_N};/512_mean 53.5 ns 53.5 ns 4 std::string copy{str_with_len_N};/512_median 49.5 ns 49.5 ns 4 std::string copy{str_with_len_N};/512_stddev 10.2 ns 10.2 ns 4 std::string copy{str_with_len_N};/512_cv 18.99 % 18.99 % 4 std::string copy{str_with_len_N};/1024_mean 62.2 ns 62.2 ns 4 std::string copy{str_with_len_N};/1024_median 59.3 ns 59.3 ns 4 std::string copy{str_with_len_N};/1024_stddev 7.42 ns 7.42 ns 4 std::string copy{str_with_len_N};/1024_cv 11.94 % 11.94 % 4 std::string copy{str_with_len_N};/2048_mean 88.4 ns 88.4 ns 4 std::string copy{str_with_len_N};/2048_median 87.3 ns 87.3 ns 4 std::string copy{str_with_len_N};/2048_stddev 5.17 ns 5.17 ns 4 std::string copy{str_with_len_N};/2048_cv 5.85 % 5.85 % 4 std::string copy{str_with_len_N};/4096_mean 154 ns 154 ns 4 std::string copy{str_with_len_N};/4096_median 152 ns 152 ns 4 std::string copy{str_with_len_N};/4096_stddev 13.5 ns 13.5 ns 4 std::string copy{str_with_len_N};/4096_cv 8.80 % 8.80 % 4 stringa copy{str_with_len_N};/15_mean 2.70 ns 2.70 ns 4 stringa copy{str_with_len_N};/15_median 2.72 ns 2.72 ns 4 stringa copy{str_with_len_N};/15_stddev 0.110 ns 0.110 ns 4 stringa copy{str_with_len_N};/15_cv 4.07 % 4.07 % 4 stringa copy{str_with_len_N};/16_mean 5.04 ns 5.04 ns 4 stringa copy{str_with_len_N};/16_median 5.04 ns 5.04 ns 4 stringa copy{str_with_len_N};/16_stddev 0.234 ns 0.234 ns 4 stringa copy{str_with_len_N};/16_cv 4.64 % 4.64 % 4 stringa copy{str_with_len_N};/23_mean 4.81 ns 4.81 ns 4 stringa copy{str_with_len_N};/23_median 4.80 ns 4.80 ns 4 stringa copy{str_with_len_N};/23_stddev 0.084 ns 0.084 ns 4 stringa copy{str_with_len_N};/23_cv 1.74 % 1.74 % 4 stringa copy{str_with_len_N};/24_mean 4.82 ns 4.82 ns 4 stringa copy{str_with_len_N};/24_median 4.79 ns 4.79 ns 4 stringa copy{str_with_len_N};/24_stddev 0.102 ns 0.102 ns 4 stringa copy{str_with_len_N};/24_cv 2.12 % 2.12 % 4 stringa copy{str_with_len_N};/32_mean 4.76 ns 4.76 ns 4 stringa copy{str_with_len_N};/32_median 4.76 ns 4.76 ns 4 stringa copy{str_with_len_N};/32_stddev 0.037 ns 0.037 ns 4 stringa copy{str_with_len_N};/32_cv 0.78 % 0.78 % 4 stringa copy{str_with_len_N};/64_mean 4.79 ns 4.79 ns 4 stringa copy{str_with_len_N};/64_median 4.81 ns 4.81 ns 4 stringa copy{str_with_len_N};/64_stddev 0.076 ns 0.076 ns 4 stringa copy{str_with_len_N};/64_cv 1.58 % 1.58 % 4 stringa copy{str_with_len_N};/128_mean 4.98 ns 4.98 ns 4 stringa copy{str_with_len_N};/128_median 4.88 ns 4.88 ns 4 stringa copy{str_with_len_N};/128_stddev 0.352 ns 0.352 ns 4 stringa copy{str_with_len_N};/128_cv 7.07 % 7.07 % 4 stringa copy{str_with_len_N};/256_mean 4.87 ns 4.87 ns 4 stringa copy{str_with_len_N};/256_median 4.88 ns 4.88 ns 4 stringa copy{str_with_len_N};/256_stddev 0.145 ns 0.145 ns 4 stringa copy{str_with_len_N};/256_cv 2.99 % 2.99 % 4 stringa copy{str_with_len_N};/512_mean 4.79 ns 4.79 ns 4 stringa copy{str_with_len_N};/512_median 4.79 ns 4.79 ns 4 stringa copy{str_with_len_N};/512_stddev 0.077 ns 0.077 ns 4 stringa copy{str_with_len_N};/512_cv 1.61 % 1.61 % 4 stringa copy{str_with_len_N};/1024_mean 4.81 ns 4.81 ns 4 stringa copy{str_with_len_N};/1024_median 4.80 ns 4.80 ns 4 stringa copy{str_with_len_N};/1024_stddev 0.071 ns 0.071 ns 4 stringa copy{str_with_len_N};/1024_cv 1.48 % 1.48 % 4 stringa copy{str_with_len_N};/2048_mean 4.84 ns 4.84 ns 4 stringa copy{str_with_len_N};/2048_median 4.80 ns 4.80 ns 4 stringa copy{str_with_len_N};/2048_stddev 0.086 ns 0.086 ns 4 stringa copy{str_with_len_N};/2048_cv 1.79 % 1.79 % 4 stringa copy{str_with_len_N};/4096_mean 4.86 ns 4.86 ns 4 stringa copy{str_with_len_N};/4096_median 4.84 ns 4.84 ns 4 stringa copy{str_with_len_N};/4096_stddev 0.121 ns 0.121 ns 4 stringa copy{str_with_len_N};/4096_cv 2.49 % 2.49 % 4 lstringa<16> copy{str_with_len_N};/15_mean 14.4 ns 14.4 ns 4 lstringa<16> copy{str_with_len_N};/15_median 14.5 ns 14.5 ns 4 lstringa<16> copy{str_with_len_N};/15_stddev 0.478 ns 0.478 ns 4 lstringa<16> copy{str_with_len_N};/15_cv 3.33 % 3.33 % 4 lstringa<16> copy{str_with_len_N};/16_mean 14.5 ns 14.5 ns 4 lstringa<16> copy{str_with_len_N};/16_median 14.6 ns 14.6 ns 4 lstringa<16> copy{str_with_len_N};/16_stddev 0.844 ns 0.844 ns 4 lstringa<16> copy{str_with_len_N};/16_cv 5.80 % 5.80 % 4 lstringa<16> copy{str_with_len_N};/23_mean 29.6 ns 29.6 ns 4 lstringa<16> copy{str_with_len_N};/23_median 29.6 ns 29.6 ns 4 lstringa<16> copy{str_with_len_N};/23_stddev 0.999 ns 0.999 ns 4 lstringa<16> copy{str_with_len_N};/23_cv 3.38 % 3.38 % 4 lstringa<16> copy{str_with_len_N};/24_mean 32.4 ns 32.4 ns 4 lstringa<16> copy{str_with_len_N};/24_median 31.7 ns 31.7 ns 4 lstringa<16> copy{str_with_len_N};/24_stddev 3.40 ns 3.40 ns 4 lstringa<16> copy{str_with_len_N};/24_cv 10.52 % 10.52 % 4 lstringa<16> copy{str_with_len_N};/32_mean 42.4 ns 42.4 ns 4 lstringa<16> copy{str_with_len_N};/32_median 34.0 ns 34.0 ns 4 lstringa<16> copy{str_with_len_N};/32_stddev 17.1 ns 17.1 ns 4 lstringa<16> copy{str_with_len_N};/32_cv 40.39 % 40.39 % 4 lstringa<16> copy{str_with_len_N};/64_mean 37.6 ns 37.6 ns 4 lstringa<16> copy{str_with_len_N};/64_median 32.7 ns 32.7 ns 4 lstringa<16> copy{str_with_len_N};/64_stddev 11.4 ns 11.4 ns 4 lstringa<16> copy{str_with_len_N};/64_cv 30.43 % 30.43 % 4 lstringa<16> copy{str_with_len_N};/128_mean 38.7 ns 38.7 ns 4 lstringa<16> copy{str_with_len_N};/128_median 34.0 ns 34.0 ns 4 lstringa<16> copy{str_with_len_N};/128_stddev 10.3 ns 10.3 ns 4 lstringa<16> copy{str_with_len_N};/128_cv 26.74 % 26.74 % 4 lstringa<16> copy{str_with_len_N};/256_mean 51.0 ns 51.0 ns 4 lstringa<16> copy{str_with_len_N};/256_median 50.1 ns 50.1 ns 4 lstringa<16> copy{str_with_len_N};/256_stddev 8.31 ns 8.31 ns 4 lstringa<16> copy{str_with_len_N};/256_cv 16.29 % 16.29 % 4 lstringa<16> copy{str_with_len_N};/512_mean 47.3 ns 47.3 ns 4 lstringa<16> copy{str_with_len_N};/512_median 46.7 ns 46.7 ns 4 lstringa<16> copy{str_with_len_N};/512_stddev 1.54 ns 1.54 ns 4 lstringa<16> copy{str_with_len_N};/512_cv 3.26 % 3.26 % 4 lstringa<16> copy{str_with_len_N};/1024_mean 56.8 ns 56.8 ns 4 lstringa<16> copy{str_with_len_N};/1024_median 56.7 ns 56.7 ns 4 lstringa<16> copy{str_with_len_N};/1024_stddev 3.84 ns 3.84 ns 4 lstringa<16> copy{str_with_len_N};/1024_cv 6.77 % 6.77 % 4 lstringa<16> copy{str_with_len_N};/2048_mean 83.2 ns 83.2 ns 4 lstringa<16> copy{str_with_len_N};/2048_median 84.9 ns 84.9 ns 4 lstringa<16> copy{str_with_len_N};/2048_stddev 5.93 ns 5.93 ns 4 lstringa<16> copy{str_with_len_N};/2048_cv 7.12 % 7.12 % 4 lstringa<16> copy{str_with_len_N};/4096_mean 141 ns 141 ns 4 lstringa<16> copy{str_with_len_N};/4096_median 139 ns 139 ns 4 lstringa<16> copy{str_with_len_N};/4096_stddev 11.7 ns 11.7 ns 4 lstringa<16> copy{str_with_len_N};/4096_cv 8.33 % 8.33 % 4 lstringa<512> copy{str_with_len_N};/15_mean 14.5 ns 14.5 ns 4 lstringa<512> copy{str_with_len_N};/15_median 14.4 ns 14.4 ns 4 lstringa<512> copy{str_with_len_N};/15_stddev 0.745 ns 0.745 ns 4 lstringa<512> copy{str_with_len_N};/15_cv 5.13 % 5.13 % 4 lstringa<512> copy{str_with_len_N};/16_mean 15.1 ns 15.1 ns 4 lstringa<512> copy{str_with_len_N};/16_median 15.0 ns 15.0 ns 4 lstringa<512> copy{str_with_len_N};/16_stddev 0.805 ns 0.805 ns 4 lstringa<512> copy{str_with_len_N};/16_cv 5.34 % 5.34 % 4 lstringa<512> copy{str_with_len_N};/23_mean 14.7 ns 14.7 ns 4 lstringa<512> copy{str_with_len_N};/23_median 14.9 ns 14.9 ns 4 lstringa<512> copy{str_with_len_N};/23_stddev 0.706 ns 0.706 ns 4 lstringa<512> copy{str_with_len_N};/23_cv 4.80 % 4.80 % 4 lstringa<512> copy{str_with_len_N};/24_mean 14.9 ns 14.9 ns 4 lstringa<512> copy{str_with_len_N};/24_median 14.6 ns 14.6 ns 4 lstringa<512> copy{str_with_len_N};/24_stddev 0.713 ns 0.713 ns 4 lstringa<512> copy{str_with_len_N};/24_cv 4.78 % 4.78 % 4 lstringa<512> copy{str_with_len_N};/32_mean 17.9 ns 17.9 ns 4 lstringa<512> copy{str_with_len_N};/32_median 17.8 ns 17.8 ns 4 lstringa<512> copy{str_with_len_N};/32_stddev 0.517 ns 0.517 ns 4 lstringa<512> copy{str_with_len_N};/32_cv 2.89 % 2.89 % 4 lstringa<512> copy{str_with_len_N};/64_mean 17.4 ns 17.4 ns 4 lstringa<512> copy{str_with_len_N};/64_median 17.5 ns 17.5 ns 4 lstringa<512> copy{str_with_len_N};/64_stddev 0.443 ns 0.443 ns 4 lstringa<512> copy{str_with_len_N};/64_cv 2.55 % 2.55 % 4 lstringa<512> copy{str_with_len_N};/128_mean 17.9 ns 17.9 ns 4 lstringa<512> copy{str_with_len_N};/128_median 17.9 ns 17.9 ns 4 lstringa<512> copy{str_with_len_N};/128_stddev 0.604 ns 0.604 ns 4 lstringa<512> copy{str_with_len_N};/128_cv 3.38 % 3.38 % 4 lstringa<512> copy{str_with_len_N};/256_mean 19.7 ns 19.7 ns 4 lstringa<512> copy{str_with_len_N};/256_median 19.6 ns 19.6 ns 4 lstringa<512> copy{str_with_len_N};/256_stddev 0.937 ns 0.937 ns 4 lstringa<512> copy{str_with_len_N};/256_cv 4.75 % 4.75 % 4 lstringa<512> copy{str_with_len_N};/512_mean 22.2 ns 22.2 ns 4 lstringa<512> copy{str_with_len_N};/512_median 22.2 ns 22.2 ns 4 lstringa<512> copy{str_with_len_N};/512_stddev 1.02 ns 1.02 ns 4 lstringa<512> copy{str_with_len_N};/512_cv 4.57 % 4.57 % 4 lstringa<512> copy{str_with_len_N};/1024_mean 55.1 ns 55.1 ns 4 lstringa<512> copy{str_with_len_N};/1024_median 55.6 ns 55.6 ns 4 lstringa<512> copy{str_with_len_N};/1024_stddev 2.95 ns 2.95 ns 4 lstringa<512> copy{str_with_len_N};/1024_cv 5.37 % 5.37 % 4 lstringa<512> copy{str_with_len_N};/2048_mean 80.3 ns 80.3 ns 4 lstringa<512> copy{str_with_len_N};/2048_median 82.0 ns 82.0 ns 4 lstringa<512> copy{str_with_len_N};/2048_stddev 6.81 ns 6.81 ns 4 lstringa<512> copy{str_with_len_N};/2048_cv 8.48 % 8.48 % 4 lstringa<512> copy{str_with_len_N};/4096_mean 149 ns 149 ns 4 lstringa<512> copy{str_with_len_N};/4096_median 145 ns 145 ns 4 lstringa<512> copy{str_with_len_N};/4096_stddev 9.43 ns 9.43 ns 4 lstringa<512> copy{str_with_len_N};/4096_cv 6.31 % 6.31 % 4 ----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 73.7 ns 73.7 ns 4 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 72.6 ns 72.6 ns 4 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 4.60 ns 4.60 ns 4 std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 6.24 % 6.24 % 4 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 27.8 ns 27.8 ns 4 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 27.8 ns 27.8 ns 4 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.753 ns 0.753 ns 4 std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.71 % 2.71 % 4 stringa s = "123456789"; int res = s.to_int_mean 19.1 ns 19.1 ns 4 stringa s = "123456789"; int res = s.to_int_median 19.1 ns 19.1 ns 4 stringa s = "123456789"; int res = s.to_int_stddev 0.501 ns 0.501 ns 4 stringa s = "123456789"; int res = s.to_int_cv 2.62 % 2.62 % 4 ssa s = "123456789"; int res = s.to_int_mean 17.1 ns 17.1 ns 4 ssa s = "123456789"; int res = s.to_int_median 17.0 ns 17.0 ns 4 ssa s = "123456789"; int res = s.to_int_stddev 0.341 ns 0.341 ns 4 ssa s = "123456789"; int res = s.to_int_cv 2.00 % 2.00 % 4 lstringa<20> s = "123456789"; int res = s.to_int_mean 17.3 ns 17.3 ns 4 lstringa<20> s = "123456789"; int res = s.to_int_median 17.2 ns 17.2 ns 4 lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.983 ns 0.983 ns 4 lstringa<20> s = "123456789"; int res = s.to_int_cv 5.67 % 5.67 % 4 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 55.0 ns 55.0 ns 4 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 54.7 ns 54.7 ns 4 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.926 ns 0.926 ns 4 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.68 % 1.68 % 4 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 28.2 ns 28.2 ns 4 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 28.4 ns 28.4 ns 4 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.328 ns 0.328 ns 4 std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.16 % 1.16 % 4 stringa s = "abcDef"; int res = s.to_int_mean 17.4 ns 17.4 ns 4 stringa s = "abcDef"; int res = s.to_int_median 17.5 ns 17.5 ns 4 stringa s = "abcDef"; int res = s.to_int_stddev 0.384 ns 0.384 ns 4 stringa s = "abcDef"; int res = s.to_int_cv 2.21 % 2.21 % 4 ssa s = "abcDef"; int res = s.to_int_mean 16.3 ns 16.3 ns 4 ssa s = "abcDef"; int res = s.to_int_median 16.2 ns 16.2 ns 4 ssa s = "abcDef"; int res = s.to_int_stddev 0.273 ns 0.273 ns 4 ssa s = "abcDef"; int res = s.to_int_cv 1.67 % 1.67 % 4 lstringa<20> s = "abcDef"; int res = s.to_int_mean 16.5 ns 16.5 ns 4 lstringa<20> s = "abcDef"; int res = s.to_int_median 16.5 ns 16.5 ns 4 lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.239 ns 0.239 ns 4 lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.45 % 1.45 % 4 ----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 78.2 ns 78.2 ns 4 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 78.6 ns 78.6 ns 4 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.938 ns 0.938 ns 4 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.20 % 1.20 % 4 stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 23.2 ns 23.2 ns 4 stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 23.4 ns 23.4 ns 4 stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.320 ns 0.320 ns 4 stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.38 % 1.38 % 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 23.4 ns 23.4 ns 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 23.1 ns 23.1 ns 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 1.53 ns 1.53 ns 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 6.55 % 6.55 % 4 ----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 210 ns 210 ns 4 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 207 ns 207 ns 4 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 22.0 ns 22.0 ns 4 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 10.50 % 10.50 % 4 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 113 ns 113 ns 4 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 113 ns 113 ns 4 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.64 ns 1.64 ns 4 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.45 % 1.45 % 4 ssa s = "1234.567e10"; double res = *s.to_double()_mean 43.5 ns 43.5 ns 4 ssa s = "1234.567e10"; double res = *s.to_double()_median 43.8 ns 43.8 ns 4 ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.685 ns 0.685 ns 4 ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.57 % 1.57 % 4 -- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; ... str << "abbaabbaabbaabba";_mean 4444 ns 4444 ns 4 std::stringstream str; ... str << "abbaabbaabbaabba";_median 4419 ns 4419 ns 4 std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 191 ns 191 ns 4 std::stringstream str; ... str << "abbaabbaabbaabba";_cv 4.29 % 4.29 % 4 std::string str; ... str += "abbaabbaabbaabba";_mean 625 ns 625 ns 4 std::string str; ... str += "abbaabbaabbaabba";_median 620 ns 620 ns 4 std::string str; ... str += "abbaabbaabbaabba";_stddev 19.6 ns 19.6 ns 4 std::string str; ... str += "abbaabbaabbaabba";_cv 3.14 % 3.14 % 4 lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 758 ns 758 ns 4 lstringa<8> str; ... str += "abbaabbaabbaabba";_median 756 ns 756 ns 4 lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 23.6 ns 23.6 ns 4 lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.12 % 3.12 % 4 lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 584 ns 584 ns 4 lstringa<128> str; ... str += "abbaabbaabbaabba";_median 573 ns 573 ns 4 lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 25.3 ns 25.3 ns 4 lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.34 % 4.34 % 4 lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 458 ns 458 ns 4 lstringa<512> str; ... str += "abbaabbaabbaabba";_median 457 ns 457 ns 4 lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 5.21 ns 5.21 ns 4 lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.14 % 1.14 % 4 lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 416 ns 416 ns 4 lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 415 ns 415 ns 4 lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.32 ns 4.32 ns 4 lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.04 % 1.04 % 4 -- Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 4444 ns 4444 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4428 ns 4428 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 187 ns 187 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.21 % 4.21 % 4 std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2032 ns 2032 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1972 ns 1972 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 141 ns 141 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 6.92 % 6.92 % 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 874 ns 874 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 852 ns 852 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 53.5 ns 53.5 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.12 % 6.12 % 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 729 ns 729 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 724 ns 724 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 28.1 ns 28.3 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.86 % 3.88 % 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 588 ns 588 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 585 ns 585 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 37.9 ns 37.9 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.45 % 6.45 % 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 580 ns 580 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 588 ns 588 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 21.2 ns 21.2 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.65 % 3.65 % 4 -- Append string of 16 bytes and const literal of 16 bytes 2048 times, 65536 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 223603 ns 223603 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 224782 ns 224782 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 8148 ns 8148 ns 4 std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.64 % 3.64 % 4 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 116339 ns 116339 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 114468 ns 114468 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 8652 ns 8652 ns 4 std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.44 % 7.44 % 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 44372 ns 44372 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 43357 ns 43357 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3541 ns 3541 ns 4 lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.98 % 7.98 % 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 40049 ns 40049 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38346 ns 38346 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4007 ns 4007 ns 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 10.00 % 10.00 % 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 37513 ns 37513 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 37253 ns 37253 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 546 ns 546 ns 4 lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.46 % 1.46 % 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 38281 ns 38281 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 38390 ns 38390 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1330 ns 1330 ns 4 lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.47 % 3.47 % 4 -- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; ... str << str_var1 << str_var2;_mean 4573 ns 4573 ns 4 std::stringstream str; ... str << str_var1 << str_var2;_median 4561 ns 4561 ns 4 std::stringstream str; ... str << str_var1 << str_var2;_stddev 108 ns 108 ns 4 std::stringstream str; ... str << str_var1 << str_var2;_cv 2.36 % 2.36 % 4 std::string str; ... str += str_var1 + str_var2;_mean 2452 ns 2452 ns 4 std::string str; ... str += str_var1 + str_var2;_median 2436 ns 2436 ns 4 std::string str; ... str += str_var1 + str_var2;_stddev 44.7 ns 44.7 ns 4 std::string str; ... str += str_var1 + str_var2;_cv 1.82 % 1.82 % 4 lstringa<16> str; ... str += str_var1 + str_var2;_mean 1196 ns 1196 ns 4 lstringa<16> str; ... str += str_var1 + str_var2;_median 1183 ns 1183 ns 4 lstringa<16> str; ... str += str_var1 + str_var2;_stddev 61.7 ns 61.7 ns 4 lstringa<16> str; ... str += str_var1 + str_var2;_cv 5.15 % 5.15 % 4 lstringa<128> str; ... str += str_var1 + str_var2;_mean 1120 ns 1120 ns 4 lstringa<128> str; ... str += str_var1 + str_var2;_median 1103 ns 1103 ns 4 lstringa<128> str; ... str += str_var1 + str_var2;_stddev 63.3 ns 63.3 ns 4 lstringa<128> str; ... str += str_var1 + str_var2;_cv 5.65 % 5.65 % 4 lstringa<512> str; ... str += str_var1 + str_var2;_mean 973 ns 973 ns 4 lstringa<512> str; ... str += str_var1 + str_var2;_median 963 ns 963 ns 4 lstringa<512> str; ... str += str_var1 + str_var2;_stddev 50.7 ns 50.7 ns 4 lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.22 % 5.22 % 4 lstringa<1024> str; ... str += str_var1 + str_var2;_mean 874 ns 874 ns 4 lstringa<1024> str; ... str += str_var1 + str_var2;_median 881 ns 881 ns 4 lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 41.1 ns 41.0 ns 4 lstringa<1024> str; ... str += str_var1 + str_var2;_cv 4.70 % 4.68 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::stringstream str; str << "test = " << k << " times";_mean 6730 ns 6730 ns 4 std::stringstream str; str << "test = " << k << " times";_median 6645 ns 6645 ns 4 std::stringstream str; str << "test = " << k << " times";_stddev 206 ns 206 ns 4 std::stringstream str; str << "test = " << k << " times";_cv 3.06 % 3.06 % 4 std::string str = "test = " + std::to_string(k) + " times";_mean 1657 ns 1657 ns 4 std::string str = "test = " + std::to_string(k) + " times";_median 1642 ns 1642 ns 4 std::string str = "test = " + std::to_string(k) + " times";_stddev 70.2 ns 70.2 ns 4 std::string str = "test = " + std::to_string(k) + " times";_cv 4.24 % 4.24 % 4 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2931 ns 2931 ns 4 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2898 ns 2898 ns 4 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 99.0 ns 99.0 ns 4 char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.38 % 3.38 % 4 std::string str = std::format("test = {} times", k);_mean 2192 ns 2192 ns 4 std::string str = std::format("test = {} times", k);_median 2189 ns 2189 ns 4 std::string str = std::format("test = {} times", k);_stddev 167 ns 167 ns 4 std::string str = std::format("test = {} times", k);_cv 7.63 % 7.63 % 4 lstringa<8> str; str.format("test = {} times", k);_mean 3127 ns 3127 ns 4 lstringa<8> str; str.format("test = {} times", k);_median 3175 ns 3175 ns 4 lstringa<8> str; str.format("test = {} times", k);_stddev 135 ns 135 ns 4 lstringa<8> str; str.format("test = {} times", k);_cv 4.33 % 4.33 % 4 lstringa<32> str; str.format("test = {} times", k);_mean 2459 ns 2459 ns 4 lstringa<32> str; str.format("test = {} times", k);_median 2454 ns 2454 ns 4 lstringa<32> str; str.format("test = {} times", k);_stddev 20.9 ns 20.9 ns 4 lstringa<32> str; str.format("test = {} times", k);_cv 0.85 % 0.85 % 4 lstringa<8> str = "test = " + k + " times";_mean 593 ns 593 ns 4 lstringa<8> str = "test = " + k + " times";_median 596 ns 596 ns 4 lstringa<8> str = "test = " + k + " times";_stddev 18.6 ns 18.6 ns 4 lstringa<8> str = "test = " + k + " times";_cv 3.14 % 3.14 % 4 lstringa<32> str = "test = " + k + " times";_mean 379 ns 379 ns 4 lstringa<32> str = "test = " + k + " times";_median 388 ns 388 ns 4 lstringa<32> str = "test = " + k + " times";_stddev 35.6 ns 35.6 ns 4 lstringa<32> str = "test = " + k + " times";_cv 9.39 % 9.39 % 4 stringa str = "test = " + k + " times";_mean 564 ns 564 ns 4 stringa str = "test = " + k + " times";_median 564 ns 565 ns 4 stringa str = "test = " + k + " times";_stddev 32.8 ns 32.6 ns 4 stringa str = "test = " + k + " times";_cv 5.82 % 5.79 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string::find + substr + std::strtol_mean 614 ns 614 ns 4 std::string::find + substr + std::strtol_median 608 ns 608 ns 4 std::string::find + substr + std::strtol_stddev 19.5 ns 19.5 ns 4 std::string::find + substr + std::strtol_cv 3.19 % 3.19 % 4 ssa::splitter + ssa::as_int_mean 274 ns 274 ns 4 ssa::splitter + ssa::as_int_median 273 ns 273 ns 4 ssa::splitter + ssa::as_int_stddev 5.42 ns 5.42 ns 4 ssa::splitter + ssa::as_int_cv 1.98 % 1.98 % 4 ssa::splitf + functor_mean 321 ns 321 ns 4 ssa::splitf + functor_median 321 ns 321 ns 4 ssa::splitf + functor_stddev 3.28 ns 3.28 ns 4 ssa::splitf + functor_cv 1.02 % 1.02 % 4 -- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000 Naive (and wrong) replace symbols with std::string find + replace_mean 3397 ns 3397 ns 4 Naive (and wrong) replace symbols with std::string find + replace_median 3406 ns 3406 ns 4 Naive (and wrong) replace symbols with std::string find + replace_stddev 78.7 ns 78.7 ns 4 Naive (and wrong) replace symbols with std::string find + replace_cv 2.32 % 2.32 % 4 replace symbols with std::string find_first_of + replace_mean 4970 ns 4970 ns 4 replace symbols with std::string find_first_of + replace_median 4871 ns 4871 ns 4 replace symbols with std::string find_first_of + replace_stddev 275 ns 275 ns 4 replace symbols with std::string find_first_of + replace_cv 5.53 % 5.53 % 4 replace symbols with std::string_view find_first_of + copy_mean 3462 ns 3462 ns 4 replace symbols with std::string_view find_first_of + copy_median 3433 ns 3433 ns 4 replace symbols with std::string_view find_first_of + copy_stddev 147 ns 147 ns 4 replace symbols with std::string_view find_first_of + copy_cv 4.26 % 4.26 % 4 replace runtime symbols with string expressions and without remembering all search results_mean 3591 ns 3591 ns 4 replace runtime symbols with string expressions and without remembering all search results_median 3582 ns 3582 ns 4 replace runtime symbols with string expressions and without remembering all search results_stddev 54.1 ns 54.1 ns 4 replace runtime symbols with string expressions and without remembering all search results_cv 1.51 % 1.51 % 4 replace runtime symbols with simstr and memorization of all search results_mean 3097 ns 3097 ns 4 replace runtime symbols with simstr and memorization of all search results_median 3136 ns 3136 ns 4 replace runtime symbols with simstr and memorization of all search results_stddev 120 ns 120 ns 4 replace runtime symbols with simstr and memorization of all search results_cv 3.87 % 3.87 % 4 replace const symbols with string expressions and without remembering all search results_mean 2949 ns 2949 ns 4 replace const symbols with string expressions and without remembering all search results_median 2944 ns 2944 ns 4 replace const symbols with string expressions and without remembering all search results_stddev 71.2 ns 71.2 ns 4 replace const symbols with string expressions and without remembering all search results_cv 2.41 % 2.41 % 4 replace const symbols with string expressions and memorization of all search results_mean 2889 ns 2889 ns 4 replace const symbols with string expressions and memorization of all search results_median 2892 ns 2892 ns 4 replace const symbols with string expressions and memorization of all search results_stddev 82.5 ns 82.5 ns 4 replace const symbols with string expressions and memorization of all search results_cv 2.85 % 2.85 % 4 -- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000 Short Naive (and wrong) replace symbols with std::string find + replace_mean 431 ns 431 ns 4 Short Naive (and wrong) replace symbols with std::string find + replace_median 430 ns 430 ns 4 Short Naive (and wrong) replace symbols with std::string find + replace_stddev 11.1 ns 11.1 ns 4 Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.58 % 2.58 % 4 Short replace symbols with std::string find_first_of + replace_mean 499 ns 499 ns 4 Short replace symbols with std::string find_first_of + replace_median 489 ns 489 ns 4 Short replace symbols with std::string find_first_of + replace_stddev 34.7 ns 34.7 ns 4 Short replace symbols with std::string find_first_of + replace_cv 6.94 % 6.94 % 4 Short replace symbols with std::string_view find_first_of + copy_mean 410 ns 410 ns 4 Short replace symbols with std::string_view find_first_of + copy_median 407 ns 407 ns 4 Short replace symbols with std::string_view find_first_of + copy_stddev 14.3 ns 14.3 ns 4 Short replace symbols with std::string_view find_first_of + copy_cv 3.50 % 3.50 % 4 Short replace runtime symbols with string expressions and without remembering all search results_mean 371 ns 371 ns 4 Short replace runtime symbols with string expressions and without remembering all search results_median 370 ns 370 ns 4 Short replace runtime symbols with string expressions and without remembering all search results_stddev 24.3 ns 24.3 ns 4 Short replace runtime symbols with string expressions and without remembering all search results_cv 6.54 % 6.54 % 4 Short replace runtime symbols with simstr and memorization of all search results_mean 416 ns 416 ns 4 Short replace runtime symbols with simstr and memorization of all search results_median 415 ns 415 ns 4 Short replace runtime symbols with simstr and memorization of all search results_stddev 19.3 ns 19.3 ns 4 Short replace runtime symbols with simstr and memorization of all search results_cv 4.65 % 4.65 % 4 Short replace const symbols with string expressions and without remembering all search results_mean 253 ns 253 ns 4 Short replace const symbols with string expressions and without remembering all search results_median 252 ns 252 ns 4 Short replace const symbols with string expressions and without remembering all search results_stddev 8.08 ns 8.08 ns 4 Short replace const symbols with string expressions and without remembering all search results_cv 3.19 % 3.19 % 4 Short replace const symbols with string expressions and memorization of all search results_mean 313 ns 313 ns 4 Short replace const symbols with string expressions and memorization of all search results_median 315 ns 315 ns 4 Short replace const symbols with string expressions and memorization of all search results_stddev 3.46 ns 3.46 ns 4 Short replace const symbols with string expressions and memorization of all search results_cv 1.10 % 1.10 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 replace bb to ---- in std::string|64_mean 378 ns 378 ns 4 replace bb to ---- in std::string|64_median 372 ns 372 ns 4 replace bb to ---- in std::string|64_stddev 19.9 ns 19.9 ns 4 replace bb to ---- in std::string|64_cv 5.28 % 5.28 % 4 replace bb to ---- in std::string|256_mean 1351 ns 1351 ns 4 replace bb to ---- in std::string|256_median 1367 ns 1367 ns 4 replace bb to ---- in std::string|256_stddev 54.5 ns 54.5 ns 4 replace bb to ---- in std::string|256_cv 4.04 % 4.04 % 4 replace bb to ---- in std::string|512_mean 2782 ns 2782 ns 4 replace bb to ---- in std::string|512_median 2754 ns 2754 ns 4 replace bb to ---- in std::string|512_stddev 84.9 ns 84.9 ns 4 replace bb to ---- in std::string|512_cv 3.05 % 3.05 % 4 replace bb to ---- in std::string|1024_mean 5546 ns 5546 ns 4 replace bb to ---- in std::string|1024_median 5554 ns 5554 ns 4 replace bb to ---- in std::string|1024_stddev 167 ns 167 ns 4 replace bb to ---- in std::string|1024_cv 3.01 % 3.01 % 4 replace bb to ---- in std::string|2048_mean 12567 ns 12567 ns 4 replace bb to ---- in std::string|2048_median 12541 ns 12541 ns 4 replace bb to ---- in std::string|2048_stddev 251 ns 251 ns 4 replace bb to ---- in std::string|2048_cv 2.00 % 2.00 % 4 replace bb to ---- in lstringa<8>|64_mean 304 ns 304 ns 4 replace bb to ---- in lstringa<8>|64_median 301 ns 301 ns 4 replace bb to ---- in lstringa<8>|64_stddev 11.2 ns 11.2 ns 4 replace bb to ---- in lstringa<8>|64_cv 3.67 % 3.67 % 4 replace bb to ---- in lstringa<8>|256_mean 1149 ns 1149 ns 4 replace bb to ---- in lstringa<8>|256_median 1145 ns 1145 ns 4 replace bb to ---- in lstringa<8>|256_stddev 55.2 ns 55.2 ns 4 replace bb to ---- in lstringa<8>|256_cv 4.80 % 4.80 % 4 replace bb to ---- in lstringa<8>|512_mean 2114 ns 2114 ns 4 replace bb to ---- in lstringa<8>|512_median 2094 ns 2094 ns 4 replace bb to ---- in lstringa<8>|512_stddev 81.2 ns 81.2 ns 4 replace bb to ---- in lstringa<8>|512_cv 3.84 % 3.84 % 4 replace bb to ---- in lstringa<8>|1024_mean 4209 ns 4209 ns 4 replace bb to ---- in lstringa<8>|1024_median 4173 ns 4173 ns 4 replace bb to ---- in lstringa<8>|1024_stddev 161 ns 161 ns 4 replace bb to ---- in lstringa<8>|1024_cv 3.82 % 3.82 % 4 replace bb to ---- in lstringa<8>|2048_mean 7794 ns 7794 ns 4 replace bb to ---- in lstringa<8>|2048_median 7791 ns 7791 ns 4 replace bb to ---- in lstringa<8>|2048_stddev 364 ns 364 ns 4 replace bb to ---- in lstringa<8>|2048_cv 4.67 % 4.67 % 4 replace bb to ---- by init stringa|64_mean 216 ns 216 ns 4 replace bb to ---- by init stringa|64_median 212 ns 212 ns 4 replace bb to ---- by init stringa|64_stddev 14.6 ns 14.6 ns 4 replace bb to ---- by init stringa|64_cv 6.75 % 6.75 % 4 replace bb to ---- by init stringa|256_mean 741 ns 741 ns 4 replace bb to ---- by init stringa|256_median 738 ns 738 ns 4 replace bb to ---- by init stringa|256_stddev 12.5 ns 12.5 ns 4 replace bb to ---- by init stringa|256_cv 1.68 % 1.68 % 4 replace bb to ---- by init stringa|512_mean 1659 ns 1659 ns 4 replace bb to ---- by init stringa|512_median 1663 ns 1663 ns 4 replace bb to ---- by init stringa|512_stddev 24.8 ns 24.8 ns 4 replace bb to ---- by init stringa|512_cv 1.49 % 1.49 % 4 replace bb to ---- by init stringa|1024_mean 3573 ns 3573 ns 4 replace bb to ---- by init stringa|1024_median 3570 ns 3570 ns 4 replace bb to ---- by init stringa|1024_stddev 75.8 ns 75.8 ns 4 replace bb to ---- by init stringa|1024_cv 2.12 % 2.12 % 4 replace bb to ---- by init stringa|2048_mean 7063 ns 7063 ns 4 replace bb to ---- by init stringa|2048_median 7002 ns 7002 ns 4 replace bb to ---- by init stringa|2048_stddev 142 ns 142 ns 4 replace bb to ---- by init stringa|2048_cv 2.01 % 2.01 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 replace bb to -- in std::string|64_mean 283 ns 283 ns 4 replace bb to -- in std::string|64_median 282 ns 282 ns 4 replace bb to -- in std::string|64_stddev 4.26 ns 4.26 ns 4 replace bb to -- in std::string|64_cv 1.51 % 1.51 % 4 replace bb to -- in std::string|256_mean 995 ns 995 ns 4 replace bb to -- in std::string|256_median 1018 ns 1018 ns 4 replace bb to -- in std::string|256_stddev 70.0 ns 70.0 ns 4 replace bb to -- in std::string|256_cv 7.04 % 7.04 % 4 replace bb to -- in std::string|512_mean 1844 ns 1844 ns 4 replace bb to -- in std::string|512_median 1820 ns 1820 ns 4 replace bb to -- in std::string|512_stddev 78.5 ns 78.5 ns 4 replace bb to -- in std::string|512_cv 4.26 % 4.26 % 4 replace bb to -- in std::string|1024_mean 3877 ns 3878 ns 4 replace bb to -- in std::string|1024_median 3882 ns 3882 ns 4 replace bb to -- in std::string|1024_stddev 278 ns 276 ns 4 replace bb to -- in std::string|1024_cv 7.16 % 7.11 % 4 replace bb to -- in std::string|2048_mean 7023 ns 7023 ns 4 replace bb to -- in std::string|2048_median 6986 ns 6986 ns 4 replace bb to -- in std::string|2048_stddev 131 ns 131 ns 4 replace bb to -- in std::string|2048_cv 1.87 % 1.87 % 4 replace bb to -- in lstringa<8>|64_mean 228 ns 228 ns 4 replace bb to -- in lstringa<8>|64_median 226 ns 226 ns 4 replace bb to -- in lstringa<8>|64_stddev 14.6 ns 14.6 ns 4 replace bb to -- in lstringa<8>|64_cv 6.42 % 6.42 % 4 replace bb to -- in lstringa<8>|256_mean 785 ns 785 ns 4 replace bb to -- in lstringa<8>|256_median 786 ns 786 ns 4 replace bb to -- in lstringa<8>|256_stddev 26.5 ns 26.5 ns 4 replace bb to -- in lstringa<8>|256_cv 3.38 % 3.38 % 4 replace bb to -- in lstringa<8>|512_mean 1545 ns 1545 ns 4 replace bb to -- in lstringa<8>|512_median 1521 ns 1521 ns 4 replace bb to -- in lstringa<8>|512_stddev 84.7 ns 84.7 ns 4 replace bb to -- in lstringa<8>|512_cv 5.48 % 5.48 % 4 replace bb to -- in lstringa<8>|1024_mean 2838 ns 2838 ns 4 replace bb to -- in lstringa<8>|1024_median 2848 ns 2848 ns 4 replace bb to -- in lstringa<8>|1024_stddev 37.8 ns 37.8 ns 4 replace bb to -- in lstringa<8>|1024_cv 1.33 % 1.33 % 4 replace bb to -- in lstringa<8>|2048_mean 5602 ns 5602 ns 4 replace bb to -- in lstringa<8>|2048_median 5586 ns 5586 ns 4 replace bb to -- in lstringa<8>|2048_stddev 337 ns 337 ns 4 replace bb to -- in lstringa<8>|2048_cv 6.02 % 6.02 % 4 replace bb to -- by init stringa|64_mean 175 ns 175 ns 4 replace bb to -- by init stringa|64_median 174 ns 174 ns 4 replace bb to -- by init stringa|64_stddev 4.71 ns 4.71 ns 4 replace bb to -- by init stringa|64_cv 2.70 % 2.70 % 4 replace bb to -- by init stringa|256_mean 621 ns 621 ns 4 replace bb to -- by init stringa|256_median 607 ns 607 ns 4 replace bb to -- by init stringa|256_stddev 43.9 ns 43.9 ns 4 replace bb to -- by init stringa|256_cv 7.07 % 7.07 % 4 replace bb to -- by init stringa|512_mean 1186 ns 1186 ns 4 replace bb to -- by init stringa|512_median 1185 ns 1185 ns 4 replace bb to -- by init stringa|512_stddev 21.7 ns 21.7 ns 4 replace bb to -- by init stringa|512_cv 1.83 % 1.83 % 4 replace bb to -- by init stringa|1024_mean 2237 ns 2237 ns 4 replace bb to -- by init stringa|1024_median 2236 ns 2236 ns 4 replace bb to -- by init stringa|1024_stddev 49.2 ns 49.2 ns 4 replace bb to -- by init stringa|1024_cv 2.20 % 2.20 % 4 replace bb to -- by init stringa|2048_mean 4470 ns 4470 ns 4 replace bb to -- by init stringa|2048_median 4441 ns 4441 ns 4 replace bb to -- by init stringa|2048_stddev 162 ns 162 ns 4 replace bb to -- by init stringa|2048_cv 3.63 % 3.63 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 hashStrMapA emplace & find stringa;_mean 3104626 ns 3104626 ns 4 hashStrMapA emplace & find stringa;_median 3085903 ns 3085903 ns 4 hashStrMapA emplace & find stringa;_stddev 54831 ns 54831 ns 4 hashStrMapA emplace & find stringa;_cv 1.77 % 1.77 % 4 std::unordered_map emplace & find std::string;_mean 3379032 ns 3379032 ns 4 std::unordered_map emplace & find std::string;_median 3387097 ns 3387097 ns 4 std::unordered_map emplace & find std::string;_stddev 39887 ns 39887 ns 4 std::unordered_map emplace & find std::string;_cv 1.18 % 1.18 % 4 hashStrMapA emplace & find ssa;_mean 3111588 ns 3111588 ns 4 hashStrMapA emplace & find ssa;_median 3109442 ns 3109442 ns 4 hashStrMapA emplace & find ssa;_stddev 33794 ns 33794 ns 4 hashStrMapA emplace & find ssa;_cv 1.09 % 1.09 % 4 std::unordered_map emplace & find std::string_view;_mean 3799479 ns 3799479 ns 4 std::unordered_map emplace & find std::string_view;_median 3768229 ns 3768229 ns 4 std::unordered_map emplace & find std::string_view;_stddev 130555 ns 130555 ns 4 std::unordered_map emplace & find std::string_view;_cv 3.44 % 3.44 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Build func full name std::string;_mean 2855 ns 2855 ns 4 Build func full name std::string;_median 2899 ns 2899 ns 4 Build func full name std::string;_stddev 160 ns 160 ns 4 Build func full name std::string;_cv 5.62 % 5.62 % 4 Build func full name std::string 1;_mean 3137 ns 3137 ns 4 Build func full name std::string 1;_median 3056 ns 3056 ns 4 Build func full name std::string 1;_stddev 278 ns 278 ns 4 Build func full name std::string 1;_cv 8.85 % 8.85 % 4 Build func full name std::stream;_mean 7119 ns 7119 ns 4 Build func full name std::stream;_median 7185 ns 7185 ns 4 Build func full name std::stream;_stddev 211 ns 211 ns 4 Build func full name std::stream;_cv 2.96 % 2.96 % 4 Build func full name stringa;_mean 1353 ns 1353 ns 4 Build func full name stringa;_median 1347 ns 1347 ns 4 Build func full name stringa;_stddev 59.5 ns 59.5 ns 4 Build func full name stringa;_cv 4.40 % 4.40 % 4 Build func full name stringa 1;_mean 1610 ns 1610 ns 4 Build func full name stringa 1;_median 1613 ns 1613 ns 4 Build func full name stringa 1;_stddev 73.9 ns 73.9 ns 4 Build func full name stringa 1;_cv 4.59 % 4.59 % 4