From 2148718b3200c91ce36fb194c8cf90df8fe15892 Mon Sep 17 00:00:00 2001 From: Aleksandr Orefkov Date: Sun, 8 Feb 2026 14:17:03 +0300 Subject: [PATCH] - Update to 1.6.5. - Benchmark build for Emscripten output text with no delay. - Add ""_f16 flag for use e_hex as `num / 1_f16`. --- CMakeLists.txt | 2 +- bench/CMakeLists.txt | 9 + bench/bench_str.cpp | 103 +- bench/emscripten/shell_minimal.html | 96 + bench/process_result.cpp | 25 +- bench/results.html | 1437 ++++++------- ... E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt | 1752 ++++++++-------- ...on E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt | 1772 ++++++++-------- ...-Xeon E5-2682 v4, Windows 10, Clang-19.txt | 1774 ++++++++-------- ...3-Xeon E5-2682 v4, Windows 10, MSVC-19.txt | 1780 +++++++++-------- ...E5-2682 v4, WASM Chrome 143, Clang-21.txt} | 1773 ++++++++-------- docs/Doxyfile | 2 +- docs/Doxyfile_ru | 2 +- include/simstr/simple_unicode.h | 2 +- include/simstr/sstring.h | 3 +- include/simstr/strexpr.h | 159 +- readme.md | 8 +- readme_ru.md | 8 +- src/sstring.cpp | 2 +- tests/test_expr_only.cpp | 2 +- tests/test_str.cpp | 7 +- tests/test_tostrexpr.cpp | 2 +- 22 files changed, 5534 insertions(+), 5186 deletions(-) create mode 100644 bench/emscripten/shell_minimal.html rename bench/results/{004-Xeon E5-2682 v4, WASM Firefox, Clang-21.txt => 004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt} (50%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 154c701..b126177 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ include(FetchContent) project( simstr - VERSION 1.6.4 + VERSION 1.6.5 DESCRIPTION "Yet another modern C++ string library" HOMEPAGE_URL "https://github.com/orefkov/simstr" LANGUAGES CXX diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index 1b4d444..3e419a6 100644 --- a/bench/CMakeLists.txt +++ b/bench/CMakeLists.txt @@ -7,12 +7,21 @@ add_executable(benchStr bench_str.cpp bench.h) target_link_libraries(benchStr simstr::simstr benchmark::benchmark) target_compile_features(benchStr PUBLIC cxx_std_23) target_compile_definitions(benchStr PRIVATE SIMSTR_VERSION="${PROJECT_VERSION}") +FetchContent_Declare( + fmt + GIT_REPOSITORY https://github.com/fmtlib/fmt + GIT_TAG tags/12.1.0 +) +FetchContent_MakeAvailable(fmt) + +target_link_libraries(benchStr fmt::fmt) add_executable(process_result process_result.cpp) target_link_libraries(process_result simstr_simstr) if (EMSCRIPTEN) #target_link_options(benchStr PRIVATE -sSTACK_SIZE=1048576 -sINITIAL_MEMORY=128MB -sALLOW_MEMORY_GROWTH=0) set_target_properties (benchStr PROPERTIES SUFFIX .html) + set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sASYNCIFY --shell-file ${CMAKE_CURRENT_SOURCE_DIR}/emscripten/shell_minimal.html") if(SIMSTR_EMSCRIPTEN_MT) target_link_options(benchStr PUBLIC -pthread -sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency-1 -sENVIRONMENT=web,worker) endif() diff --git a/bench/bench_str.cpp b/bench/bench_str.cpp index 7192e87..97ff12b 100644 --- a/bench/bench_str.cpp +++ b/bench/bench_str.cpp @@ -1,6 +1,9 @@ /* + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Бенчмарки + * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com + * Benchmarks */ #include "bench.h" @@ -8,6 +11,28 @@ #include #include #include +#include +#include + +#ifdef EMSCRIPTEN +#include +static void DoTeardown(const benchmark::State& state) { + emscripten_sleep(1); +} +static void DoSetup(const benchmark::State& state) { + EM_ASM({ + on_begin_benchmark(UTF8ToString($0)); + }, state.name().c_str()); + emscripten_sleep(1); +} +#undef BENCHMARK +#define BENCHMARK(...) \ + BENCHMARK_PRIVATE_DECLARE(_benchmark_) = \ + (::benchmark::internal::RegisterBenchmarkInternal( \ + ::benchmark::internal::make_unique< \ + ::benchmark::internal::FunctionBenchmark>(#__VA_ARGS__, \ + __VA_ARGS__)))->Setup(DoSetup)->Teardown(DoTeardown) +#endif using namespace simstr; using namespace std::literals; @@ -110,7 +135,6 @@ void ConcatStdToCharsHex(benchmark::State& state) { } } - void ConcatSimToStdHex(benchmark::State& state) { // We use a short string so that the longest result is 15 characters and fits in the std::string SSO buffer. std::string s1 = "art "; @@ -118,7 +142,7 @@ void ConcatSimToStdHex(benchmark::State& state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - std::string str = +s1 + e_hex(i) + " end"; + std::string str = +s1 + i / 1_f16 + " end"; benchmark::DoNotOptimize(str); } } @@ -131,7 +155,7 @@ void ConcatSimToSimHex(benchmark::State& state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - stringa str = s1 + e_hex(i) + " end"; + stringa str = s1 + i / 1_f16 + " end"; benchmark::DoNotOptimize(str); } } @@ -144,7 +168,7 @@ void ConcatSimToSimHexC(benchmark::State& state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - stringa str = e_concat("", s1, e_hex(i), " end"); + stringa str = e_concat("", s1, i / 1_f16, " end"); benchmark::DoNotOptimize(str); } } @@ -156,7 +180,7 @@ void ConcatSimToSimHexS(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); - stringa str = e_subst("{}{} end", s1, e_hex(i)); + stringa str = e_subst("{}{} end", s1, i / 1_f16); benchmark::DoNotOptimize(str); } } @@ -168,7 +192,7 @@ void ConcatSimToSimHexVS(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); - stringa str = e_vsubst("{}{} end"_ss, s1, e_hex(i)); + stringa str = e_vsubst("{}{} end"_ss, s1, i / 1_f16); benchmark::DoNotOptimize(str); } } @@ -187,7 +211,7 @@ BENCHMARK(ConcatSimToSimHexVS) ->Name("Subst stringa and hex number by e_vsubst void ConcatSimToSimOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { - stringa str = "art "_ss + i / 0x8a010_fmt + " end"; + stringa str = "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"; benchmark::DoNotOptimize(str); } } @@ -196,23 +220,14 @@ void ConcatSimToSimOct(benchmark::State& state) { void SubstSimToSimOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { - stringa str = e_subst("art {} end", i / 0x8a010_fmt); - benchmark::DoNotOptimize(str); - } - } -} - -void FormatStdToStdOct(benchmark::State& state) { - for (auto _: state) { - for (unsigned i = 1; i <= 100'000; i *= 10) { - std::string str = std::format("art {:#010o} end", i); + stringa str = e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt); benchmark::DoNotOptimize(str); } } } void VSubstSimToSimOct(benchmark::State& state) { - ssa pattern = "art {} end"; + ssa pattern = "abcdefghihklmopqr {} end"; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { stringa str = e_vsubst(pattern, i / 0x8a010_fmt); @@ -221,8 +236,17 @@ void VSubstSimToSimOct(benchmark::State& state) { } } +void FormatStdToStdOct(benchmark::State& state) { + for (auto _: state) { + for (unsigned i = 1; i <= 100'000; i *= 10) { + std::string str = std::format("abcdefghihklmopqr {:#010o} end", i); + benchmark::DoNotOptimize(str); + } + } +} + void VFormatStdToStdOct(benchmark::State& state) { - std::string_view pattern = "art {:#010o} end"; + std::string_view pattern = "abcdefghihklmopqr {:#010o} end"; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { std::string str = std::vformat(pattern, std::make_format_args(i)); @@ -235,20 +259,41 @@ void StreamStdToStdOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { std::stringstream strm; - strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"; + strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"; std::string str = strm.str(); benchmark::DoNotOptimize(str); } } } -BENCHMARK(__)->Name("----- format/vformat and subst/vsubst octal number ---------")->Repetitions(1); -BENCHMARK(ConcatSimToSimOct) ->Name("\"art \"_ss + i / 0x8a010_fmt + \" end\""); -BENCHMARK(SubstSimToSimOct) ->Name("e_subst(\"art {} end\", i / 0x8a010_fmt)"); +void FmtFormatComp(benchmark::State& state) { + for (auto _: state) { + for (unsigned i = 1; i <= 100'000; i *= 10) { + std::string str = fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i); + benchmark::DoNotOptimize(str); + } + } +} + +void FmtFormat(benchmark::State& state) { + for (auto _: state) { + for (unsigned i = 1; i <= 100'000; i *= 10) { + std::string str = fmt::format("abcdefghihklmopqr {:#010o} end", i); + benchmark::DoNotOptimize(str); + } + } + +} + +BENCHMARK(__)->Name("---- format/vformat and subst/vsubst octal number to 32 symbols result ----")->Repetitions(1); +BENCHMARK(ConcatSimToSimOct) ->Name("\"abcdefghihklmopqr \"_ss + i / 0x8a010_fmt + \" end\""); +BENCHMARK(SubstSimToSimOct) ->Name("e_subst(\"abcdefghihklmopqr {} end\", i / 0x8a010_fmt)"); BENCHMARK(VSubstSimToSimOct) ->Name("e_vsubst(pattern, i / 0x8a010_fmt)"); -BENCHMARK(FormatStdToStdOct) ->Name("std::format(\"art {:#010o} end\", i)"); +BENCHMARK(FmtFormatComp) ->Name("fmt::format(FMT_COMPILE(\"abcdefghihklmopqr {:#010o} end\"), i)"); +BENCHMARK(FmtFormat) ->Name("fmt::format(\"abcdefghihklmopqr {:#010o} end\", i)"); +BENCHMARK(FormatStdToStdOct) ->Name("std::format(\"abcdefghihklmopqr {:#010o} end\", i)"); BENCHMARK(VFormatStdToStdOct) ->Name("std::vformat(pattern, std::make_format_args(i))"); -BENCHMARK(StreamStdToStdOct) ->Name("strm << \"art 0\" << std::oct << std::setw(9) << std::setfill('0') << i << \" end\""); +BENCHMARK(StreamStdToStdOct) ->Name("strm << \"abcdefghihklmopqr 0\" << std::oct << std::setw(9) << std::setfill('0') << i << \" end\""); void ConcatStdToStdS(benchmark::State& state) { std::string s1 = "start "; @@ -2413,6 +2458,11 @@ int main(int argc, char** argv) { std::cout << "Benchmarks of simstr, version " SIMSTR_VERSION << "\n" << "Sources: https://github.com/orefkov/simstr\n" << "Results: https://orefkov.github.io/simstr/results.html\n" << std::endl; + +#ifdef EMSCRIPTEN + EM_ASM({ console.log(navigator.userAgent); }); +#endif + char arg1[] = "--benchmark_repetitions=4", arg2[] = "--benchmark_report_aggregates_only=true"; char* my_params[] = {argv[0], arg1, arg2}; if (argc < 2) { @@ -2424,5 +2474,8 @@ int main(int argc, char** argv) { return 1; ::benchmark::RunSpecifiedBenchmarks(); ::benchmark::Shutdown(); +#ifdef EMSCRIPTEN + EM_ASM({ on_done(); }); +#endif return 0; } diff --git a/bench/emscripten/shell_minimal.html b/bench/emscripten/shell_minimal.html new file mode 100644 index 0000000..6d8b397 --- /dev/null +++ b/bench/emscripten/shell_minimal.html @@ -0,0 +1,96 @@ + + + + + + SimStr Bencjmarks + + + +
+ + + {{{ SCRIPT }}} + + diff --git a/bench/process_result.cpp b/bench/process_result.cpp index 52c79a1..782f66b 100644 --- a/bench/process_result.cpp +++ b/bench/process_result.cpp @@ -189,9 +189,9 @@ ssa extract_comment(ssa commentsText, ssa benchmarkName) { return stra::empty_str; } -void write_one_result(out_t& out, ssa result, ssa line, auto& script_text, bool last) { +void write_one_result(out_t& out, ssa result, ssa line, auto& script_text, char delim) { out += "" + result + ""; - script_text += e_choice(result[0] == 'N', "NaN", result) + e_choice(last, "]", ","); + script_text += e_choice(result[0] == 'N', "NaN", result) + delim; } std::pair extract_source_for_benchmark(ssa benchName, ssa sourceText) { @@ -274,6 +274,12 @@ std::pair extract_source_for_benchmark(ssa benchName, ssa sourceTex } void write_benchmarks(out_t& out, const results_vector& results, ssa sourceText, ssa commentsText) { + ssa releaseVersion = sourceText(sourceText.find_end("\n * ver. ")).until("\n").trimmed(); + if (!releaseVersion) { + std::cerr << "Not found release version in sources" << std::endl; + throw std::runtime_error{"Not found release version in sources"}; + } + std::vector> splitters; splitters.reserve(results.size()); @@ -291,14 +297,14 @@ void write_benchmarks(out_t& out, const results_vector& results, ssa sourceText, auto comment = extract_comment(commentsText, benchName); // Нужно вывести название бенча и коммент // Need to display title and comment - out += "\n" + repl_html_symbols(benchName) + + out += "\n" + repl_html_symbols(benchName) + "" + source + "" + e_if(!comment.is_empty(), " >> " + comment + "") + ""; - script_text += e_if(needCommaForTests, "},") + "\n{name:'" + e_repl(benchName.to_str(), "'", "\\'") + "',data:["; - write_one_result(out, result, line, script_text, result.size() == 1); + script_text += e_if(needCommaForTests, "},") + "\n{name:'" + e_repl(benchName, "'", "\\'") + "',data:["; + write_one_result(out, result, line, script_text, result.size() == 1 ? ']' : ','); for (unsigned idx = 1; idx < results.size(); idx++) { if (splitters[idx].is_done()) { @@ -318,7 +324,7 @@ void write_benchmarks(out_t& out, const results_vector& results, ssa sourceText, result = stra::empty_str; } } - write_one_result(out, result, line, script_text, idx == results.size() - 1); + write_one_result(out, result, line, script_text, idx == results.size() - 1 ? ']' : ','); } out += ""; needCommaForTests = true; @@ -336,7 +342,7 @@ void write_benchmarks(out_t& out, const results_vector& results, ssa sourceText, write_benchset_header(out, results, benchName, ++benchSetId); needFooter = true; needCommaForTests = false; - script_text = "bench_sets['" + e_repl(benchName.to_str(), "'", "\\'") + "'] = {id:'bs" + benchSetId +"', tests:["; + script_text = "bench_sets['" + e_repl(benchName, "'", "\\'") + "'] = {id:'bs" + benchSetId +"', tests:["; } // Эти строки надо пропустить во всех файлах // These lines must be skipped in all files @@ -346,9 +352,6 @@ void write_benchmarks(out_t& out, const results_vector& results, ssa sourceText, throw std::runtime_error{"Not expected end of file"}; } line = splitters[idx].next(); - if (line.starts_with("std::unordered_map emplace & find std::string_view;_cv")) { - int t = 1; - } } } if (needFooter) { diff --git a/bench/results.html b/bench/results.html index 776b689..98a6656 100644 --- a/bench/results.html +++ b/bench/results.html @@ -275,7 +275,7 @@ L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.53, 0.18, 0.32 +Load Average: 0.44, 0.78, 0.52 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-1332 X 2494.22 MHz CPU sCPU Caches: L1 Data 32 KiB (x16) @@ -294,14 +294,14 @@ Load Average: 0.00, 0.00, 0.00 L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) Include in charts:
  • -
  • Xeon E5-2682 v4, WASM Firefox, Clang-2132 X 2513.96 MHz CPU sFirefox: 146.0.1.60 webasm Include in charts:
  • +
  • Xeon E5-2682 v4, WASM Chrome 143, Clang-2132 X 2513.96 MHz CPU sChrome/143.0.0.0 webasm Include in charts:
  • - +

    # Concatenate string + Number + "Literal"

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Concat std::string and number by std to std::stringvoid ConcatStdToStd(benchmark::State& state) { + + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Concat std::string and number by std to std::stringvoid ConcatStdToStd(benchmark::State& state) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -310,8 +310,8 @@ Load Average: 0.00, 0.00, 0.00 benchmark::DoNotOptimize(str); } } -}226201264351891
    Concat std::string and number by StrExpr to std::stringvoid ConcatSimToStd(benchmark::State& state) { +}2182022693241217
    Concat std::string and number by StrExpr to std::stringvoid ConcatSimToStd(benchmark::State& state) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -320,8 +320,8 @@ Load Average: 0.00, 0.00, 0.00 benchmark::DoNotOptimize(str); } } -}105100148220402
    Concat stringa and number by StrExpr to simstr::stringavoid ConcatSimToSim(benchmark::State& state) { +}10498.4155213576
    Concat stringa and number by StrExpr to simstr::stringavoid ConcatSimToSim(benchmark::State& state) { stra s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -337,8 +337,8 @@ Load Average: 0.00, 0.00, 0.00 Unlike std::string, stringa holds 23 characters in SSO instead of 15, so at the end of the std::string test, memory has to be allocated, -while in stringa , the entire test is included in SSO.62.877.968.5116230
    Concat stringa and number by e_concat to simstr::stringavoid ConcatSimToSimConcat(benchmark::State& state) { +while in stringa , the entire test is included in SSO.64.272.370.3107284
    Concat stringa and number by e_concat to simstr::stringavoid ConcatSimToSimConcat(benchmark::State& state) { stra s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -347,17 +347,17 @@ while in stringa , the entire test is included in SSO.70.679.075.6110196
    71.377.374.8119257

    # Concatenate string + Hex Number + "Literal"

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Concat std::string and format hex number and literal to std::stringvoid ConcatStdToFmtHex(benchmark::State& state) { + + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Concat std::string and format hex number and literal to std::stringvoid ConcatStdToFmtHex(benchmark::State& state) { // We use a short string so that the longest result is 15 characters and fits in the std::string SSO buffer. std::string s1 = "art "; for (auto _: state) { @@ -368,8 +368,8 @@ while in stringa , the entire test is included in SSO.68169171410421301
    std::format std::string and hex number by literal to std::stringvoid ConcatAllFmtToHex(benchmark::State& state) { +}68668072010412352
    std::format std::string and hex number by literal to std::stringvoid ConcatAllFmtToHex(benchmark::State& state) { // We use a short string so that the longest result is 15 characters and fits in the std::string SSO buffer. std::string s1 = "art "; for (auto _: state) { @@ -380,8 +380,8 @@ while in stringa , the entire test is included in SSO.863995148318501590
    Concat std::string and std::to_chars and string to std::stringvoid ConcatStdToCharsHex(benchmark::State& state) { +}894970149819012837
    Concat std::string and std::to_chars and string to std::stringvoid ConcatStdToCharsHex(benchmark::State& state) { // We use a short string so that the longest result is 15 characters and fits in the std::string SSO buffer. std::string s1 = "art "; for (auto _: state) { @@ -394,142 +394,161 @@ while in stringa , the entire test is included in SSO.199175191254611
    Concat std::string and hex number and literal by StrExpr to std::stringvoid ConcatSimToStdHex(benchmark::State& state) { +}201189196255730
    Concat std::string and hex number and literal by StrExpr to std::stringvoid ConcatSimToStdHex(benchmark::State& state) { // We use a short string so that the longest result is 15 characters and fits in the std::string SSO buffer. std::string s1 = "art "; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - std::string str = +s1 + e_hex<HexFlags::Short>(i) + " end"; + std::string str = +s1 + i / 1_f16 + " end"; benchmark::DoNotOptimize(str); } } -}13312678.8116419
    Concat stringa and hex number and literal by StrExpr to simstr::stringavoid ConcatSimToSimHex(benchmark::State& state) { +}13313381.1118501
    Concat stringa and hex number and literal by StrExpr to simstr::stringavoid ConcatSimToSimHex(benchmark::State& state) { // stringa SSO buffer is 23, but we use a short string to compare under the same conditions stra s1 = "art "; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - stringa str = s1 + e_hex<HexFlags::Short>(i) + " end"; + stringa str = s1 + i / 1_f16 + " end"; benchmark::DoNotOptimize(str); } } -}12211974.3101220
    Concat stringa and hex number and literal by e_concat to simstr::stringavoid ConcatSimToSimHexC(benchmark::State& state) { +}11712372.6101214
    Concat stringa and hex number and literal by e_concat to simstr::stringavoid ConcatSimToSimHexC(benchmark::State& state) { // stringa SSO buffer is 23, but we use a short string to compare under the same conditions stra s1 = "art "; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); // Can work for all types of symbols - stringa str = e_concat("", s1, e_hex<HexFlags::Short>(i), " end"); + stringa str = e_concat("", s1, i / 1_f16, " end"); benchmark::DoNotOptimize(str); } } -}12913181.0106214
    Subst stringa and hex number by e_subst literal to simstr::stringavoid ConcatSimToSimHexS(benchmark::State& state) { +}12412981.6105211
    Subst stringa and hex number by e_subst literal to simstr::stringavoid ConcatSimToSimHexS(benchmark::State& state) { // stringa SSO buffer is 23, but we use a short string to compare under the same conditions stra s1 = "art "; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); - stringa str = e_subst("{}{} end", s1, e_hex<HexFlags::Short>(i)); + stringa str = e_subst("{}{} end", s1, i / 1_f16); benchmark::DoNotOptimize(str); } } -}180164149174463
    Subst stringa and hex number by e_vsubst stra to simstr::stringavoid ConcatSimToSimHexVS(benchmark::State& state) { +}186176150174347
    Subst stringa and hex number by e_vsubst stra to simstr::stringavoid ConcatSimToSimHexVS(benchmark::State& state) { // stringa SSO buffer is 23, but we use a short string to compare under the same conditions stra s1 = "art "; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { benchmark::DoNotOptimize(s1); - stringa str = e_vsubst("{}{} end"_ss, s1, e_hex<HexFlags::Short>(i)); + stringa str = e_vsubst("{}{} end"_ss, s1, i / 1_f16); benchmark::DoNotOptimize(str); } } -}312277305349770
    318296299357912
    -

    # format/vformat and subst/vsubst octal number

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    "art "_ss + i / 0x8a010_fmt + " end"void ConcatSimToSimOct(benchmark::State& state) { +

    # format/vformat and subst/vsubst octal number to 32 symbols result

    + + - + - + - + - + + + - + -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"void ConcatSimToSimOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { - stringa str = "art "_ss + i / 0x8a010_fmt + " end"; + stringa str = "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"; benchmark::DoNotOptimize(str); } } -}99.196.6108125497
    e_subst("art {} end", i / 0x8a010_fmt)void SubstSimToSimOct(benchmark::State& state) { +}274261663695436
    e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)void SubstSimToSimOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { - stringa str = e_subst("art {} end", i / 0x8a010_fmt); + stringa str = e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt); benchmark::DoNotOptimize(str); } } -}159145188206682
    e_vsubst(pattern, i / 0x8a010_fmt)void VSubstSimToSimOct(benchmark::State& state) { - ssa pattern = "art {} end"; +}348322745817672
    e_vsubst(pattern, i / 0x8a010_fmt)void VSubstSimToSimOct(benchmark::State& state) { + ssa pattern = "abcdefghihklmopqr {} end"; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { stringa str = e_vsubst(pattern, i / 0x8a010_fmt); benchmark::DoNotOptimize(str); } } -}347327315375999
    std::format("art {:#010o} end", i)void FormatStdToStdOct(benchmark::State& state) { +}619600109511441446
    fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)void FmtFormatComp(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { - std::string str = std::format("art {:#010o} end", i); + std::string str = fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i); benchmark::DoNotOptimize(str); } } -}9881204136418231770
    std::vformat(pattern, std::make_format_args(i))void VFormatStdToStdOct(benchmark::State& state) { - std::string_view pattern = "art {:#010o} end"; +}685767139915702218
    fmt::format("abcdefghihklmopqr {:#010o} end", i)void FmtFormat(benchmark::State& state) { + for (auto _: state) { + for (unsigned i = 1; i <= 100'000; i *= 10) { + std::string str = fmt::format("abcdefghihklmopqr {:#010o} end", i); + benchmark::DoNotOptimize(str); + } + } + +}880814137714732848
    std::format("abcdefghihklmopqr {:#010o} end", i)void FormatStdToStdOct(benchmark::State& state) { + for (auto _: state) { + for (unsigned i = 1; i <= 100'000; i *= 10) { + std::string str = std::format("abcdefghihklmopqr {:#010o} end", i); + benchmark::DoNotOptimize(str); + } + } +}10211245159019413033
    std::vformat(pattern, std::make_format_args(i))void VFormatStdToStdOct(benchmark::State& state) { + std::string_view pattern = "abcdefghihklmopqr {:#010o} end"; for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { std::string str = std::vformat(pattern, std::make_format_args(i)); benchmark::DoNotOptimize(str); } } -}10461091139117451790
    strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"void StreamStdToStdOct(benchmark::State& state) { +}10171135160419473038
    strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"void StreamStdToStdOct(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { std::stringstream strm; - strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"; + strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"; std::string str = strm.str(); benchmark::DoNotOptimize(str); } } -}20202084648868694124

    # Concatenate string + "Literal"

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Concat std::string by std to std::stringvoid ConcatStdToStdS(benchmark::State& state) { + + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Concat std::string by std to std::stringvoid ConcatStdToStdS(benchmark::State& state) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -538,8 +557,8 @@ while in stringa , the entire test is included in SSO.45.443.541.158.5102
    Concat std::string by StrExpr to std::stringvoid ConcatSimToStdS(benchmark::State& state) { +}45.045.239.555.5124
    Concat std::string by StrExpr to std::stringvoid ConcatSimToStdS(benchmark::State& state) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -548,8 +567,8 @@ while in stringa , the entire test is included in SSO.33.729.438.679.7119
    Concat stringa by StrExpr to stringavoid ConcatSimToSimS(benchmark::State& state) { +}31.736.138.782.4133
    Concat stringa by StrExpr to stringavoid ConcatSimToSimS(benchmark::State& state) { stra s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -558,37 +577,37 @@ while in stringa , the entire test is included in SSO.28.733.029.251.193.6
    30.427.829.553.5103

    # Find three concatenated string in string_view

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Find concat three std::stringsize_t find_pos_str(std::string_view src, std::string_view name) { + + - + - + +it is collected in a stack-based buffer, without allocation or deallocation.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Find concat three std::stringsize_t find_pos_str(std::string_view src, std::string_view name) { // before C++26 we can not concatenate string and string_view... return src.find("\n- "s + std::string{name} + " -\n"); -}121194205232157
    Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { +}128131208229214
    Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { return src.find(std::string{"\n- " + name + " -\n"}); -}50.869.7120130102
    Find concat three simstrsize_t find_pos_sim(ssa src, ssa name) { +}56.643.5123122108
    Find concat three simstrsize_t find_pos_sim(ssa src, ssa name) { return src.find(lstringa<200>{"\n- " + name + " -\n"}); } >> Если результат конкатенации меньше 207 символов, он собирается в буфере на стеке, без аллокации и деалокации. If the concatenation result is less than 207 characters, -it is collected in a stack-based buffer, without allocation or deallocation.51.644.229.127.972.5
    19.920.328.028.763.2

    # Build Type Name

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    BuildTypeNameStr 0/0std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    BuildTypeNameStr 0/0std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { std::string res{type_name}; if (prec) { res += "(" + std::to_string(prec); @@ -598,20 +617,20 @@ it is collected in a stack-based buffer, without allocation or deallocation.7.0810.38.4818.817.5
    BuildTypeNameExp 0/0std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}7.2012.38.3017.421.9
    BuildTypeNameExp 0/0std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}6.676.717.6712.816.4
    BuildTypeNameSim 0/0stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}7.407.077.6412.927.7
    BuildTypeNameSim 0/0stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}5.115.477.6716.716.5
    BuildTypeNameStr 10/10std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { +}4.975.188.0915.320.4
    BuildTypeNameStr 10/10std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { std::string res{type_name}; if (prec) { res += "(" + std::to_string(prec); @@ -621,31 +640,31 @@ it is collected in a stack-based buffer, without allocation or deallocation.63.183.060.084.4283
    BuildTypeNameExp 10/10std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}56.286.861.179.9368
    BuildTypeNameExp 10/10std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}31.024.532.440.298.2
    BuildTypeNameSim 10/10stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}31.327.532.439.2124
    BuildTypeNameSim 10/10stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}22.725.324.938.074.6
    23.422.425.436.577.3

    # Replace string by copy

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Concat with replace strstd::string make_str_str(std::string_view from, std::string_view pattern, std::string_view repl) { + + - + +simstr has a string expression for replacing substrings out of the box.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Concat with replace strstd::string make_str_str(std::string_view from, std::string_view pattern, std::string_view repl) { auto str_replace = [](std::string_view from, std::string_view pattern, std::string_view repl) { std::string result; for (size_t offset = 0; ;) { @@ -661,74 +680,74 @@ it is collected in a stack-based buffer, without allocation or deallocation."; -}211403314341436
    Concat with replace expstd::string make_str_exp(std::string_view from, std::string_view pattern, std::string_view repl) { +}201235317343514
    Concat with replace expstd::string make_str_exp(std::string_view from, std::string_view pattern, std::string_view repl) { return "<" + e_repl(from, pattern, repl) + ">"; } >> В simstr строковое выражение для замены подстрок есть "из коробки". -simstr has a string expression for replacing substrings out of the box.163175213225259
    151136218219243

    # Create Empty Str

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string e;template<typename T> + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } } >> Пустые строки, ничего необычного. -Empty lines, nothing unusual.1.131.101.122.532.15
    std::string_view e;template<typename T> +Empty lines, nothing unusual.1.121.111.112.612.16
    std::string_view e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3690.7480.3781.831.03
    ssa e;template<typename T> +}0.3920.7530.3691.870.743
    ssa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3630.1800.3771.900.941
    stringa e;template<typename T> +}0.3920.1860.3651.830.367
    stringa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.7580.7440.7342.362.15
    lstringa<20> e;template<typename T> +}0.7550.7570.7382.232.18
    lstringa<20> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.131.111.092.592.25
    lstringa<40> e;template<typename T> +}1.121.131.112.622.21
    lstringa<40> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.131.111.072.562.51
    1.151.171.132.582.44

    # Create Str from short literal (9 symbols)

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string e = "Test text";template<typename T> + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -737,8 +756,8 @@ void CreateShortLiteral(benchmark::State& state) { } >> Короткий литерал помещается во внутренний буфер std::string, время тратится только на копирование 10 байтов. The short literal is placed in the internal std::string buffer; -time is spent only copying 10 bytes.1.831.841.802.592.32
    std::string_view e = "Test text";template<typename T> +time is spent only copying 10 bytes.1.871.871.862.602.45
    std::string_view e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -747,15 +766,15 @@ void CreateShortLiteral(benchmark::State& state) { } >> И string_view, и ssa - по сути одно и то же: указатель на текст и его длина. Both string_view and ssa are essentially the same thing: -a pointer to text and its length.0.7350.7500.7231.821.23
    ssa e = "Test text";template<typename T> +a pointer to text and its length.0.7480.7490.7351.851.10
    ssa e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; benchmark::DoNotOptimize(empty_string); } -}0.3920.7320.3641.820.982
    stringa e = "Test text";template<typename T> +}0.3750.7550.3711.850.732
    stringa e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -764,8 +783,8 @@ void CreateShortLiteral(benchmark::State& state) { } >> stringa при инициализации константным литералом так же сохраняет только указатель на текст и его длину. When initialized with a constant literal, stringa also stores -only a pointer to the text and its length.1.211.111.093.002.25
    lstringa<20> e = "Test text";template<typename T> +only a pointer to the text and its length.1.141.131.092.552.21
    lstringa<20> e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -774,26 +793,26 @@ void CreateShortLiteral(benchmark::State& state) { } >> Внутреннего буфера хватает для размещения символов, время уходит только на копирование байтов. The internal buffer is sufficient to accommodate characters; -time is spent only on copying bytes.2.031.821.802.532.73
    lstringa<40> e = "Test text";template<typename T> +time is spent only on copying bytes.1.871.921.872.662.77
    lstringa<40> e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; benchmark::DoNotOptimize(empty_string); } -}1.841.841.822.562.65
    1.911.881.902.552.94

    # Create Str from long literal (30 symbols)

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string e = "123456789012345678901234567890";template<typename T> + + - + - + - + - + - + +bytes are simply copied.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -804,8 +823,8 @@ void CreateLongLiteral(benchmark::State& state) { Но как же отстает аллокация под Windows от Linux'а, 20 vs 70 ns... Here, the literal doesn't fit into the internal buffer, and 30 bytes are allocated and copied. -But how much slower is allocation under Windows than under Linux, 20 ns vs. 70 ns...18.918.771.379.515.9
    std::string_view e = "123456789012345678901234567890";template<typename T> +But how much slower is allocation under Windows than under Linux, 20 ns vs. 70 ns...19.418.675.976.922.8
    std::string_view e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -814,23 +833,23 @@ void CreateLongLiteral(benchmark::State& state) { } >> string_view и ssa по прежнему ничего не делают, кроме запоминания указателя на текст и его размера. string_view and ssa still do nothing except -remember the pointer to the text and its size.0.7330.7450.7221.831.26
    ssa e = "123456789012345678901234567890";template<typename T> +remember the pointer to the text and its size.0.7350.7510.7461.841.10
    ssa e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; benchmark::DoNotOptimize(empty_string); } -}0.3680.7820.3731.820.971
    stringa e = "123456789012345678901234567890";template<typename T> +}0.3700.7440.3651.830.734
    stringa e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; benchmark::DoNotOptimize(empty_string); } } >> stringa на константных литералах не отстает! -stringa doesn't lag behind on constant literals!1.101.141.102.202.23
    lstringa<20> e = "123456789012345678901234567890";template<typename T> +stringa doesn't lag behind on constant literals!1.121.141.112.892.19
    lstringa<20> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -838,8 +857,8 @@ void CreateLongLiteral(benchmark::State& state) { } } >> lstringa<20> может вместить в себя до 23 символов, Очевидно, что для 30-и символов уже нужна аллокация. -Obviously, 30 characters already require allocation.20.220.071.081.816.5
    lstringa<40> e = "123456789012345678901234567890";template<typename T> +Obviously, 30 characters already require allocation.20.620.874.975.723.2
    lstringa<40> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -848,19 +867,19 @@ void CreateLongLiteral(benchmark::State& state) { } >> А в lstringa<40> влезает до 47 символов, так что просто копируется 30 байтов. And lstringa<40> can hold up to 47 characters, so 30 -bytes are simply copied.2.561.922.513.353.16
    2.571.872.583.323.11

    # Create copy of Str with 9 symbols

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string e = "Test text"; auto c{e};template<typename T> + + - + - + - + - + - + +Only bytes are copied.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -869,8 +888,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Строка в пределах SSO, так что просто копирует байты. -The string is within the SSO, so it just copies the bytes.5.384.892.015.062.24
    std::string_view e = "Test text"; auto c{e};template<typename T> +The string is within the SSO, so it just copies the bytes.4.925.651.895.133.69
    std::string_view e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -878,8 +897,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}0.3750.3790.3833.801.24
    ssa e = "Test text"; auto c{e};template<typename T> +}0.3790.3750.3753.811.10
    ssa e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -890,8 +909,8 @@ void CopyShortString(benchmark::State& state) { } >> ssa и string_view не владеют строкой, копируется только информация о строке. ssa and string_view don't own the string; only the -string information is copied.0.3640.3680.3733.791.23
    stringa e = "Test text"; auto c{e};template<typename T> +string information is copied.0.3750.3940.3743.831.10
    stringa e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -902,8 +921,8 @@ void CopyShortString(benchmark::State& state) { } >> Копирование stringa происходит быстро, особенно если она инициализирована литералом. Copying a stringa is fast, -especially if it is initialized with a literal.1.091.321.344.172.61
    lstringa<20> e = "Test text"; auto c{e};template<typename T> +especially if it is initialized with a literal.1.101.171.334.072.54
    lstringa<20> e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -912,8 +931,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> В обоих случаях хватает внутреннего буфера. -In both cases, the internal buffer is sufficient.4.574.435.058.2916.2
    lstringa<40> e = "Test text"; auto c{e};template<typename T> +In both cases, the internal buffer is sufficient.4.544.695.317.6815.5
    lstringa<40> e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -922,19 +941,19 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Только копируются байты. -Only bytes are copied.4.524.575.128.0914.7
    4.544.965.198.1317.3

    # Create copy of Str with 30 symbols

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string e = "123456789012345678901234567890"; auto c{e};template<typename T> + + - + - + - + - + - + +Placed in the internal buffer.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -944,24 +963,24 @@ void CopyLongString(benchmark::State& state) { } >> Копирования длинной строки вызывает аллокацию, SSO уже не хватает. И снова как же отстаёт аллокация под Windows... Copying a long string causes allocations, -SSO is no longer sufficient. And again, how allocation lags under Windows...18.823.871.580.237.7
    std::string_view e = "123456789012345678901234567890"; auto c{e};template<typename T> +SSO is no longer sufficient. And again, how allocation lags under Windows...19.023.374.079.250.4
    std::string_view e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { T copy{x}; benchmark::DoNotOptimize(copy); } -}0.7310.7260.7191.491.23
    ssa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.7400.7500.7481.831.10
    ssa e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { T copy{x}; benchmark::DoNotOptimize(copy); } -}0.3680.7340.3651.470.989
    stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.3760.7440.3691.840.738
    stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -971,8 +990,8 @@ void CopyLongString(benchmark::State& state) { } >> А вот у stringa копирование литерала не зависит от его длины, сравни с предыдущим бенчмарком. But with stringa, literal copying doesn't depend on its length, -compare with the previous benchmark.1.121.151.833.402.19
    lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> +compare with the previous benchmark.1.121.121.853.012.16
    lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -980,8 +999,8 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Не влезает, аллокация. -Doesn't fit, allocation.19.521.371.380.116.2
    lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> +Doesn't fit, allocation.20.819.776.881.222.7
    lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -989,19 +1008,19 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Уложили во внутренний буфер. -Placed in the internal buffer.4.505.184.747.0713.7
    4.544.594.907.0516.5

    # Find 9 symbols text in end of 99 symbols text

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string::find;template<typename T> + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1018,8 +1037,8 @@ void Find(benchmark::State& state) { } >> Здесь "победила дружба", у всех типов по колонке примерно одинаково. Однако, Windows и Linux явно в разных весовых категориях. Here, "friendship wins," with all types scoring roughly equally. -However, Windows and Linux are clearly in different weight classes.7.006.6539.141.545.9
    std::string_view::find;template<typename T> +However, Windows and Linux are clearly in different weight classes.6.947.0139.741.844.8
    std::string_view::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1033,8 +1052,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}8.276.6338.739.751.0
    ssa::find;template<typename T> +}7.846.9239.539.845.9
    ssa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1048,8 +1067,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.686.3317.421.748.9
    stringa::find;template<typename T> +}7.496.4818.022.143.9
    stringa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1063,8 +1082,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.926.6518.429.851.8
    lstringa<20>::find;template<typename T> +}8.046.8618.830.644.5
    lstringa<20>::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1078,8 +1097,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}6.916.6717.422.144.6
    lstringa<40>::find;template<typename T> +}7.716.5617.922.039.8
    lstringa<40>::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1093,19 +1112,19 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.146.4417.520.543.8
    6.916.5017.720.941.8

    # Copy not literal Str with N symbols

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string copy{str_with_len_N};/15template<typename T> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1113,8 +1132,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.344.831.844.3638.2
    std::string copy{str_with_len_N};/16template<typename T> +}4.905.841.864.4652.4
    std::string copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1127,8 +1146,8 @@ void CopyDynString(benchmark::State& state) { SSO у std::string меньше, насколько я помню, 11 символов + 0. The jump where SSO ends and allocation begins is clearly visible. Note that WASM is 32-bit, and the size of the SSO for std::string is -smaller, as far as I remember: 11 characters + 0.24.623.776.484.636.1
    std::string copy{str_with_len_N};/23template<typename T> +smaller, as far as I remember: 11 characters + 0.22.525.176.984.652.0
    std::string copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1137,8 +1156,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Дальше просто добавляется время на копирование байтов. -Then the time for copying bytes is simply added.26.226.375.483.236.6
    std::string copy{str_with_len_N};/24template<typename T> +Then the time for copying bytes is simply added.23.024.976.586.851.2
    std::string copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1146,8 +1165,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}28.625.275.186.137.7
    std::string copy{str_with_len_N};/32template<typename T> +}23.224.977.586.051.3
    std::string copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1155,8 +1174,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}25.523.081.485.445.9
    std::string copy{str_with_len_N};/64template<typename T> +}23.124.885.789.253.9
    std::string copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1164,8 +1183,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}23.924.481.781.644.9
    std::string copy{str_with_len_N};/128template<typename T> +}22.424.780.186.356.8
    std::string copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1173,8 +1192,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}25.424.784.388.644.1
    std::string copy{str_with_len_N};/256template<typename T> +}24.226.282.790.556.4
    std::string copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1182,8 +1201,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}25.125.583.990.154.8
    std::string copy{str_with_len_N};/512template<typename T> +}24.026.786.893.463.7
    std::string copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1191,8 +1210,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}28.729.288.589.353.5
    std::string copy{str_with_len_N};/1024template<typename T> +}29.232.788.494.661.7
    std::string copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1200,8 +1219,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}46.945.891.495.862.2
    std::string copy{str_with_len_N};/2048template<typename T> +}48.352.097.210368.6
    std::string copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1209,8 +1228,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}69.571.112813288.4
    std::string copy{str_with_len_N};/4096template<typename T> +}13113313113993.9
    std::string copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1219,8 +1238,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Чем длиннее строка, тем дольше создаётся копия. -The longer the string, the longer it takes to create a copy.118121178180154
    stringa copy{str_with_len_N};/15template<typename T> +The longer the string, the longer it takes to create a copy.155158179184139
    stringa copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1231,8 +1250,8 @@ void CopyDynString(benchmark::State& state) { } >> Здесь stringa инициализируется не литералом, а значит, должна сама хранить символы. Here, stringa is not initialized with a literal, -meaning it must store characters itself.1.111.301.333.972.70
    stringa copy{str_with_len_N};/16template<typename T> +meaning it must store characters itself.1.121.331.334.062.42
    stringa copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1245,8 +1264,8 @@ void CopyDynString(benchmark::State& state) { инкремент заменён на обычный, судя по времени. Under WASM, stringa has a 15-character SSO. Furthermore, it was built without thread support, so the atomic -increment was replaced with a regular one, judging by the time.1.111.291.284.095.04
    stringa copy{str_with_len_N};/23template<typename T> +increment was replaced with a regular one, judging by the time.1.121.341.324.064.84
    stringa copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1257,8 +1276,8 @@ void CopyDynString(benchmark::State& state) { } >> SSO в stringa до 23 символов, и даже 23 копируются быстрее, чем 15 в std::string. SSO in stringa is up to 23 characters, and even 23 -copies faster than 15 in std::string.1.131.281.274.044.81
    stringa copy{str_with_len_N};/24template<typename T> +copies faster than 15 in std::string.1.111.321.314.064.79
    stringa copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1269,8 +1288,8 @@ void CopyDynString(benchmark::State& state) { } >> Всё, не влезаем в SSO, а значит, используем shared буфер. Добавляется время на атомарный инкремент счётчика. That's it, we're not using SSO, so we're using a shared buffer. -Time is added for the atomic counter increment.16.015.915.818.44.82
    stringa copy{str_with_len_N};/32template<typename T> +Time is added for the atomic counter increment.16.316.416.118.95.01
    stringa copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1278,8 +1297,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.115.819.04.76
    stringa copy{str_with_len_N};/64template<typename T> +}16.216.516.219.34.89
    stringa copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1287,8 +1306,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.015.916.018.44.79
    stringa copy{str_with_len_N};/128template<typename T> +}16.316.516.018.74.90
    stringa copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1296,8 +1315,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.116.018.94.98
    stringa copy{str_with_len_N};/256template<typename T> +}16.316.516.118.64.89
    stringa copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1305,8 +1324,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}15.916.016.018.24.87
    stringa copy{str_with_len_N};/512template<typename T> +}16.316.616.119.24.81
    stringa copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1314,8 +1333,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}15.916.115.818.54.79
    stringa copy{str_with_len_N};/1024template<typename T> +}16.316.816.119.04.84
    stringa copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1323,8 +1342,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.115.818.44.81
    stringa copy{str_with_len_N};/2048template<typename T> +}16.316.916.319.14.84
    stringa copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1332,8 +1351,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.215.918.34.84
    stringa copy{str_with_len_N};/4096template<typename T> +}16.317.416.118.74.80
    stringa copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1344,8 +1363,8 @@ void CopyDynString(benchmark::State& state) { } >> И как видно, кроме инкремента нет накладных расходов, время копирования не зависит от длины строки. And as you can see, there are no overhead costs other than the -increment; copying time does not depend on the string length.16.016.215.718.44.86
    lstringa<16> copy{str_with_len_N};/15template<typename T> +increment; copying time does not depend on the string length.16.316.416.118.54.79
    lstringa<16> copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1356,8 +1375,8 @@ void CopyDynString(benchmark::State& state) { } >> lstringa<16> использует SSO до 23 символов. А в WASM 32-битная архитектура, SSO до 19 символов. lstringa<16> uses SSO up to 23 characters. -WASM has a 32-bit architecture, so SSO is up to 19 characters.4.454.435.108.0514.4
    lstringa<16> copy{str_with_len_N};/16template<typename T> +WASM has a 32-bit architecture, so SSO is up to 19 characters.4.524.634.967.5216.0
    lstringa<16> copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1365,8 +1384,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.604.885.718.0014.5
    lstringa<16> copy{str_with_len_N};/23template<typename T> +}4.534.664.787.3416.4
    lstringa<16> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1374,8 +1393,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.535.225.818.6229.6
    lstringa<16> copy{str_with_len_N};/24template<typename T> +}5.144.594.987.5838.8
    lstringa<16> copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1384,8 +1403,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> И после начинает вести себя при копировании, как std::string. -And then it starts to behave like std::string when copied.24.424.484.086.232.4
    lstringa<16> copy{str_with_len_N};/32template<typename T> +And then it starts to behave like std::string when copied.26.224.778.780.337.3
    lstringa<16> copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1393,8 +1412,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}23.524.184.785.742.4
    lstringa<16> copy{str_with_len_N};/64template<typename T> +}23.924.785.983.142.4
    lstringa<16> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1402,8 +1421,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}25.725.481.182.937.6
    lstringa<16> copy{str_with_len_N};/128template<typename T> +}25.426.082.883.947.2
    lstringa<16> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1411,8 +1430,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}26.225.685.187.238.7
    lstringa<16> copy{str_with_len_N};/256template<typename T> +}26.926.785.486.044.4
    lstringa<16> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1420,8 +1439,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}27.129.785.487.651.0
    lstringa<16> copy{str_with_len_N};/512template<typename T> +}26.927.587.087.050.3
    lstringa<16> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1429,8 +1448,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}32.134.088.692.147.3
    lstringa<16> copy{str_with_len_N};/1024template<typename T> +}30.430.387.989.948.5
    lstringa<16> copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1438,8 +1457,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}54.753.792.610356.8
    lstringa<16> copy{str_with_len_N};/2048template<typename T> +}11011493.899.957.8
    lstringa<16> copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1447,8 +1466,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}62.166.713212883.2
    lstringa<16> copy{str_with_len_N};/4096template<typename T> +}11812512613082.1
    lstringa<16> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1456,8 +1475,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}87.488.0186188141
    lstringa<512> copy{str_with_len_N};/15template<typename T> +}135131192192126
    lstringa<512> copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1465,8 +1484,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.785.145.068.5214.5
    lstringa<512> copy{str_with_len_N};/16template<typename T> +}4.994.505.348.5815.3
    lstringa<512> copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1474,8 +1493,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.845.185.168.5315.1
    lstringa<512> copy{str_with_len_N};/23template<typename T> +}4.884.645.258.4415.3
    lstringa<512> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1483,8 +1502,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.935.435.018.4814.7
    lstringa<512> copy{str_with_len_N};/24template<typename T> +}4.824.615.268.6116.1
    lstringa<512> copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1492,8 +1511,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.795.235.108.7414.9
    lstringa<512> copy{str_with_len_N};/32template<typename T> +}4.864.605.358.6414.8
    lstringa<512> copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1501,8 +1520,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.564.778.4511.917.9
    lstringa<512> copy{str_with_len_N};/64template<typename T> +}4.584.178.1011.617.8
    lstringa<512> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1510,8 +1529,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}6.356.298.1311.817.4
    lstringa<512> copy{str_with_len_N};/128template<typename T> +}6.005.838.2211.717.6
    lstringa<512> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1519,8 +1538,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}6.597.269.9912.317.9
    lstringa<512> copy{str_with_len_N};/256template<typename T> +}6.387.348.7912.219.0
    lstringa<512> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1528,8 +1547,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}17.27.809.9313.019.7
    lstringa<512> copy{str_with_len_N};/512template<typename T> +}8.5017.39.8013.020.7
    lstringa<512> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1540,8 +1559,8 @@ void CopyDynString(benchmark::State& state) { } >> Даже 512 символов копируются быстрее, чем одна аллокация или атомарный инкремент. Even 512 characters are copied faster than a single -allocation or atomic increment.10.110.410.814.422.2
    lstringa<512> copy{str_with_len_N};/1024template<typename T> +allocation or atomic increment.10.810.611.614.723.4
    lstringa<512> copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1550,8 +1569,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> А дальше уже как у всех. -And then it's like everyone else.56.454.193.710155.1
    lstringa<512> copy{str_with_len_N};/2048template<typename T> +And then it's like everyone else.10610996.696.658.5
    lstringa<512> copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1559,8 +1578,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}67.166.612412580.3
    lstringa<512> copy{str_with_len_N};/4096template<typename T> +}11711812313780.2
    lstringa<512> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1568,61 +1587,61 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}88.785.3187188149
    127132194195123

    # Convert to int '1234567'

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);void ToIntStr10(benchmark::State& state, const std::string& s, int c) { + + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);void ToIntStr10(benchmark::State& state, const std::string& s, int c) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 10); #ifdef CHECK_RESULT @@ -1641,8 +1660,8 @@ void CopyDynString(benchmark::State& state) { In simstr, a string fragment is sufficient for conversion to a number; there's no need for null termination. The closest analog to this behavior is "std::from_chars," but unfortunately, it is very limited in its capabilities. -Here, I attempted to run tests that are similar in logic to std::from_chars.26.426.831.231.873.7
    std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);void ToIntFromChars10(benchmark::State& state, const std::string_view& s, int c) { +Here, I attempted to run tests that are similar in logic to std::from_chars.26.727.431.033.291.6
    std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);void ToIntFromChars10(benchmark::State& state, const std::string_view& s, int c) { for (auto _: state) { int res = 0; std::from_chars(s.data(), s.data() + s.size(), res, 10); @@ -1657,8 +1676,8 @@ Here, I attempted to run tests that are similar in logic to std::from_chars. >> from_chars требует точного указания основания счисления, не допускает знаков плюс, пробелов, префиксов 0x и т.п. from_chars requires an exact radix specification and does not allow plus -signs, spaces, 0x prefixes, etc.14.711.313.414.027.8
    stringa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +signs, spaces, 0x prefixes, etc.15.113.113.714.027.8
    stringa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> void ToIntSimStr10(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 10, false, false>().value; @@ -1674,8 +1693,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { } >> Здесь для to_int заданы такие же ограничения - проверять переполнение, десятичная система, без лидирующих пробелов и знака плюс Here, to_int has the same restrictions: check for overflow, -decimal system, no leading spaces, and no plus sign.12.78.0714.014.919.1
    ssa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +decimal system, no leading spaces, and no plus sign.12.98.3514.215.019.2
    ssa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> void ToIntSimStr10(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 10, false, false>().value; @@ -1688,8 +1707,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}13.18.0213.015.217.1
    lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +}13.08.3113.815.419.2
    lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> void ToIntSimStr10(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 10, false, false>().value; @@ -1702,18 +1721,18 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}12.68.1613.115.717.3
    13.08.2913.715.419.3

    # Convert to unsigned 'abcDef'

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);void ToIntStr16(benchmark::State& state, const std::string& s, int c) { + + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);void ToIntStr16(benchmark::State& state, const std::string& s, int c) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 16); #ifdef CHECK_RESULT @@ -1725,8 +1744,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> Всё то же, только для 16ричной системы -Everything is the same, only for the hexadecimal system23.223.533.436.555.0
    std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);void ToIntFromChars16(benchmark::State& state, const std::string_view& s, int c) { +Everything is the same, only for the hexadecimal system23.923.834.537.170.4
    std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);void ToIntFromChars16(benchmark::State& state, const std::string_view& s, int c) { for (auto _: state) { int res = 0; std::from_chars(s.data(), s.data() + s.size(), res, 16); @@ -1738,8 +1757,8 @@ Everything is the same, only for the hexadecimal system9.5310.08.219.4028.2
    stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}9.729.888.4512.826.1
    stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> void ToIntSimStr16(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 16, false, false>().value; @@ -1752,8 +1771,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}11.48.1512.314.317.4
    ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}11.68.4012.813.919.8
    ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> void ToIntSimStr16(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 16, false, false>().value; @@ -1766,8 +1785,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}11.28.0311.712.816.3
    lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}12.78.5012.312.719.9
    lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> void ToIntSimStr16(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 16, false, false>().value; @@ -1780,18 +1799,18 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}11.37.8611.814.516.5
    11.47.9012.014.120.0

    # Convert to int ' 1234567'

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);void ToIntStr0(benchmark::State& state, const std::string& s, int c) { + + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);void ToIntStr0(benchmark::State& state, const std::string& s, int c) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 0); #ifdef CHECK_RESULT @@ -1803,8 +1822,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> А здесь уже парсинг произвольного числа. -And here we have parsing of an arbitrary number.28.928.243.345.178.2
    stringa s = " 123456789"; int res = s.to_int<int>; // Check overflowtemplate<typename T> +And here we have parsing of an arbitrary number.28.929.343.646.099.8
    stringa s = " 123456789"; int res = s.to_int<int>; // Check overflowtemplate<typename T> void ToIntSimStr0(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int>().value; @@ -1817,8 +1836,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}18.915.317.722.623.2
    ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflowvoid ToIntNoOverflow(benchmark::State& state, ssa t, int c) { +}19.216.018.721.825.1
    ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflowvoid ToIntNoOverflow(benchmark::State& state, ssa t, int c) { for (auto _: state) { int res = t.to_int<int, false>().value; #ifdef CHECK_RESULT @@ -1830,16 +1849,16 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}14.913.716.716.823.4
    15.210.915.517.419.6

    # Convert to double '1234.567e10'

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);void ToDoubleStr(benchmark::State& state, const std::string& s, double c) { + + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);void ToDoubleStr(benchmark::State& state, const std::string& s, double c) { for (auto _: state) { char* ptr = nullptr; double res = std::strtod(s.c_str(), &ptr); @@ -1854,8 +1873,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { #endif benchmark::DoNotOptimize(res); } -}66.767.910199.9210
    std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { +}64.664.3103102306
    std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { for (auto _: state) { double res = 0; if (std::from_chars(s.data(), s.data() + s.size(), res).ec != std::errc{}) { @@ -1869,8 +1888,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { #endif benchmark::DoNotOptimize(res); } -}24.926.161.479.1113
    ssa s = "1234.567e10"; double res = *s.to_double()template<typename T> +}25.024.759.684.9110
    ssa s = "1234.567e10"; double res = *s.to_double()template<typename T> void ToDoubleSimStr(benchmark::State& state, T t, double c) { for (auto _: state) { auto r = t.template to_double<false>(); @@ -1887,16 +1906,16 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}25.424.935.235.143.5
    25.825.036.737.142.9

    # Append const literal of 16 bytes 64 times, 1024 total length

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::stringstream str; ... str << "abbaabbaabbaabba";void AppendStreamConstLiteral(benchmark::State& state) { + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::stringstream str; ... str << "abbaabbaabbaabba";void AppendStreamConstLiteral(benchmark::State& state) { for (auto _: state) { std::string result; std::stringstream str; @@ -1913,8 +1932,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(str); } -}13821400481157214444
    std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { +}13501394479857316574
    std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { for (auto _: state) { std::string result; for (size_t c = 0; c < 64; c++) { @@ -1928,8 +1947,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { #endif benchmark::DoNotOptimize(result); } -}34733910921309625
    lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}39238811011326811
    lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -1944,8 +1963,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}363357739919758
    lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}394401756980737
    lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -1963,8 +1982,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { } >> Чем больше внутренний буфер, тем меньше раз требуется аллокация, тем быстрее результат. The larger the internal buffer, the fewer allocations are -required, and the faster the result.249238381511584
    lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> +required, and the faster the result.274285390538650
    lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -1979,8 +1998,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}213211230355458
    lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}261262231373473
    lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -1995,19 +2014,19 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}135141136242416
    138143146249429

    # Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba";void AppendStreamStrConstLiteral(benchmark::State& state) { + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba";void AppendStreamStrConstLiteral(benchmark::State& state) { std::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2025,8 +2044,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}13711387470155614444
    std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { +}13571403465455447037
    std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2042,8 +2061,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}12661230372938422032
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}12931269382640252266
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2060,8 +2079,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}413388711828874
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}481466730841992
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2078,8 +2097,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}315348450546729
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}357402461548851
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2096,8 +2115,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}287303302384588
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}329341304382706
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2114,19 +2133,19 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}231250209267580
    236249212270677

    # Append string of 16 bytes and const literal of 16 bytes 2048 times, 65536 total length

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 timesvoid AppendStreamStrConstLiteralBig(benchmark::State& state) { + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 timesvoid AppendStreamStrConstLiteralBig(benchmark::State& state) { std::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2144,8 +2163,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}116458110614226339272552223603
    std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { +}7433574823218672285142347176
    std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2161,8 +2180,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}7168872502196248193600116339
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}7147472449193765198228124333
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2179,8 +2198,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}4046142661185862527044372
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}1926721114197122503150774
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2197,8 +2216,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}2496724880166392201140049
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}1935517678168872256246223
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2215,8 +2234,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}1709918255160652153837513
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}1765417782163772197446054
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2233,19 +2252,19 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}1858319723167832156038281
    1587117685163812158045846

    # Append 2 string of 16 bytes 32 times, 1024 total length

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::stringstream str; ... str << str_var1 << str_var2;void AppendStream2String(benchmark::State& state) { + + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::stringstream str; ... str << str_var1 << str_var2;void AppendStream2String(benchmark::State& state) { std::string s1 = TEXT_16; std::string s2 = TEXT_16; for (auto _: state) { @@ -2265,8 +2284,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}15151684431654864573
    std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { +}14071413452154687255
    std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { std::string s1 = TEXT_16; std::string s2 = TEXT_16; @@ -2285,8 +2304,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}14851517389739482452
    lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> +}13821410402040272567
    lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2305,8 +2324,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4705007969121196
    lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> +}5345358019161192
    lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2325,8 +2344,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4184215165801120
    lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> +}4364595316081050
    lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2345,8 +2364,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}367373389446973
    lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> +}404405386467936
    lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2365,19 +2384,19 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}290305287353874
    290310285342887

    # Append text, number, text

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::stringstream str; str << "test = " << k << " times";void AppendStreamStrNumStr(benchmark::State& state) { + + - + - + - + - + - + - + - + - + +enough to accommodate the result, hence the long time.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::stringstream str; str << "test = " << k << " times";void AppendStreamStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { std::stringstream t; @@ -2393,8 +2412,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}3014320111483116556730
    std::string str = "test = " + std::to_string(k) + " times";void AppendStdStringStrNumStr(benchmark::State& state) { +}30043059110801164411693
    std::string str = "test = " + std::to_string(k) + " times";void AppendStdStringStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { std::string result = "test = " + std::to_string(k) + " times"; @@ -2408,8 +2427,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}472440110812301657
    char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;void AppendSprintfStrNumStr(benchmark::State& state) { +}480449110412601717
    char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;void AppendSprintfStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { char buf[100]; @@ -2425,8 +2444,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}14221483276628312931
    std::string str = std::format("test = {} times", k);void AppendFormatStrNumStr(benchmark::State& state) { +}14121525284928945454
    std::string str = std::format("test = {} times", k);void AppendFormatStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { std::string result = std::format("test = {} times", k); @@ -2440,8 +2459,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}11741356186824102192
    lstringa<8> str; str.format("test = {} times", k);template<typename T> +}11661283185924082880
    lstringa<8> str; str.format("test = {} times", k);template<typename T> void AppendSimStrStrNumStrF(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { @@ -2459,8 +2478,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } >> В simstr format с первого раза не помещается в такую строку без аллокации. In simstr format, the first time it doesn't fit into such a -string without allocation.13871740206527113127
    lstringa<32> str; str.format("test = {} times", k);template<typename T> +string without allocation.14071688206927004935
    lstringa<32> str; str.format("test = {} times", k);template<typename T> void AppendSimStrStrNumStrF(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { @@ -2477,8 +2496,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } } >> А в такую помещается. Используйте сразу буфера подходящего размера. -And it fits in this one. Use buffers of the appropriate size right away.10561116101416052459
    lstringa<8> str = "test = " + k + " times";template<typename T> +And it fits in this one. Use buffers of the appropriate size right away.10151113101315464130
    lstringa<8> str = "test = " + k + " times";template<typename T> void AppendSimStrStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { @@ -2494,8 +2513,8 @@ void AppendSimStrStrNumStr(benchmark::State& state) { } } } >> Результат не помещается в SSO, возникает аллокация. -The result does not fit into SSO, an allocation occurs.294304803880593
    lstringa<32> str = "test = " + k + " times";template<typename T> +The result does not fit into SSO, an allocation occurs.309315875888576
    lstringa<32> str = "test = " + k + " times";template<typename T> void AppendSimStrStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { @@ -2513,8 +2532,8 @@ void AppendSimStrStrNumStr(benchmark::State& state) { } >> А здесь и ниже - результат укладывается в SSO. Ещё раз - используйте сразу буфера подходящего размера. And here and below, the result fits within SSO. -Once again, use appropriately sized buffers from the start.151148155188379
    stringa str = "test = " + k + " times";template<typename T> +Once again, use appropriately sized buffers from the start.154168157187348
    stringa str = "test = " + k + " times";template<typename T> void AppendSimStrStrNumStr(benchmark::State& state) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { @@ -2532,22 +2551,22 @@ void AppendSimStrStrNumStr(benchmark::State& state) { } >> Под WASM размер SSO 15 символов, что явно не хватает для размещения результата, отсюда и такое время. Under WASM, the SSO size is 15 characters, which is clearly not -enough to accommodate the result, hence the long time.145167151237564
    145159153235610

    # Split text and convert to int

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    std::string::find + substr + std::strtolvoid SplitConvertIntStdString(benchmark::State& state) { + + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    std::string::find + substr + std::strtolvoid SplitConvertIntStdString(benchmark::State& state) { std::string numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2569,8 +2588,8 @@ enough to accommodate the result, hence the long time.271280557556614
    ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { +}267271546547735
    ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2586,8 +2605,8 @@ enough to accommodate the result, hence the long time.152129163297274
    ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { +}152135166307244
    ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2601,16 +2620,16 @@ enough to accommodate the result, hence the long time.200128187214321
    200133193218278

    # Replace symbols in text ~400 symbols

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Naive (and wrong) replace symbols with std::string find + replacevoid ReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { + + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Naive (and wrong) replace symbols with std::string find + replacevoid ReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" " ksjd-fksjd \"dkjfs-jkhdf dfj ' kdkd \"dkfdkfkdjf" @@ -2667,8 +2686,8 @@ enough to accommodate the result, hence the long time.'b' and 'b'->'a'. But if the substitutions don't conflict, -it works quickly.846838115112773397
    replace symbols with std::string find_first_of + replacevoid ReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +it works quickly.863846111611843050
    replace symbols with std::string find_first_of + replacevoid ReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" " ksjd-fksjd \"dkjfs-jkhdf dfj ' kdkd \"dkfdkfkdjf" @@ -2722,8 +2741,8 @@ it works quickly.846 >> Дальше уже правильные реализации, не зависящие от конфликтующих замен. Further, there are correct implementations that do not depend on -conflicting replacements.24612528201922094970
    replace symbols with std::string_view find_first_of + copyvoid ReplaceSymbolsStdString(benchmark::State& state) { +conflicting replacements.24292347207522714955
    replace symbols with std::string_view find_first_of + copyvoid ReplaceSymbolsStdString(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" " ksjd-fksjd \"dkjfs-jkhdf dfj ' kdkd \"dkfdkfkdjf" @@ -2774,8 +2793,8 @@ conflicting replacements.246110851218239125363462
    replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}10901136246126253059
    replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -2820,8 +2839,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}12941686146215633591
    replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}12981475145616273223
    replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -2866,8 +2885,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}10761067135913983097
    replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}10461158132814572579
    replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -2909,8 +2928,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}10421276123113062949
    replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}10451290117113012637
    replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -2952,20 +2971,20 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}889875117813482889
    888982121512922389

    # Replace symbols in text ~40 symbols

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Short Naive (and wrong) replace symbols with std::string find + replacevoid ShortReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { + + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Short Naive (and wrong) replace symbols with std::string find + replacevoid ShortReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3003,8 +3022,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}170189344352431
    Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +}168167320356439
    Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3042,8 +3061,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}314351401428499
    Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { +}320326382448654
    Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3080,8 +3099,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}165204326352410
    Short replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}164170330366511
    Short replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -3112,8 +3131,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}193208267303371
    Short replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}184199257320388
    Short replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -3144,8 +3163,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}186262356402416
    Short replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}194226355416451
    Short replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -3173,8 +3192,8 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}135194217270253
    Short replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}133164222260268
    Short replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { stra source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" @@ -3202,20 +3221,20 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}152176303345313
    148163309377340

    # Replace All Str To Longer Size

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    replace bb to ---- in std::string|64template<size_t Long> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    replace bb to ---- in std::string|64template<size_t Long> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3247,8 +3266,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}160259226259378
    replace bb to ---- in std::string|256template<size_t Long> +}161162231253414
    replace bb to ---- in std::string|256template<size_t Long> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3280,8 +3299,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}5228617938481351
    replace bb to ---- in std::string|512template<size_t Long> +}5455227908071247
    replace bb to ---- in std::string|512template<size_t Long> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3313,8 +3332,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}10211615145315842782
    replace bb to ---- in std::string|1024template<size_t Long> +}1067989146715602343
    replace bb to ---- in std::string|1024template<size_t Long> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3346,8 +3365,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}22753426335932205546
    replace bb to ---- in std::string|2048template<size_t Long> +}25812326317732344971
    replace bb to ---- in std::string|2048template<size_t Long> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3379,8 +3398,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}602884667816808612567
    replace bb to ---- in lstringa<8>|64template<size_t N, size_t Count> +}621158568072834611336
    replace bb to ---- in lstringa<8>|64template<size_t N, size_t Count> void ReplaceAllLongerSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3401,8 +3420,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}136204224244304
    replace bb to ---- in lstringa<8>|256template<size_t N, size_t Count> +}139148241235307
    replace bb to ---- in lstringa<8>|256template<size_t N, size_t Count> void ReplaceAllLongerSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3423,8 +3442,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}4495566146431149
    replace bb to ---- in lstringa<8>|512template<size_t N, size_t Count> +}429477641673945
    replace bb to ---- in lstringa<8>|512template<size_t N, size_t Count> void ReplaceAllLongerSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3445,8 +3464,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}864970107011122114
    replace bb to ---- in lstringa<8>|1024template<size_t N, size_t Count> +}814911106011501772
    replace bb to ---- in lstringa<8>|1024template<size_t N, size_t Count> void ReplaceAllLongerSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3467,8 +3486,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}17321985187420564209
    replace bb to ---- in lstringa<8>|2048template<size_t N, size_t Count> +}16871886191720823390
    replace bb to ---- in lstringa<8>|2048template<size_t N, size_t Count> void ReplaceAllLongerSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3489,8 +3508,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}37993912387239017794
    replace bb to ---- by init stringa|64template<size_t Count> +}31973484357140626782
    replace bb to ---- by init stringa|64template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3510,8 +3529,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}100119185206216
    replace bb to ---- by init stringa|256template<size_t Count> +}97.9101175209209
    replace bb to ---- by init stringa|256template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3531,8 +3550,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}304335369503741
    replace bb to ---- by init stringa|512template<size_t Count> +}307348382475613
    replace bb to ---- by init stringa|512template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3552,8 +3571,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}69376179611301659
    replace bb to ---- by init stringa|1024template<size_t Count> +}75378183010691421
    replace bb to ---- by init stringa|1024template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3573,8 +3592,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}14611682168421723573
    replace bb to ---- by init stringa|2048template<size_t Count> +}15621664170522502946
    replace bb to ---- by init stringa|2048template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3594,28 +3613,28 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}29743300314944417063
    30813334317046026119

    # Replace All Str To Same Size

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    replace bb to -- in std::string|64template<size_t Long> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    replace bb to -- in std::string|64template<size_t Long> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3646,8 +3665,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}122199197206283
    replace bb to -- in std::string|256template<size_t Long> +}123121195207287
    replace bb to -- in std::string|256template<size_t Long> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3678,8 +3697,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}403635496542995
    replace bb to -- in std::string|512template<size_t Long> +}418401502543909
    replace bb to -- in std::string|512template<size_t Long> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3710,8 +3729,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}75914088499681844
    replace bb to -- in std::string|1024template<size_t Long> +}74771210229761631
    replace bb to -- in std::string|1024template<size_t Long> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3742,8 +3761,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}15212878196618133877
    replace bb to -- in std::string|2048template<size_t Long> +}14731360173018513086
    replace bb to -- in std::string|2048template<size_t Long> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3774,8 +3793,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}30144530315336347023
    replace bb to -- in lstringa<8>|64template<size_t N, size_t Long> +}29452878314936056778
    replace bb to -- in lstringa<8>|64template<size_t N, size_t Long> void ReplaceAllEqualSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3795,8 +3814,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}97.8137179196228
    replace bb to -- in lstringa<8>|256template<size_t N, size_t Long> +}98.7101185196222
    replace bb to -- in lstringa<8>|256template<size_t N, size_t Long> void ReplaceAllEqualSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3816,8 +3835,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}284347446475785
    replace bb to -- in lstringa<8>|512template<size_t N, size_t Long> +}296305454462670
    replace bb to -- in lstringa<8>|512template<size_t N, size_t Long> void ReplaceAllEqualSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3837,8 +3856,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}5265697488021545
    replace bb to -- in lstringa<8>|1024template<size_t N, size_t Long> +}5445357838041251
    replace bb to -- in lstringa<8>|1024template<size_t N, size_t Long> void ReplaceAllEqualSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3858,8 +3877,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}11251085139214982838
    replace bb to -- in lstringa<8>|2048template<size_t N, size_t Long> +}11351082148514992408
    replace bb to -- in lstringa<8>|2048template<size_t N, size_t Long> void ReplaceAllEqualSimString(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3879,8 +3898,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}21822030268730565602
    replace bb to -- by init stringa|64template<size_t Count> +}21522085284529504767
    replace bb to -- by init stringa|64template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3904,8 +3923,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}89.7107161175175
    replace bb to -- by init stringa|256template<size_t Count> +}83.295.3162180172
    replace bb to -- by init stringa|256template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3929,8 +3948,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}238289360391621
    replace bb to -- by init stringa|512template<size_t Count> +}240273362403508
    replace bb to -- by init stringa|512template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3954,8 +3973,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}4365235966481186
    replace bb to -- by init stringa|1024template<size_t Count> +}437508605669849
    replace bb to -- by init stringa|1024template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3979,8 +3998,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}8531033107211522237
    replace bb to -- by init stringa|2048template<size_t Count> +}9041043107011781687
    replace bb to -- by init stringa|2048template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4004,28 +4023,28 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}16251962203722074470
    17172005204223213367

    # Hash Map insert and find

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    hashStrMapA<size_t> emplace & find stringa;void HashMapSimStr(benchmark::State& state) { + + - + - + - + +We insert std::string and look for std::string_view
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    hashStrMapA<size_t> emplace & find stringa;void HashMapSimStr(benchmark::State& state) { for (auto _: state) { hashStrMapA<size_t> store; for (size_t idx = 0; idx < bs_sim.size(); idx++) { @@ -4050,8 +4069,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { } >> Вставляем в hashStrMapA 10000 stringa длиной от 30 до 50 символов, а потом ищем их в ней We insert 10,000 strings of length from 30 to 50 characters into -hashStrMapA, and then search for them in it.35609533722252394976143131363104626
    std::unordered_map<std::string, size_t> emplace & find std::string;void HashMapStdStr(benchmark::State& state) { +hashStrMapA, and then search for them in it.37022563755052399495944572243337923
    std::unordered_map<std::string, size_t> emplace & find std::string;void HashMapStdStr(benchmark::State& state) { for (auto _: state) { std::unordered_map<std::string, size_t> store; for (size_t idx = 0; idx < bs_std.size(); idx++) { @@ -4074,8 +4093,8 @@ hashStrMapA, and then search for them in it. >> То же самое c std::string и std::unordered_map -Same thing with std::string and std::unordered_map35219683459756560425754456143379032
    hashStrMapA<size_t> emplace & find ssa;void HashMapSimSsa(benchmark::State& state) { +Same thing with std::string and std::unordered_map39404893698410559455756516373713478
    hashStrMapA<size_t> emplace & find ssa;void HashMapSimSsa(benchmark::State& state) { for (auto _: state) { hashStrMapA<size_t> store; for (size_t idx = 0; idx < bs_sim.size(); idx++) { @@ -4099,8 +4118,8 @@ Same thing with std::string and std::unordered_map >> Теперь вставляем stringa, а ищем ssa -Now we insert stringa and search for ssa35476353732175350105139350733111588
    std::unordered_map<std::string, size_t> emplace & find std::string_view;void HashMapStdStrView(benchmark::State& state) { +Now we insert stringa and search for ssa36708743981007350325340922283277536
    std::unordered_map<std::string, size_t> emplace & find std::string_view;void HashMapStdStrView(benchmark::State& state) { for (auto _: state) { std::unordered_map<std::string, size_t> store; for (size_t idx = 0; idx < bs_std.size(); idx++) { @@ -4124,17 +4143,17 @@ Now we insert stringa and search for ssa >> Вставляем std::string, а ищем std::string_view -We insert std::string and look for std::string_view41135204165106643347864492833799479
    40983574270911625275964878514219440

    # Build Full Func Name

    - -
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Firefox, Clang-21
    Build func full name std::string;std::string build_full_name_std() const { + + - + - + - + - + +to be written in a single string, but is slightly slower in execution time.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
    Build func full name std::string;std::string build_full_name_std() const { std::string str{has_ret_type_resolver ? "any"sv : type_names_sv[(unsigned)ret_type]}; str += " "; str += std_name; @@ -4171,8 +4190,8 @@ We insert std::string and look for std::string_view7141064171417342855
    Build func full name std::string 1;std::string build_full_name_std1() const { +return values. The algorithm uses std::string.731972156717283514
    Build func full name std::string 1;std::string build_full_name_std1() const { std::string str{has_ret_type_resolver ? "any"sv : type_names_sv[(unsigned)ret_type]}; str += " " + std_name + "("; @@ -4203,8 +4222,8 @@ return values. The algorithm uses std::string. >> Почти тот же алгоритм, но несколько последовательных += к строке заменены на одно += + + +. Almost the same algorithm, but several consecutive -+= to a string are replaced with a single += + + +.8211133165717013137
    Build func full name std::stream;std::string build_full_name_stream() const { ++= to a string are replaced with a single += + + +.8191049158617413573
    Build func full name std::stream;std::string build_full_name_stream() const { std::ostringstream str; if (has_ret_type_resolver) { str << "any"; @@ -4237,8 +4256,8 @@ Almost the same algorithm, but several consecutive str << ")"; return str.str(); } >> Строим имя функции через std::ostringstream и << -We construct the function name through std::ostringstream and <<25382789819697807119
    Build func full name stringa;stringa build_full_name() const { +We construct the function name through std::ostringstream and <<2638261083281006212140
    Build func full name stringa;stringa build_full_name() const { lstringa<512> str = e_choice(has_ret_type_resolver, "any", type_names[(unsigned)ret_type]) + " " + name + "("; bool add_comma = false; @@ -4255,8 +4274,8 @@ We construct the function name through std::ostringstream and << >> Реализация на simstr строках и строковых выражениях. Инфа о параметрах добавляется в текущую строку Implementation using simstr strings and string expressions. -Parameter information is appended to the current line.5105758148681353
    Build func full name stringa 1;stringa build_full_name1() const { +Parameter information is appended to the current line.5264828259091750
    Build func full name stringa 1;stringa build_full_name1() const { lstringa<512> str = e_choice(has_ret_type_resolver, "any", type_names[(unsigned)ret_type]) + " " + name + "("; bool add_comma = false; @@ -4273,11 +4292,11 @@ Parameter information is appended to the current line.64089796210101610
    66768893510392047
    \ No newline at end of file diff --git a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt index 53e0c16..1444cf1 100644 --- a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt +++ b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.6.4 +Benchmarks of simstr, version 1.6.5 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html -2026-02-04T16:52:12+03:00 +2026-02-08T13:49:10+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,922 +10,930 @@ CPU Caches: L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.53, 0.18, 0.32 +Load Average: 0.44, 0.78, 0.52 ***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 226 ns 226 ns 4 +Concat std::string and number by std to std::string_mean 218 ns 218 ns 4 Concat std::string and number by std to std::string_median 216 ns 216 ns 4 -Concat std::string and number by std to std::string_stddev 20.8 ns 20.8 ns 4 -Concat std::string and number by std to std::string_cv 9.21 % 9.21 % 4 -Concat std::string and number by StrExpr to std::string_mean 105 ns 105 ns 4 -Concat std::string and number by StrExpr to std::string_median 104 ns 104 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 1.33 ns 1.33 ns 4 -Concat std::string and number by StrExpr to std::string_cv 1.27 % 1.27 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 62.8 ns 62.8 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 62.9 ns 62.9 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 0.596 ns 0.596 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 0.95 % 0.95 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 70.6 ns 70.6 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 67.4 ns 67.4 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 7.97 ns 7.97 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 11.30 % 11.30 % 4 +Concat std::string and number by std to std::string_stddev 3.57 ns 3.57 ns 4 +Concat std::string and number by std to std::string_cv 1.64 % 1.64 % 4 +Concat std::string and number by StrExpr to std::string_mean 104 ns 104 ns 4 +Concat std::string and number by StrExpr to std::string_median 105 ns 105 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 1.81 ns 1.81 ns 4 +Concat std::string and number by StrExpr to std::string_cv 1.73 % 1.73 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 64.2 ns 64.2 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 63.8 ns 63.8 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 1.53 ns 1.53 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 2.39 % 2.39 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 71.3 ns 71.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 71.2 ns 71.2 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 0.874 ns 0.874 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 1.23 % 1.23 % 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 681 ns 681 ns 4 -Concat std::string and format hex number and literal to std::string_median 684 ns 684 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 6.51 ns 6.51 ns 4 -Concat std::string and format hex number and literal to std::string_cv 0.96 % 0.96 % 4 -std::format std::string and hex number by literal to std::string_mean 863 ns 863 ns 4 -std::format std::string and hex number by literal to std::string_median 857 ns 857 ns 4 -std::format std::string and hex number by literal to std::string_stddev 22.4 ns 22.4 ns 4 -std::format std::string and hex number by literal to std::string_cv 2.60 % 2.60 % 4 -Concat std::string and std::to_chars and string to std::string_mean 199 ns 199 ns 4 -Concat std::string and std::to_chars and string to std::string_median 200 ns 200 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 3.35 ns 3.35 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.68 % 1.68 % 4 +Concat std::string and format hex number and literal to std::string_mean 686 ns 686 ns 4 +Concat std::string and format hex number and literal to std::string_median 682 ns 682 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 14.0 ns 14.0 ns 4 +Concat std::string and format hex number and literal to std::string_cv 2.04 % 2.04 % 4 +std::format std::string and hex number by literal to std::string_mean 894 ns 894 ns 4 +std::format std::string and hex number by literal to std::string_median 893 ns 893 ns 4 +std::format std::string and hex number by literal to std::string_stddev 6.26 ns 6.26 ns 4 +std::format std::string and hex number by literal to std::string_cv 0.70 % 0.70 % 4 +Concat std::string and std::to_chars and string to std::string_mean 201 ns 201 ns 4 +Concat std::string and std::to_chars and string to std::string_median 201 ns 201 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 3.25 ns 3.25 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.62 % 1.62 % 4 Concat std::string and hex number and literal by StrExpr to std::string_mean 133 ns 133 ns 4 Concat std::string and hex number and literal by StrExpr to std::string_median 132 ns 132 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.32 ns 2.32 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 1.75 % 1.75 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 122 ns 122 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 123 ns 123 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 5.02 ns 5.02 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.13 % 4.13 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 129 ns 129 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 129 ns 129 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 7.79 ns 7.79 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 6.04 % 6.04 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 180 ns 180 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 180 ns 180 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.42 ns 4.42 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.45 % 2.45 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 312 ns 312 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 312 ns 312 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.75 ns 3.75 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.20 % 1.20 % 4 ------ format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -"art "_ss + i / 0x8a010_fmt + " end"_mean 99.1 ns 99.1 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_median 96.0 ns 96.0 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_stddev 6.88 ns 6.88 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_cv 6.94 % 6.94 % 4 -e_subst("art {} end", i / 0x8a010_fmt)_mean 159 ns 159 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_median 158 ns 158 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_stddev 2.47 ns 2.47 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_cv 1.56 % 1.56 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 347 ns 347 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 344 ns 344 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 10.5 ns 10.5 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 3.04 % 3.04 % 4 -std::format("art {:#010o} end", i)_mean 988 ns 988 ns 4 -std::format("art {:#010o} end", i)_median 989 ns 989 ns 4 -std::format("art {:#010o} end", i)_stddev 7.46 ns 7.46 ns 4 -std::format("art {:#010o} end", i)_cv 0.75 % 0.75 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1046 ns 1046 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1046 ns 1046 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 52.1 ns 52.1 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 4.98 % 4.98 % 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2020 ns 2020 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2021 ns 2021 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 50.6 ns 50.6 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.50 % 2.50 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 0.683 ns 0.683 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 0.51 % 0.51 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 117 ns 117 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 117 ns 117 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.717 ns 0.717 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.61 % 0.61 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 124 ns 124 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 124 ns 124 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 0.635 ns 0.635 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 0.51 % 0.51 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 186 ns 186 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 185 ns 185 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.80 ns 1.80 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.97 % 0.97 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 318 ns 318 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 316 ns 316 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.55 ns 8.55 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.69 % 2.69 % 4 +---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 274 ns 274 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 274 ns 274 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 6.96 ns 6.96 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.54 % 2.54 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 348 ns 348 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 350 ns 350 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 9.85 ns 9.85 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.83 % 2.83 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 619 ns 619 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 619 ns 619 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 1.36 ns 1.36 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 0.22 % 0.22 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 685 ns 685 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 682 ns 682 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 15.4 ns 15.4 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.24 % 2.24 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 880 ns 880 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 851 ns 851 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 63.0 ns 63.0 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 7.16 % 7.16 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1021 ns 1021 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1025 ns 1025 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 10.3 ns 10.3 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.01 % 1.01 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1017 ns 1017 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1014 ns 1014 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 20.0 ns 20.0 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 1.97 % 1.97 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2068 ns 2068 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2067 ns 2067 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 38.7 ns 38.7 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.87 % 1.87 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 45.4 ns 45.4 ns 4 -Concat std::string by std to std::string_median 44.2 ns 44.2 ns 4 -Concat std::string by std to std::string_stddev 2.92 ns 2.92 ns 4 -Concat std::string by std to std::string_cv 6.42 % 6.42 % 4 -Concat std::string by StrExpr to std::string_mean 33.7 ns 33.7 ns 4 -Concat std::string by StrExpr to std::string_median 34.3 ns 34.3 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.48 ns 1.48 ns 4 -Concat std::string by StrExpr to std::string_cv 4.38 % 4.38 % 4 -Concat stringa by StrExpr to stringa_mean 28.7 ns 28.7 ns 4 -Concat stringa by StrExpr to stringa_median 28.5 ns 28.5 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.925 ns 0.925 ns 4 -Concat stringa by StrExpr to stringa_cv 3.23 % 3.23 % 4 +Concat std::string by std to std::string_mean 45.0 ns 45.0 ns 4 +Concat std::string by std to std::string_median 45.2 ns 45.2 ns 4 +Concat std::string by std to std::string_stddev 1.03 ns 1.03 ns 4 +Concat std::string by std to std::string_cv 2.28 % 2.28 % 4 +Concat std::string by StrExpr to std::string_mean 31.7 ns 31.7 ns 4 +Concat std::string by StrExpr to std::string_median 31.4 ns 31.4 ns 4 +Concat std::string by StrExpr to std::string_stddev 1.10 ns 1.10 ns 4 +Concat std::string by StrExpr to std::string_cv 3.48 % 3.48 % 4 +Concat stringa by StrExpr to stringa_mean 30.4 ns 30.4 ns 4 +Concat stringa by StrExpr to stringa_median 29.9 ns 29.9 ns 4 +Concat stringa by StrExpr to stringa_stddev 2.00 ns 2.00 ns 4 +Concat stringa by StrExpr to stringa_cv 6.58 % 6.58 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 121 ns 121 ns 4 -Find concat three std::string_median 117 ns 117 ns 4 -Find concat three std::string_stddev 10.7 ns 10.7 ns 4 -Find concat three std::string_cv 8.88 % 8.88 % 4 -Find concat three strexpr_mean 50.8 ns 50.8 ns 4 -Find concat three strexpr_median 50.6 ns 50.6 ns 4 -Find concat three strexpr_stddev 0.766 ns 0.766 ns 4 -Find concat three strexpr_cv 1.51 % 1.51 % 4 -Find concat three simstr_mean 51.6 ns 51.6 ns 4 -Find concat three simstr_median 51.3 ns 51.3 ns 4 -Find concat three simstr_stddev 0.491 ns 0.491 ns 4 -Find concat three simstr_cv 0.95 % 0.95 % 4 +Find concat three std::string_mean 128 ns 128 ns 4 +Find concat three std::string_median 131 ns 131 ns 4 +Find concat three std::string_stddev 10.2 ns 10.2 ns 4 +Find concat three std::string_cv 7.98 % 7.98 % 4 +Find concat three strexpr_mean 56.6 ns 56.6 ns 4 +Find concat three strexpr_median 56.7 ns 56.7 ns 4 +Find concat three strexpr_stddev 1.77 ns 1.77 ns 4 +Find concat three strexpr_cv 3.12 % 3.12 % 4 +Find concat three simstr_mean 19.9 ns 19.9 ns 4 +Find concat three simstr_median 19.8 ns 19.8 ns 4 +Find concat three simstr_stddev 0.481 ns 0.481 ns 4 +Find concat three simstr_cv 2.42 % 2.42 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 7.08 ns 7.08 ns 4 -BuildTypeNameStr 0/0_median 7.08 ns 7.08 ns 4 -BuildTypeNameStr 0/0_stddev 0.139 ns 0.139 ns 4 -BuildTypeNameStr 0/0_cv 1.96 % 1.96 % 4 -BuildTypeNameExp 0/0_mean 6.67 ns 6.67 ns 4 -BuildTypeNameExp 0/0_median 6.61 ns 6.61 ns 4 -BuildTypeNameExp 0/0_stddev 0.199 ns 0.199 ns 4 -BuildTypeNameExp 0/0_cv 2.99 % 2.99 % 4 -BuildTypeNameSim 0/0_mean 5.11 ns 5.11 ns 4 -BuildTypeNameSim 0/0_median 4.96 ns 4.96 ns 4 -BuildTypeNameSim 0/0_stddev 0.443 ns 0.443 ns 4 -BuildTypeNameSim 0/0_cv 8.68 % 8.68 % 4 -BuildTypeNameStr 10/10_mean 63.1 ns 63.1 ns 4 -BuildTypeNameStr 10/10_median 63.3 ns 63.3 ns 4 -BuildTypeNameStr 10/10_stddev 4.16 ns 4.16 ns 4 -BuildTypeNameStr 10/10_cv 6.59 % 6.59 % 4 -BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4 -BuildTypeNameExp 10/10_median 30.1 ns 30.1 ns 4 -BuildTypeNameExp 10/10_stddev 2.10 ns 2.10 ns 4 -BuildTypeNameExp 10/10_cv 6.79 % 6.79 % 4 -BuildTypeNameSim 10/10_mean 22.7 ns 22.7 ns 4 -BuildTypeNameSim 10/10_median 22.5 ns 22.5 ns 4 -BuildTypeNameSim 10/10_stddev 0.855 ns 0.855 ns 4 -BuildTypeNameSim 10/10_cv 3.77 % 3.77 % 4 +BuildTypeNameStr 0/0_mean 7.20 ns 7.20 ns 4 +BuildTypeNameStr 0/0_median 7.15 ns 7.15 ns 4 +BuildTypeNameStr 0/0_stddev 0.135 ns 0.135 ns 4 +BuildTypeNameStr 0/0_cv 1.87 % 1.87 % 4 +BuildTypeNameExp 0/0_mean 7.40 ns 7.40 ns 4 +BuildTypeNameExp 0/0_median 7.30 ns 7.30 ns 4 +BuildTypeNameExp 0/0_stddev 0.224 ns 0.224 ns 4 +BuildTypeNameExp 0/0_cv 3.02 % 3.02 % 4 +BuildTypeNameSim 0/0_mean 4.97 ns 4.97 ns 4 +BuildTypeNameSim 0/0_median 4.93 ns 4.93 ns 4 +BuildTypeNameSim 0/0_stddev 0.145 ns 0.145 ns 4 +BuildTypeNameSim 0/0_cv 2.91 % 2.91 % 4 +BuildTypeNameStr 10/10_mean 56.2 ns 56.2 ns 4 +BuildTypeNameStr 10/10_median 56.0 ns 56.0 ns 4 +BuildTypeNameStr 10/10_stddev 0.621 ns 0.621 ns 4 +BuildTypeNameStr 10/10_cv 1.11 % 1.11 % 4 +BuildTypeNameExp 10/10_mean 31.3 ns 31.3 ns 4 +BuildTypeNameExp 10/10_median 31.3 ns 31.3 ns 4 +BuildTypeNameExp 10/10_stddev 0.495 ns 0.495 ns 4 +BuildTypeNameExp 10/10_cv 1.58 % 1.58 % 4 +BuildTypeNameSim 10/10_mean 23.4 ns 23.4 ns 4 +BuildTypeNameSim 10/10_median 23.4 ns 23.4 ns 4 +BuildTypeNameSim 10/10_stddev 0.254 ns 0.254 ns 4 +BuildTypeNameSim 10/10_cv 1.09 % 1.09 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 211 ns 211 ns 4 -Concat with replace str_median 213 ns 213 ns 4 -Concat with replace str_stddev 14.1 ns 14.1 ns 4 -Concat with replace str_cv 6.69 % 6.69 % 4 -Concat with replace exp_mean 163 ns 163 ns 4 -Concat with replace exp_median 154 ns 154 ns 4 -Concat with replace exp_stddev 30.1 ns 30.1 ns 4 -Concat with replace exp_cv 18.50 % 18.50 % 4 +Concat with replace str_mean 201 ns 201 ns 4 +Concat with replace str_median 200 ns 200 ns 4 +Concat with replace str_stddev 3.73 ns 3.73 ns 4 +Concat with replace str_cv 1.86 % 1.86 % 4 +Concat with replace exp_mean 151 ns 151 ns 4 +Concat with replace exp_median 151 ns 151 ns 4 +Concat with replace exp_stddev 6.31 ns 6.31 ns 4 +Concat with replace exp_cv 4.17 % 4.17 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.13 ns 1.13 ns 4 -std::string e;_median 1.11 ns 1.11 ns 4 -std::string e;_stddev 0.047 ns 0.047 ns 4 -std::string e;_cv 4.17 % 4.17 % 4 -std::string_view e;_mean 0.369 ns 0.369 ns 4 -std::string_view e;_median 0.368 ns 0.368 ns 4 -std::string_view e;_stddev 0.012 ns 0.012 ns 4 -std::string_view e;_cv 3.31 % 3.31 % 4 -ssa e;_mean 0.363 ns 0.363 ns 4 -ssa e;_median 0.361 ns 0.361 ns 4 -ssa e;_stddev 0.004 ns 0.004 ns 4 -ssa e;_cv 1.17 % 1.17 % 4 -stringa e;_mean 0.758 ns 0.758 ns 4 -stringa e;_median 0.750 ns 0.750 ns 4 -stringa e;_stddev 0.033 ns 0.033 ns 4 -stringa e;_cv 4.34 % 4.34 % 4 -lstringa<20> e;_mean 1.13 ns 1.13 ns 4 -lstringa<20> e;_median 1.13 ns 1.13 ns 4 -lstringa<20> e;_stddev 0.023 ns 0.023 ns 4 -lstringa<20> e;_cv 2.06 % 2.06 % 4 -lstringa<40> e;_mean 1.13 ns 1.13 ns 4 -lstringa<40> e;_median 1.13 ns 1.13 ns 4 -lstringa<40> e;_stddev 0.011 ns 0.011 ns 4 -lstringa<40> e;_cv 0.96 % 0.96 % 4 +std::string e;_mean 1.12 ns 1.12 ns 4 +std::string e;_median 1.12 ns 1.12 ns 4 +std::string e;_stddev 0.023 ns 0.023 ns 4 +std::string e;_cv 2.05 % 2.05 % 4 +std::string_view e;_mean 0.392 ns 0.392 ns 4 +std::string_view e;_median 0.395 ns 0.395 ns 4 +std::string_view e;_stddev 0.023 ns 0.023 ns 4 +std::string_view e;_cv 5.99 % 5.99 % 4 +ssa e;_mean 0.392 ns 0.392 ns 4 +ssa e;_median 0.376 ns 0.376 ns 4 +ssa e;_stddev 0.034 ns 0.034 ns 4 +ssa e;_cv 8.71 % 8.71 % 4 +stringa e;_mean 0.755 ns 0.755 ns 4 +stringa e;_median 0.754 ns 0.754 ns 4 +stringa e;_stddev 0.009 ns 0.009 ns 4 +stringa e;_cv 1.23 % 1.23 % 4 +lstringa<20> e;_mean 1.12 ns 1.12 ns 4 +lstringa<20> e;_median 1.12 ns 1.12 ns 4 +lstringa<20> e;_stddev 0.017 ns 0.017 ns 4 +lstringa<20> e;_cv 1.54 % 1.54 % 4 +lstringa<40> e;_mean 1.15 ns 1.15 ns 4 +lstringa<40> e;_median 1.15 ns 1.15 ns 4 +lstringa<40> e;_stddev 0.035 ns 0.035 ns 4 +lstringa<40> e;_cv 3.05 % 3.05 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.83 ns 1.83 ns 4 -std::string e = "Test text";_median 1.83 ns 1.83 ns 4 -std::string e = "Test text";_stddev 0.021 ns 0.021 ns 4 -std::string e = "Test text";_cv 1.13 % 1.13 % 4 -std::string_view e = "Test text";_mean 0.735 ns 0.735 ns 4 -std::string_view e = "Test text";_median 0.734 ns 0.734 ns 4 -std::string_view e = "Test text";_stddev 0.006 ns 0.006 ns 4 -std::string_view e = "Test text";_cv 0.77 % 0.77 % 4 -ssa e = "Test text";_mean 0.392 ns 0.392 ns 4 -ssa e = "Test text";_median 0.392 ns 0.392 ns 4 -ssa e = "Test text";_stddev 0.020 ns 0.020 ns 4 -ssa e = "Test text";_cv 5.00 % 5.00 % 4 -stringa e = "Test text";_mean 1.21 ns 1.21 ns 4 -stringa e = "Test text";_median 1.23 ns 1.23 ns 4 -stringa e = "Test text";_stddev 0.049 ns 0.049 ns 4 -stringa e = "Test text";_cv 4.06 % 4.06 % 4 -lstringa<20> e = "Test text";_mean 2.03 ns 2.03 ns 4 -lstringa<20> e = "Test text";_median 2.00 ns 2.00 ns 4 -lstringa<20> e = "Test text";_stddev 0.120 ns 0.120 ns 4 -lstringa<20> e = "Test text";_cv 5.92 % 5.92 % 4 -lstringa<40> e = "Test text";_mean 1.84 ns 1.84 ns 4 -lstringa<40> e = "Test text";_median 1.85 ns 1.85 ns 4 -lstringa<40> e = "Test text";_stddev 0.032 ns 0.032 ns 4 -lstringa<40> e = "Test text";_cv 1.71 % 1.71 % 4 +std::string e = "Test text";_mean 1.87 ns 1.87 ns 4 +std::string e = "Test text";_median 1.87 ns 1.87 ns 4 +std::string e = "Test text";_stddev 0.025 ns 0.025 ns 4 +std::string e = "Test text";_cv 1.33 % 1.33 % 4 +std::string_view e = "Test text";_mean 0.748 ns 0.748 ns 4 +std::string_view e = "Test text";_median 0.754 ns 0.754 ns 4 +std::string_view e = "Test text";_stddev 0.017 ns 0.017 ns 4 +std::string_view e = "Test text";_cv 2.27 % 2.27 % 4 +ssa e = "Test text";_mean 0.375 ns 0.375 ns 4 +ssa e = "Test text";_median 0.375 ns 0.375 ns 4 +ssa e = "Test text";_stddev 0.004 ns 0.004 ns 4 +ssa e = "Test text";_cv 1.00 % 1.00 % 4 +stringa e = "Test text";_mean 1.14 ns 1.14 ns 4 +stringa e = "Test text";_median 1.13 ns 1.13 ns 4 +stringa e = "Test text";_stddev 0.020 ns 0.020 ns 4 +stringa e = "Test text";_cv 1.80 % 1.80 % 4 +lstringa<20> e = "Test text";_mean 1.87 ns 1.87 ns 4 +lstringa<20> e = "Test text";_median 1.87 ns 1.87 ns 4 +lstringa<20> e = "Test text";_stddev 0.021 ns 0.021 ns 4 +lstringa<20> e = "Test text";_cv 1.15 % 1.15 % 4 +lstringa<40> e = "Test text";_mean 1.91 ns 1.91 ns 4 +lstringa<40> e = "Test text";_median 1.90 ns 1.90 ns 4 +lstringa<40> e = "Test text";_stddev 0.025 ns 0.025 ns 4 +lstringa<40> e = "Test text";_cv 1.29 % 1.29 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 18.9 ns 18.9 ns 4 -std::string e = "123456789012345678901234567890";_median 18.8 ns 18.8 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.352 ns 0.352 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.86 % 1.86 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.733 ns 0.733 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.733 ns 0.733 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 0.89 % 0.89 % 4 -ssa e = "123456789012345678901234567890";_mean 0.368 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890";_median 0.368 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4 -ssa e = "123456789012345678901234567890";_cv 1.83 % 1.83 % 4 -stringa e = "123456789012345678901234567890";_mean 1.10 ns 1.10 ns 4 -stringa e = "123456789012345678901234567890";_median 1.10 ns 1.10 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.019 ns 0.019 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.73 % 1.73 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 20.2 ns 20.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.360 ns 0.360 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 1.78 % 1.78 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.56 ns 2.56 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.55 ns 2.55 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.045 ns 0.045 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.75 % 1.75 % 4 +std::string e = "123456789012345678901234567890";_mean 19.4 ns 19.4 ns 4 +std::string e = "123456789012345678901234567890";_median 19.4 ns 19.4 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.103 ns 0.103 ns 4 +std::string e = "123456789012345678901234567890";_cv 0.53 % 0.53 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.735 ns 0.735 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.732 ns 0.732 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.011 ns 0.011 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 1.48 % 1.48 % 4 +ssa e = "123456789012345678901234567890";_mean 0.370 ns 0.370 ns 4 +ssa e = "123456789012345678901234567890";_median 0.371 ns 0.371 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.001 ns 0.001 ns 4 +ssa e = "123456789012345678901234567890";_cv 0.33 % 0.33 % 4 +stringa e = "123456789012345678901234567890";_mean 1.12 ns 1.12 ns 4 +stringa e = "123456789012345678901234567890";_median 1.12 ns 1.12 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.31 % 1.31 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 20.6 ns 20.6 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 20.6 ns 20.6 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.099 ns 0.099 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 0.48 % 0.48 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 2.57 ns 2.57 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 2.57 ns 2.57 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.032 ns 0.032 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 1.26 % 1.26 % 4 ----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text"; auto c{e};_mean 5.38 ns 5.38 ns 4 -std::string e = "Test text"; auto c{e};_median 5.39 ns 5.39 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.035 ns 0.035 ns 4 -std::string e = "Test text"; auto c{e};_cv 0.66 % 0.66 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.374 ns 0.374 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 2.25 % 2.25 % 4 -ssa e = "Test text"; auto c{e};_mean 0.364 ns 0.364 ns 4 -ssa e = "Test text"; auto c{e};_median 0.364 ns 0.364 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4 -ssa e = "Test text"; auto c{e};_cv 1.18 % 1.18 % 4 -stringa e = "Test text"; auto c{e};_mean 1.09 ns 1.09 ns 4 -stringa e = "Test text"; auto c{e};_median 1.09 ns 1.09 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.019 ns 0.019 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.75 % 1.75 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.57 ns 4.57 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.54 ns 4.54 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.149 ns 0.149 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 3.26 % 3.26 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 4.52 ns 4.52 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 4.44 ns 4.44 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.188 ns 0.188 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 4.16 % 4.16 % 4 +std::string e = "Test text"; auto c{e};_mean 4.92 ns 4.92 ns 4 +std::string e = "Test text"; auto c{e};_median 4.93 ns 4.93 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.068 ns 0.068 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.39 % 1.39 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.379 ns 0.379 ns 4 +std::string_view e = "Test text"; auto c{e};_median 0.377 ns 0.377 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.006 ns 0.006 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 1.50 % 1.50 % 4 +ssa e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4 +ssa e = "Test text"; auto c{e};_median 0.374 ns 0.374 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.003 ns 0.003 ns 4 +ssa e = "Test text"; auto c{e};_cv 0.83 % 0.83 % 4 +stringa e = "Test text"; auto c{e};_mean 1.10 ns 1.10 ns 4 +stringa e = "Test text"; auto c{e};_median 1.10 ns 1.10 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4 +stringa e = "Test text"; auto c{e};_cv 0.47 % 0.47 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 4.54 ns 4.54 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 4.52 ns 4.52 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.044 ns 0.044 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 0.98 % 0.98 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 4.54 ns 4.54 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 4.54 ns 4.54 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.083 ns 0.083 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.83 % 1.83 % 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 18.8 ns 18.8 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 18.8 ns 18.8 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.224 ns 0.224 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.19 % 1.19 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.731 ns 0.731 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.733 ns 0.733 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.27 % 1.27 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.368 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.369 ns 0.369 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.004 ns 0.004 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.08 % 1.08 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 19.0 ns 19.0 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 19.0 ns 19.0 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.236 ns 0.236 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.24 % 1.24 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.740 ns 0.740 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.740 ns 0.740 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.005 ns 0.005 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.64 % 0.64 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.376 ns 0.376 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.375 ns 0.375 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.006 ns 0.006 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.61 % 1.61 % 4 stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4 stringa e = "123456789012345678901234567890"; auto c{e};_median 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.048 ns 0.048 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 4.27 % 4.27 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.5 ns 19.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.6 ns 19.6 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.183 ns 0.183 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.94 % 0.94 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.50 ns 4.50 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.42 ns 4.42 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.184 ns 0.184 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.10 % 4.10 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.011 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.02 % 1.02 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 20.8 ns 20.8 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.5 ns 20.5 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.06 ns 1.06 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 5.10 % 5.10 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.54 ns 4.54 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.51 ns 4.51 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.102 ns 0.102 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.23 % 2.23 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find;_mean 7.00 ns 7.00 ns 4 -std::string::find;_median 6.76 ns 6.76 ns 4 -std::string::find;_stddev 0.509 ns 0.509 ns 4 -std::string::find;_cv 7.27 % 7.27 % 4 -std::string_view::find;_mean 8.27 ns 8.27 ns 4 -std::string_view::find;_median 8.39 ns 8.39 ns 4 -std::string_view::find;_stddev 0.561 ns 0.561 ns 4 -std::string_view::find;_cv 6.78 % 6.78 % 4 -ssa::find;_mean 7.68 ns 7.68 ns 4 -ssa::find;_median 7.78 ns 7.78 ns 4 -ssa::find;_stddev 0.543 ns 0.543 ns 4 -ssa::find;_cv 7.07 % 7.07 % 4 -stringa::find;_mean 7.92 ns 7.92 ns 4 -stringa::find;_median 8.07 ns 8.07 ns 4 -stringa::find;_stddev 0.349 ns 0.349 ns 4 -stringa::find;_cv 4.41 % 4.41 % 4 -lstringa<20>::find;_mean 6.91 ns 6.91 ns 4 -lstringa<20>::find;_median 7.00 ns 7.00 ns 4 -lstringa<20>::find;_stddev 0.432 ns 0.432 ns 4 -lstringa<20>::find;_cv 6.25 % 6.25 % 4 -lstringa<40>::find;_mean 7.14 ns 7.14 ns 4 -lstringa<40>::find;_median 7.16 ns 7.16 ns 4 -lstringa<40>::find;_stddev 0.493 ns 0.493 ns 4 -lstringa<40>::find;_cv 6.90 % 6.90 % 4 +std::string::find;_mean 6.94 ns 6.94 ns 4 +std::string::find;_median 6.93 ns 6.93 ns 4 +std::string::find;_stddev 0.055 ns 0.055 ns 4 +std::string::find;_cv 0.79 % 0.79 % 4 +std::string_view::find;_mean 7.84 ns 7.84 ns 4 +std::string_view::find;_median 7.79 ns 7.79 ns 4 +std::string_view::find;_stddev 0.788 ns 0.788 ns 4 +std::string_view::find;_cv 10.04 % 10.04 % 4 +ssa::find;_mean 7.49 ns 7.49 ns 4 +ssa::find;_median 7.27 ns 7.27 ns 4 +ssa::find;_stddev 1.00 ns 1.00 ns 4 +ssa::find;_cv 13.40 % 13.40 % 4 +stringa::find;_mean 8.04 ns 8.04 ns 4 +stringa::find;_median 7.76 ns 7.77 ns 4 +stringa::find;_stddev 0.744 ns 0.744 ns 4 +stringa::find;_cv 9.26 % 9.26 % 4 +lstringa<20>::find;_mean 7.71 ns 7.71 ns 4 +lstringa<20>::find;_median 7.72 ns 7.72 ns 4 +lstringa<20>::find;_stddev 0.122 ns 0.122 ns 4 +lstringa<20>::find;_cv 1.58 % 1.58 % 4 +lstringa<40>::find;_mean 6.91 ns 6.91 ns 4 +lstringa<40>::find;_median 6.92 ns 6.92 ns 4 +lstringa<40>::find;_stddev 0.101 ns 0.101 ns 4 +lstringa<40>::find;_cv 1.46 % 1.46 % 4 ------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string copy{str_with_len_N};/15_mean 5.34 ns 5.34 ns 4 -std::string copy{str_with_len_N};/15_median 5.27 ns 5.27 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.450 ns 0.450 ns 4 -std::string copy{str_with_len_N};/15_cv 8.42 % 8.42 % 4 -std::string copy{str_with_len_N};/16_mean 24.6 ns 24.6 ns 4 -std::string copy{str_with_len_N};/16_median 24.9 ns 24.9 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.50 ns 1.50 ns 4 -std::string copy{str_with_len_N};/16_cv 6.10 % 6.10 % 4 -std::string copy{str_with_len_N};/23_mean 26.2 ns 26.2 ns 4 -std::string copy{str_with_len_N};/23_median 27.1 ns 27.1 ns 4 -std::string copy{str_with_len_N};/23_stddev 2.02 ns 2.02 ns 4 -std::string copy{str_with_len_N};/23_cv 7.71 % 7.71 % 4 -std::string copy{str_with_len_N};/24_mean 28.6 ns 28.6 ns 4 -std::string copy{str_with_len_N};/24_median 28.1 ns 28.1 ns 4 -std::string copy{str_with_len_N};/24_stddev 2.58 ns 2.58 ns 4 -std::string copy{str_with_len_N};/24_cv 9.02 % 9.02 % 4 -std::string copy{str_with_len_N};/32_mean 25.5 ns 25.5 ns 4 -std::string copy{str_with_len_N};/32_median 25.4 ns 25.4 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.77 ns 1.77 ns 4 -std::string copy{str_with_len_N};/32_cv 6.93 % 6.93 % 4 -std::string copy{str_with_len_N};/64_mean 23.9 ns 23.9 ns 4 -std::string copy{str_with_len_N};/64_median 22.9 ns 22.9 ns 4 -std::string copy{str_with_len_N};/64_stddev 2.16 ns 2.16 ns 4 -std::string copy{str_with_len_N};/64_cv 9.05 % 9.05 % 4 -std::string copy{str_with_len_N};/128_mean 25.4 ns 25.4 ns 4 -std::string copy{str_with_len_N};/128_median 24.8 ns 24.8 ns 4 -std::string copy{str_with_len_N};/128_stddev 1.30 ns 1.30 ns 4 -std::string copy{str_with_len_N};/128_cv 5.15 % 5.15 % 4 -std::string copy{str_with_len_N};/256_mean 25.1 ns 25.1 ns 4 -std::string copy{str_with_len_N};/256_median 25.0 ns 25.0 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.433 ns 0.433 ns 4 -std::string copy{str_with_len_N};/256_cv 1.73 % 1.73 % 4 -std::string copy{str_with_len_N};/512_mean 28.7 ns 28.7 ns 4 -std::string copy{str_with_len_N};/512_median 28.7 ns 28.7 ns 4 -std::string copy{str_with_len_N};/512_stddev 0.564 ns 0.564 ns 4 -std::string copy{str_with_len_N};/512_cv 1.96 % 1.96 % 4 -std::string copy{str_with_len_N};/1024_mean 46.9 ns 46.9 ns 4 -std::string copy{str_with_len_N};/1024_median 46.0 ns 46.0 ns 4 -std::string copy{str_with_len_N};/1024_stddev 2.42 ns 2.42 ns 4 -std::string copy{str_with_len_N};/1024_cv 5.17 % 5.17 % 4 -std::string copy{str_with_len_N};/2048_mean 69.5 ns 69.5 ns 4 -std::string copy{str_with_len_N};/2048_median 68.3 ns 68.3 ns 4 -std::string copy{str_with_len_N};/2048_stddev 7.70 ns 7.70 ns 4 -std::string copy{str_with_len_N};/2048_cv 11.07 % 11.07 % 4 -std::string copy{str_with_len_N};/4096_mean 118 ns 118 ns 4 -std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 4 -std::string copy{str_with_len_N};/4096_stddev 5.69 ns 5.69 ns 4 -std::string copy{str_with_len_N};/4096_cv 4.82 % 4.82 % 4 -stringa copy{str_with_len_N};/15_mean 1.11 ns 1.11 ns 4 -stringa copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.027 ns 0.027 ns 4 -stringa copy{str_with_len_N};/15_cv 2.42 % 2.42 % 4 -stringa copy{str_with_len_N};/16_mean 1.11 ns 1.11 ns 4 +std::string copy{str_with_len_N};/15_mean 4.90 ns 4.90 ns 4 +std::string copy{str_with_len_N};/15_median 4.89 ns 4.89 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.031 ns 0.031 ns 4 +std::string copy{str_with_len_N};/15_cv 0.63 % 0.63 % 4 +std::string copy{str_with_len_N};/16_mean 22.5 ns 22.5 ns 4 +std::string copy{str_with_len_N};/16_median 22.5 ns 22.5 ns 4 +std::string copy{str_with_len_N};/16_stddev 0.476 ns 0.476 ns 4 +std::string copy{str_with_len_N};/16_cv 2.12 % 2.12 % 4 +std::string copy{str_with_len_N};/23_mean 23.0 ns 23.0 ns 4 +std::string copy{str_with_len_N};/23_median 23.0 ns 23.0 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.179 ns 0.179 ns 4 +std::string copy{str_with_len_N};/23_cv 0.78 % 0.78 % 4 +std::string copy{str_with_len_N};/24_mean 23.2 ns 23.2 ns 4 +std::string copy{str_with_len_N};/24_median 22.7 ns 22.7 ns 4 +std::string copy{str_with_len_N};/24_stddev 1.35 ns 1.35 ns 4 +std::string copy{str_with_len_N};/24_cv 5.84 % 5.84 % 4 +std::string copy{str_with_len_N};/32_mean 23.1 ns 23.1 ns 4 +std::string copy{str_with_len_N};/32_median 22.5 ns 22.5 ns 4 +std::string copy{str_with_len_N};/32_stddev 1.81 ns 1.81 ns 4 +std::string copy{str_with_len_N};/32_cv 7.83 % 7.83 % 4 +std::string copy{str_with_len_N};/64_mean 22.4 ns 22.4 ns 4 +std::string copy{str_with_len_N};/64_median 22.3 ns 22.3 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.420 ns 0.420 ns 4 +std::string copy{str_with_len_N};/64_cv 1.88 % 1.88 % 4 +std::string copy{str_with_len_N};/128_mean 24.2 ns 24.2 ns 4 +std::string copy{str_with_len_N};/128_median 23.7 ns 23.7 ns 4 +std::string copy{str_with_len_N};/128_stddev 1.55 ns 1.55 ns 4 +std::string copy{str_with_len_N};/128_cv 6.40 % 6.40 % 4 +std::string copy{str_with_len_N};/256_mean 24.0 ns 24.0 ns 4 +std::string copy{str_with_len_N};/256_median 24.0 ns 24.0 ns 4 +std::string copy{str_with_len_N};/256_stddev 0.301 ns 0.301 ns 4 +std::string copy{str_with_len_N};/256_cv 1.26 % 1.26 % 4 +std::string copy{str_with_len_N};/512_mean 29.2 ns 29.2 ns 4 +std::string copy{str_with_len_N};/512_median 29.3 ns 29.3 ns 4 +std::string copy{str_with_len_N};/512_stddev 0.426 ns 0.426 ns 4 +std::string copy{str_with_len_N};/512_cv 1.46 % 1.46 % 4 +std::string copy{str_with_len_N};/1024_mean 48.3 ns 48.3 ns 4 +std::string copy{str_with_len_N};/1024_median 47.8 ns 47.9 ns 4 +std::string copy{str_with_len_N};/1024_stddev 1.20 ns 1.20 ns 4 +std::string copy{str_with_len_N};/1024_cv 2.48 % 2.48 % 4 +std::string copy{str_with_len_N};/2048_mean 131 ns 131 ns 4 +std::string copy{str_with_len_N};/2048_median 130 ns 130 ns 4 +std::string copy{str_with_len_N};/2048_stddev 6.29 ns 6.29 ns 4 +std::string copy{str_with_len_N};/2048_cv 4.80 % 4.80 % 4 +std::string copy{str_with_len_N};/4096_mean 155 ns 155 ns 4 +std::string copy{str_with_len_N};/4096_median 155 ns 155 ns 4 +std::string copy{str_with_len_N};/4096_stddev 0.748 ns 0.748 ns 4 +std::string copy{str_with_len_N};/4096_cv 0.48 % 0.48 % 4 +stringa copy{str_with_len_N};/15_mean 1.12 ns 1.12 ns 4 +stringa copy{str_with_len_N};/15_median 1.12 ns 1.12 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.012 ns 0.012 ns 4 +stringa copy{str_with_len_N};/15_cv 1.04 % 1.04 % 4 +stringa copy{str_with_len_N};/16_mean 1.12 ns 1.12 ns 4 stringa copy{str_with_len_N};/16_median 1.12 ns 1.12 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.013 ns 0.013 ns 4 -stringa copy{str_with_len_N};/16_cv 1.18 % 1.18 % 4 -stringa copy{str_with_len_N};/23_mean 1.13 ns 1.13 ns 4 -stringa copy{str_with_len_N};/23_median 1.12 ns 1.12 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.022 ns 0.022 ns 4 -stringa copy{str_with_len_N};/23_cv 1.94 % 1.94 % 4 -stringa copy{str_with_len_N};/24_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/24_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.087 ns 0.087 ns 4 -stringa copy{str_with_len_N};/24_cv 0.54 % 0.54 % 4 -stringa copy{str_with_len_N};/32_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/32_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.086 ns 0.086 ns 4 -stringa copy{str_with_len_N};/32_cv 0.53 % 0.53 % 4 -stringa copy{str_with_len_N};/64_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/64_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.080 ns 0.080 ns 4 -stringa copy{str_with_len_N};/64_cv 0.50 % 0.50 % 4 -stringa copy{str_with_len_N};/128_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/128_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.288 ns 0.288 ns 4 -stringa copy{str_with_len_N};/128_cv 1.80 % 1.80 % 4 -stringa copy{str_with_len_N};/256_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/256_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.151 ns 0.151 ns 4 -stringa copy{str_with_len_N};/256_cv 0.94 % 0.94 % 4 -stringa copy{str_with_len_N};/512_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/512_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.043 ns 0.043 ns 4 -stringa copy{str_with_len_N};/512_cv 0.27 % 0.27 % 4 -stringa copy{str_with_len_N};/1024_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/1024_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.192 ns 0.192 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.20 % 1.20 % 4 -stringa copy{str_with_len_N};/2048_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/2048_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.034 ns 0.034 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.21 % 0.21 % 4 -stringa copy{str_with_len_N};/4096_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/4096_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.046 ns 0.046 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.29 % 0.29 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.45 ns 4.45 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.42 ns 4.42 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.094 ns 0.094 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.10 % 2.10 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.60 ns 4.60 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.41 ns 4.41 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.431 ns 0.431 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 9.38 % 9.38 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 4.53 ns 4.53 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 4.50 ns 4.50 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.095 ns 0.095 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 2.09 % 2.09 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 24.4 ns 24.4 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.254 ns 0.254 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.04 % 1.04 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 23.5 ns 23.5 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 23.6 ns 23.6 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.375 ns 0.375 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 1.60 % 1.60 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 25.7 ns 25.7 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 25.8 ns 25.8 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.246 ns 0.246 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 0.96 % 0.96 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 26.2 ns 26.2 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 26.2 ns 26.2 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.718 ns 0.718 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 2.74 % 2.74 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 27.1 ns 27.1 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 26.9 ns 26.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 0.473 ns 0.473 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 1.75 % 1.75 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 32.1 ns 32.1 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 31.6 ns 31.6 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 2.66 ns 2.66 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 8.28 % 8.28 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 54.7 ns 54.7 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 54.6 ns 54.6 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.72 ns 2.72 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 4.97 % 4.97 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 62.1 ns 62.1 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 62.1 ns 62.1 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 1.03 ns 1.03 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 1.66 % 1.66 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 87.4 ns 87.4 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 85.0 ns 85.0 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 4.92 ns 4.92 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 5.63 % 5.63 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 4.78 ns 4.78 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 4.80 ns 4.80 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.057 ns 0.057 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.20 % 1.19 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 4.84 ns 4.84 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 4.84 ns 4.84 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.029 ns 0.029 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 0.60 % 0.60 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.93 ns 4.93 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 4.86 ns 4.86 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.200 ns 0.200 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 4.06 % 4.06 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 4.79 ns 4.79 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 4.80 ns 4.80 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.090 ns 0.090 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.87 % 1.87 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.56 ns 4.56 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.55 ns 4.55 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.191 ns 0.191 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 4.19 % 4.19 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 6.35 ns 6.35 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 6.44 ns 6.44 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.314 ns 0.314 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 4.95 % 4.95 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 6.59 ns 6.59 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 6.33 ns 6.33 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.589 ns 0.589 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 8.94 % 8.94 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 17.2 ns 17.2 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 17.1 ns 17.1 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.067 ns 0.067 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 0.39 % 0.39 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.1 ns 10.1 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 10.1 ns 10.1 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.141 ns 0.141 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.40 % 1.40 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 56.4 ns 56.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 56.8 ns 56.8 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 1.89 ns 1.89 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 3.35 % 3.35 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 67.1 ns 67.1 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 65.5 ns 65.5 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 3.62 ns 3.62 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 5.40 % 5.40 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 88.7 ns 88.7 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 88.7 ns 88.7 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 0.924 ns 0.924 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 1.04 % 1.04 % 4 +stringa copy{str_with_len_N};/16_stddev 0.017 ns 0.017 ns 4 +stringa copy{str_with_len_N};/16_cv 1.52 % 1.52 % 4 +stringa copy{str_with_len_N};/23_mean 1.11 ns 1.11 ns 4 +stringa copy{str_with_len_N};/23_median 1.11 ns 1.11 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.007 ns 0.007 ns 4 +stringa copy{str_with_len_N};/23_cv 0.65 % 0.65 % 4 +stringa copy{str_with_len_N};/24_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/24_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.083 ns 0.083 ns 4 +stringa copy{str_with_len_N};/24_cv 0.51 % 0.51 % 4 +stringa copy{str_with_len_N};/32_mean 16.2 ns 16.2 ns 4 +stringa copy{str_with_len_N};/32_median 16.2 ns 16.2 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.050 ns 0.050 ns 4 +stringa copy{str_with_len_N};/32_cv 0.31 % 0.31 % 4 +stringa copy{str_with_len_N};/64_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/64_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.113 ns 0.113 ns 4 +stringa copy{str_with_len_N};/64_cv 0.70 % 0.70 % 4 +stringa copy{str_with_len_N};/128_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/128_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.071 ns 0.071 ns 4 +stringa copy{str_with_len_N};/128_cv 0.44 % 0.44 % 4 +stringa copy{str_with_len_N};/256_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/256_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.048 ns 0.048 ns 4 +stringa copy{str_with_len_N};/256_cv 0.29 % 0.29 % 4 +stringa copy{str_with_len_N};/512_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/512_median 16.2 ns 16.2 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.113 ns 0.113 ns 4 +stringa copy{str_with_len_N};/512_cv 0.70 % 0.70 % 4 +stringa copy{str_with_len_N};/1024_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/1024_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.102 ns 0.102 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.63 % 0.63 % 4 +stringa copy{str_with_len_N};/2048_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/2048_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.094 ns 0.094 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.58 % 0.58 % 4 +stringa copy{str_with_len_N};/4096_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/4096_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.106 ns 0.106 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.65 % 0.65 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 4.52 ns 4.52 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 4.51 ns 4.51 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.026 ns 0.026 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 0.58 % 0.58 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 4.53 ns 4.53 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 4.54 ns 4.54 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.088 ns 0.088 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.95 % 1.95 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 5.14 ns 5.14 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 4.85 ns 4.85 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.755 ns 0.755 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 14.68 % 14.68 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 26.2 ns 26.2 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 26.2 ns 26.2 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.963 ns 0.963 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 3.68 % 3.68 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 23.9 ns 23.9 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 24.1 ns 24.1 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.542 ns 0.542 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 2.26 % 2.26 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 25.4 ns 25.4 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 25.4 ns 25.4 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.391 ns 0.391 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.54 % 1.54 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 26.9 ns 26.9 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.218 ns 0.218 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 0.81 % 0.81 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 26.9 ns 26.9 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 26.8 ns 26.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 0.683 ns 0.683 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 2.54 % 2.54 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 30.4 ns 30.4 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 30.3 ns 30.3 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 0.632 ns 0.632 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 2.08 % 2.08 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 110 ns 110 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 108 ns 108 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 7.17 ns 7.17 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 6.49 % 6.49 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 118 ns 118 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 117 ns 117 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 5.11 ns 5.11 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 4.33 % 4.33 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 135 ns 135 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 135 ns 135 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 3.10 ns 3.10 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 2.30 % 2.30 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 4.99 ns 4.99 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 4.95 ns 4.95 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.198 ns 0.198 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 3.96 % 3.96 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 4.88 ns 4.88 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 4.88 ns 4.88 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.077 ns 0.077 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 1.59 % 1.59 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 4.82 ns 4.82 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 4.82 ns 4.82 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.058 ns 0.058 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 1.19 % 1.19 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 4.86 ns 4.86 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 4.83 ns 4.83 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.074 ns 0.074 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 1.52 % 1.52 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 4.58 ns 4.58 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 4.59 ns 4.59 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.057 ns 0.057 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.23 % 1.23 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 6.00 ns 6.00 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 5.98 ns 5.98 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.076 ns 0.076 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 1.27 % 1.27 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 6.38 ns 6.38 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 6.39 ns 6.39 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.085 ns 0.085 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 1.34 % 1.34 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 8.50 ns 8.50 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 8.50 ns 8.50 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.104 ns 0.104 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 1.22 % 1.22 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 10.8 ns 10.8 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 10.8 ns 10.8 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.119 ns 0.119 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.11 % 1.11 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 106 ns 106 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 106 ns 106 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 1.44 ns 1.44 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 1.36 % 1.36 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 117 ns 117 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 115 ns 115 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 3.43 ns 3.43 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.94 % 2.94 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 127 ns 127 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 127 ns 127 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 0.729 ns 0.729 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 0.57 % 0.57 % 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 26.4 ns 26.4 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.4 ns 26.4 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.181 ns 0.181 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.68 % 0.68 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.7 ns 14.7 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.6 ns 14.6 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.292 ns 0.292 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.98 % 1.98 % 4 -stringa s = "123456789"; int res = s.to_int_mean 12.7 ns 12.7 ns 4 -stringa s = "123456789"; int res = s.to_int_median 12.6 ns 12.6 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.195 ns 0.195 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 1.54 % 1.54 % 4 -ssa s = "123456789"; int res = s.to_int_mean 13.1 ns 13.1 ns 4 -ssa s = "123456789"; int res = s.to_int_median 13.2 ns 13.2 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.454 ns 0.454 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 3.45 % 3.45 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 12.6 ns 12.6 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 12.7 ns 12.7 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.078 ns 0.078 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 0.62 % 0.62 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 26.7 ns 26.7 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.6 ns 26.6 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.602 ns 0.602 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.26 % 2.26 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 15.1 ns 15.1 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 15.2 ns 15.2 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.313 ns 0.313 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.07 % 2.07 % 4 +stringa s = "123456789"; int res = s.to_int_mean 12.9 ns 12.9 ns 4 +stringa s = "123456789"; int res = s.to_int_median 12.9 ns 12.9 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.261 ns 0.261 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 2.03 % 2.03 % 4 +ssa s = "123456789"; int res = s.to_int_mean 13.0 ns 13.0 ns 4 +ssa s = "123456789"; int res = s.to_int_median 12.7 ns 12.7 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.709 ns 0.709 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 5.45 % 5.45 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 13.0 ns 13.0 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 12.9 ns 12.9 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.406 ns 0.406 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 3.12 % 3.12 % 4 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.2 ns 23.2 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.3 ns 23.3 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.347 ns 0.347 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.49 % 1.49 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.53 ns 9.53 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.55 ns 9.55 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.142 ns 0.142 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.49 % 1.49 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 11.4 ns 11.4 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 11.4 ns 11.4 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.258 ns 0.258 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 2.26 % 2.26 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 11.2 ns 11.2 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 11.1 ns 11.1 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.524 ns 0.524 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 4.68 % 4.68 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 11.3 ns 11.3 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 11.2 ns 11.2 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.238 ns 0.238 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 2.11 % 2.11 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.9 ns 23.9 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.8 ns 23.8 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.256 ns 0.256 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.07 % 1.07 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.72 ns 9.72 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.75 ns 9.75 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.151 ns 0.151 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.55 % 1.55 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 11.6 ns 11.6 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 11.6 ns 11.6 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.187 ns 0.187 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.61 % 1.61 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 12.7 ns 12.7 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 12.8 ns 12.8 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.232 ns 0.232 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.83 % 1.83 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 11.4 ns 11.4 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 11.4 ns 11.4 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.139 ns 0.139 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.22 % 1.22 % 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 28.9 ns 28.9 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.5 ns 28.5 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.39 ns 1.39 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 4.81 % 4.81 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 18.9 ns 18.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 18.9 ns 18.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.150 ns 0.150 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.79 % 0.79 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 14.9 ns 14.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 14.8 ns 14.8 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.215 ns 0.215 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.44 % 1.44 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.1 ns 29.1 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.450 ns 0.450 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.56 % 1.56 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 19.2 ns 19.2 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 19.2 ns 19.2 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.301 ns 0.301 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.57 % 1.57 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 15.2 ns 15.2 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 15.2 ns 15.2 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.166 ns 0.166 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.09 % 1.09 % 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 66.7 ns 66.7 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 64.6 ns 64.6 ns 4 std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.4 ns 64.4 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 5.07 ns 5.07 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 7.59 % 7.59 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.9 ns 24.9 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.0 ns 25.0 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.357 ns 0.357 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.44 % 1.44 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.4 ns 25.4 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 25.5 ns 25.5 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.469 ns 0.469 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.85 % 1.85 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.782 ns 0.782 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.21 % 1.21 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 25.0 ns 25.0 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.1 ns 25.1 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.414 ns 0.414 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.65 % 1.65 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.8 ns 25.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 25.7 ns 25.7 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.186 ns 0.186 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 0.72 % 0.72 % 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 1382 ns 1382 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1383 ns 1384 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 26.3 ns 26.3 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.90 % 1.90 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 347 ns 347 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 345 ns 345 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 9.44 ns 9.44 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 2.72 % 2.72 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 363 ns 363 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 348 ns 348 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 38.6 ns 38.6 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 10.63 % 10.63 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 249 ns 249 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 237 ns 237 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 26.4 ns 26.4 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 10.60 % 10.60 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 213 ns 213 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 216 ns 216 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 21.7 ns 21.7 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 10.17 % 10.17 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 135 ns 135 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 135 ns 135 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.578 ns 0.578 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.43 % 0.43 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 1350 ns 1350 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 1352 ns 1352 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 22.2 ns 22.2 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.65 % 1.65 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 392 ns 392 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 390 ns 390 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 8.21 ns 8.21 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.10 % 2.10 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 394 ns 394 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 393 ns 393 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 8.99 ns 8.98 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.28 % 2.28 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 274 ns 274 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 276 ns 276 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 26.1 ns 26.1 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 9.52 % 9.52 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 261 ns 261 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 254 ns 254 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 20.4 ns 20.4 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.83 % 7.83 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 138 ns 138 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 138 ns 138 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.849 ns 0.849 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.61 % 0.61 % 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 1371 ns 1371 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1376 ns 1376 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 17.3 ns 17.3 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.26 % 1.26 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1266 ns 1266 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1236 ns 1236 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 69.6 ns 69.6 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 5.50 % 5.50 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 413 ns 413 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 411 ns 411 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.7 ns 12.7 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.07 % 3.07 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 315 ns 315 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 315 ns 315 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.49 ns 5.49 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.74 % 1.74 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 287 ns 287 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 284 ns 284 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.43 ns 9.43 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.29 % 3.29 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 231 ns 231 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 232 ns 232 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.36 ns 4.36 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.88 % 1.88 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 1357 ns 1357 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1358 ns 1358 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 8.17 ns 8.17 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 0.60 % 0.60 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1293 ns 1293 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1277 ns 1277 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 39.7 ns 39.7 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.07 % 3.07 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 481 ns 481 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 480 ns 480 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.35 ns 8.35 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.74 % 1.74 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 357 ns 357 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 360 ns 360 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.2 ns 17.2 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.81 % 4.81 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 329 ns 329 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 336 ns 336 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.7 ns 18.7 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.66 % 5.66 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 236 ns 236 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 235 ns 235 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.13 ns 2.13 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.90 % 0.90 % 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 116458 ns 116458 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 116426 ns 116426 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 5311 ns 5311 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.56 % 4.56 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71688 ns 71688 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71654 ns 71655 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 510 ns 510 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.71 % 0.71 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 40461 ns 40462 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 40387 ns 40387 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 626 ns 626 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.55 % 1.55 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24967 ns 24967 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 25352 ns 25352 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1046 ns 1046 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.19 % 4.19 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17099 ns 17099 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16390 ns 16390 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2371 ns 2371 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 13.87 % 13.87 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18583 ns 18583 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18486 ns 18486 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 932 ns 932 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.01 % 5.01 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 74335 ns 74335 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 73702 ns 73702 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1557 ns 1557 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.09 % 2.09 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71474 ns 71475 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71368 ns 71368 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1224 ns 1224 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.71 % 1.71 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19267 ns 19267 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19214 ns 19214 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 276 ns 276 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.43 % 1.43 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19355 ns 19355 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18776 ns 18776 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1633 ns 1633 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 8.44 % 8.44 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17654 ns 17654 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17215 ns 17215 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1690 ns 1690 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 9.57 % 9.57 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15871 ns 15871 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15847 ns 15847 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 233 ns 233 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.47 % 1.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 1515 ns 1515 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1508 ns 1508 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 76.5 ns 76.5 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 5.05 % 5.05 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1485 ns 1485 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1443 ns 1443 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 111 ns 111 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 7.49 % 7.49 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 470 ns 470 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 472 ns 472 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.83 ns 8.83 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.88 % 1.88 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 418 ns 418 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 400 ns 400 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 37.2 ns 37.2 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 8.88 % 8.88 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 367 ns 367 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 366 ns 366 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.59 ns 8.59 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.34 % 2.34 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 1407 ns 1407 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 1398 ns 1398 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 50.0 ns 50.0 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 3.55 % 3.55 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 1382 ns 1382 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 1384 ns 1384 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 38.6 ns 38.6 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 2.79 % 2.79 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 534 ns 534 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 531 ns 531 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 7.74 ns 7.74 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.45 % 1.45 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 436 ns 436 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 440 ns 440 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 16.1 ns 16.1 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.70 % 3.70 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 404 ns 404 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 407 ns 407 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.4 ns 12.4 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.07 % 3.07 % 4 lstringa<1024> str; ... str += str_var1 + str_var2;_mean 290 ns 290 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 290 ns 290 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 2.88 ns 2.88 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 0.99 % 0.99 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 289 ns 289 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.47 ns 6.47 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.23 % 2.23 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3014 ns 3014 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3007 ns 3007 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 76.9 ns 76.9 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 2.55 % 2.55 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 472 ns 472 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 471 ns 471 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 4.39 ns 4.39 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 0.93 % 0.93 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1422 ns 1422 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1406 ns 1406 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 56.2 ns 56.2 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.95 % 3.95 % 4 -std::string str = std::format("test = {} times", k);_mean 1174 ns 1174 ns 4 -std::string str = std::format("test = {} times", k);_median 1166 ns 1166 ns 4 -std::string str = std::format("test = {} times", k);_stddev 44.0 ns 44.0 ns 4 -std::string str = std::format("test = {} times", k);_cv 3.75 % 3.75 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1387 ns 1387 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1366 ns 1366 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 63.5 ns 63.5 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 4.58 % 4.58 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1056 ns 1056 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1051 ns 1051 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 33.1 ns 33.1 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 3.13 % 3.13 % 4 -lstringa<8> str = "test = " + k + " times";_mean 294 ns 294 ns 4 -lstringa<8> str = "test = " + k + " times";_median 289 ns 289 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 16.0 ns 16.0 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 5.44 % 5.44 % 4 -lstringa<32> str = "test = " + k + " times";_mean 151 ns 151 ns 4 -lstringa<32> str = "test = " + k + " times";_median 152 ns 152 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.76 ns 2.76 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.83 % 1.83 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 3004 ns 3004 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 2999 ns 2999 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 26.0 ns 26.0 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 0.86 % 0.86 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 480 ns 480 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 481 ns 481 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 13.2 ns 13.2 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 2.75 % 2.75 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1412 ns 1412 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1417 ns 1417 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 21.1 ns 21.1 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.50 % 1.50 % 4 +std::string str = std::format("test = {} times", k);_mean 1166 ns 1166 ns 4 +std::string str = std::format("test = {} times", k);_median 1169 ns 1169 ns 4 +std::string str = std::format("test = {} times", k);_stddev 14.7 ns 14.7 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.26 % 1.26 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 1407 ns 1407 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 1409 ns 1409 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 7.51 ns 7.51 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 0.53 % 0.53 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1015 ns 1015 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1013 ns 1013 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 27.3 ns 27.3 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 2.69 % 2.69 % 4 +lstringa<8> str = "test = " + k + " times";_mean 309 ns 309 ns 4 +lstringa<8> str = "test = " + k + " times";_median 309 ns 309 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 6.88 ns 6.88 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 2.22 % 2.22 % 4 +lstringa<32> str = "test = " + k + " times";_mean 154 ns 154 ns 4 +lstringa<32> str = "test = " + k + " times";_median 154 ns 154 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 2.16 ns 2.16 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.40 % 1.40 % 4 stringa str = "test = " + k + " times";_mean 145 ns 145 ns 4 -stringa str = "test = " + k + " times";_median 146 ns 146 ns 4 -stringa str = "test = " + k + " times";_stddev 1.59 ns 1.59 ns 4 -stringa str = "test = " + k + " times";_cv 1.09 % 1.09 % 4 +stringa str = "test = " + k + " times";_median 145 ns 145 ns 4 +stringa str = "test = " + k + " times";_stddev 1.63 ns 1.63 ns 4 +stringa str = "test = " + k + " times";_cv 1.12 % 1.12 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 271 ns 271 ns 4 -std::string::find + substr + std::strtol_median 267 ns 267 ns 4 -std::string::find + substr + std::strtol_stddev 7.51 ns 7.51 ns 4 -std::string::find + substr + std::strtol_cv 2.77 % 2.77 % 4 +std::string::find + substr + std::strtol_mean 267 ns 267 ns 4 +std::string::find + substr + std::strtol_median 266 ns 266 ns 4 +std::string::find + substr + std::strtol_stddev 2.87 ns 2.87 ns 4 +std::string::find + substr + std::strtol_cv 1.08 % 1.08 % 4 ssa::splitter + ssa::as_int_mean 152 ns 152 ns 4 -ssa::splitter + ssa::as_int_median 153 ns 153 ns 4 -ssa::splitter + ssa::as_int_stddev 1.22 ns 1.22 ns 4 -ssa::splitter + ssa::as_int_cv 0.80 % 0.80 % 4 +ssa::splitter + ssa::as_int_median 152 ns 152 ns 4 +ssa::splitter + ssa::as_int_stddev 2.93 ns 2.93 ns 4 +ssa::splitter + ssa::as_int_cv 1.93 % 1.93 % 4 ssa::splitf + functor_mean 200 ns 200 ns 4 ssa::splitf + functor_median 199 ns 199 ns 4 -ssa::splitf + functor_stddev 5.26 ns 5.26 ns 4 -ssa::splitf + functor_cv 2.63 % 2.63 % 4 +ssa::splitf + functor_stddev 2.79 ns 2.79 ns 4 +ssa::splitf + functor_cv 1.39 % 1.39 % 4 -- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000 -Naive (and wrong) replace symbols with std::string find + replace_mean 846 ns 846 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 850 ns 850 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 9.77 ns 9.77 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 1.15 % 1.15 % 4 -replace symbols with std::string find_first_of + replace_mean 2461 ns 2461 ns 4 -replace symbols with std::string find_first_of + replace_median 2404 ns 2404 ns 4 -replace symbols with std::string find_first_of + replace_stddev 166 ns 166 ns 4 -replace symbols with std::string find_first_of + replace_cv 6.73 % 6.73 % 4 -replace symbols with std::string_view find_first_of + copy_mean 1085 ns 1085 ns 4 -replace symbols with std::string_view find_first_of + copy_median 1086 ns 1086 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 15.3 ns 15.3 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 1.41 % 1.41 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1294 ns 1294 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1298 ns 1298 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 20.7 ns 20.7 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 1.60 % 1.60 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1076 ns 1076 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1051 ns 1051 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 71.8 ns 71.8 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 6.68 % 6.68 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1042 ns 1042 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1008 ns 1008 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 73.1 ns 73.1 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 7.01 % 7.01 % 4 -replace const symbols with string expressions and memorization of all search results_mean 889 ns 889 ns 4 -replace const symbols with string expressions and memorization of all search results_median 891 ns 891 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 9.30 ns 9.30 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 1.05 % 1.05 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 863 ns 863 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 868 ns 868 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 18.1 ns 18.1 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 2.10 % 2.10 % 4 +replace symbols with std::string find_first_of + replace_mean 2429 ns 2429 ns 4 +replace symbols with std::string find_first_of + replace_median 2426 ns 2426 ns 4 +replace symbols with std::string find_first_of + replace_stddev 38.0 ns 38.0 ns 4 +replace symbols with std::string find_first_of + replace_cv 1.56 % 1.56 % 4 +replace symbols with std::string_view find_first_of + copy_mean 1090 ns 1090 ns 4 +replace symbols with std::string_view find_first_of + copy_median 1089 ns 1089 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 16.9 ns 16.9 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 1.55 % 1.55 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1298 ns 1298 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1293 ns 1293 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 11.3 ns 11.3 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 0.87 % 0.87 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1046 ns 1046 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1044 ns 1044 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 8.77 ns 8.77 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 0.84 % 0.84 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1045 ns 1045 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1039 ns 1039 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 17.9 ns 17.9 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 1.71 % 1.71 % 4 +replace const symbols with string expressions and memorization of all search results_mean 888 ns 888 ns 4 +replace const symbols with string expressions and memorization of all search results_median 889 ns 889 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 3.08 ns 3.08 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 0.35 % 0.35 % 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 170 ns 170 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 168 ns 168 ns 4 Short Naive (and wrong) replace symbols with std::string find + replace_median 168 ns 168 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 10.2 ns 10.2 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 5.97 % 5.97 % 4 -Short replace symbols with std::string find_first_of + replace_mean 314 ns 314 ns 4 -Short replace symbols with std::string find_first_of + replace_median 312 ns 312 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 4.98 ns 4.98 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.59 % 1.59 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 165 ns 165 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 166 ns 166 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.45 ns 2.45 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 1.48 % 1.48 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 193 ns 193 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 193 ns 193 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.08 ns 3.08 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 1.59 % 1.59 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 186 ns 186 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 187 ns 187 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 3.78 ns 3.78 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.03 % 2.03 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 135 ns 135 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.49 ns 6.49 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.86 % 3.86 % 4 +Short replace symbols with std::string find_first_of + replace_mean 320 ns 320 ns 4 +Short replace symbols with std::string find_first_of + replace_median 322 ns 322 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 6.82 ns 6.81 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 2.13 % 2.13 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 164 ns 164 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 162 ns 162 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 3.51 ns 3.51 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 2.14 % 2.14 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 184 ns 184 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 183 ns 183 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.77 ns 4.77 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 2.59 % 2.59 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 194 ns 194 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 194 ns 194 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 3.39 ns 3.39 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 1.74 % 1.74 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 133 ns 133 ns 4 Short replace const symbols with string expressions and without remembering all search results_median 133 ns 133 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 6.73 ns 6.73 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 4.98 % 4.98 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 152 ns 152 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 151 ns 151 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 1.55 ns 1.55 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.02 % 1.02 % 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 2.06 ns 2.06 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 1.55 % 1.55 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 148 ns 148 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 148 ns 148 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 2.11 ns 2.11 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 1.43 % 1.43 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 160 ns 160 ns 4 -replace bb to ---- in std::string|64_median 160 ns 160 ns 4 -replace bb to ---- in std::string|64_stddev 3.48 ns 3.48 ns 4 -replace bb to ---- in std::string|64_cv 2.17 % 2.17 % 4 -replace bb to ---- in std::string|256_mean 522 ns 522 ns 4 -replace bb to ---- in std::string|256_median 524 ns 524 ns 4 -replace bb to ---- in std::string|256_stddev 8.48 ns 8.48 ns 4 -replace bb to ---- in std::string|256_cv 1.63 % 1.63 % 4 -replace bb to ---- in std::string|512_mean 1021 ns 1021 ns 4 -replace bb to ---- in std::string|512_median 1022 ns 1022 ns 4 -replace bb to ---- in std::string|512_stddev 31.8 ns 31.8 ns 4 -replace bb to ---- in std::string|512_cv 3.11 % 3.11 % 4 -replace bb to ---- in std::string|1024_mean 2275 ns 2275 ns 4 -replace bb to ---- in std::string|1024_median 2255 ns 2255 ns 4 -replace bb to ---- in std::string|1024_stddev 187 ns 187 ns 4 -replace bb to ---- in std::string|1024_cv 8.21 % 8.21 % 4 -replace bb to ---- in std::string|2048_mean 6028 ns 6028 ns 4 -replace bb to ---- in std::string|2048_median 5940 ns 5940 ns 4 -replace bb to ---- in std::string|2048_stddev 544 ns 544 ns 4 -replace bb to ---- in std::string|2048_cv 9.02 % 9.02 % 4 -replace bb to ---- in lstringa<8>|64_mean 136 ns 136 ns 4 -replace bb to ---- in lstringa<8>|64_median 134 ns 134 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 4.74 ns 4.74 ns 4 -replace bb to ---- in lstringa<8>|64_cv 3.48 % 3.48 % 4 -replace bb to ---- in lstringa<8>|256_mean 449 ns 449 ns 4 -replace bb to ---- in lstringa<8>|256_median 438 ns 438 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 25.2 ns 25.2 ns 4 -replace bb to ---- in lstringa<8>|256_cv 5.60 % 5.60 % 4 -replace bb to ---- in lstringa<8>|512_mean 864 ns 864 ns 4 -replace bb to ---- in lstringa<8>|512_median 837 ns 837 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 71.1 ns 71.1 ns 4 -replace bb to ---- in lstringa<8>|512_cv 8.23 % 8.23 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1732 ns 1732 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1735 ns 1735 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 83.6 ns 83.6 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 4.82 % 4.82 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3799 ns 3799 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3777 ns 3777 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 191 ns 191 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 5.04 % 5.04 % 4 -replace bb to ---- by init stringa|64_mean 100 ns 100 ns 4 -replace bb to ---- by init stringa|64_median 96.5 ns 96.5 ns 4 -replace bb to ---- by init stringa|64_stddev 9.09 ns 9.09 ns 4 -replace bb to ---- by init stringa|64_cv 9.06 % 9.06 % 4 -replace bb to ---- by init stringa|256_mean 304 ns 304 ns 4 -replace bb to ---- by init stringa|256_median 301 ns 301 ns 4 -replace bb to ---- by init stringa|256_stddev 11.6 ns 11.6 ns 4 -replace bb to ---- by init stringa|256_cv 3.83 % 3.83 % 4 -replace bb to ---- by init stringa|512_mean 693 ns 693 ns 4 -replace bb to ---- by init stringa|512_median 691 ns 691 ns 4 -replace bb to ---- by init stringa|512_stddev 7.00 ns 7.00 ns 4 -replace bb to ---- by init stringa|512_cv 1.01 % 1.01 % 4 -replace bb to ---- by init stringa|1024_mean 1461 ns 1461 ns 4 -replace bb to ---- by init stringa|1024_median 1468 ns 1468 ns 4 -replace bb to ---- by init stringa|1024_stddev 21.7 ns 21.7 ns 4 -replace bb to ---- by init stringa|1024_cv 1.48 % 1.48 % 4 -replace bb to ---- by init stringa|2048_mean 2974 ns 2974 ns 4 -replace bb to ---- by init stringa|2048_median 2987 ns 2987 ns 4 -replace bb to ---- by init stringa|2048_stddev 30.1 ns 30.1 ns 4 -replace bb to ---- by init stringa|2048_cv 1.01 % 1.01 % 4 +replace bb to ---- in std::string|64_mean 161 ns 161 ns 4 +replace bb to ---- in std::string|64_median 161 ns 161 ns 4 +replace bb to ---- in std::string|64_stddev 2.11 ns 2.11 ns 4 +replace bb to ---- in std::string|64_cv 1.30 % 1.30 % 4 +replace bb to ---- in std::string|256_mean 545 ns 545 ns 4 +replace bb to ---- in std::string|256_median 546 ns 546 ns 4 +replace bb to ---- in std::string|256_stddev 4.10 ns 4.09 ns 4 +replace bb to ---- in std::string|256_cv 0.75 % 0.75 % 4 +replace bb to ---- in std::string|512_mean 1067 ns 1067 ns 4 +replace bb to ---- in std::string|512_median 1061 ns 1061 ns 4 +replace bb to ---- in std::string|512_stddev 49.6 ns 49.6 ns 4 +replace bb to ---- in std::string|512_cv 4.65 % 4.65 % 4 +replace bb to ---- in std::string|1024_mean 2581 ns 2581 ns 4 +replace bb to ---- in std::string|1024_median 2549 ns 2549 ns 4 +replace bb to ---- in std::string|1024_stddev 217 ns 217 ns 4 +replace bb to ---- in std::string|1024_cv 8.41 % 8.41 % 4 +replace bb to ---- in std::string|2048_mean 6211 ns 6211 ns 4 +replace bb to ---- in std::string|2048_median 6292 ns 6292 ns 4 +replace bb to ---- in std::string|2048_stddev 494 ns 494 ns 4 +replace bb to ---- in std::string|2048_cv 7.95 % 7.95 % 4 +replace bb to ---- in lstringa<8>|64_mean 139 ns 139 ns 4 +replace bb to ---- in lstringa<8>|64_median 140 ns 140 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 2.49 ns 2.49 ns 4 +replace bb to ---- in lstringa<8>|64_cv 1.79 % 1.79 % 4 +replace bb to ---- in lstringa<8>|256_mean 429 ns 429 ns 4 +replace bb to ---- in lstringa<8>|256_median 430 ns 430 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 2.23 ns 2.23 ns 4 +replace bb to ---- in lstringa<8>|256_cv 0.52 % 0.52 % 4 +replace bb to ---- in lstringa<8>|512_mean 814 ns 814 ns 4 +replace bb to ---- in lstringa<8>|512_median 813 ns 813 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 8.44 ns 8.44 ns 4 +replace bb to ---- in lstringa<8>|512_cv 1.04 % 1.04 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1687 ns 1687 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1696 ns 1696 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 27.7 ns 27.7 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.64 % 1.64 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3197 ns 3197 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3181 ns 3181 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 39.9 ns 39.9 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 1.25 % 1.25 % 4 +replace bb to ---- by init stringa|64_mean 97.9 ns 97.9 ns 4 +replace bb to ---- by init stringa|64_median 97.3 ns 97.3 ns 4 +replace bb to ---- by init stringa|64_stddev 2.12 ns 2.12 ns 4 +replace bb to ---- by init stringa|64_cv 2.17 % 2.17 % 4 +replace bb to ---- by init stringa|256_mean 307 ns 307 ns 4 +replace bb to ---- by init stringa|256_median 307 ns 307 ns 4 +replace bb to ---- by init stringa|256_stddev 3.74 ns 3.74 ns 4 +replace bb to ---- by init stringa|256_cv 1.22 % 1.22 % 4 +replace bb to ---- by init stringa|512_mean 753 ns 753 ns 4 +replace bb to ---- by init stringa|512_median 754 ns 754 ns 4 +replace bb to ---- by init stringa|512_stddev 32.1 ns 32.1 ns 4 +replace bb to ---- by init stringa|512_cv 4.27 % 4.27 % 4 +replace bb to ---- by init stringa|1024_mean 1562 ns 1562 ns 4 +replace bb to ---- by init stringa|1024_median 1553 ns 1553 ns 4 +replace bb to ---- by init stringa|1024_stddev 59.7 ns 59.7 ns 4 +replace bb to ---- by init stringa|1024_cv 3.82 % 3.82 % 4 +replace bb to ---- by init stringa|2048_mean 3081 ns 3081 ns 4 +replace bb to ---- by init stringa|2048_median 3085 ns 3085 ns 4 +replace bb to ---- by init stringa|2048_stddev 25.1 ns 25.1 ns 4 +replace bb to ---- by init stringa|2048_cv 0.81 % 0.81 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 122 ns 122 ns 4 +replace bb to -- in std::string|64_mean 123 ns 123 ns 4 replace bb to -- in std::string|64_median 123 ns 123 ns 4 -replace bb to -- in std::string|64_stddev 2.46 ns 2.46 ns 4 -replace bb to -- in std::string|64_cv 2.01 % 2.01 % 4 -replace bb to -- in std::string|256_mean 403 ns 403 ns 4 -replace bb to -- in std::string|256_median 394 ns 394 ns 4 -replace bb to -- in std::string|256_stddev 26.1 ns 26.1 ns 4 -replace bb to -- in std::string|256_cv 6.48 % 6.48 % 4 -replace bb to -- in std::string|512_mean 759 ns 759 ns 4 -replace bb to -- in std::string|512_median 765 ns 765 ns 4 -replace bb to -- in std::string|512_stddev 18.8 ns 18.8 ns 4 -replace bb to -- in std::string|512_cv 2.47 % 2.47 % 4 -replace bb to -- in std::string|1024_mean 1521 ns 1521 ns 4 -replace bb to -- in std::string|1024_median 1486 ns 1486 ns 4 -replace bb to -- in std::string|1024_stddev 91.7 ns 91.7 ns 4 -replace bb to -- in std::string|1024_cv 6.03 % 6.03 % 4 -replace bb to -- in std::string|2048_mean 3014 ns 3014 ns 4 -replace bb to -- in std::string|2048_median 2974 ns 2974 ns 4 -replace bb to -- in std::string|2048_stddev 213 ns 213 ns 4 -replace bb to -- in std::string|2048_cv 7.07 % 7.07 % 4 -replace bb to -- in lstringa<8>|64_mean 97.8 ns 97.8 ns 4 -replace bb to -- in lstringa<8>|64_median 97.5 ns 97.5 ns 4 -replace bb to -- in lstringa<8>|64_stddev 0.990 ns 0.990 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.01 % 1.01 % 4 -replace bb to -- in lstringa<8>|256_mean 284 ns 284 ns 4 -replace bb to -- in lstringa<8>|256_median 282 ns 282 ns 4 -replace bb to -- in lstringa<8>|256_stddev 5.33 ns 5.33 ns 4 -replace bb to -- in lstringa<8>|256_cv 1.87 % 1.87 % 4 -replace bb to -- in lstringa<8>|512_mean 526 ns 526 ns 4 -replace bb to -- in lstringa<8>|512_median 526 ns 526 ns 4 -replace bb to -- in lstringa<8>|512_stddev 8.20 ns 8.20 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.56 % 1.56 % 4 -replace bb to -- in lstringa<8>|1024_mean 1125 ns 1125 ns 4 -replace bb to -- in lstringa<8>|1024_median 1125 ns 1125 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 18.4 ns 18.4 ns 4 -replace bb to -- in lstringa<8>|1024_cv 1.63 % 1.63 % 4 -replace bb to -- in lstringa<8>|2048_mean 2182 ns 2182 ns 4 -replace bb to -- in lstringa<8>|2048_median 2173 ns 2173 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 215 ns 215 ns 4 -replace bb to -- in lstringa<8>|2048_cv 9.83 % 9.83 % 4 -replace bb to -- by init stringa|64_mean 89.7 ns 89.7 ns 4 -replace bb to -- by init stringa|64_median 86.0 ns 86.0 ns 4 -replace bb to -- by init stringa|64_stddev 9.16 ns 9.16 ns 4 -replace bb to -- by init stringa|64_cv 10.21 % 10.21 % 4 -replace bb to -- by init stringa|256_mean 238 ns 238 ns 4 -replace bb to -- by init stringa|256_median 237 ns 237 ns 4 -replace bb to -- by init stringa|256_stddev 6.85 ns 6.85 ns 4 -replace bb to -- by init stringa|256_cv 2.89 % 2.89 % 4 -replace bb to -- by init stringa|512_mean 436 ns 436 ns 4 -replace bb to -- by init stringa|512_median 435 ns 435 ns 4 -replace bb to -- by init stringa|512_stddev 11.6 ns 11.6 ns 4 -replace bb to -- by init stringa|512_cv 2.66 % 2.66 % 4 -replace bb to -- by init stringa|1024_mean 853 ns 853 ns 4 -replace bb to -- by init stringa|1024_median 855 ns 855 ns 4 -replace bb to -- by init stringa|1024_stddev 8.52 ns 8.52 ns 4 -replace bb to -- by init stringa|1024_cv 1.00 % 1.00 % 4 -replace bb to -- by init stringa|2048_mean 1625 ns 1625 ns 4 -replace bb to -- by init stringa|2048_median 1622 ns 1622 ns 4 -replace bb to -- by init stringa|2048_stddev 27.9 ns 27.9 ns 4 -replace bb to -- by init stringa|2048_cv 1.72 % 1.72 % 4 +replace bb to -- in std::string|64_stddev 2.79 ns 2.79 ns 4 +replace bb to -- in std::string|64_cv 2.27 % 2.27 % 4 +replace bb to -- in std::string|256_mean 418 ns 418 ns 4 +replace bb to -- in std::string|256_median 415 ns 415 ns 4 +replace bb to -- in std::string|256_stddev 6.95 ns 6.95 ns 4 +replace bb to -- in std::string|256_cv 1.66 % 1.66 % 4 +replace bb to -- in std::string|512_mean 747 ns 747 ns 4 +replace bb to -- in std::string|512_median 747 ns 747 ns 4 +replace bb to -- in std::string|512_stddev 8.33 ns 8.33 ns 4 +replace bb to -- in std::string|512_cv 1.11 % 1.11 % 4 +replace bb to -- in std::string|1024_mean 1473 ns 1473 ns 4 +replace bb to -- in std::string|1024_median 1467 ns 1467 ns 4 +replace bb to -- in std::string|1024_stddev 20.2 ns 20.2 ns 4 +replace bb to -- in std::string|1024_cv 1.37 % 1.37 % 4 +replace bb to -- in std::string|2048_mean 2945 ns 2945 ns 4 +replace bb to -- in std::string|2048_median 2956 ns 2956 ns 4 +replace bb to -- in std::string|2048_stddev 40.3 ns 40.3 ns 4 +replace bb to -- in std::string|2048_cv 1.37 % 1.37 % 4 +replace bb to -- in lstringa<8>|64_mean 98.7 ns 98.7 ns 4 +replace bb to -- in lstringa<8>|64_median 98.4 ns 98.4 ns 4 +replace bb to -- in lstringa<8>|64_stddev 1.13 ns 1.13 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.15 % 1.15 % 4 +replace bb to -- in lstringa<8>|256_mean 296 ns 296 ns 4 +replace bb to -- in lstringa<8>|256_median 298 ns 298 ns 4 +replace bb to -- in lstringa<8>|256_stddev 5.89 ns 5.89 ns 4 +replace bb to -- in lstringa<8>|256_cv 1.99 % 1.99 % 4 +replace bb to -- in lstringa<8>|512_mean 544 ns 544 ns 4 +replace bb to -- in lstringa<8>|512_median 545 ns 545 ns 4 +replace bb to -- in lstringa<8>|512_stddev 6.95 ns 6.95 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.28 % 1.28 % 4 +replace bb to -- in lstringa<8>|1024_mean 1135 ns 1135 ns 4 +replace bb to -- in lstringa<8>|1024_median 1134 ns 1134 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 29.6 ns 29.6 ns 4 +replace bb to -- in lstringa<8>|1024_cv 2.61 % 2.61 % 4 +replace bb to -- in lstringa<8>|2048_mean 2152 ns 2152 ns 4 +replace bb to -- in lstringa<8>|2048_median 2166 ns 2166 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 39.1 ns 39.1 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.82 % 1.82 % 4 +replace bb to -- by init stringa|64_mean 83.2 ns 83.2 ns 4 +replace bb to -- by init stringa|64_median 82.8 ns 82.8 ns 4 +replace bb to -- by init stringa|64_stddev 1.67 ns 1.67 ns 4 +replace bb to -- by init stringa|64_cv 2.01 % 2.01 % 4 +replace bb to -- by init stringa|256_mean 240 ns 240 ns 4 +replace bb to -- by init stringa|256_median 239 ns 239 ns 4 +replace bb to -- by init stringa|256_stddev 2.84 ns 2.84 ns 4 +replace bb to -- by init stringa|256_cv 1.18 % 1.18 % 4 +replace bb to -- by init stringa|512_mean 437 ns 437 ns 4 +replace bb to -- by init stringa|512_median 436 ns 436 ns 4 +replace bb to -- by init stringa|512_stddev 1.77 ns 1.77 ns 4 +replace bb to -- by init stringa|512_cv 0.41 % 0.41 % 4 +replace bb to -- by init stringa|1024_mean 904 ns 904 ns 4 +replace bb to -- by init stringa|1024_median 907 ns 907 ns 4 +replace bb to -- by init stringa|1024_stddev 12.2 ns 12.2 ns 4 +replace bb to -- by init stringa|1024_cv 1.35 % 1.35 % 4 +replace bb to -- by init stringa|2048_mean 1717 ns 1717 ns 4 +replace bb to -- by init stringa|2048_median 1717 ns 1717 ns 4 +replace bb to -- by init stringa|2048_stddev 1.39 ns 1.39 ns 4 +replace bb to -- by init stringa|2048_cv 0.08 % 0.08 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3560953 ns 3560963 ns 4 -hashStrMapA emplace & find stringa;_median 3558506 ns 3558516 ns 4 -hashStrMapA emplace & find stringa;_stddev 34250 ns 34251 ns 4 -hashStrMapA emplace & find stringa;_cv 0.96 % 0.96 % 4 -std::unordered_map emplace & find std::string;_mean 3521968 ns 3521978 ns 4 -std::unordered_map emplace & find std::string;_median 3521321 ns 3521331 ns 4 -std::unordered_map emplace & find std::string;_stddev 124468 ns 124468 ns 4 -std::unordered_map emplace & find std::string;_cv 3.53 % 3.53 % 4 -hashStrMapA emplace & find ssa;_mean 3547635 ns 3547646 ns 4 -hashStrMapA emplace & find ssa;_median 3552663 ns 3552673 ns 4 -hashStrMapA emplace & find ssa;_stddev 56011 ns 56012 ns 4 -hashStrMapA emplace & find ssa;_cv 1.58 % 1.58 % 4 -std::unordered_map emplace & find std::string_view;_mean 4113520 ns 4113532 ns 4 -std::unordered_map emplace & find std::string_view;_median 4037073 ns 4037087 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 185659 ns 185657 ns 4 -std::unordered_map emplace & find std::string_view;_cv 4.51 % 4.51 % 4 +hashStrMapA emplace & find stringa;_mean 3702256 ns 3702268 ns 4 +hashStrMapA emplace & find stringa;_median 3696798 ns 3696808 ns 4 +hashStrMapA emplace & find stringa;_stddev 97443 ns 97444 ns 4 +hashStrMapA emplace & find stringa;_cv 2.63 % 2.63 % 4 +std::unordered_map emplace & find std::string;_mean 3940489 ns 3940498 ns 4 +std::unordered_map emplace & find std::string;_median 3879010 ns 3879019 ns 4 +std::unordered_map emplace & find std::string;_stddev 300320 ns 300321 ns 4 +std::unordered_map emplace & find std::string;_cv 7.62 % 7.62 % 4 +hashStrMapA emplace & find ssa;_mean 3670874 ns 3670887 ns 4 +hashStrMapA emplace & find ssa;_median 3678194 ns 3678207 ns 4 +hashStrMapA emplace & find ssa;_stddev 64946 ns 64948 ns 4 +hashStrMapA emplace & find ssa;_cv 1.77 % 1.77 % 4 +std::unordered_map emplace & find std::string_view;_mean 4098357 ns 4098381 ns 4 +std::unordered_map emplace & find std::string_view;_median 4114704 ns 4114740 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 125788 ns 125783 ns 4 +std::unordered_map emplace & find std::string_view;_cv 3.07 % 3.07 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 714 ns 714 ns 4 -Build func full name std::string;_median 714 ns 714 ns 4 -Build func full name std::string;_stddev 6.84 ns 6.84 ns 4 -Build func full name std::string;_cv 0.96 % 0.96 % 4 -Build func full name std::string 1;_mean 821 ns 821 ns 4 -Build func full name std::string 1;_median 821 ns 821 ns 4 -Build func full name std::string 1;_stddev 4.59 ns 4.59 ns 4 -Build func full name std::string 1;_cv 0.56 % 0.56 % 4 -Build func full name std::stream;_mean 2538 ns 2538 ns 4 -Build func full name std::stream;_median 2554 ns 2554 ns 4 -Build func full name std::stream;_stddev 41.6 ns 41.6 ns 4 -Build func full name std::stream;_cv 1.64 % 1.64 % 4 -Build func full name stringa;_mean 510 ns 510 ns 4 -Build func full name stringa;_median 507 ns 507 ns 4 -Build func full name stringa;_stddev 16.1 ns 16.1 ns 4 -Build func full name stringa;_cv 3.16 % 3.16 % 4 -Build func full name stringa 1;_mean 640 ns 640 ns 4 -Build func full name stringa 1;_median 635 ns 635 ns 4 -Build func full name stringa 1;_stddev 11.7 ns 11.7 ns 4 -Build func full name stringa 1;_cv 1.82 % 1.82 % 4 +Build func full name std::string;_mean 731 ns 731 ns 4 +Build func full name std::string;_median 730 ns 730 ns 4 +Build func full name std::string;_stddev 21.4 ns 21.4 ns 4 +Build func full name std::string;_cv 2.93 % 2.93 % 4 +Build func full name std::string 1;_mean 819 ns 819 ns 4 +Build func full name std::string 1;_median 816 ns 816 ns 4 +Build func full name std::string 1;_stddev 10.3 ns 10.3 ns 4 +Build func full name std::string 1;_cv 1.25 % 1.25 % 4 +Build func full name std::stream;_mean 2638 ns 2638 ns 4 +Build func full name std::stream;_median 2653 ns 2653 ns 4 +Build func full name std::stream;_stddev 94.8 ns 94.8 ns 4 +Build func full name std::stream;_cv 3.59 % 3.59 % 4 +Build func full name stringa;_mean 526 ns 526 ns 4 +Build func full name stringa;_median 525 ns 525 ns 4 +Build func full name stringa;_stddev 10.4 ns 10.4 ns 4 +Build func full name stringa;_cv 1.98 % 1.98 % 4 +Build func full name stringa 1;_mean 667 ns 667 ns 4 +Build func full name stringa 1;_median 666 ns 666 ns 4 +Build func full name stringa 1;_stddev 5.13 ns 5.13 ns 4 +Build func full name stringa 1;_cv 0.77 % 0.77 % 4 diff --git a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt index 26a17c3..204e9a3 100644 --- a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt +++ b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.6.4 +Benchmarks of simstr, version 1.6.5 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html -2026-02-04T16:14:00+03:00 +2026-02-08T13:37:01+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -16,916 +16,924 @@ Load Average: 0.00, 0.00, 0.00 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 201 ns 201 ns 4 -Concat std::string and number by std to std::string_median 199 ns 199 ns 4 -Concat std::string and number by std to std::string_stddev 7.26 ns 7.26 ns 4 -Concat std::string and number by std to std::string_cv 3.62 % 3.62 % 4 -Concat std::string and number by StrExpr to std::string_mean 100 ns 100 ns 4 -Concat std::string and number by StrExpr to std::string_median 94.2 ns 94.2 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 13.1 ns 13.1 ns 4 -Concat std::string and number by StrExpr to std::string_cv 13.10 % 13.10 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 77.9 ns 77.9 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 78.3 ns 78.3 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 6.99 ns 6.99 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 8.97 % 8.97 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 79.0 ns 79.0 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 75.8 ns 75.8 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 6.87 ns 6.87 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 8.70 % 8.70 % 4 +Concat std::string and number by std to std::string_mean 202 ns 202 ns 4 +Concat std::string and number by std to std::string_median 201 ns 201 ns 4 +Concat std::string and number by std to std::string_stddev 3.97 ns 3.97 ns 4 +Concat std::string and number by std to std::string_cv 1.97 % 1.97 % 4 +Concat std::string and number by StrExpr to std::string_mean 98.4 ns 98.4 ns 4 +Concat std::string and number by StrExpr to std::string_median 98.9 ns 98.9 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 2.35 ns 2.35 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.39 % 2.39 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 72.3 ns 72.3 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 72.2 ns 72.2 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 2.37 ns 2.37 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 3.28 % 3.28 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 77.3 ns 77.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 77.3 ns 77.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 1.77 ns 1.77 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 2.29 % 2.29 % 4 ----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and format hex number and literal to std::string_mean 691 ns 691 ns 4 -Concat std::string and format hex number and literal to std::string_median 676 ns 676 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 49.5 ns 49.5 ns 4 -Concat std::string and format hex number and literal to std::string_cv 7.16 % 7.16 % 4 -std::format std::string and hex number by literal to std::string_mean 995 ns 995 ns 4 -std::format std::string and hex number by literal to std::string_median 964 ns 964 ns 4 -std::format std::string and hex number by literal to std::string_stddev 130 ns 130 ns 4 -std::format std::string and hex number by literal to std::string_cv 13.08 % 13.08 % 4 -Concat std::string and std::to_chars and string to std::string_mean 175 ns 175 ns 4 -Concat std::string and std::to_chars and string to std::string_median 176 ns 176 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 3.22 ns 3.22 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.84 % 1.84 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 126 ns 126 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 124 ns 124 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 5.99 ns 5.99 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 4.75 % 4.75 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 119 ns 119 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 120 ns 120 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.61 ns 1.61 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.35 % 1.35 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 131 ns 131 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 126 ns 126 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 10.1 ns 10.1 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 7.71 % 7.71 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 164 ns 164 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 164 ns 164 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.00 ns 2.00 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.22 % 1.22 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 277 ns 277 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 274 ns 274 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 10.4 ns 10.4 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 3.75 % 3.75 % 4 ------ format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -"art "_ss + i / 0x8a010_fmt + " end"_mean 96.6 ns 96.6 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_median 96.2 ns 96.2 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_stddev 7.79 ns 7.79 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_cv 8.06 % 8.06 % 4 -e_subst("art {} end", i / 0x8a010_fmt)_mean 145 ns 145 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_median 145 ns 145 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_stddev 8.28 ns 8.28 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_cv 5.73 % 5.73 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 327 ns 327 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 327 ns 327 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 17.8 ns 17.8 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 5.43 % 5.43 % 4 -std::format("art {:#010o} end", i)_mean 1204 ns 1204 ns 4 -std::format("art {:#010o} end", i)_median 1211 ns 1211 ns 4 -std::format("art {:#010o} end", i)_stddev 29.0 ns 29.0 ns 4 -std::format("art {:#010o} end", i)_cv 2.41 % 2.41 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1091 ns 1091 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1104 ns 1104 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 27.5 ns 27.5 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.52 % 2.52 % 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2084 ns 2084 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2079 ns 2079 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 58.5 ns 58.5 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.81 % 2.81 % 4 +Concat std::string and format hex number and literal to std::string_mean 680 ns 680 ns 4 +Concat std::string and format hex number and literal to std::string_median 679 ns 679 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 26.9 ns 26.9 ns 4 +Concat std::string and format hex number and literal to std::string_cv 3.96 % 3.96 % 4 +std::format std::string and hex number by literal to std::string_mean 970 ns 970 ns 4 +std::format std::string and hex number by literal to std::string_median 976 ns 976 ns 4 +std::format std::string and hex number by literal to std::string_stddev 15.1 ns 15.1 ns 4 +std::format std::string and hex number by literal to std::string_cv 1.56 % 1.56 % 4 +Concat std::string and std::to_chars and string to std::string_mean 189 ns 189 ns 4 +Concat std::string and std::to_chars and string to std::string_median 189 ns 189 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 2.14 ns 2.14 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.13 % 1.13 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 133 ns 133 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 133 ns 133 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 8.36 ns 8.36 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 6.31 % 6.31 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 123 ns 123 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 123 ns 123 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.875 ns 0.875 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.71 % 0.71 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 129 ns 129 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 129 ns 129 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.78 ns 1.78 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.37 % 1.37 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 176 ns 176 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 176 ns 176 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 9.07 ns 9.07 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.16 % 5.16 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 296 ns 296 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 295 ns 295 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 4.60 ns 4.60 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.55 % 1.55 % 4 +---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 261 ns 261 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 262 ns 262 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.87 ns 4.87 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.86 % 1.86 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 322 ns 322 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 323 ns 323 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.62 ns 4.62 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.44 % 1.44 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 600 ns 600 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 598 ns 598 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 14.6 ns 14.6 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.43 % 2.43 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 767 ns 767 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 766 ns 766 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 13.7 ns 13.7 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.79 % 1.79 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 814 ns 814 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 810 ns 810 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.6 ns 30.6 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.76 % 3.76 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1245 ns 1245 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1242 ns 1242 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 8.71 ns 8.71 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.70 % 0.70 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1135 ns 1135 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1130 ns 1130 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 22.2 ns 22.2 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 1.95 % 1.95 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2152 ns 2152 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2144 ns 2144 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 65.0 ns 65.0 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.02 % 3.02 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 43.5 ns 43.5 ns 4 -Concat std::string by std to std::string_median 43.5 ns 43.5 ns 4 -Concat std::string by std to std::string_stddev 0.763 ns 0.763 ns 4 -Concat std::string by std to std::string_cv 1.76 % 1.76 % 4 -Concat std::string by StrExpr to std::string_mean 29.4 ns 29.4 ns 4 -Concat std::string by StrExpr to std::string_median 29.5 ns 29.5 ns 4 -Concat std::string by StrExpr to std::string_stddev 0.740 ns 0.740 ns 4 -Concat std::string by StrExpr to std::string_cv 2.52 % 2.52 % 4 -Concat stringa by StrExpr to stringa_mean 33.0 ns 33.0 ns 4 -Concat stringa by StrExpr to stringa_median 33.9 ns 33.9 ns 4 -Concat stringa by StrExpr to stringa_stddev 3.22 ns 3.22 ns 4 -Concat stringa by StrExpr to stringa_cv 9.75 % 9.75 % 4 +Concat std::string by std to std::string_mean 45.2 ns 45.2 ns 4 +Concat std::string by std to std::string_median 44.6 ns 44.6 ns 4 +Concat std::string by std to std::string_stddev 2.09 ns 2.09 ns 4 +Concat std::string by std to std::string_cv 4.62 % 4.62 % 4 +Concat std::string by StrExpr to std::string_mean 36.1 ns 36.1 ns 4 +Concat std::string by StrExpr to std::string_median 36.5 ns 36.5 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.895 ns 0.895 ns 4 +Concat std::string by StrExpr to std::string_cv 2.48 % 2.48 % 4 +Concat stringa by StrExpr to stringa_mean 27.8 ns 27.8 ns 4 +Concat stringa by StrExpr to stringa_median 27.7 ns 27.7 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.173 ns 0.173 ns 4 +Concat stringa by StrExpr to stringa_cv 0.62 % 0.62 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 194 ns 194 ns 4 -Find concat three std::string_median 191 ns 191 ns 4 -Find concat three std::string_stddev 19.8 ns 19.8 ns 4 -Find concat three std::string_cv 10.22 % 10.22 % 4 -Find concat three strexpr_mean 69.7 ns 69.7 ns 4 -Find concat three strexpr_median 69.0 ns 69.0 ns 4 -Find concat three strexpr_stddev 2.66 ns 2.66 ns 4 -Find concat three strexpr_cv 3.81 % 3.81 % 4 -Find concat three simstr_mean 44.2 ns 44.2 ns 4 -Find concat three simstr_median 44.2 ns 44.2 ns 4 -Find concat three simstr_stddev 0.637 ns 0.637 ns 4 -Find concat three simstr_cv 1.44 % 1.44 % 4 +Find concat three std::string_mean 131 ns 131 ns 4 +Find concat three std::string_median 130 ns 130 ns 4 +Find concat three std::string_stddev 3.53 ns 3.53 ns 4 +Find concat three std::string_cv 2.69 % 2.69 % 4 +Find concat three strexpr_mean 43.5 ns 43.5 ns 4 +Find concat three strexpr_median 42.1 ns 42.1 ns 4 +Find concat three strexpr_stddev 3.99 ns 3.99 ns 4 +Find concat three strexpr_cv 9.17 % 9.17 % 4 +Find concat three simstr_mean 20.3 ns 20.3 ns 4 +Find concat three simstr_median 20.3 ns 20.3 ns 4 +Find concat three simstr_stddev 0.248 ns 0.248 ns 4 +Find concat three simstr_cv 1.23 % 1.23 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 10.3 ns 10.3 ns 4 -BuildTypeNameStr 0/0_median 10.3 ns 10.3 ns 4 -BuildTypeNameStr 0/0_stddev 0.209 ns 0.209 ns 4 -BuildTypeNameStr 0/0_cv 2.03 % 2.03 % 4 -BuildTypeNameExp 0/0_mean 6.71 ns 6.71 ns 4 -BuildTypeNameExp 0/0_median 6.71 ns 6.71 ns 4 -BuildTypeNameExp 0/0_stddev 0.028 ns 0.028 ns 4 -BuildTypeNameExp 0/0_cv 0.41 % 0.41 % 4 -BuildTypeNameSim 0/0_mean 5.47 ns 5.47 ns 4 -BuildTypeNameSim 0/0_median 5.44 ns 5.44 ns 4 -BuildTypeNameSim 0/0_stddev 0.483 ns 0.483 ns 4 -BuildTypeNameSim 0/0_cv 8.83 % 8.83 % 4 -BuildTypeNameStr 10/10_mean 83.0 ns 83.0 ns 4 -BuildTypeNameStr 10/10_median 83.1 ns 83.1 ns 4 -BuildTypeNameStr 10/10_stddev 0.474 ns 0.474 ns 4 -BuildTypeNameStr 10/10_cv 0.57 % 0.57 % 4 -BuildTypeNameExp 10/10_mean 24.5 ns 24.5 ns 4 -BuildTypeNameExp 10/10_median 24.4 ns 24.4 ns 4 -BuildTypeNameExp 10/10_stddev 0.431 ns 0.431 ns 4 -BuildTypeNameExp 10/10_cv 1.76 % 1.76 % 4 -BuildTypeNameSim 10/10_mean 25.3 ns 25.3 ns 4 -BuildTypeNameSim 10/10_median 25.3 ns 25.3 ns 4 -BuildTypeNameSim 10/10_stddev 0.570 ns 0.570 ns 4 -BuildTypeNameSim 10/10_cv 2.25 % 2.25 % 4 +BuildTypeNameStr 0/0_mean 12.3 ns 12.3 ns 4 +BuildTypeNameStr 0/0_median 11.9 ns 11.9 ns 4 +BuildTypeNameStr 0/0_stddev 1.59 ns 1.59 ns 4 +BuildTypeNameStr 0/0_cv 12.95 % 12.95 % 4 +BuildTypeNameExp 0/0_mean 7.07 ns 7.07 ns 4 +BuildTypeNameExp 0/0_median 7.07 ns 7.07 ns 4 +BuildTypeNameExp 0/0_stddev 0.101 ns 0.101 ns 4 +BuildTypeNameExp 0/0_cv 1.43 % 1.43 % 4 +BuildTypeNameSim 0/0_mean 5.18 ns 5.18 ns 4 +BuildTypeNameSim 0/0_median 5.08 ns 5.08 ns 4 +BuildTypeNameSim 0/0_stddev 0.354 ns 0.354 ns 4 +BuildTypeNameSim 0/0_cv 6.84 % 6.84 % 4 +BuildTypeNameStr 10/10_mean 86.8 ns 86.8 ns 4 +BuildTypeNameStr 10/10_median 86.9 ns 86.9 ns 4 +BuildTypeNameStr 10/10_stddev 2.33 ns 2.33 ns 4 +BuildTypeNameStr 10/10_cv 2.69 % 2.69 % 4 +BuildTypeNameExp 10/10_mean 27.5 ns 27.5 ns 4 +BuildTypeNameExp 10/10_median 27.5 ns 27.5 ns 4 +BuildTypeNameExp 10/10_stddev 0.367 ns 0.367 ns 4 +BuildTypeNameExp 10/10_cv 1.33 % 1.33 % 4 +BuildTypeNameSim 10/10_mean 22.4 ns 22.4 ns 4 +BuildTypeNameSim 10/10_median 22.5 ns 22.5 ns 4 +BuildTypeNameSim 10/10_stddev 0.578 ns 0.578 ns 4 +BuildTypeNameSim 10/10_cv 2.58 % 2.58 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 403 ns 403 ns 4 -Concat with replace str_median 395 ns 395 ns 4 -Concat with replace str_stddev 35.8 ns 35.8 ns 4 -Concat with replace str_cv 8.88 % 8.88 % 4 -Concat with replace exp_mean 175 ns 175 ns 4 -Concat with replace exp_median 174 ns 174 ns 4 -Concat with replace exp_stddev 6.82 ns 6.82 ns 4 -Concat with replace exp_cv 3.89 % 3.89 % 4 +Concat with replace str_mean 235 ns 235 ns 4 +Concat with replace str_median 236 ns 236 ns 4 +Concat with replace str_stddev 8.50 ns 8.50 ns 4 +Concat with replace str_cv 3.61 % 3.61 % 4 +Concat with replace exp_mean 136 ns 136 ns 4 +Concat with replace exp_median 137 ns 137 ns 4 +Concat with replace exp_stddev 1.96 ns 1.96 ns 4 +Concat with replace exp_cv 1.44 % 1.44 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.10 ns 1.10 ns 4 -std::string e;_median 1.10 ns 1.10 ns 4 -std::string e;_stddev 0.011 ns 0.011 ns 4 -std::string e;_cv 1.01 % 1.01 % 4 -std::string_view e;_mean 0.748 ns 0.748 ns 4 -std::string_view e;_median 0.747 ns 0.747 ns 4 -std::string_view e;_stddev 0.026 ns 0.026 ns 4 -std::string_view e;_cv 3.50 % 3.50 % 4 -ssa e;_mean 0.180 ns 0.180 ns 4 -ssa e;_median 0.179 ns 0.179 ns 4 +std::string e;_mean 1.11 ns 1.11 ns 4 +std::string e;_median 1.11 ns 1.11 ns 4 +std::string e;_stddev 0.018 ns 0.018 ns 4 +std::string e;_cv 1.64 % 1.64 % 4 +std::string_view e;_mean 0.753 ns 0.753 ns 4 +std::string_view e;_median 0.753 ns 0.753 ns 4 +std::string_view e;_stddev 0.007 ns 0.007 ns 4 +std::string_view e;_cv 0.93 % 0.93 % 4 +ssa e;_mean 0.186 ns 0.186 ns 4 +ssa e;_median 0.186 ns 0.186 ns 4 ssa e;_stddev 0.001 ns 0.001 ns 4 -ssa e;_cv 0.49 % 0.49 % 4 -stringa e;_mean 0.744 ns 0.744 ns 4 -stringa e;_median 0.741 ns 0.741 ns 4 -stringa e;_stddev 0.013 ns 0.013 ns 4 -stringa e;_cv 1.71 % 1.71 % 4 -lstringa<20> e;_mean 1.11 ns 1.11 ns 4 -lstringa<20> e;_median 1.11 ns 1.11 ns 4 -lstringa<20> e;_stddev 0.009 ns 0.009 ns 4 -lstringa<20> e;_cv 0.79 % 0.79 % 4 -lstringa<40> e;_mean 1.11 ns 1.11 ns 4 -lstringa<40> e;_median 1.11 ns 1.11 ns 4 -lstringa<40> e;_stddev 0.010 ns 0.010 ns 4 -lstringa<40> e;_cv 0.91 % 0.91 % 4 +ssa e;_cv 0.77 % 0.77 % 4 +stringa e;_mean 0.757 ns 0.757 ns 4 +stringa e;_median 0.761 ns 0.761 ns 4 +stringa e;_stddev 0.014 ns 0.014 ns 4 +stringa e;_cv 1.85 % 1.85 % 4 +lstringa<20> e;_mean 1.13 ns 1.13 ns 4 +lstringa<20> e;_median 1.12 ns 1.12 ns 4 +lstringa<20> e;_stddev 0.013 ns 0.013 ns 4 +lstringa<20> e;_cv 1.15 % 1.15 % 4 +lstringa<40> e;_mean 1.17 ns 1.17 ns 4 +lstringa<40> e;_median 1.17 ns 1.17 ns 4 +lstringa<40> e;_stddev 0.047 ns 0.047 ns 4 +lstringa<40> e;_cv 4.02 % 4.02 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.84 ns 1.84 ns 4 -std::string e = "Test text";_median 1.83 ns 1.83 ns 4 -std::string e = "Test text";_stddev 0.045 ns 0.045 ns 4 -std::string e = "Test text";_cv 2.45 % 2.45 % 4 -std::string_view e = "Test text";_mean 0.750 ns 0.750 ns 4 -std::string_view e = "Test text";_median 0.757 ns 0.757 ns 4 -std::string_view e = "Test text";_stddev 0.031 ns 0.031 ns 4 -std::string_view e = "Test text";_cv 4.12 % 4.12 % 4 -ssa e = "Test text";_mean 0.732 ns 0.732 ns 4 -ssa e = "Test text";_median 0.731 ns 0.731 ns 4 -ssa e = "Test text";_stddev 0.010 ns 0.010 ns 4 -ssa e = "Test text";_cv 1.36 % 1.36 % 4 -stringa e = "Test text";_mean 1.11 ns 1.11 ns 4 -stringa e = "Test text";_median 1.11 ns 1.11 ns 4 -stringa e = "Test text";_stddev 0.022 ns 0.022 ns 4 -stringa e = "Test text";_cv 2.00 % 2.00 % 4 -lstringa<20> e = "Test text";_mean 1.82 ns 1.82 ns 4 -lstringa<20> e = "Test text";_median 1.82 ns 1.82 ns 4 -lstringa<20> e = "Test text";_stddev 0.020 ns 0.020 ns 4 -lstringa<20> e = "Test text";_cv 1.10 % 1.10 % 4 -lstringa<40> e = "Test text";_mean 1.84 ns 1.84 ns 4 -lstringa<40> e = "Test text";_median 1.82 ns 1.82 ns 4 -lstringa<40> e = "Test text";_stddev 0.047 ns 0.047 ns 4 -lstringa<40> e = "Test text";_cv 2.57 % 2.57 % 4 +std::string e = "Test text";_mean 1.87 ns 1.87 ns 4 +std::string e = "Test text";_median 1.87 ns 1.87 ns 4 +std::string e = "Test text";_stddev 0.028 ns 0.028 ns 4 +std::string e = "Test text";_cv 1.51 % 1.51 % 4 +std::string_view e = "Test text";_mean 0.749 ns 0.749 ns 4 +std::string_view e = "Test text";_median 0.748 ns 0.748 ns 4 +std::string_view e = "Test text";_stddev 0.013 ns 0.013 ns 4 +std::string_view e = "Test text";_cv 1.75 % 1.75 % 4 +ssa e = "Test text";_mean 0.755 ns 0.755 ns 4 +ssa e = "Test text";_median 0.753 ns 0.753 ns 4 +ssa e = "Test text";_stddev 0.016 ns 0.016 ns 4 +ssa e = "Test text";_cv 2.16 % 2.16 % 4 +stringa e = "Test text";_mean 1.13 ns 1.13 ns 4 +stringa e = "Test text";_median 1.13 ns 1.13 ns 4 +stringa e = "Test text";_stddev 0.013 ns 0.013 ns 4 +stringa e = "Test text";_cv 1.12 % 1.12 % 4 +lstringa<20> e = "Test text";_mean 1.92 ns 1.92 ns 4 +lstringa<20> e = "Test text";_median 1.91 ns 1.91 ns 4 +lstringa<20> e = "Test text";_stddev 0.027 ns 0.027 ns 4 +lstringa<20> e = "Test text";_cv 1.41 % 1.41 % 4 +lstringa<40> e = "Test text";_mean 1.88 ns 1.88 ns 4 +lstringa<40> e = "Test text";_median 1.87 ns 1.87 ns 4 +lstringa<40> e = "Test text";_stddev 0.044 ns 0.044 ns 4 +lstringa<40> e = "Test text";_cv 2.34 % 2.34 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 18.7 ns 18.7 ns 4 -std::string e = "123456789012345678901234567890";_median 18.7 ns 18.7 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.169 ns 0.169 ns 4 -std::string e = "123456789012345678901234567890";_cv 0.90 % 0.90 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.745 ns 0.745 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.743 ns 0.743 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.009 ns 0.009 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.22 % 1.22 % 4 -ssa e = "123456789012345678901234567890";_mean 0.782 ns 0.782 ns 4 -ssa e = "123456789012345678901234567890";_median 0.773 ns 0.773 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.038 ns 0.038 ns 4 -ssa e = "123456789012345678901234567890";_cv 4.84 % 4.84 % 4 +std::string e = "123456789012345678901234567890";_mean 18.6 ns 18.6 ns 4 +std::string e = "123456789012345678901234567890";_median 18.5 ns 18.5 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.555 ns 0.555 ns 4 +std::string e = "123456789012345678901234567890";_cv 2.98 % 2.98 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.751 ns 0.751 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.751 ns 0.751 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 0.98 % 0.98 % 4 +ssa e = "123456789012345678901234567890";_mean 0.744 ns 0.744 ns 4 +ssa e = "123456789012345678901234567890";_median 0.743 ns 0.743 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4 +ssa e = "123456789012345678901234567890";_cv 1.01 % 1.01 % 4 stringa e = "123456789012345678901234567890";_mean 1.14 ns 1.14 ns 4 stringa e = "123456789012345678901234567890";_median 1.13 ns 1.13 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.038 ns 0.038 ns 4 -stringa e = "123456789012345678901234567890";_cv 3.32 % 3.32 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 20.0 ns 20.0 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 19.9 ns 19.9 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.345 ns 0.345 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 1.73 % 1.73 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 1.92 ns 1.92 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 1.89 ns 1.89 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.108 ns 0.108 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 5.64 % 5.64 % 4 +stringa e = "123456789012345678901234567890";_stddev 0.027 ns 0.027 ns 4 +stringa e = "123456789012345678901234567890";_cv 2.33 % 2.33 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 20.8 ns 20.8 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 20.8 ns 20.8 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.227 ns 0.227 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.09 % 1.09 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 1.87 ns 1.87 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 1.86 ns 1.86 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.038 ns 0.038 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 2.01 % 2.01 % 4 ----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text"; auto c{e};_mean 4.89 ns 4.89 ns 4 -std::string e = "Test text"; auto c{e};_median 4.90 ns 4.90 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.162 ns 0.162 ns 4 -std::string e = "Test text"; auto c{e};_cv 3.31 % 3.31 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.379 ns 0.379 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.373 ns 0.373 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 4.24 % 4.24 % 4 -ssa e = "Test text"; auto c{e};_mean 0.368 ns 0.368 ns 4 -ssa e = "Test text"; auto c{e};_median 0.369 ns 0.369 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4 -ssa e = "Test text"; auto c{e};_cv 1.42 % 1.42 % 4 -stringa e = "Test text"; auto c{e};_mean 1.32 ns 1.32 ns 4 -stringa e = "Test text"; auto c{e};_median 1.32 ns 1.32 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.040 ns 0.040 ns 4 -stringa e = "Test text"; auto c{e};_cv 2.99 % 2.99 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.43 ns 4.43 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.44 ns 4.44 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.071 ns 0.071 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.61 % 1.61 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 4.57 ns 4.57 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 4.55 ns 4.55 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.152 ns 0.152 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 3.34 % 3.34 % 4 +std::string e = "Test text"; auto c{e};_mean 5.65 ns 5.65 ns 4 +std::string e = "Test text"; auto c{e};_median 5.63 ns 5.63 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.091 ns 0.091 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.62 % 1.62 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.375 ns 0.375 ns 4 +std::string_view e = "Test text"; auto c{e};_median 0.375 ns 0.375 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.005 ns 0.005 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 1.21 % 1.21 % 4 +ssa e = "Test text"; auto c{e};_mean 0.394 ns 0.394 ns 4 +ssa e = "Test text"; auto c{e};_median 0.388 ns 0.388 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.026 ns 0.026 ns 4 +ssa e = "Test text"; auto c{e};_cv 6.64 % 6.64 % 4 +stringa e = "Test text"; auto c{e};_mean 1.17 ns 1.17 ns 4 +stringa e = "Test text"; auto c{e};_median 1.16 ns 1.16 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.027 ns 0.027 ns 4 +stringa e = "Test text"; auto c{e};_cv 2.33 % 2.33 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 4.69 ns 4.69 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 4.68 ns 4.68 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.065 ns 0.065 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 1.38 % 1.38 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 4.96 ns 4.96 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 4.96 ns 4.96 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.168 ns 0.168 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 3.40 % 3.40 % 4 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890"; auto c{e};_mean 23.8 ns 23.8 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 23.9 ns 23.9 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.401 ns 0.401 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.68 % 1.68 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.726 ns 0.726 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.722 ns 0.722 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 23.3 ns 23.3 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 23.4 ns 23.4 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.499 ns 0.499 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.14 % 2.14 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.750 ns 0.750 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.753 ns 0.753 ns 4 std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.013 ns 0.013 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.76 % 1.76 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.734 ns 0.734 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.735 ns 0.735 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.18 % 1.18 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.15 ns 1.15 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.71 % 1.71 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.744 ns 0.744 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.743 ns 0.743 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.008 ns 0.008 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.04 % 1.04 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4 stringa e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.078 ns 0.078 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 6.77 % 6.77 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.3 ns 21.3 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 21.2 ns 21.2 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.688 ns 0.688 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.23 % 3.23 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.18 ns 5.18 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.08 ns 5.08 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.278 ns 0.278 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 5.37 % 5.37 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.023 ns 0.023 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.06 % 2.06 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.7 ns 19.7 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.6 ns 19.6 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.256 ns 0.256 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.30 % 1.30 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.59 ns 4.59 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.59 ns 4.59 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.076 ns 0.076 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.65 % 1.65 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find;_mean 6.65 ns 6.65 ns 4 -std::string::find;_median 6.65 ns 6.65 ns 4 -std::string::find;_stddev 0.092 ns 0.092 ns 4 -std::string::find;_cv 1.39 % 1.39 % 4 -std::string_view::find;_mean 6.63 ns 6.63 ns 4 -std::string_view::find;_median 6.64 ns 6.64 ns 4 -std::string_view::find;_stddev 0.076 ns 0.076 ns 4 -std::string_view::find;_cv 1.14 % 1.14 % 4 -ssa::find;_mean 6.33 ns 6.33 ns 4 -ssa::find;_median 6.31 ns 6.31 ns 4 -ssa::find;_stddev 0.168 ns 0.168 ns 4 -ssa::find;_cv 2.65 % 2.65 % 4 -stringa::find;_mean 6.65 ns 6.65 ns 4 -stringa::find;_median 6.65 ns 6.65 ns 4 -stringa::find;_stddev 0.052 ns 0.052 ns 4 -stringa::find;_cv 0.78 % 0.78 % 4 -lstringa<20>::find;_mean 6.67 ns 6.67 ns 4 -lstringa<20>::find;_median 6.41 ns 6.41 ns 4 -lstringa<20>::find;_stddev 0.601 ns 0.601 ns 4 -lstringa<20>::find;_cv 9.01 % 9.01 % 4 -lstringa<40>::find;_mean 6.44 ns 6.44 ns 4 -lstringa<40>::find;_median 6.39 ns 6.39 ns 4 -lstringa<40>::find;_stddev 0.170 ns 0.170 ns 4 -lstringa<40>::find;_cv 2.64 % 2.64 % 4 +std::string::find;_mean 7.01 ns 7.01 ns 4 +std::string::find;_median 7.00 ns 7.00 ns 4 +std::string::find;_stddev 0.162 ns 0.162 ns 4 +std::string::find;_cv 2.32 % 2.32 % 4 +std::string_view::find;_mean 6.92 ns 6.92 ns 4 +std::string_view::find;_median 6.95 ns 6.95 ns 4 +std::string_view::find;_stddev 0.168 ns 0.168 ns 4 +std::string_view::find;_cv 2.43 % 2.43 % 4 +ssa::find;_mean 6.48 ns 6.48 ns 4 +ssa::find;_median 6.49 ns 6.49 ns 4 +ssa::find;_stddev 0.101 ns 0.101 ns 4 +ssa::find;_cv 1.56 % 1.56 % 4 +stringa::find;_mean 6.86 ns 6.86 ns 4 +stringa::find;_median 6.86 ns 6.86 ns 4 +stringa::find;_stddev 0.027 ns 0.027 ns 4 +stringa::find;_cv 0.40 % 0.40 % 4 +lstringa<20>::find;_mean 6.56 ns 6.56 ns 4 +lstringa<20>::find;_median 6.54 ns 6.54 ns 4 +lstringa<20>::find;_stddev 0.052 ns 0.052 ns 4 +lstringa<20>::find;_cv 0.80 % 0.80 % 4 +lstringa<40>::find;_mean 6.50 ns 6.50 ns 4 +lstringa<40>::find;_median 6.46 ns 6.46 ns 4 +lstringa<40>::find;_stddev 0.136 ns 0.136 ns 4 +lstringa<40>::find;_cv 2.10 % 2.10 % 4 ------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string copy{str_with_len_N};/15_mean 4.83 ns 4.83 ns 4 -std::string copy{str_with_len_N};/15_median 4.82 ns 4.82 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.074 ns 0.074 ns 4 -std::string copy{str_with_len_N};/15_cv 1.54 % 1.54 % 4 -std::string copy{str_with_len_N};/16_mean 23.7 ns 23.7 ns 4 -std::string copy{str_with_len_N};/16_median 23.8 ns 23.8 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.626 ns 0.626 ns 4 -std::string copy{str_with_len_N};/16_cv 2.65 % 2.65 % 4 -std::string copy{str_with_len_N};/23_mean 26.3 ns 26.3 ns 4 -std::string copy{str_with_len_N};/23_median 27.1 ns 27.1 ns 4 -std::string copy{str_with_len_N};/23_stddev 2.75 ns 2.75 ns 4 -std::string copy{str_with_len_N};/23_cv 10.46 % 10.46 % 4 -std::string copy{str_with_len_N};/24_mean 25.2 ns 25.2 ns 4 -std::string copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4 -std::string copy{str_with_len_N};/24_stddev 2.74 ns 2.74 ns 4 -std::string copy{str_with_len_N};/24_cv 10.89 % 10.89 % 4 -std::string copy{str_with_len_N};/32_mean 23.0 ns 23.0 ns 4 -std::string copy{str_with_len_N};/32_median 22.9 ns 22.9 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.431 ns 0.431 ns 4 -std::string copy{str_with_len_N};/32_cv 1.87 % 1.87 % 4 -std::string copy{str_with_len_N};/64_mean 24.4 ns 24.4 ns 4 -std::string copy{str_with_len_N};/64_median 23.2 ns 23.2 ns 4 -std::string copy{str_with_len_N};/64_stddev 2.89 ns 2.89 ns 4 -std::string copy{str_with_len_N};/64_cv 11.86 % 11.86 % 4 -std::string copy{str_with_len_N};/128_mean 24.7 ns 24.7 ns 4 -std::string copy{str_with_len_N};/128_median 24.7 ns 24.7 ns 4 -std::string copy{str_with_len_N};/128_stddev 0.278 ns 0.278 ns 4 -std::string copy{str_with_len_N};/128_cv 1.13 % 1.13 % 4 -std::string copy{str_with_len_N};/256_mean 25.5 ns 25.5 ns 4 -std::string copy{str_with_len_N};/256_median 25.5 ns 25.5 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.525 ns 0.525 ns 4 -std::string copy{str_with_len_N};/256_cv 2.06 % 2.06 % 4 -std::string copy{str_with_len_N};/512_mean 29.2 ns 29.2 ns 4 -std::string copy{str_with_len_N};/512_median 29.1 ns 29.1 ns 4 -std::string copy{str_with_len_N};/512_stddev 0.182 ns 0.182 ns 4 -std::string copy{str_with_len_N};/512_cv 0.63 % 0.63 % 4 -std::string copy{str_with_len_N};/1024_mean 45.8 ns 45.8 ns 4 -std::string copy{str_with_len_N};/1024_median 46.0 ns 46.0 ns 4 -std::string copy{str_with_len_N};/1024_stddev 0.721 ns 0.721 ns 4 -std::string copy{str_with_len_N};/1024_cv 1.57 % 1.57 % 4 -std::string copy{str_with_len_N};/2048_mean 71.1 ns 71.1 ns 4 -std::string copy{str_with_len_N};/2048_median 72.6 ns 72.6 ns 4 -std::string copy{str_with_len_N};/2048_stddev 7.51 ns 7.51 ns 4 -std::string copy{str_with_len_N};/2048_cv 10.57 % 10.57 % 4 -std::string copy{str_with_len_N};/4096_mean 121 ns 121 ns 4 -std::string copy{str_with_len_N};/4096_median 118 ns 118 ns 4 -std::string copy{str_with_len_N};/4096_stddev 10.6 ns 10.6 ns 4 -std::string copy{str_with_len_N};/4096_cv 8.71 % 8.71 % 4 -stringa copy{str_with_len_N};/15_mean 1.30 ns 1.30 ns 4 -stringa copy{str_with_len_N};/15_median 1.31 ns 1.31 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.031 ns 0.031 ns 4 -stringa copy{str_with_len_N};/15_cv 2.39 % 2.39 % 4 -stringa copy{str_with_len_N};/16_mean 1.29 ns 1.29 ns 4 -stringa copy{str_with_len_N};/16_median 1.29 ns 1.29 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.010 ns 0.010 ns 4 -stringa copy{str_with_len_N};/16_cv 0.81 % 0.81 % 4 -stringa copy{str_with_len_N};/23_mean 1.28 ns 1.28 ns 4 -stringa copy{str_with_len_N};/23_median 1.28 ns 1.28 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.006 ns 0.006 ns 4 -stringa copy{str_with_len_N};/23_cv 0.47 % 0.46 % 4 -stringa copy{str_with_len_N};/24_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/24_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.091 ns 0.091 ns 4 -stringa copy{str_with_len_N};/24_cv 0.57 % 0.57 % 4 -stringa copy{str_with_len_N};/32_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/32_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.181 ns 0.181 ns 4 -stringa copy{str_with_len_N};/32_cv 1.13 % 1.13 % 4 -stringa copy{str_with_len_N};/64_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.029 ns 0.029 ns 4 -stringa copy{str_with_len_N};/64_cv 0.18 % 0.18 % 4 -stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.076 ns 0.076 ns 4 -stringa copy{str_with_len_N};/128_cv 0.47 % 0.47 % 4 -stringa copy{str_with_len_N};/256_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/256_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.162 ns 0.162 ns 4 -stringa copy{str_with_len_N};/256_cv 1.01 % 1.01 % 4 -stringa copy{str_with_len_N};/512_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/512_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.145 ns 0.145 ns 4 -stringa copy{str_with_len_N};/512_cv 0.90 % 0.90 % 4 -stringa copy{str_with_len_N};/1024_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/1024_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.220 ns 0.220 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.36 % 1.36 % 4 -stringa copy{str_with_len_N};/2048_mean 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/2048_median 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.240 ns 0.240 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.48 % 1.48 % 4 -stringa copy{str_with_len_N};/4096_mean 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/4096_median 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.155 ns 0.155 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.96 % 0.96 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.43 ns 4.43 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.39 ns 4.39 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.123 ns 0.123 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.77 % 2.77 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.88 ns 4.88 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.92 ns 4.92 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.323 ns 0.323 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 6.62 % 6.62 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 5.22 ns 5.22 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 5.19 ns 5.19 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.863 ns 0.863 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 16.53 % 16.53 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 24.4 ns 24.4 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.440 ns 0.440 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.81 % 1.81 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 24.1 ns 24.1 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 23.7 ns 23.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 1.38 ns 1.38 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 5.71 % 5.71 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 25.4 ns 25.4 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 25.2 ns 25.2 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.678 ns 0.678 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 2.67 % 2.67 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 25.6 ns 25.6 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 25.8 ns 25.8 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.675 ns 0.675 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 2.64 % 2.64 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 29.7 ns 29.7 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 29.8 ns 29.8 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 1.45 ns 1.45 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 4.89 % 4.89 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 34.0 ns 34.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 32.6 ns 32.6 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 4.46 ns 4.46 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 13.11 % 13.11 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 53.7 ns 53.7 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 53.9 ns 53.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 0.505 ns 0.505 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 0.94 % 0.94 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 66.7 ns 66.7 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 67.0 ns 67.0 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 4.26 ns 4.26 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 6.40 % 6.40 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 88.0 ns 88.0 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 87.0 ns 87.0 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 2.20 ns 2.20 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 2.49 % 2.49 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 5.14 ns 5.14 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 5.12 ns 5.12 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.076 ns 0.076 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.49 % 1.49 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 5.18 ns 5.18 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 5.16 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.062 ns 0.062 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 1.20 % 1.20 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 5.43 ns 5.43 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 5.40 ns 5.40 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.292 ns 0.292 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 5.39 % 5.39 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 5.23 ns 5.23 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 5.24 ns 5.24 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.059 ns 0.059 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.13 % 1.13 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.77 ns 4.77 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.77 ns 4.77 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.123 ns 0.123 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 2.58 % 2.58 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 6.29 ns 6.29 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 6.29 ns 6.29 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.127 ns 0.127 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 2.03 % 2.03 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 7.26 ns 7.26 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 7.29 ns 7.29 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.310 ns 0.310 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 4.27 % 4.27 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 7.80 ns 7.80 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 7.84 ns 7.84 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.214 ns 0.214 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.74 % 2.74 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.4 ns 10.4 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 10.4 ns 10.4 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.172 ns 0.172 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.65 % 1.65 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 54.1 ns 54.1 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 54.2 ns 54.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 1.32 ns 1.32 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.43 % 2.43 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 66.6 ns 66.6 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 63.3 ns 63.3 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 7.31 ns 7.31 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 10.97 % 10.97 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 85.3 ns 85.3 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 84.7 ns 84.7 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 2.25 ns 2.25 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 2.64 % 2.64 % 4 +std::string copy{str_with_len_N};/15_mean 5.84 ns 5.84 ns 4 +std::string copy{str_with_len_N};/15_median 5.85 ns 5.85 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.117 ns 0.117 ns 4 +std::string copy{str_with_len_N};/15_cv 2.00 % 2.00 % 4 +std::string copy{str_with_len_N};/16_mean 25.1 ns 25.1 ns 4 +std::string copy{str_with_len_N};/16_median 25.1 ns 25.1 ns 4 +std::string copy{str_with_len_N};/16_stddev 0.396 ns 0.396 ns 4 +std::string copy{str_with_len_N};/16_cv 1.58 % 1.58 % 4 +std::string copy{str_with_len_N};/23_mean 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/23_median 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.205 ns 0.205 ns 4 +std::string copy{str_with_len_N};/23_cv 0.82 % 0.82 % 4 +std::string copy{str_with_len_N};/24_mean 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/24_median 25.0 ns 25.0 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.206 ns 0.206 ns 4 +std::string copy{str_with_len_N};/24_cv 0.83 % 0.83 % 4 +std::string copy{str_with_len_N};/32_mean 24.8 ns 24.8 ns 4 +std::string copy{str_with_len_N};/32_median 24.8 ns 24.8 ns 4 +std::string copy{str_with_len_N};/32_stddev 0.129 ns 0.129 ns 4 +std::string copy{str_with_len_N};/32_cv 0.52 % 0.52 % 4 +std::string copy{str_with_len_N};/64_mean 24.7 ns 24.7 ns 4 +std::string copy{str_with_len_N};/64_median 24.8 ns 24.8 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.312 ns 0.312 ns 4 +std::string copy{str_with_len_N};/64_cv 1.26 % 1.26 % 4 +std::string copy{str_with_len_N};/128_mean 26.2 ns 26.2 ns 4 +std::string copy{str_with_len_N};/128_median 26.4 ns 26.4 ns 4 +std::string copy{str_with_len_N};/128_stddev 0.772 ns 0.772 ns 4 +std::string copy{str_with_len_N};/128_cv 2.94 % 2.94 % 4 +std::string copy{str_with_len_N};/256_mean 26.7 ns 26.7 ns 4 +std::string copy{str_with_len_N};/256_median 26.6 ns 26.6 ns 4 +std::string copy{str_with_len_N};/256_stddev 0.415 ns 0.415 ns 4 +std::string copy{str_with_len_N};/256_cv 1.56 % 1.56 % 4 +std::string copy{str_with_len_N};/512_mean 32.7 ns 32.7 ns 4 +std::string copy{str_with_len_N};/512_median 32.7 ns 32.7 ns 4 +std::string copy{str_with_len_N};/512_stddev 0.798 ns 0.798 ns 4 +std::string copy{str_with_len_N};/512_cv 2.44 % 2.44 % 4 +std::string copy{str_with_len_N};/1024_mean 52.0 ns 52.0 ns 4 +std::string copy{str_with_len_N};/1024_median 52.4 ns 52.4 ns 4 +std::string copy{str_with_len_N};/1024_stddev 2.61 ns 2.61 ns 4 +std::string copy{str_with_len_N};/1024_cv 5.02 % 5.02 % 4 +std::string copy{str_with_len_N};/2048_mean 133 ns 133 ns 4 +std::string copy{str_with_len_N};/2048_median 134 ns 134 ns 4 +std::string copy{str_with_len_N};/2048_stddev 3.14 ns 3.14 ns 4 +std::string copy{str_with_len_N};/2048_cv 2.36 % 2.36 % 4 +std::string copy{str_with_len_N};/4096_mean 158 ns 158 ns 4 +std::string copy{str_with_len_N};/4096_median 157 ns 157 ns 4 +std::string copy{str_with_len_N};/4096_stddev 2.93 ns 2.93 ns 4 +std::string copy{str_with_len_N};/4096_cv 1.86 % 1.86 % 4 +stringa copy{str_with_len_N};/15_mean 1.33 ns 1.33 ns 4 +stringa copy{str_with_len_N};/15_median 1.32 ns 1.32 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.044 ns 0.044 ns 4 +stringa copy{str_with_len_N};/15_cv 3.31 % 3.31 % 4 +stringa copy{str_with_len_N};/16_mean 1.34 ns 1.34 ns 4 +stringa copy{str_with_len_N};/16_median 1.34 ns 1.34 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.032 ns 0.032 ns 4 +stringa copy{str_with_len_N};/16_cv 2.39 % 2.39 % 4 +stringa copy{str_with_len_N};/23_mean 1.32 ns 1.32 ns 4 +stringa copy{str_with_len_N};/23_median 1.32 ns 1.32 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.014 ns 0.014 ns 4 +stringa copy{str_with_len_N};/23_cv 1.08 % 1.08 % 4 +stringa copy{str_with_len_N};/24_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/24_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.115 ns 0.115 ns 4 +stringa copy{str_with_len_N};/24_cv 0.70 % 0.70 % 4 +stringa copy{str_with_len_N};/32_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/32_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.199 ns 0.199 ns 4 +stringa copy{str_with_len_N};/32_cv 1.20 % 1.20 % 4 +stringa copy{str_with_len_N};/64_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/64_median 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.197 ns 0.197 ns 4 +stringa copy{str_with_len_N};/64_cv 1.19 % 1.19 % 4 +stringa copy{str_with_len_N};/128_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/128_median 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.180 ns 0.180 ns 4 +stringa copy{str_with_len_N};/128_cv 1.09 % 1.09 % 4 +stringa copy{str_with_len_N};/256_mean 16.6 ns 16.6 ns 4 +stringa copy{str_with_len_N};/256_median 16.6 ns 16.6 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.190 ns 0.190 ns 4 +stringa copy{str_with_len_N};/256_cv 1.15 % 1.15 % 4 +stringa copy{str_with_len_N};/512_mean 16.8 ns 16.8 ns 4 +stringa copy{str_with_len_N};/512_median 16.7 ns 16.7 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.423 ns 0.423 ns 4 +stringa copy{str_with_len_N};/512_cv 2.52 % 2.52 % 4 +stringa copy{str_with_len_N};/1024_mean 16.9 ns 16.9 ns 4 +stringa copy{str_with_len_N};/1024_median 16.9 ns 16.9 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.159 ns 0.159 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.94 % 0.94 % 4 +stringa copy{str_with_len_N};/2048_mean 17.4 ns 17.4 ns 4 +stringa copy{str_with_len_N};/2048_median 17.3 ns 17.3 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.457 ns 0.457 ns 4 +stringa copy{str_with_len_N};/2048_cv 2.64 % 2.64 % 4 +stringa copy{str_with_len_N};/4096_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/4096_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.072 ns 0.072 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.44 % 0.44 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 4.63 ns 4.63 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 4.60 ns 4.60 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.070 ns 0.070 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.51 % 1.51 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 4.66 ns 4.66 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 4.71 ns 4.71 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.159 ns 0.159 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 3.42 % 3.42 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 4.59 ns 4.59 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 4.58 ns 4.58 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.057 ns 0.057 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 1.25 % 1.25 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 24.7 ns 24.7 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 24.7 ns 24.7 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.143 ns 0.143 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 0.58 % 0.58 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 24.7 ns 24.7 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 24.5 ns 24.5 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.377 ns 0.377 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 1.53 % 1.53 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 26.0 ns 26.0 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 26.0 ns 26.0 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.367 ns 0.367 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.41 % 1.41 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 26.7 ns 26.7 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.420 ns 0.420 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 1.57 % 1.57 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 27.3 ns 27.3 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 0.589 ns 0.589 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 2.14 % 2.14 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 30.3 ns 30.3 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 30.3 ns 30.3 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 0.797 ns 0.797 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 2.63 % 2.63 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 114 ns 114 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 114 ns 114 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 1.69 ns 1.69 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 1.48 % 1.49 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 125 ns 125 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 125 ns 125 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 3.65 ns 3.65 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 2.92 % 2.92 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 131 ns 131 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 131 ns 131 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 1.56 ns 1.56 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 1.18 % 1.18 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 4.50 ns 4.50 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 4.50 ns 4.50 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.064 ns 0.064 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 1.42 % 1.42 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 4.64 ns 4.64 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 4.63 ns 4.63 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.128 ns 0.128 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 2.75 % 2.75 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 4.61 ns 4.61 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 4.60 ns 4.60 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.062 ns 0.062 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 1.35 % 1.35 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 4.60 ns 4.60 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 4.60 ns 4.60 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.131 ns 0.131 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 2.85 % 2.85 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 4.17 ns 4.17 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 4.18 ns 4.18 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.038 ns 0.038 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 0.91 % 0.91 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 5.83 ns 5.83 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 5.83 ns 5.83 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.151 ns 0.151 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 2.58 % 2.58 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 7.34 ns 7.34 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 7.36 ns 7.36 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.257 ns 0.257 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 3.50 % 3.50 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 17.3 ns 17.3 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 17.4 ns 17.4 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.167 ns 0.167 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 0.97 % 0.97 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 10.6 ns 10.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 10.6 ns 10.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.149 ns 0.149 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.41 % 1.41 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 109 ns 109 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 109 ns 109 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 1.76 ns 1.76 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 1.61 % 1.61 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 118 ns 118 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 116 ns 116 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 5.58 ns 5.58 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 4.75 % 4.75 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 132 ns 132 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 132 ns 132 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 3.44 ns 3.44 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 2.62 % 2.62 % 4 ----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 26.8 ns 26.8 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.0 ns 27.0 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.606 ns 0.606 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.26 % 2.26 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.3 ns 11.3 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.2 ns 11.2 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.252 ns 0.252 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.23 % 2.23 % 4 -stringa s = "123456789"; int res = s.to_int_mean 8.07 ns 8.07 ns 4 -stringa s = "123456789"; int res = s.to_int_median 8.07 ns 8.07 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.095 ns 0.095 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 1.18 % 1.18 % 4 -ssa s = "123456789"; int res = s.to_int_mean 8.02 ns 8.02 ns 4 -ssa s = "123456789"; int res = s.to_int_median 7.99 ns 7.99 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.170 ns 0.170 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 2.12 % 2.12 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 8.16 ns 8.16 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 8.05 ns 8.05 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.387 ns 0.387 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 4.75 % 4.75 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 27.4 ns 27.4 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.3 ns 27.3 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.353 ns 0.353 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.29 % 1.29 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.1 ns 13.1 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.1 ns 13.1 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.112 ns 0.112 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.85 % 0.85 % 4 +stringa s = "123456789"; int res = s.to_int_mean 8.35 ns 8.35 ns 4 +stringa s = "123456789"; int res = s.to_int_median 8.35 ns 8.35 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.164 ns 0.164 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.96 % 1.96 % 4 +ssa s = "123456789"; int res = s.to_int_mean 8.31 ns 8.31 ns 4 +ssa s = "123456789"; int res = s.to_int_median 8.32 ns 8.32 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.134 ns 0.134 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 1.62 % 1.62 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 8.29 ns 8.29 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 8.24 ns 8.24 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.217 ns 0.217 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 2.61 % 2.61 % 4 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.5 ns 23.5 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.4 ns 23.4 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.447 ns 0.447 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.90 % 1.90 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 10.0 ns 10.0 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 10.1 ns 10.1 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.250 ns 0.250 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.49 % 2.49 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 8.15 ns 8.15 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 8.10 ns 8.10 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.298 ns 0.298 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 3.66 % 3.66 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 8.03 ns 8.03 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 8.07 ns 8.07 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.111 ns 0.111 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 1.39 % 1.39 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.86 ns 7.86 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 7.82 ns 7.82 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.292 ns 0.292 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 3.71 % 3.71 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.8 ns 23.8 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.8 ns 23.8 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.245 ns 0.245 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.03 % 1.03 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.88 ns 9.88 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.87 ns 9.87 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.178 ns 0.178 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.80 % 1.80 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 8.40 ns 8.40 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 8.39 ns 8.39 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.143 ns 0.143 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.71 % 1.71 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 8.50 ns 8.50 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 8.45 ns 8.45 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.258 ns 0.258 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 3.04 % 3.04 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.90 ns 7.90 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 7.91 ns 7.91 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.091 ns 0.091 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.16 % 1.16 % 4 ----- Convert to int ' 1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 28.2 ns 28.2 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 27.6 ns 27.6 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.34 ns 1.34 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 4.77 % 4.77 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 15.3 ns 15.3 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 15.3 ns 15.3 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.607 ns 0.607 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 3.96 % 3.96 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.7 ns 13.7 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.8 ns 13.8 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.253 ns 0.253 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.85 % 1.85 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 29.3 ns 29.3 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.4 ns 29.4 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.460 ns 0.460 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.57 % 1.57 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 16.0 ns 16.0 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 15.9 ns 15.9 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.378 ns 0.378 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 2.37 % 2.37 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 10.9 ns 10.9 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 10.9 ns 10.9 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.370 ns 0.370 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 3.39 % 3.39 % 4 ----- Convert to double '1234.567e10' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 67.9 ns 67.9 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 67.5 ns 67.5 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 3.99 ns 3.99 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 5.88 % 5.88 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 26.1 ns 26.1 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 25.4 ns 25.4 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.88 ns 2.88 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 11.04 % 11.04 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.9 ns 24.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 25.0 ns 25.0 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.363 ns 0.363 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.46 % 1.46 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 64.3 ns 64.3 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.2 ns 64.2 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.942 ns 0.942 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.47 % 1.47 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.7 ns 24.7 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.5 ns 24.5 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.848 ns 0.848 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.43 % 3.43 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 25.0 ns 25.0 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 25.1 ns 25.1 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.458 ns 0.458 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.83 % 1.83 % 4 -- Append const literal of 16 bytes 64 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; ... str << "abbaabbaabbaabba";_mean 1400 ns 1400 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1400 ns 1400 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 38.7 ns 38.7 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.76 % 2.76 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 339 ns 339 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 340 ns 340 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 7.76 ns 7.76 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 2.29 % 2.29 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 357 ns 357 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 360 ns 360 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 9.38 ns 9.38 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.63 % 2.63 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 238 ns 238 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 237 ns 237 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 3.94 ns 3.94 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 1.66 % 1.66 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 211 ns 211 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 205 ns 205 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 14.0 ns 14.0 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.65 % 6.65 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 141 ns 141 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 141 ns 141 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.69 ns 2.69 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.91 % 1.91 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 1394 ns 1394 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 1390 ns 1390 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.9 ns 35.9 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.58 % 2.58 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 388 ns 388 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 386 ns 386 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 11.3 ns 11.3 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.92 % 2.92 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 401 ns 401 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 402 ns 402 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.41 ns 3.41 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.85 % 0.85 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 285 ns 285 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 285 ns 285 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.10 % 5.10 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 262 ns 262 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 269 ns 269 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 20.1 ns 20.1 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.67 % 7.67 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 143 ns 143 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 142 ns 142 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.53 ns 1.53 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.07 % 1.07 % 4 -- Append string of 16 bytes and const literal of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 1387 ns 1387 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1390 ns 1390 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 35.2 ns 35.2 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.54 % 2.54 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1230 ns 1230 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1230 ns 1230 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 42.2 ns 42.2 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.43 % 3.43 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 388 ns 388 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 385 ns 385 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.0 ns 11.0 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.84 % 2.84 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 348 ns 348 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 342 ns 342 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.6 ns 13.6 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.91 % 3.91 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 303 ns 303 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 303 ns 303 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.6 ns 14.6 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.81 % 4.81 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 250 ns 250 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 252 ns 252 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.07 ns 6.07 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.42 % 2.42 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 1403 ns 1403 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1396 ns 1396 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 17.6 ns 17.6 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.25 % 1.25 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1269 ns 1269 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1257 ns 1257 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 44.8 ns 44.8 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.53 % 3.53 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 466 ns 466 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 467 ns 467 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.7 ns 11.7 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.50 % 2.50 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 402 ns 402 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 395 ns 395 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 28.5 ns 28.5 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.10 % 7.10 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 341 ns 341 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 347 ns 347 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.7 ns 18.7 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.48 % 5.48 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 249 ns 249 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 249 ns 249 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.83 ns 4.83 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.94 % 1.94 % 4 -- Append string of 16 bytes and const literal of 16 bytes 2048 times, 65536 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 110614 ns 110615 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 110190 ns 110191 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2152 ns 2152 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.95 % 1.95 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 72502 ns 72502 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73060 ns 73060 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1314 ns 1314 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.81 % 1.81 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 42661 ns 42661 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 42668 ns 42668 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 789 ns 789 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.85 % 1.85 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24880 ns 24880 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24398 ns 24398 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1695 ns 1695 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.81 % 6.81 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18255 ns 18255 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17111 ns 17111 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2640 ns 2640 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 14.46 % 14.46 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19723 ns 19723 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20313 ns 20313 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2091 ns 2091 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 10.60 % 10.60 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 74823 ns 74823 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 74814 ns 74815 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1637 ns 1637 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.19 % 2.19 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 72449 ns 72449 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 72579 ns 72579 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 995 ns 995 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.37 % 1.37 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21114 ns 21114 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21059 ns 21059 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 274 ns 274 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.30 % 1.30 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17678 ns 17678 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17758 ns 17758 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 169 ns 169 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.96 % 0.96 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17782 ns 17782 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17753 ns 17753 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 247 ns 247 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.39 % 1.39 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17685 ns 17685 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17661 ns 17661 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 200 ns 200 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.13 % 1.13 % 4 -- Append 2 string of 16 bytes 32 times, 1024 total length --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; ... str << str_var1 << str_var2;_mean 1684 ns 1684 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1714 ns 1714 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 139 ns 139 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 8.28 % 8.28 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1517 ns 1517 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1498 ns 1498 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 61.2 ns 61.2 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 4.04 % 4.04 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 500 ns 500 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 477 ns 477 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 50.9 ns 50.9 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 10.17 % 10.17 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 421 ns 421 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 421 ns 421 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 22.9 ns 22.9 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 5.45 % 5.45 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 373 ns 373 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 368 ns 368 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 12.4 ns 12.4 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.33 % 3.33 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 305 ns 305 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 305 ns 305 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 3.45 ns 3.45 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.13 % 1.13 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 1413 ns 1413 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 1410 ns 1410 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 28.4 ns 28.4 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 2.01 % 2.01 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 1410 ns 1410 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 1401 ns 1401 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 23.4 ns 23.4 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.66 % 1.66 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 535 ns 535 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 538 ns 538 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.19 ns 8.19 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.53 % 1.53 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 459 ns 459 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 467 ns 467 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 22.4 ns 22.4 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.88 % 4.88 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 405 ns 405 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 409 ns 409 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.0 ns 11.0 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.71 % 2.71 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 310 ns 310 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 309 ns 309 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.12 ns 5.12 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.65 % 1.65 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3201 ns 3201 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3192 ns 3192 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 107 ns 107 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 3.34 % 3.34 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 440 ns 440 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 442 ns 442 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 8.66 ns 8.66 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 1.97 % 1.97 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1483 ns 1483 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1486 ns 1486 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 9.75 ns 9.75 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.66 % 0.66 % 4 -std::string str = std::format("test = {} times", k);_mean 1356 ns 1356 ns 4 -std::string str = std::format("test = {} times", k);_median 1345 ns 1345 ns 4 -std::string str = std::format("test = {} times", k);_stddev 39.9 ns 39.9 ns 4 -std::string str = std::format("test = {} times", k);_cv 2.94 % 2.94 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1740 ns 1740 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1748 ns 1748 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 49.6 ns 49.6 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.85 % 2.85 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1116 ns 1116 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1116 ns 1116 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 9.91 ns 9.91 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 0.89 % 0.89 % 4 -lstringa<8> str = "test = " + k + " times";_mean 304 ns 304 ns 4 -lstringa<8> str = "test = " + k + " times";_median 304 ns 304 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 5.92 ns 5.92 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.95 % 1.95 % 4 -lstringa<32> str = "test = " + k + " times";_mean 148 ns 148 ns 4 -lstringa<32> str = "test = " + k + " times";_median 147 ns 147 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.68 ns 2.68 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.81 % 1.81 % 4 -stringa str = "test = " + k + " times";_mean 167 ns 167 ns 4 -stringa str = "test = " + k + " times";_median 165 ns 165 ns 4 -stringa str = "test = " + k + " times";_stddev 7.60 ns 7.60 ns 4 -stringa str = "test = " + k + " times";_cv 4.56 % 4.56 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 3059 ns 3059 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 3051 ns 3051 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 29.0 ns 29.0 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 0.95 % 0.95 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 449 ns 449 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 452 ns 452 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 8.07 ns 8.07 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 1.80 % 1.80 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1525 ns 1525 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1527 ns 1527 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 32.5 ns 32.5 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.13 % 2.13 % 4 +std::string str = std::format("test = {} times", k);_mean 1283 ns 1283 ns 4 +std::string str = std::format("test = {} times", k);_median 1283 ns 1283 ns 4 +std::string str = std::format("test = {} times", k);_stddev 14.0 ns 14.0 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.09 % 1.09 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 1688 ns 1688 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 1690 ns 1690 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 32.7 ns 32.7 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 1.94 % 1.94 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1113 ns 1113 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1117 ns 1117 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 12.3 ns 12.3 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 1.10 % 1.10 % 4 +lstringa<8> str = "test = " + k + " times";_mean 315 ns 315 ns 4 +lstringa<8> str = "test = " + k + " times";_median 314 ns 314 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 4.53 ns 4.53 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.44 % 1.44 % 4 +lstringa<32> str = "test = " + k + " times";_mean 168 ns 168 ns 4 +lstringa<32> str = "test = " + k + " times";_median 168 ns 168 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 3.29 ns 3.29 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.95 % 1.95 % 4 +stringa str = "test = " + k + " times";_mean 159 ns 159 ns 4 +stringa str = "test = " + k + " times";_median 159 ns 159 ns 4 +stringa str = "test = " + k + " times";_stddev 1.97 ns 1.97 ns 4 +stringa str = "test = " + k + " times";_cv 1.24 % 1.24 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 280 ns 280 ns 4 -std::string::find + substr + std::strtol_median 280 ns 280 ns 4 -std::string::find + substr + std::strtol_stddev 5.77 ns 5.77 ns 4 -std::string::find + substr + std::strtol_cv 2.06 % 2.06 % 4 -ssa::splitter + ssa::as_int_mean 129 ns 129 ns 4 -ssa::splitter + ssa::as_int_median 129 ns 129 ns 4 -ssa::splitter + ssa::as_int_stddev 3.01 ns 3.01 ns 4 -ssa::splitter + ssa::as_int_cv 2.33 % 2.33 % 4 -ssa::splitf + functor_mean 128 ns 128 ns 4 -ssa::splitf + functor_median 128 ns 128 ns 4 -ssa::splitf + functor_stddev 1.92 ns 1.92 ns 4 -ssa::splitf + functor_cv 1.50 % 1.50 % 4 +std::string::find + substr + std::strtol_mean 271 ns 271 ns 4 +std::string::find + substr + std::strtol_median 271 ns 271 ns 4 +std::string::find + substr + std::strtol_stddev 4.52 ns 4.52 ns 4 +std::string::find + substr + std::strtol_cv 1.67 % 1.67 % 4 +ssa::splitter + ssa::as_int_mean 135 ns 135 ns 4 +ssa::splitter + ssa::as_int_median 136 ns 136 ns 4 +ssa::splitter + ssa::as_int_stddev 2.50 ns 2.50 ns 4 +ssa::splitter + ssa::as_int_cv 1.85 % 1.85 % 4 +ssa::splitf + functor_mean 133 ns 133 ns 4 +ssa::splitf + functor_median 133 ns 133 ns 4 +ssa::splitf + functor_stddev 1.73 ns 1.73 ns 4 +ssa::splitf + functor_cv 1.30 % 1.30 % 4 -- Replace symbols in text ~400 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000 -Naive (and wrong) replace symbols with std::string find + replace_mean 838 ns 838 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 835 ns 835 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 7.50 ns 7.50 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 0.89 % 0.89 % 4 -replace symbols with std::string find_first_of + replace_mean 2528 ns 2528 ns 4 -replace symbols with std::string find_first_of + replace_median 2485 ns 2485 ns 4 -replace symbols with std::string find_first_of + replace_stddev 126 ns 126 ns 4 -replace symbols with std::string find_first_of + replace_cv 4.97 % 4.97 % 4 -replace symbols with std::string_view find_first_of + copy_mean 1218 ns 1218 ns 4 -replace symbols with std::string_view find_first_of + copy_median 1225 ns 1225 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 46.1 ns 46.1 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 3.78 % 3.78 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1686 ns 1686 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1624 ns 1624 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 148 ns 148 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 8.79 % 8.79 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1067 ns 1067 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1068 ns 1068 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 21.5 ns 21.5 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.01 % 2.01 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1276 ns 1276 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1233 ns 1233 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 114 ns 114 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 8.92 % 8.92 % 4 -replace const symbols with string expressions and memorization of all search results_mean 875 ns 875 ns 4 -replace const symbols with string expressions and memorization of all search results_median 881 ns 881 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 23.8 ns 23.8 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 2.71 % 2.71 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 846 ns 846 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 842 ns 842 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 11.8 ns 11.8 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 1.40 % 1.40 % 4 +replace symbols with std::string find_first_of + replace_mean 2347 ns 2347 ns 4 +replace symbols with std::string find_first_of + replace_median 2347 ns 2347 ns 4 +replace symbols with std::string find_first_of + replace_stddev 11.5 ns 11.5 ns 4 +replace symbols with std::string find_first_of + replace_cv 0.49 % 0.49 % 4 +replace symbols with std::string_view find_first_of + copy_mean 1136 ns 1136 ns 4 +replace symbols with std::string_view find_first_of + copy_median 1096 ns 1096 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 115 ns 115 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 10.13 % 10.13 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1475 ns 1475 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1468 ns 1468 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 19.9 ns 19.9 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 1.35 % 1.35 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1158 ns 1158 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1159 ns 1159 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 16.7 ns 16.7 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 1.44 % 1.44 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1290 ns 1290 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1293 ns 1293 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 15.4 ns 15.4 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 1.19 % 1.19 % 4 +replace const symbols with string expressions and memorization of all search results_mean 982 ns 982 ns 4 +replace const symbols with string expressions and memorization of all search results_median 983 ns 983 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 18.1 ns 18.1 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 1.84 % 1.84 % 4 -- Replace symbols in text ~40 symbols --/repeats:1 0.000 ns 0.000 ns 1000000000000 -Short Naive (and wrong) replace symbols with std::string find + replace_mean 189 ns 189 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 190 ns 190 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 4.78 ns 4.78 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.53 % 2.53 % 4 -Short replace symbols with std::string find_first_of + replace_mean 351 ns 351 ns 4 -Short replace symbols with std::string find_first_of + replace_median 354 ns 354 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 7.55 ns 7.55 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 2.15 % 2.15 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 204 ns 204 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 204 ns 204 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.22 ns 2.22 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 1.09 % 1.09 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 208 ns 208 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 206 ns 206 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 7.59 ns 7.59 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.65 % 3.65 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 262 ns 262 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 263 ns 263 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 22.6 ns 22.6 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 8.63 % 8.63 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 194 ns 194 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 195 ns 195 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 14.2 ns 14.2 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 7.31 % 7.31 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 176 ns 176 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 176 ns 176 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 3.86 ns 3.86 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 2.19 % 2.19 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 167 ns 167 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 167 ns 167 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.85 ns 5.85 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.49 % 3.49 % 4 +Short replace symbols with std::string find_first_of + replace_mean 326 ns 326 ns 4 +Short replace symbols with std::string find_first_of + replace_median 327 ns 327 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 7.72 ns 7.72 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 2.37 % 2.37 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 170 ns 170 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 169 ns 169 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 3.89 ns 3.89 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 2.29 % 2.29 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 199 ns 199 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 197 ns 197 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 10.6 ns 10.6 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 5.31 % 5.31 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 226 ns 226 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 227 ns 227 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 11.2 ns 11.2 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 4.95 % 4.95 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 164 ns 164 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 163 ns 163 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 14.8 ns 14.8 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 9.05 % 9.05 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 163 ns 163 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 162 ns 162 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 8.27 ns 8.27 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 5.08 % 5.08 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 259 ns 259 ns 4 -replace bb to ---- in std::string|64_median 257 ns 257 ns 4 -replace bb to ---- in std::string|64_stddev 3.73 ns 3.73 ns 4 -replace bb to ---- in std::string|64_cv 1.44 % 1.44 % 4 -replace bb to ---- in std::string|256_mean 861 ns 861 ns 4 -replace bb to ---- in std::string|256_median 859 ns 859 ns 4 -replace bb to ---- in std::string|256_stddev 13.8 ns 13.8 ns 4 -replace bb to ---- in std::string|256_cv 1.60 % 1.60 % 4 -replace bb to ---- in std::string|512_mean 1615 ns 1615 ns 4 -replace bb to ---- in std::string|512_median 1610 ns 1610 ns 4 -replace bb to ---- in std::string|512_stddev 33.2 ns 33.2 ns 4 -replace bb to ---- in std::string|512_cv 2.06 % 2.06 % 4 -replace bb to ---- in std::string|1024_mean 3426 ns 3426 ns 4 -replace bb to ---- in std::string|1024_median 3441 ns 3441 ns 4 -replace bb to ---- in std::string|1024_stddev 49.4 ns 49.4 ns 4 -replace bb to ---- in std::string|1024_cv 1.44 % 1.44 % 4 -replace bb to ---- in std::string|2048_mean 8466 ns 8466 ns 4 -replace bb to ---- in std::string|2048_median 8611 ns 8611 ns 4 -replace bb to ---- in std::string|2048_stddev 419 ns 419 ns 4 -replace bb to ---- in std::string|2048_cv 4.94 % 4.94 % 4 -replace bb to ---- in lstringa<8>|64_mean 204 ns 204 ns 4 -replace bb to ---- in lstringa<8>|64_median 206 ns 206 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 4.78 ns 4.78 ns 4 -replace bb to ---- in lstringa<8>|64_cv 2.34 % 2.34 % 4 -replace bb to ---- in lstringa<8>|256_mean 556 ns 556 ns 4 -replace bb to ---- in lstringa<8>|256_median 555 ns 555 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 21.2 ns 21.2 ns 4 -replace bb to ---- in lstringa<8>|256_cv 3.82 % 3.82 % 4 -replace bb to ---- in lstringa<8>|512_mean 970 ns 970 ns 4 -replace bb to ---- in lstringa<8>|512_median 970 ns 970 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 24.8 ns 24.8 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.56 % 2.56 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1985 ns 1985 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1963 ns 1963 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 186 ns 186 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 9.38 % 9.38 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3912 ns 3912 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3979 ns 3979 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 334 ns 334 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 8.53 % 8.53 % 4 -replace bb to ---- by init stringa|64_mean 119 ns 119 ns 4 -replace bb to ---- by init stringa|64_median 119 ns 119 ns 4 -replace bb to ---- by init stringa|64_stddev 2.17 ns 2.17 ns 4 -replace bb to ---- by init stringa|64_cv 1.82 % 1.82 % 4 -replace bb to ---- by init stringa|256_mean 335 ns 335 ns 4 -replace bb to ---- by init stringa|256_median 331 ns 331 ns 4 -replace bb to ---- by init stringa|256_stddev 14.8 ns 14.8 ns 4 -replace bb to ---- by init stringa|256_cv 4.43 % 4.43 % 4 -replace bb to ---- by init stringa|512_mean 761 ns 761 ns 4 -replace bb to ---- by init stringa|512_median 764 ns 764 ns 4 -replace bb to ---- by init stringa|512_stddev 9.46 ns 9.46 ns 4 -replace bb to ---- by init stringa|512_cv 1.24 % 1.24 % 4 -replace bb to ---- by init stringa|1024_mean 1682 ns 1682 ns 4 -replace bb to ---- by init stringa|1024_median 1658 ns 1658 ns 4 -replace bb to ---- by init stringa|1024_stddev 77.3 ns 77.3 ns 4 -replace bb to ---- by init stringa|1024_cv 4.60 % 4.60 % 4 -replace bb to ---- by init stringa|2048_mean 3300 ns 3300 ns 4 -replace bb to ---- by init stringa|2048_median 3308 ns 3308 ns 4 -replace bb to ---- by init stringa|2048_stddev 42.3 ns 42.3 ns 4 -replace bb to ---- by init stringa|2048_cv 1.28 % 1.28 % 4 +replace bb to ---- in std::string|64_mean 162 ns 162 ns 4 +replace bb to ---- in std::string|64_median 163 ns 163 ns 4 +replace bb to ---- in std::string|64_stddev 2.39 ns 2.39 ns 4 +replace bb to ---- in std::string|64_cv 1.48 % 1.48 % 4 +replace bb to ---- in std::string|256_mean 522 ns 522 ns 4 +replace bb to ---- in std::string|256_median 521 ns 521 ns 4 +replace bb to ---- in std::string|256_stddev 10.1 ns 10.1 ns 4 +replace bb to ---- in std::string|256_cv 1.93 % 1.93 % 4 +replace bb to ---- in std::string|512_mean 989 ns 989 ns 4 +replace bb to ---- in std::string|512_median 993 ns 993 ns 4 +replace bb to ---- in std::string|512_stddev 16.1 ns 16.1 ns 4 +replace bb to ---- in std::string|512_cv 1.63 % 1.63 % 4 +replace bb to ---- in std::string|1024_mean 2326 ns 2326 ns 4 +replace bb to ---- in std::string|1024_median 2271 ns 2271 ns 4 +replace bb to ---- in std::string|1024_stddev 156 ns 156 ns 4 +replace bb to ---- in std::string|1024_cv 6.71 % 6.71 % 4 +replace bb to ---- in std::string|2048_mean 5856 ns 5856 ns 4 +replace bb to ---- in std::string|2048_median 5841 ns 5841 ns 4 +replace bb to ---- in std::string|2048_stddev 363 ns 363 ns 4 +replace bb to ---- in std::string|2048_cv 6.21 % 6.21 % 4 +replace bb to ---- in lstringa<8>|64_mean 148 ns 148 ns 4 +replace bb to ---- in lstringa<8>|64_median 147 ns 147 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 3.13 ns 3.13 ns 4 +replace bb to ---- in lstringa<8>|64_cv 2.12 % 2.12 % 4 +replace bb to ---- in lstringa<8>|256_mean 477 ns 477 ns 4 +replace bb to ---- in lstringa<8>|256_median 477 ns 477 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 6.69 ns 6.69 ns 4 +replace bb to ---- in lstringa<8>|256_cv 1.40 % 1.40 % 4 +replace bb to ---- in lstringa<8>|512_mean 911 ns 911 ns 4 +replace bb to ---- in lstringa<8>|512_median 902 ns 902 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 29.5 ns 29.5 ns 4 +replace bb to ---- in lstringa<8>|512_cv 3.24 % 3.24 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1886 ns 1886 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1888 ns 1888 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 46.8 ns 46.8 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 2.48 % 2.48 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3484 ns 3484 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3497 ns 3497 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 62.0 ns 62.0 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 1.78 % 1.78 % 4 +replace bb to ---- by init stringa|64_mean 101 ns 101 ns 4 +replace bb to ---- by init stringa|64_median 100 ns 100 ns 4 +replace bb to ---- by init stringa|64_stddev 2.66 ns 2.66 ns 4 +replace bb to ---- by init stringa|64_cv 2.62 % 2.62 % 4 +replace bb to ---- by init stringa|256_mean 348 ns 348 ns 4 +replace bb to ---- by init stringa|256_median 339 ns 339 ns 4 +replace bb to ---- by init stringa|256_stddev 21.6 ns 21.6 ns 4 +replace bb to ---- by init stringa|256_cv 6.20 % 6.20 % 4 +replace bb to ---- by init stringa|512_mean 781 ns 781 ns 4 +replace bb to ---- by init stringa|512_median 768 ns 768 ns 4 +replace bb to ---- by init stringa|512_stddev 37.6 ns 37.6 ns 4 +replace bb to ---- by init stringa|512_cv 4.81 % 4.81 % 4 +replace bb to ---- by init stringa|1024_mean 1664 ns 1664 ns 4 +replace bb to ---- by init stringa|1024_median 1667 ns 1667 ns 4 +replace bb to ---- by init stringa|1024_stddev 19.1 ns 19.1 ns 4 +replace bb to ---- by init stringa|1024_cv 1.15 % 1.15 % 4 +replace bb to ---- by init stringa|2048_mean 3334 ns 3334 ns 4 +replace bb to ---- by init stringa|2048_median 3335 ns 3335 ns 4 +replace bb to ---- by init stringa|2048_stddev 12.1 ns 12.1 ns 4 +replace bb to ---- by init stringa|2048_cv 0.36 % 0.36 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 199 ns 199 ns 4 -replace bb to -- in std::string|64_median 200 ns 200 ns 4 -replace bb to -- in std::string|64_stddev 4.68 ns 4.68 ns 4 -replace bb to -- in std::string|64_cv 2.35 % 2.35 % 4 -replace bb to -- in std::string|256_mean 635 ns 635 ns 4 -replace bb to -- in std::string|256_median 628 ns 628 ns 4 -replace bb to -- in std::string|256_stddev 17.5 ns 17.5 ns 4 -replace bb to -- in std::string|256_cv 2.76 % 2.76 % 4 -replace bb to -- in std::string|512_mean 1408 ns 1408 ns 4 -replace bb to -- in std::string|512_median 1403 ns 1403 ns 4 -replace bb to -- in std::string|512_stddev 87.1 ns 87.1 ns 4 -replace bb to -- in std::string|512_cv 6.19 % 6.19 % 4 -replace bb to -- in std::string|1024_mean 2878 ns 2878 ns 4 -replace bb to -- in std::string|1024_median 2843 ns 2843 ns 4 -replace bb to -- in std::string|1024_stddev 284 ns 284 ns 4 -replace bb to -- in std::string|1024_cv 9.87 % 9.87 % 4 -replace bb to -- in std::string|2048_mean 4530 ns 4530 ns 4 -replace bb to -- in std::string|2048_median 4518 ns 4518 ns 4 -replace bb to -- in std::string|2048_stddev 230 ns 230 ns 4 -replace bb to -- in std::string|2048_cv 5.07 % 5.07 % 4 -replace bb to -- in lstringa<8>|64_mean 137 ns 137 ns 4 -replace bb to -- in lstringa<8>|64_median 137 ns 137 ns 4 -replace bb to -- in lstringa<8>|64_stddev 2.56 ns 2.56 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.86 % 1.86 % 4 -replace bb to -- in lstringa<8>|256_mean 347 ns 347 ns 4 -replace bb to -- in lstringa<8>|256_median 345 ns 345 ns 4 -replace bb to -- in lstringa<8>|256_stddev 9.86 ns 9.86 ns 4 -replace bb to -- in lstringa<8>|256_cv 2.84 % 2.84 % 4 -replace bb to -- in lstringa<8>|512_mean 569 ns 569 ns 4 -replace bb to -- in lstringa<8>|512_median 568 ns 568 ns 4 -replace bb to -- in lstringa<8>|512_stddev 9.56 ns 9.56 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.68 % 1.68 % 4 -replace bb to -- in lstringa<8>|1024_mean 1085 ns 1085 ns 4 -replace bb to -- in lstringa<8>|1024_median 1069 ns 1069 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 47.7 ns 47.7 ns 4 -replace bb to -- in lstringa<8>|1024_cv 4.40 % 4.40 % 4 -replace bb to -- in lstringa<8>|2048_mean 2030 ns 2030 ns 4 -replace bb to -- in lstringa<8>|2048_median 2025 ns 2025 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 50.8 ns 50.8 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.50 % 2.50 % 4 -replace bb to -- by init stringa|64_mean 107 ns 107 ns 4 -replace bb to -- by init stringa|64_median 107 ns 107 ns 4 -replace bb to -- by init stringa|64_stddev 0.854 ns 0.854 ns 4 -replace bb to -- by init stringa|64_cv 0.80 % 0.80 % 4 -replace bb to -- by init stringa|256_mean 289 ns 289 ns 4 -replace bb to -- by init stringa|256_median 288 ns 288 ns 4 -replace bb to -- by init stringa|256_stddev 7.41 ns 7.41 ns 4 -replace bb to -- by init stringa|256_cv 2.57 % 2.57 % 4 -replace bb to -- by init stringa|512_mean 523 ns 523 ns 4 -replace bb to -- by init stringa|512_median 518 ns 518 ns 4 -replace bb to -- by init stringa|512_stddev 16.4 ns 16.4 ns 4 -replace bb to -- by init stringa|512_cv 3.13 % 3.13 % 4 -replace bb to -- by init stringa|1024_mean 1033 ns 1033 ns 4 -replace bb to -- by init stringa|1024_median 1016 ns 1016 ns 4 -replace bb to -- by init stringa|1024_stddev 39.1 ns 39.1 ns 4 -replace bb to -- by init stringa|1024_cv 3.79 % 3.79 % 4 -replace bb to -- by init stringa|2048_mean 1962 ns 1962 ns 4 -replace bb to -- by init stringa|2048_median 1904 ns 1904 ns 4 -replace bb to -- by init stringa|2048_stddev 118 ns 118 ns 4 -replace bb to -- by init stringa|2048_cv 6.02 % 6.02 % 4 +replace bb to -- in std::string|64_mean 121 ns 121 ns 4 +replace bb to -- in std::string|64_median 120 ns 120 ns 4 +replace bb to -- in std::string|64_stddev 1.96 ns 1.96 ns 4 +replace bb to -- in std::string|64_cv 1.63 % 1.63 % 4 +replace bb to -- in std::string|256_mean 401 ns 401 ns 4 +replace bb to -- in std::string|256_median 398 ns 398 ns 4 +replace bb to -- in std::string|256_stddev 7.79 ns 7.79 ns 4 +replace bb to -- in std::string|256_cv 1.94 % 1.94 % 4 +replace bb to -- in std::string|512_mean 712 ns 712 ns 4 +replace bb to -- in std::string|512_median 711 ns 711 ns 4 +replace bb to -- in std::string|512_stddev 10.1 ns 10.1 ns 4 +replace bb to -- in std::string|512_cv 1.41 % 1.41 % 4 +replace bb to -- in std::string|1024_mean 1360 ns 1360 ns 4 +replace bb to -- in std::string|1024_median 1353 ns 1353 ns 4 +replace bb to -- in std::string|1024_stddev 29.0 ns 29.0 ns 4 +replace bb to -- in std::string|1024_cv 2.13 % 2.13 % 4 +replace bb to -- in std::string|2048_mean 2878 ns 2878 ns 4 +replace bb to -- in std::string|2048_median 2853 ns 2853 ns 4 +replace bb to -- in std::string|2048_stddev 80.5 ns 80.5 ns 4 +replace bb to -- in std::string|2048_cv 2.80 % 2.80 % 4 +replace bb to -- in lstringa<8>|64_mean 101 ns 101 ns 4 +replace bb to -- in lstringa<8>|64_median 102 ns 102 ns 4 +replace bb to -- in lstringa<8>|64_stddev 2.19 ns 2.19 ns 4 +replace bb to -- in lstringa<8>|64_cv 2.16 % 2.16 % 4 +replace bb to -- in lstringa<8>|256_mean 305 ns 305 ns 4 +replace bb to -- in lstringa<8>|256_median 303 ns 303 ns 4 +replace bb to -- in lstringa<8>|256_stddev 8.34 ns 8.34 ns 4 +replace bb to -- in lstringa<8>|256_cv 2.73 % 2.73 % 4 +replace bb to -- in lstringa<8>|512_mean 535 ns 535 ns 4 +replace bb to -- in lstringa<8>|512_median 536 ns 536 ns 4 +replace bb to -- in lstringa<8>|512_stddev 6.34 ns 6.34 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.18 % 1.18 % 4 +replace bb to -- in lstringa<8>|1024_mean 1082 ns 1082 ns 4 +replace bb to -- in lstringa<8>|1024_median 1096 ns 1096 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 30.3 ns 30.3 ns 4 +replace bb to -- in lstringa<8>|1024_cv 2.79 % 2.79 % 4 +replace bb to -- in lstringa<8>|2048_mean 2085 ns 2085 ns 4 +replace bb to -- in lstringa<8>|2048_median 2063 ns 2063 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 59.9 ns 59.9 ns 4 +replace bb to -- in lstringa<8>|2048_cv 2.87 % 2.87 % 4 +replace bb to -- by init stringa|64_mean 95.3 ns 95.3 ns 4 +replace bb to -- by init stringa|64_median 95.2 ns 95.2 ns 4 +replace bb to -- by init stringa|64_stddev 2.00 ns 2.00 ns 4 +replace bb to -- by init stringa|64_cv 2.10 % 2.10 % 4 +replace bb to -- by init stringa|256_mean 273 ns 273 ns 4 +replace bb to -- by init stringa|256_median 274 ns 274 ns 4 +replace bb to -- by init stringa|256_stddev 3.91 ns 3.91 ns 4 +replace bb to -- by init stringa|256_cv 1.43 % 1.43 % 4 +replace bb to -- by init stringa|512_mean 508 ns 508 ns 4 +replace bb to -- by init stringa|512_median 507 ns 507 ns 4 +replace bb to -- by init stringa|512_stddev 4.71 ns 4.71 ns 4 +replace bb to -- by init stringa|512_cv 0.93 % 0.93 % 4 +replace bb to -- by init stringa|1024_mean 1043 ns 1043 ns 4 +replace bb to -- by init stringa|1024_median 1049 ns 1049 ns 4 +replace bb to -- by init stringa|1024_stddev 16.2 ns 16.2 ns 4 +replace bb to -- by init stringa|1024_cv 1.56 % 1.56 % 4 +replace bb to -- by init stringa|2048_mean 2005 ns 2005 ns 4 +replace bb to -- by init stringa|2048_median 1990 ns 1990 ns 4 +replace bb to -- by init stringa|2048_stddev 37.3 ns 37.3 ns 4 +replace bb to -- by init stringa|2048_cv 1.86 % 1.86 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3722252 ns 3722266 ns 4 -hashStrMapA emplace & find stringa;_median 3715967 ns 3715981 ns 4 -hashStrMapA emplace & find stringa;_stddev 73617 ns 73617 ns 4 -hashStrMapA emplace & find stringa;_cv 1.98 % 1.98 % 4 -std::unordered_map emplace & find std::string;_mean 3459756 ns 3459769 ns 4 -std::unordered_map emplace & find std::string;_median 3450948 ns 3450961 ns 4 -std::unordered_map emplace & find std::string;_stddev 48808 ns 48805 ns 4 -std::unordered_map emplace & find std::string;_cv 1.41 % 1.41 % 4 -hashStrMapA emplace & find ssa;_mean 3732175 ns 3732184 ns 4 -hashStrMapA emplace & find ssa;_median 3724329 ns 3724337 ns 4 -hashStrMapA emplace & find ssa;_stddev 33009 ns 33011 ns 4 -hashStrMapA emplace & find ssa;_cv 0.88 % 0.88 % 4 -std::unordered_map emplace & find std::string_view;_mean 4165106 ns 4165116 ns 4 -std::unordered_map emplace & find std::string_view;_median 4053998 ns 4054006 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 289772 ns 289775 ns 4 -std::unordered_map emplace & find std::string_view;_cv 6.96 % 6.96 % 4 +hashStrMapA emplace & find stringa;_mean 3755052 ns 3755065 ns 4 +hashStrMapA emplace & find stringa;_median 3777998 ns 3778011 ns 4 +hashStrMapA emplace & find stringa;_stddev 76008 ns 76009 ns 4 +hashStrMapA emplace & find stringa;_cv 2.02 % 2.02 % 4 +std::unordered_map emplace & find std::string;_mean 3698410 ns 3698420 ns 4 +std::unordered_map emplace & find std::string;_median 3636474 ns 3636484 ns 4 +std::unordered_map emplace & find std::string;_stddev 153086 ns 153086 ns 4 +std::unordered_map emplace & find std::string;_cv 4.14 % 4.14 % 4 +hashStrMapA emplace & find ssa;_mean 3981007 ns 3981020 ns 4 +hashStrMapA emplace & find ssa;_median 3979884 ns 3979896 ns 4 +hashStrMapA emplace & find ssa;_stddev 182873 ns 182870 ns 4 +hashStrMapA emplace & find ssa;_cv 4.59 % 4.59 % 4 +std::unordered_map emplace & find std::string_view;_mean 4270911 ns 4270924 ns 4 +std::unordered_map emplace & find std::string_view;_median 4127642 ns 4127656 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 339362 ns 339361 ns 4 +std::unordered_map emplace & find std::string_view;_cv 7.95 % 7.95 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1064 ns 1064 ns 4 -Build func full name std::string;_median 1061 ns 1061 ns 4 -Build func full name std::string;_stddev 12.6 ns 12.6 ns 4 -Build func full name std::string;_cv 1.18 % 1.18 % 4 -Build func full name std::string 1;_mean 1133 ns 1133 ns 4 -Build func full name std::string 1;_median 1137 ns 1137 ns 4 -Build func full name std::string 1;_stddev 35.9 ns 35.9 ns 4 -Build func full name std::string 1;_cv 3.17 % 3.17 % 4 -Build func full name std::stream;_mean 2789 ns 2789 ns 4 -Build func full name std::stream;_median 2800 ns 2800 ns 4 -Build func full name std::stream;_stddev 141 ns 141 ns 4 -Build func full name std::stream;_cv 5.05 % 5.05 % 4 -Build func full name stringa;_mean 575 ns 575 ns 4 -Build func full name stringa;_median 574 ns 574 ns 4 -Build func full name stringa;_stddev 15.4 ns 15.4 ns 4 -Build func full name stringa;_cv 2.68 % 2.68 % 4 -Build func full name stringa 1;_mean 897 ns 897 ns 4 -Build func full name stringa 1;_median 896 ns 896 ns 4 -Build func full name stringa 1;_stddev 13.8 ns 13.8 ns 4 -Build func full name stringa 1;_cv 1.54 % 1.54 % 4 +Build func full name std::string;_mean 972 ns 972 ns 4 +Build func full name std::string;_median 973 ns 973 ns 4 +Build func full name std::string;_stddev 19.9 ns 19.9 ns 4 +Build func full name std::string;_cv 2.05 % 2.05 % 4 +Build func full name std::string 1;_mean 1049 ns 1049 ns 4 +Build func full name std::string 1;_median 1046 ns 1046 ns 4 +Build func full name std::string 1;_stddev 14.5 ns 14.5 ns 4 +Build func full name std::string 1;_cv 1.38 % 1.38 % 4 +Build func full name std::stream;_mean 2610 ns 2610 ns 4 +Build func full name std::stream;_median 2605 ns 2605 ns 4 +Build func full name std::stream;_stddev 70.8 ns 70.8 ns 4 +Build func full name std::stream;_cv 2.71 % 2.71 % 4 +Build func full name stringa;_mean 482 ns 482 ns 4 +Build func full name stringa;_median 484 ns 484 ns 4 +Build func full name stringa;_stddev 13.0 ns 13.0 ns 4 +Build func full name stringa;_cv 2.71 % 2.71 % 4 +Build func full name stringa 1;_mean 688 ns 688 ns 4 +Build func full name stringa 1;_median 689 ns 689 ns 4 +Build func full name stringa 1;_stddev 8.04 ns 8.04 ns 4 +Build func full name stringa 1;_cv 1.17 % 1.17 % 4 diff --git a/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt b/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt index 25dca56..91c6fad 100644 --- a/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt +++ b/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.6.4 +Benchmarks of simstr, version 1.6.5 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html -2026-02-04T17:07:18+03:00 +2026-02-08T13:13:26+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,916 +14,924 @@ CPU Caches: 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 264 ns 264 ns 4 -Concat std::string and number by std to std::string_median 264 ns 264 ns 4 -Concat std::string and number by std to std::string_stddev 4.78 ns 3.42 ns 4 -Concat std::string and number by std to std::string_cv 1.81 % 1.30 % 4 -Concat std::string and number by StrExpr to std::string_mean 148 ns 147 ns 4 -Concat std::string and number by StrExpr to std::string_median 148 ns 146 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 2.46 ns 1.74 ns 4 -Concat std::string and number by StrExpr to std::string_cv 1.66 % 1.18 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 68.5 ns 68.7 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 68.3 ns 68.4 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 0.583 ns 0.698 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 0.85 % 1.02 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 75.6 ns 75.4 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 75.2 ns 75.0 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 1.31 ns 2.19 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 1.74 % 2.91 % 4 +Concat std::string and number by std to std::string_mean 269 ns 270 ns 4 +Concat std::string and number by std to std::string_median 269 ns 270 ns 4 +Concat std::string and number by std to std::string_stddev 0.596 ns 3.42 ns 4 +Concat std::string and number by std to std::string_cv 0.22 % 1.27 % 4 +Concat std::string and number by StrExpr to std::string_mean 155 ns 154 ns 4 +Concat std::string and number by StrExpr to std::string_median 156 ns 153 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 4.29 ns 5.75 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.77 % 3.73 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 70.3 ns 70.5 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 70.4 ns 70.5 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 1.02 ns 1.80 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 1.45 % 2.56 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 74.8 ns 75.0 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 74.9 ns 75.9 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 1.83 ns 2.47 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 2.45 % 3.29 % 4 ----- Concatenate string + Hex Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and format hex number and literal to std::string_mean 714 ns 715 ns 4 -Concat std::string and format hex number and literal to std::string_median 713 ns 724 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 13.3 ns 24.7 ns 4 -Concat std::string and format hex number and literal to std::string_cv 1.86 % 3.45 % 4 -std::format std::string and hex number by literal to std::string_mean 1483 ns 1483 ns 4 -std::format std::string and hex number by literal to std::string_median 1475 ns 1475 ns 4 -std::format std::string and hex number by literal to std::string_stddev 44.6 ns 47.1 ns 4 -std::format std::string and hex number by literal to std::string_cv 3.01 % 3.17 % 4 -Concat std::string and std::to_chars and string to std::string_mean 191 ns 190 ns 4 -Concat std::string and std::to_chars and string to std::string_median 191 ns 190 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 2.18 ns 0.000 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.14 % 0.00 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 78.8 ns 78.9 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 79.0 ns 79.3 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.13 ns 1.67 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 1.43 % 2.12 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 74.3 ns 74.1 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 72.0 ns 72.4 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 5.99 ns 5.42 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 8.07 % 7.32 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 81.0 ns 80.7 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 81.0 ns 81.1 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.90 ns 1.67 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.34 % 2.07 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 149 ns 149 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 149 ns 149 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.77 ns 1.81 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.18 % 1.22 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 305 ns 305 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 305 ns 305 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 19.2 ns 19.5 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 6.29 % 6.40 % 4 ------ format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -"art "_ss + i / 0x8a010_fmt + " end"_mean 108 ns 108 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_median 108 ns 107 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_stddev 6.17 ns 7.01 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_cv 5.70 % 6.49 % 4 -e_subst("art {} end", i / 0x8a010_fmt)_mean 188 ns 189 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_median 182 ns 181 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_stddev 23.9 ns 23.5 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_cv 12.66 % 12.45 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 315 ns 317 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 316 ns 318 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 9.05 ns 13.1 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.87 % 4.14 % 4 -std::format("art {:#010o} end", i)_mean 1364 ns 1365 ns 4 -std::format("art {:#010o} end", i)_median 1366 ns 1365 ns 4 -std::format("art {:#010o} end", i)_stddev 22.3 ns 18.1 ns 4 -std::format("art {:#010o} end", i)_cv 1.64 % 1.33 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1391 ns 1395 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1394 ns 1395 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 33.8 ns 22.8 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.43 % 1.63 % 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6488 ns 6487 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6488 ns 6557 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 88.7 ns 140 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.37 % 2.15 % 4 +Concat std::string and format hex number and literal to std::string_mean 720 ns 722 ns 4 +Concat std::string and format hex number and literal to std::string_median 722 ns 718 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 16.2 ns 13.4 ns 4 +Concat std::string and format hex number and literal to std::string_cv 2.25 % 1.85 % 4 +std::format std::string and hex number by literal to std::string_mean 1498 ns 1491 ns 4 +std::format std::string and hex number by literal to std::string_median 1496 ns 1491 ns 4 +std::format std::string and hex number by literal to std::string_stddev 7.36 ns 18.1 ns 4 +std::format std::string and hex number by literal to std::string_cv 0.49 % 1.22 % 4 +Concat std::string and std::to_chars and string to std::string_mean 196 ns 197 ns 4 +Concat std::string and std::to_chars and string to std::string_median 196 ns 197 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 4.66 ns 3.42 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 2.38 % 1.74 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 81.1 ns 81.1 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 81.0 ns 80.6 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.07 ns 2.00 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 2.55 % 2.47 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 72.6 ns 71.9 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 72.5 ns 71.5 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.774 ns 0.872 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.07 % 1.21 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 81.6 ns 81.1 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 81.3 ns 81.1 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.44 ns 2.25 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.76 % 2.78 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 150 ns 149 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 150 ns 146 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.28 ns 5.23 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.85 % 3.51 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 299 ns 300 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 300 ns 298 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.13 ns 6.01 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.05 % 2.01 % 4 +---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 663 ns 658 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 667 ns 663 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 15.7 ns 21.9 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.37 % 3.33 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 745 ns 746 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 742 ns 741 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 17.1 ns 16.7 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.30 % 2.24 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1095 ns 1086 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1097 ns 1086 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 13.9 ns 31.5 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.27 % 2.90 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1399 ns 1397 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1401 ns 1397 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 28.6 ns 18.1 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.04 % 1.30 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1377 ns 1365 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1357 ns 1350 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 42.8 ns 31.4 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.11 % 2.30 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1590 ns 1593 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1589 ns 1585 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 22.9 ns 30.1 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.44 % 1.89 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1604 ns 1604 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1602 ns 1604 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 23.3 ns 28.5 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 1.45 % 1.77 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6560 ns 6557 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6517 ns 6487 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 164 ns 197 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.49 % 3.01 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 41.1 ns 41.0 ns 4 -Concat std::string by std to std::string_median 39.3 ns 39.4 ns 4 -Concat std::string by std to std::string_stddev 5.33 ns 4.93 ns 4 -Concat std::string by std to std::string_cv 12.95 % 12.02 % 4 -Concat std::string by StrExpr to std::string_mean 38.6 ns 38.7 ns 4 -Concat std::string by StrExpr to std::string_median 38.7 ns 38.5 ns 4 -Concat std::string by StrExpr to std::string_stddev 0.438 ns 0.419 ns 4 -Concat std::string by StrExpr to std::string_cv 1.13 % 1.08 % 4 -Concat stringa by StrExpr to stringa_mean 29.2 ns 29.2 ns 4 -Concat stringa by StrExpr to stringa_median 28.5 ns 28.8 ns 4 -Concat stringa by StrExpr to stringa_stddev 1.89 ns 1.95 ns 4 -Concat stringa by StrExpr to stringa_cv 6.47 % 6.69 % 4 +Concat std::string by std to std::string_mean 39.5 ns 39.5 ns 4 +Concat std::string by std to std::string_median 39.7 ns 39.7 ns 4 +Concat std::string by std to std::string_stddev 1.28 ns 1.49 ns 4 +Concat std::string by std to std::string_cv 3.24 % 3.77 % 4 +Concat std::string by StrExpr to std::string_mean 38.7 ns 38.1 ns 4 +Concat std::string by StrExpr to std::string_median 38.6 ns 38.4 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.331 ns 0.436 ns 4 +Concat std::string by StrExpr to std::string_cv 0.86 % 1.14 % 4 +Concat stringa by StrExpr to stringa_mean 29.5 ns 29.3 ns 4 +Concat stringa by StrExpr to stringa_median 29.7 ns 29.8 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.968 ns 0.994 ns 4 +Concat stringa by StrExpr to stringa_cv 3.28 % 3.39 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 205 ns 206 ns 4 -Find concat three std::string_median 204 ns 205 ns 4 -Find concat three std::string_stddev 4.81 ns 6.28 ns 4 -Find concat three std::string_cv 2.34 % 3.05 % 4 -Find concat three strexpr_mean 120 ns 121 ns 4 -Find concat three strexpr_median 121 ns 121 ns 4 -Find concat three strexpr_stddev 5.11 ns 5.81 ns 4 -Find concat three strexpr_cv 4.25 % 4.81 % 4 -Find concat three simstr_mean 29.1 ns 29.1 ns 4 -Find concat three simstr_median 28.4 ns 28.3 ns 4 -Find concat three simstr_stddev 1.93 ns 2.00 ns 4 -Find concat three simstr_cv 6.62 % 6.88 % 4 +Find concat three std::string_mean 208 ns 206 ns 4 +Find concat three std::string_median 208 ns 205 ns 4 +Find concat three std::string_stddev 2.39 ns 2.44 ns 4 +Find concat three std::string_cv 1.15 % 1.18 % 4 +Find concat three strexpr_mean 123 ns 123 ns 4 +Find concat three strexpr_median 123 ns 123 ns 4 +Find concat three strexpr_stddev 2.07 ns 1.40 ns 4 +Find concat three strexpr_cv 1.68 % 1.13 % 4 +Find concat three simstr_mean 28.0 ns 27.9 ns 4 +Find concat three simstr_median 28.1 ns 27.9 ns 4 +Find concat three simstr_stddev 0.559 ns 0.810 ns 4 +Find concat three simstr_cv 2.00 % 2.90 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 8.48 ns 8.44 ns 4 -BuildTypeNameStr 0/0_median 8.38 ns 8.44 ns 4 -BuildTypeNameStr 0/0_stddev 0.326 ns 0.299 ns 4 -BuildTypeNameStr 0/0_cv 3.85 % 3.54 % 4 -BuildTypeNameExp 0/0_mean 7.67 ns 7.63 ns 4 -BuildTypeNameExp 0/0_median 7.68 ns 7.67 ns 4 -BuildTypeNameExp 0/0_stddev 0.145 ns 0.219 ns 4 -BuildTypeNameExp 0/0_cv 1.90 % 2.88 % 4 -BuildTypeNameSim 0/0_mean 7.67 ns 7.67 ns 4 -BuildTypeNameSim 0/0_median 7.68 ns 7.67 ns 4 -BuildTypeNameSim 0/0_stddev 0.127 ns 0.201 ns 4 -BuildTypeNameSim 0/0_cv 1.65 % 2.62 % 4 -BuildTypeNameStr 10/10_mean 60.0 ns 60.0 ns 4 -BuildTypeNameStr 10/10_median 58.5 ns 58.6 ns 4 -BuildTypeNameStr 10/10_stddev 3.03 ns 2.79 ns 4 -BuildTypeNameStr 10/10_cv 5.06 % 4.65 % 4 +BuildTypeNameStr 0/0_mean 8.30 ns 8.11 ns 4 +BuildTypeNameStr 0/0_median 8.28 ns 8.11 ns 4 +BuildTypeNameStr 0/0_stddev 0.303 ns 0.225 ns 4 +BuildTypeNameStr 0/0_cv 3.65 % 2.78 % 4 +BuildTypeNameExp 0/0_mean 7.64 ns 7.63 ns 4 +BuildTypeNameExp 0/0_median 7.63 ns 7.59 ns 4 +BuildTypeNameExp 0/0_stddev 0.147 ns 0.167 ns 4 +BuildTypeNameExp 0/0_cv 1.92 % 2.19 % 4 +BuildTypeNameSim 0/0_mean 8.09 ns 8.02 ns 4 +BuildTypeNameSim 0/0_median 8.15 ns 8.02 ns 4 +BuildTypeNameSim 0/0_stddev 0.148 ns 0.142 ns 4 +BuildTypeNameSim 0/0_cv 1.83 % 1.77 % 4 +BuildTypeNameStr 10/10_mean 61.1 ns 60.7 ns 4 +BuildTypeNameStr 10/10_median 60.5 ns 60.0 ns 4 +BuildTypeNameStr 10/10_stddev 1.55 ns 1.40 ns 4 +BuildTypeNameStr 10/10_cv 2.54 % 2.30 % 4 BuildTypeNameExp 10/10_mean 32.4 ns 32.4 ns 4 -BuildTypeNameExp 10/10_median 32.6 ns 32.1 ns 4 -BuildTypeNameExp 10/10_stddev 0.546 ns 0.698 ns 4 -BuildTypeNameExp 10/10_cv 1.68 % 2.15 % 4 -BuildTypeNameSim 10/10_mean 24.9 ns 24.9 ns 4 -BuildTypeNameSim 10/10_median 24.8 ns 24.6 ns 4 -BuildTypeNameSim 10/10_stddev 0.355 ns 0.523 ns 4 -BuildTypeNameSim 10/10_cv 1.43 % 2.11 % 4 +BuildTypeNameExp 10/10_median 32.4 ns 32.6 ns 4 +BuildTypeNameExp 10/10_stddev 1.26 ns 1.31 ns 4 +BuildTypeNameExp 10/10_cv 3.87 % 4.04 % 4 +BuildTypeNameSim 10/10_mean 25.4 ns 25.3 ns 4 +BuildTypeNameSim 10/10_median 25.3 ns 25.1 ns 4 +BuildTypeNameSim 10/10_stddev 0.365 ns 0.702 ns 4 +BuildTypeNameSim 10/10_cv 1.44 % 2.78 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 314 ns 314 ns 4 -Concat with replace str_median 306 ns 304 ns 4 -Concat with replace str_stddev 24.1 ns 25.6 ns 4 -Concat with replace str_cv 7.68 % 8.16 % 4 -Concat with replace exp_mean 213 ns 212 ns 4 -Concat with replace exp_median 213 ns 212 ns 4 -Concat with replace exp_stddev 3.03 ns 2.82 ns 4 -Concat with replace exp_cv 1.42 % 1.33 % 4 +Concat with replace str_mean 317 ns 316 ns 4 +Concat with replace str_median 315 ns 314 ns 4 +Concat with replace str_stddev 6.51 ns 3.49 ns 4 +Concat with replace str_cv 2.05 % 1.10 % 4 +Concat with replace exp_mean 218 ns 213 ns 4 +Concat with replace exp_median 218 ns 213 ns 4 +Concat with replace exp_stddev 8.70 ns 3.70 ns 4 +Concat with replace exp_cv 4.00 % 1.74 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.12 ns 1.12 ns 4 -std::string e;_median 1.11 ns 1.11 ns 4 -std::string e;_stddev 0.046 ns 0.023 ns 4 -std::string e;_cv 4.08 % 2.09 % 4 -std::string_view e;_mean 0.378 ns 0.377 ns 4 -std::string_view e;_median 0.378 ns 0.377 ns 4 -std::string_view e;_stddev 0.019 ns 0.019 ns 4 -std::string_view e;_cv 5.06 % 4.91 % 4 -ssa e;_mean 0.377 ns 0.376 ns 4 -ssa e;_median 0.374 ns 0.372 ns 4 -ssa e;_stddev 0.017 ns 0.011 ns 4 -ssa e;_cv 4.43 % 2.89 % 4 -stringa e;_mean 0.734 ns 0.732 ns 4 -stringa e;_median 0.724 ns 0.724 ns 4 -stringa e;_stddev 0.036 ns 0.038 ns 4 -stringa e;_cv 4.93 % 5.14 % 4 -lstringa<20> e;_mean 1.09 ns 1.09 ns 4 -lstringa<20> e;_median 1.10 ns 1.10 ns 4 -lstringa<20> e;_stddev 0.009 ns 0.012 ns 4 -lstringa<20> e;_cv 0.80 % 1.12 % 4 -lstringa<40> e;_mean 1.07 ns 1.07 ns 4 -lstringa<40> e;_median 1.07 ns 1.07 ns 4 -lstringa<40> e;_stddev 0.007 ns 0.010 ns 4 -lstringa<40> e;_cv 0.64 % 0.98 % 4 +std::string e;_mean 1.11 ns 1.10 ns 4 +std::string e;_median 1.11 ns 1.10 ns 4 +std::string e;_stddev 0.015 ns 0.037 ns 4 +std::string e;_cv 1.37 % 3.31 % 4 +std::string_view e;_mean 0.369 ns 0.368 ns 4 +std::string_view e;_median 0.371 ns 0.368 ns 4 +std::string_view e;_stddev 0.004 ns 0.007 ns 4 +std::string_view e;_cv 1.18 % 1.86 % 4 +ssa e;_mean 0.365 ns 0.365 ns 4 +ssa e;_median 0.364 ns 0.365 ns 4 +ssa e;_stddev 0.006 ns 0.005 ns 4 +ssa e;_cv 1.57 % 1.27 % 4 +stringa e;_mean 0.738 ns 0.737 ns 4 +stringa e;_median 0.733 ns 0.732 ns 4 +stringa e;_stddev 0.018 ns 0.022 ns 4 +stringa e;_cv 2.43 % 2.98 % 4 +lstringa<20> e;_mean 1.11 ns 1.12 ns 4 +lstringa<20> e;_median 1.12 ns 1.12 ns 4 +lstringa<20> e;_stddev 0.021 ns 0.031 ns 4 +lstringa<20> e;_cv 1.88 % 2.75 % 4 +lstringa<40> e;_mean 1.13 ns 1.14 ns 4 +lstringa<40> e;_median 1.14 ns 1.14 ns 4 +lstringa<40> e;_stddev 0.018 ns 0.020 ns 4 +lstringa<40> e;_cv 1.57 % 1.76 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.80 ns 1.80 ns 4 -std::string e = "Test text";_median 1.80 ns 1.80 ns 4 -std::string e = "Test text";_stddev 0.020 ns 0.031 ns 4 -std::string e = "Test text";_cv 1.14 % 1.74 % 4 -std::string_view e = "Test text";_mean 0.723 ns 0.724 ns 4 -std::string_view e = "Test text";_median 0.725 ns 0.724 ns 4 -std::string_view e = "Test text";_stddev 0.005 ns 0.010 ns 4 -std::string_view e = "Test text";_cv 0.74 % 1.39 % 4 -ssa e = "Test text";_mean 0.364 ns 0.362 ns 4 -ssa e = "Test text";_median 0.360 ns 0.360 ns 4 -ssa e = "Test text";_stddev 0.010 ns 0.011 ns 4 -ssa e = "Test text";_cv 2.75 % 2.91 % 4 +std::string e = "Test text";_mean 1.86 ns 1.84 ns 4 +std::string e = "Test text";_median 1.86 ns 1.84 ns 4 +std::string e = "Test text";_stddev 0.022 ns 0.000 ns 4 +std::string e = "Test text";_cv 1.16 % 0.00 % 4 +std::string_view e = "Test text";_mean 0.735 ns 0.732 ns 4 +std::string_view e = "Test text";_median 0.735 ns 0.732 ns 4 +std::string_view e = "Test text";_stddev 0.009 ns 0.000 ns 4 +std::string_view e = "Test text";_cv 1.22 % 0.00 % 4 +ssa e = "Test text";_mean 0.371 ns 0.370 ns 4 +ssa e = "Test text";_median 0.370 ns 0.368 ns 4 +ssa e = "Test text";_stddev 0.002 ns 0.004 ns 4 +ssa e = "Test text";_cv 0.54 % 1.13 % 4 stringa e = "Test text";_mean 1.09 ns 1.09 ns 4 -stringa e = "Test text";_median 1.10 ns 1.09 ns 4 -stringa e = "Test text";_stddev 0.026 ns 0.023 ns 4 -stringa e = "Test text";_cv 2.36 % 2.14 % 4 -lstringa<20> e = "Test text";_mean 1.80 ns 1.79 ns 4 -lstringa<20> e = "Test text";_median 1.79 ns 1.80 ns 4 -lstringa<20> e = "Test text";_stddev 0.025 ns 0.019 ns 4 -lstringa<20> e = "Test text";_cv 1.41 % 1.07 % 4 -lstringa<40> e = "Test text";_mean 1.82 ns 1.82 ns 4 -lstringa<40> e = "Test text";_median 1.82 ns 1.82 ns 4 -lstringa<40> e = "Test text";_stddev 0.022 ns 0.022 ns 4 -lstringa<40> e = "Test text";_cv 1.21 % 1.22 % 4 +stringa e = "Test text";_median 1.09 ns 1.09 ns 4 +stringa e = "Test text";_stddev 0.014 ns 0.023 ns 4 +stringa e = "Test text";_cv 1.30 % 2.14 % 4 +lstringa<20> e = "Test text";_mean 1.87 ns 1.86 ns 4 +lstringa<20> e = "Test text";_median 1.88 ns 1.88 ns 4 +lstringa<20> e = "Test text";_stddev 0.045 ns 0.038 ns 4 +lstringa<20> e = "Test text";_cv 2.42 % 2.06 % 4 +lstringa<40> e = "Test text";_mean 1.90 ns 1.88 ns 4 +lstringa<40> e = "Test text";_median 1.90 ns 1.88 ns 4 +lstringa<40> e = "Test text";_stddev 0.013 ns 0.034 ns 4 +lstringa<40> e = "Test text";_cv 0.66 % 1.81 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 71.3 ns 71.1 ns 4 -std::string e = "123456789012345678901234567890";_median 71.0 ns 70.1 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.76 ns 2.96 ns 4 -std::string e = "123456789012345678901234567890";_cv 2.47 % 4.16 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.722 ns 0.715 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.721 ns 0.715 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.012 ns 0.000 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.67 % 0.00 % 4 -ssa e = "123456789012345678901234567890";_mean 0.373 ns 0.364 ns 4 -ssa e = "123456789012345678901234567890";_median 0.371 ns 0.361 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.017 ns 0.013 ns 4 -ssa e = "123456789012345678901234567890";_cv 4.47 % 3.65 % 4 -stringa e = "123456789012345678901234567890";_mean 1.10 ns 1.10 ns 4 -stringa e = "123456789012345678901234567890";_median 1.11 ns 1.10 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.008 ns 0.016 ns 4 -stringa e = "123456789012345678901234567890";_cv 0.72 % 1.46 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 71.0 ns 71.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 71.1 ns 71.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.903 ns 1.14 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 1.27 % 1.60 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.51 ns 2.51 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.51 ns 2.49 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.019 ns 0.030 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 0.77 % 1.18 % 4 +std::string e = "123456789012345678901234567890";_mean 75.9 ns 75.7 ns 4 +std::string e = "123456789012345678901234567890";_median 76.0 ns 75.3 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.516 ns 0.698 ns 4 +std::string e = "123456789012345678901234567890";_cv 0.68 % 0.92 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.746 ns 0.737 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.747 ns 0.732 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.015 ns 0.022 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 2.02 % 2.98 % 4 +ssa e = "123456789012345678901234567890";_mean 0.365 ns 0.364 ns 4 +ssa e = "123456789012345678901234567890";_median 0.363 ns 0.364 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.008 ns 0.010 ns 4 +ssa e = "123456789012345678901234567890";_cv 2.27 % 2.72 % 4 +stringa e = "123456789012345678901234567890";_mean 1.11 ns 1.10 ns 4 +stringa e = "123456789012345678901234567890";_median 1.11 ns 1.12 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.025 ns 0.028 ns 4 +stringa e = "123456789012345678901234567890";_cv 2.24 % 2.53 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 74.9 ns 75.0 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 74.7 ns 74.6 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 1.49 ns 1.34 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.99 % 1.78 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 2.58 ns 2.57 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 2.56 ns 2.57 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.054 ns 0.046 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 2.08 % 1.77 % 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.01 ns 2.01 ns 4 -std::string e = "Test text"; auto c{e};_median 2.00 ns 2.01 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.221 ns 0.223 ns 4 -std::string e = "Test text"; auto c{e};_cv 10.98 % 11.05 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.383 ns 0.381 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.382 ns 0.379 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.016 ns 0.022 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 4.26 % 5.71 % 4 -ssa e = "Test text"; auto c{e};_mean 0.373 ns 0.374 ns 4 -ssa e = "Test text"; auto c{e};_median 0.370 ns 0.372 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.011 ns 4 -ssa e = "Test text"; auto c{e};_cv 2.27 % 3.05 % 4 -stringa e = "Test text"; auto c{e};_mean 1.34 ns 1.34 ns 4 -stringa e = "Test text"; auto c{e};_median 1.31 ns 1.31 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.101 ns 0.097 ns 4 -stringa e = "Test text"; auto c{e};_cv 7.50 % 7.22 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 5.05 ns 5.04 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 5.05 ns 5.00 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.035 ns 0.078 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 0.69 % 1.55 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 5.12 ns 5.12 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 5.14 ns 5.08 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.114 ns 0.150 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 2.23 % 2.92 % 4 +std::string e = "Test text"; auto c{e};_mean 1.89 ns 1.88 ns 4 +std::string e = "Test text"; auto c{e};_median 1.89 ns 1.88 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.026 ns 0.031 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.39 % 1.67 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.375 ns 0.369 ns 4 +std::string_view e = "Test text"; auto c{e};_median 0.371 ns 0.365 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.011 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 3.65 % 3.07 % 4 +ssa e = "Test text"; auto c{e};_mean 0.374 ns 0.375 ns 4 +ssa e = "Test text"; auto c{e};_median 0.376 ns 0.377 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.004 ns 4 +ssa e = "Test text"; auto c{e};_cv 2.17 % 1.12 % 4 +stringa e = "Test text"; auto c{e};_mean 1.33 ns 1.32 ns 4 +stringa e = "Test text"; auto c{e};_median 1.33 ns 1.33 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.043 ns 0.048 ns 4 +stringa e = "Test text"; auto c{e};_cv 3.21 % 3.61 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 5.31 ns 5.20 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 5.28 ns 5.16 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.150 ns 0.070 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 2.82 % 1.34 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 5.19 ns 5.20 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 5.19 ns 5.23 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.079 ns 0.150 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.52 % 2.88 % 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 71.5 ns 71.1 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 71.3 ns 70.6 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.39 ns 1.67 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.95 % 2.35 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.719 ns 0.722 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.722 ns 0.725 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.008 ns 0.007 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.16 % 0.97 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.365 ns 0.365 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.360 ns 0.361 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.010 ns 0.008 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.74 % 2.20 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.83 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.84 ns 1.84 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.028 ns 0.021 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.53 % 1.14 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 71.3 ns 71.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 71.5 ns 71.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.12 ns 1.42 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.57 % 1.99 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.74 ns 4.77 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.71 ns 4.69 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.162 ns 0.156 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 3.42 % 3.28 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 74.0 ns 74.1 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 73.8 ns 74.1 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.93 ns 2.25 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.61 % 3.04 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.748 ns 0.741 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.750 ns 0.741 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.014 ns 0.010 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.90 % 1.36 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.369 ns 0.370 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.368 ns 0.368 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.003 ns 0.004 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.76 % 1.13 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.85 ns 1.85 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 1.85 ns 1.86 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.037 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.50 % 1.98 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 76.8 ns 76.3 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 76.3 ns 76.7 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.51 ns 0.872 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.97 % 1.14 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.90 ns 4.89 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.92 ns 4.92 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.046 ns 0.104 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 0.93 % 2.12 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find;_mean 39.1 ns 39.0 ns 4 -std::string::find;_median 39.2 ns 39.0 ns 4 -std::string::find;_stddev 0.285 ns 0.740 ns 4 -std::string::find;_cv 0.73 % 1.90 % 4 -std::string_view::find;_mean 38.7 ns 38.7 ns 4 -std::string_view::find;_median 38.4 ns 38.5 ns 4 -std::string_view::find;_stddev 0.812 ns 1.05 ns 4 -std::string_view::find;_cv 2.10 % 2.72 % 4 -ssa::find;_mean 17.4 ns 17.4 ns 4 -ssa::find;_median 17.4 ns 17.4 ns 4 -ssa::find;_stddev 0.293 ns 0.540 ns 4 -ssa::find;_cv 1.68 % 3.11 % 4 -stringa::find;_mean 18.4 ns 18.4 ns 4 -stringa::find;_median 18.5 ns 18.4 ns 4 -stringa::find;_stddev 0.338 ns 0.342 ns 4 -stringa::find;_cv 1.83 % 1.86 % 4 -lstringa<20>::find;_mean 17.4 ns 17.3 ns 4 -lstringa<20>::find;_median 17.3 ns 17.3 ns 4 -lstringa<20>::find;_stddev 0.486 ns 0.282 ns 4 -lstringa<20>::find;_cv 2.80 % 1.63 % 4 -lstringa<40>::find;_mean 17.5 ns 17.5 ns 4 -lstringa<40>::find;_median 17.5 ns 17.6 ns 4 -lstringa<40>::find;_stddev 0.167 ns 0.209 ns 4 -lstringa<40>::find;_cv 0.96 % 1.20 % 4 +std::string::find;_mean 39.7 ns 39.6 ns 4 +std::string::find;_median 39.7 ns 39.8 ns 4 +std::string::find;_stddev 0.363 ns 0.801 ns 4 +std::string::find;_cv 0.92 % 2.03 % 4 +std::string_view::find;_mean 39.5 ns 39.1 ns 4 +std::string_view::find;_median 39.3 ns 38.9 ns 4 +std::string_view::find;_stddev 1.01 ns 0.801 ns 4 +std::string_view::find;_cv 2.56 % 2.05 % 4 +ssa::find;_mean 18.0 ns 17.8 ns 4 +ssa::find;_median 17.9 ns 18.0 ns 4 +ssa::find;_stddev 0.557 ns 0.419 ns 4 +ssa::find;_cv 3.10 % 2.35 % 4 +stringa::find;_mean 18.8 ns 18.6 ns 4 +stringa::find;_median 18.9 ns 18.4 ns 4 +stringa::find;_stddev 0.417 ns 0.419 ns 4 +stringa::find;_cv 2.21 % 2.25 % 4 +lstringa<20>::find;_mean 17.9 ns 17.8 ns 4 +lstringa<20>::find;_median 17.8 ns 17.6 ns 4 +lstringa<20>::find;_stddev 0.181 ns 0.384 ns 4 +lstringa<20>::find;_cv 1.01 % 2.15 % 4 +lstringa<40>::find;_mean 17.7 ns 17.8 ns 4 +lstringa<40>::find;_median 17.6 ns 17.6 ns 4 +lstringa<40>::find;_stddev 0.482 ns 0.419 ns 4 +lstringa<40>::find;_cv 2.72 % 2.35 % 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 1.84 ns 1.83 ns 4 -std::string copy{str_with_len_N};/15_median 1.80 ns 1.80 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.092 ns 0.093 ns 4 -std::string copy{str_with_len_N};/15_cv 4.98 % 5.07 % 4 -std::string copy{str_with_len_N};/16_mean 76.4 ns 76.3 ns 4 -std::string copy{str_with_len_N};/16_median 76.8 ns 76.7 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.21 ns 0.872 ns 4 -std::string copy{str_with_len_N};/16_cv 1.59 % 1.14 % 4 -std::string copy{str_with_len_N};/23_mean 75.4 ns 75.0 ns 4 -std::string copy{str_with_len_N};/23_median 75.1 ns 75.0 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.921 ns 1.42 ns 4 -std::string copy{str_with_len_N};/23_cv 1.22 % 1.90 % 4 -std::string copy{str_with_len_N};/24_mean 75.1 ns 75.3 ns 4 -std::string copy{str_with_len_N};/24_median 75.2 ns 76.0 ns 4 -std::string copy{str_with_len_N};/24_stddev 1.24 ns 1.97 ns 4 -std::string copy{str_with_len_N};/24_cv 1.66 % 2.62 % 4 -std::string copy{str_with_len_N};/32_mean 81.4 ns 81.6 ns 4 -std::string copy{str_with_len_N};/32_median 81.4 ns 81.6 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.19 ns 1.71 ns 4 -std::string copy{str_with_len_N};/32_cv 1.46 % 2.09 % 4 -std::string copy{str_with_len_N};/64_mean 81.7 ns 81.5 ns 4 -std::string copy{str_with_len_N};/64_median 81.5 ns 81.1 ns 4 -std::string copy{str_with_len_N};/64_stddev 1.28 ns 1.67 ns 4 -std::string copy{str_with_len_N};/64_cv 1.57 % 2.05 % 4 -std::string copy{str_with_len_N};/128_mean 84.3 ns 84.1 ns 4 -std::string copy{str_with_len_N};/128_median 84.2 ns 83.7 ns 4 -std::string copy{str_with_len_N};/128_stddev 2.87 ns 2.62 ns 4 -std::string copy{str_with_len_N};/128_cv 3.40 % 3.11 % 4 -std::string copy{str_with_len_N};/256_mean 83.9 ns 83.7 ns 4 -std::string copy{str_with_len_N};/256_median 83.8 ns 83.7 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.612 ns 1.42 ns 4 -std::string copy{str_with_len_N};/256_cv 0.73 % 1.70 % 4 -std::string copy{str_with_len_N};/512_mean 88.5 ns 87.9 ns 4 -std::string copy{str_with_len_N};/512_median 88.4 ns 87.9 ns 4 -std::string copy{str_with_len_N};/512_stddev 3.37 ns 3.82 ns 4 -std::string copy{str_with_len_N};/512_cv 3.80 % 4.35 % 4 -std::string copy{str_with_len_N};/1024_mean 91.4 ns 91.6 ns 4 -std::string copy{str_with_len_N};/1024_median 89.5 ns 88.9 ns 4 -std::string copy{str_with_len_N};/1024_stddev 5.26 ns 5.23 ns 4 -std::string copy{str_with_len_N};/1024_cv 5.75 % 5.71 % 4 -std::string copy{str_with_len_N};/2048_mean 128 ns 128 ns 4 -std::string copy{str_with_len_N};/2048_median 128 ns 129 ns 4 -std::string copy{str_with_len_N};/2048_stddev 1.59 ns 1.57 ns 4 -std::string copy{str_with_len_N};/2048_cv 1.24 % 1.23 % 4 -std::string copy{str_with_len_N};/4096_mean 178 ns 177 ns 4 -std::string copy{str_with_len_N};/4096_median 179 ns 176 ns 4 -std::string copy{str_with_len_N};/4096_stddev 2.75 ns 1.92 ns 4 -std::string copy{str_with_len_N};/4096_cv 1.55 % 1.08 % 4 -stringa copy{str_with_len_N};/15_mean 1.33 ns 1.32 ns 4 -stringa copy{str_with_len_N};/15_median 1.29 ns 1.27 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.103 ns 0.108 ns 4 -stringa copy{str_with_len_N};/15_cv 7.72 % 8.17 % 4 -stringa copy{str_with_len_N};/16_mean 1.28 ns 1.28 ns 4 -stringa copy{str_with_len_N};/16_median 1.26 ns 1.26 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.061 ns 0.056 ns 4 -stringa copy{str_with_len_N};/16_cv 4.76 % 4.35 % 4 -stringa copy{str_with_len_N};/23_mean 1.27 ns 1.26 ns 4 -stringa copy{str_with_len_N};/23_median 1.28 ns 1.26 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.023 ns 0.023 ns 4 -stringa copy{str_with_len_N};/23_cv 1.80 % 1.81 % 4 -stringa copy{str_with_len_N};/24_mean 15.8 ns 15.8 ns 4 -stringa copy{str_with_len_N};/24_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.076 ns 0.174 ns 4 -stringa copy{str_with_len_N};/24_cv 0.48 % 1.10 % 4 -stringa copy{str_with_len_N};/32_mean 15.8 ns 15.8 ns 4 -stringa copy{str_with_len_N};/32_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.068 ns 0.174 ns 4 -stringa copy{str_with_len_N};/32_cv 0.43 % 1.10 % 4 +std::string copy{str_with_len_N};/15_mean 1.86 ns 1.86 ns 4 +std::string copy{str_with_len_N};/15_median 1.86 ns 1.86 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.028 ns 0.022 ns 4 +std::string copy{str_with_len_N};/15_cv 1.49 % 1.19 % 4 +std::string copy{str_with_len_N};/16_mean 76.9 ns 76.3 ns 4 +std::string copy{str_with_len_N};/16_median 76.6 ns 76.7 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.04 ns 0.872 ns 4 +std::string copy{str_with_len_N};/16_cv 1.35 % 1.14 % 4 +std::string copy{str_with_len_N};/23_mean 76.5 ns 76.3 ns 4 +std::string copy{str_with_len_N};/23_median 76.6 ns 76.7 ns 4 +std::string copy{str_with_len_N};/23_stddev 1.16 ns 0.872 ns 4 +std::string copy{str_with_len_N};/23_cv 1.51 % 1.14 % 4 +std::string copy{str_with_len_N};/24_mean 77.5 ns 77.2 ns 4 +std::string copy{str_with_len_N};/24_median 77.6 ns 76.7 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.844 ns 0.872 ns 4 +std::string copy{str_with_len_N};/24_cv 1.09 % 1.13 % 4 +std::string copy{str_with_len_N};/32_mean 85.7 ns 85.3 ns 4 +std::string copy{str_with_len_N};/32_median 84.9 ns 84.8 ns 4 +std::string copy{str_with_len_N};/32_stddev 3.60 ns 3.57 ns 4 +std::string copy{str_with_len_N};/32_cv 4.20 % 4.19 % 4 +std::string copy{str_with_len_N};/64_mean 80.1 ns 79.8 ns 4 +std::string copy{str_with_len_N};/64_median 79.8 ns 80.2 ns 4 +std::string copy{str_with_len_N};/64_stddev 2.69 ns 2.62 ns 4 +std::string copy{str_with_len_N};/64_cv 3.36 % 3.28 % 4 +std::string copy{str_with_len_N};/128_mean 82.7 ns 82.4 ns 4 +std::string copy{str_with_len_N};/128_median 82.6 ns 82.0 ns 4 +std::string copy{str_with_len_N};/128_stddev 1.26 ns 0.872 ns 4 +std::string copy{str_with_len_N};/128_cv 1.52 % 1.06 % 4 +std::string copy{str_with_len_N};/256_mean 86.8 ns 84.8 ns 4 +std::string copy{str_with_len_N};/256_median 86.5 ns 83.7 ns 4 +std::string copy{str_with_len_N};/256_stddev 2.19 ns 2.09 ns 4 +std::string copy{str_with_len_N};/256_cv 2.53 % 2.47 % 4 +std::string copy{str_with_len_N};/512_mean 88.4 ns 87.9 ns 4 +std::string copy{str_with_len_N};/512_median 89.1 ns 87.9 ns 4 +std::string copy{str_with_len_N};/512_stddev 3.84 ns 3.82 ns 4 +std::string copy{str_with_len_N};/512_cv 4.34 % 4.35 % 4 +std::string copy{str_with_len_N};/1024_mean 97.2 ns 96.4 ns 4 +std::string copy{str_with_len_N};/1024_median 96.1 ns 95.2 ns 4 +std::string copy{str_with_len_N};/1024_stddev 3.67 ns 4.23 ns 4 +std::string copy{str_with_len_N};/1024_cv 3.77 % 4.38 % 4 +std::string copy{str_with_len_N};/2048_mean 131 ns 130 ns 4 +std::string copy{str_with_len_N};/2048_median 126 ns 126 ns 4 +std::string copy{str_with_len_N};/2048_stddev 12.3 ns 11.9 ns 4 +std::string copy{str_with_len_N};/2048_cv 9.36 % 9.14 % 4 +std::string copy{str_with_len_N};/4096_mean 179 ns 177 ns 4 +std::string copy{str_with_len_N};/4096_median 180 ns 178 ns 4 +std::string copy{str_with_len_N};/4096_stddev 6.42 ns 6.55 ns 4 +std::string copy{str_with_len_N};/4096_cv 3.59 % 3.69 % 4 +stringa copy{str_with_len_N};/15_mean 1.33 ns 1.33 ns 4 +stringa copy{str_with_len_N};/15_median 1.32 ns 1.33 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.019 ns 0.016 ns 4 +stringa copy{str_with_len_N};/15_cv 1.44 % 1.22 % 4 +stringa copy{str_with_len_N};/16_mean 1.32 ns 1.30 ns 4 +stringa copy{str_with_len_N};/16_median 1.33 ns 1.30 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.038 ns 0.018 ns 4 +stringa copy{str_with_len_N};/16_cv 2.91 % 1.39 % 4 +stringa copy{str_with_len_N};/23_mean 1.31 ns 1.31 ns 4 +stringa copy{str_with_len_N};/23_median 1.31 ns 1.31 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.011 ns 0.023 ns 4 +stringa copy{str_with_len_N};/23_cv 0.82 % 1.74 % 4 +stringa copy{str_with_len_N};/24_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/24_median 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.163 ns 0.000 ns 4 +stringa copy{str_with_len_N};/24_cv 1.01 % 0.00 % 4 +stringa copy{str_with_len_N};/32_mean 16.2 ns 16.2 ns 4 +stringa copy{str_with_len_N};/32_median 16.2 ns 16.1 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.182 ns 0.192 ns 4 +stringa copy{str_with_len_N};/32_cv 1.13 % 1.18 % 4 stringa copy{str_with_len_N};/64_mean 16.0 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_median 16.0 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.080 ns 0.222 ns 4 -stringa copy{str_with_len_N};/64_cv 0.50 % 1.39 % 4 -stringa copy{str_with_len_N};/128_mean 16.0 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_median 16.0 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.185 ns 0.000 ns 4 -stringa copy{str_with_len_N};/128_cv 1.16 % 0.00 % 4 -stringa copy{str_with_len_N};/256_mean 16.0 ns 15.9 ns 4 -stringa copy{str_with_len_N};/256_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.535 ns 0.665 ns 4 -stringa copy{str_with_len_N};/256_cv 3.35 % 4.17 % 4 -stringa copy{str_with_len_N};/512_mean 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/512_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.067 ns 0.000 ns 4 -stringa copy{str_with_len_N};/512_cv 0.43 % 0.00 % 4 -stringa copy{str_with_len_N};/1024_mean 15.8 ns 15.8 ns 4 -stringa copy{str_with_len_N};/1024_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.193 ns 0.174 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.22 % 1.10 % 4 -stringa copy{str_with_len_N};/2048_mean 15.9 ns 16.0 ns 4 -stringa copy{str_with_len_N};/2048_median 15.9 ns 16.0 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.204 ns 0.174 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.28 % 1.09 % 4 -stringa copy{str_with_len_N};/4096_mean 15.7 ns 15.8 ns 4 -stringa copy{str_with_len_N};/4096_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.028 ns 0.174 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.18 % 1.10 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 5.10 ns 5.12 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 5.10 ns 5.16 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.045 ns 0.078 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 0.88 % 1.53 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 5.71 ns 5.70 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 5.70 ns 5.70 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.390 ns 0.372 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 6.84 % 6.52 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 5.81 ns 5.82 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 5.94 ns 5.93 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.393 ns 0.367 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 6.77 % 6.30 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 84.0 ns 84.1 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 82.1 ns 82.0 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 5.87 ns 5.58 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 6.98 % 6.64 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 84.7 ns 85.0 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 84.3 ns 84.6 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 2.38 ns 2.98 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 2.81 % 3.50 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 81.1 ns 81.1 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 81.2 ns 81.1 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 1.62 ns 1.01 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 1.99 % 1.24 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 85.1 ns 85.1 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 81.9 ns 82.3 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 7.11 ns 6.64 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 8.36 % 7.80 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 85.4 ns 85.3 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 85.7 ns 84.8 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 2.34 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.74 % 2.35 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 88.6 ns 88.5 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 88.7 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 1.86 ns 2.19 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 2.10 % 2.48 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 92.6 ns 92.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 92.8 ns 92.4 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 1.28 ns 0.872 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 1.38 % 0.94 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 132 ns 132 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 131 ns 131 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 3.67 ns 3.51 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 2.78 % 2.66 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 186 ns 185 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 189 ns 188 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 5.96 ns 5.75 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 3.20 % 3.11 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 5.06 ns 5.04 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 5.07 ns 5.00 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.035 ns 0.078 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 0.69 % 1.55 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 5.16 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 5.10 ns 5.00 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.212 ns 0.312 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 4.10 % 6.06 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 5.01 ns 5.04 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 5.01 ns 5.00 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.091 ns 0.078 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 1.81 % 1.55 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 5.10 ns 5.12 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 5.09 ns 5.08 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.083 ns 0.150 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.63 % 2.92 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 8.45 ns 8.41 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 8.16 ns 8.11 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.822 ns 0.798 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 9.74 % 9.48 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 8.13 ns 8.15 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 7.97 ns 7.93 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.441 ns 0.501 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 5.42 % 6.14 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 9.99 ns 9.98 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 9.80 ns 9.77 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.547 ns 0.576 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 5.47 % 5.77 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 9.93 ns 9.94 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 9.72 ns 9.84 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.644 ns 0.554 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 6.49 % 5.57 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.8 ns 10.7 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 10.8 ns 10.7 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.072 ns 0.199 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 0.66 % 1.86 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 93.7 ns 94.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 93.3 ns 94.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 3.80 ns 4.50 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 4.06 % 4.78 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 124 ns 124 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 125 ns 124 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 4.13 ns 4.83 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 3.33 % 3.89 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 187 ns 186 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 187 ns 186 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 5.20 ns 5.40 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 2.79 % 2.90 % 4 +stringa copy{str_with_len_N};/64_median 15.9 ns 15.9 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.120 ns 0.201 ns 4 +stringa copy{str_with_len_N};/64_cv 0.75 % 1.27 % 4 +stringa copy{str_with_len_N};/128_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/128_median 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.082 ns 0.285 ns 4 +stringa copy{str_with_len_N};/128_cv 0.51 % 1.77 % 4 +stringa copy{str_with_len_N};/256_mean 16.1 ns 16.1 ns 4 +stringa copy{str_with_len_N};/256_median 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.102 ns 0.174 ns 4 +stringa copy{str_with_len_N};/256_cv 0.63 % 1.08 % 4 +stringa copy{str_with_len_N};/512_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/512_median 16.2 ns 16.0 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.133 ns 0.285 ns 4 +stringa copy{str_with_len_N};/512_cv 0.83 % 1.77 % 4 +stringa copy{str_with_len_N};/1024_mean 16.3 ns 16.1 ns 4 +stringa copy{str_with_len_N};/1024_median 16.2 ns 16.0 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.280 ns 0.174 ns 4 +stringa copy{str_with_len_N};/1024_cv 1.72 % 1.08 % 4 +stringa copy{str_with_len_N};/2048_mean 16.1 ns 15.9 ns 4 +stringa copy{str_with_len_N};/2048_median 16.2 ns 15.9 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.147 ns 0.222 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.91 % 1.39 % 4 +stringa copy{str_with_len_N};/4096_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/4096_median 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.121 ns 0.285 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.75 % 1.77 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 4.96 ns 4.88 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 4.97 ns 4.92 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.072 ns 0.150 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.44 % 3.06 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 4.78 ns 4.80 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 4.76 ns 4.77 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.095 ns 0.150 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.98 % 3.11 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 4.98 ns 4.92 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 4.99 ns 4.95 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.110 ns 0.134 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 2.21 % 2.72 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 78.7 ns 78.5 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 78.1 ns 78.1 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 1.52 ns 1.76 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 1.93 % 2.24 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 85.9 ns 85.8 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 85.8 ns 85.8 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 2.23 ns 1.71 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 2.60 % 1.99 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 82.8 ns 82.0 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 82.3 ns 82.0 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 2.16 ns 1.42 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 2.61 % 1.74 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 85.4 ns 85.3 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 84.5 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 2.29 ns 3.14 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 2.68 % 3.68 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 87.0 ns 87.2 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 86.7 ns 87.2 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 3.32 ns 3.18 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 3.82 % 3.65 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 87.9 ns 88.1 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 87.3 ns 88.1 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 2.43 ns 2.25 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 2.77 % 2.56 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 93.8 ns 93.7 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 94.4 ns 93.3 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 1.46 ns 1.67 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 1.55 % 1.78 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 126 ns 126 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 125 ns 126 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 4.33 ns 5.03 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 3.43 % 3.98 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 192 ns 188 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 191 ns 188 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 1.95 ns 3.13 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 1.02 % 1.67 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 5.34 ns 5.34 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 5.31 ns 5.30 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.179 ns 0.176 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 3.36 % 3.29 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 5.25 ns 5.27 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 5.29 ns 5.23 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.141 ns 0.134 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 2.68 % 2.54 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 5.26 ns 5.23 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 5.32 ns 5.31 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.185 ns 0.156 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 3.52 % 2.99 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 5.35 ns 5.27 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 5.32 ns 5.30 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.120 ns 0.070 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 2.25 % 1.32 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 8.10 ns 8.02 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 8.12 ns 8.02 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.114 ns 0.142 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.40 % 1.77 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 8.22 ns 8.11 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 8.27 ns 8.11 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.140 ns 0.101 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 1.70 % 1.24 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 8.79 ns 8.81 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 8.79 ns 8.89 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.164 ns 0.174 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 1.87 % 1.98 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 9.80 ns 9.73 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 9.89 ns 9.84 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.323 ns 0.362 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 3.30 % 3.72 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 11.6 ns 11.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 11.6 ns 11.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.153 ns 0.161 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.32 % 1.39 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 96.6 ns 96.8 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 96.1 ns 96.3 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 2.56 ns 2.63 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 2.65 % 2.72 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 123 ns 123 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 123 ns 122 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 2.81 ns 1.22 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.28 % 1.00 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 194 ns 194 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 193 ns 193 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 4.48 ns 5.27 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 2.31 % 2.72 % 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 31.2 ns 31.3 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 30.9 ns 31.1 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.671 ns 0.834 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.15 % 2.66 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.4 ns 13.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.5 ns 13.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.118 ns 0.267 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.88 % 1.98 % 4 -stringa s = "123456789"; int res = s.to_int_mean 14.0 ns 14.0 ns 4 -stringa s = "123456789"; int res = s.to_int_median 14.0 ns 14.0 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.273 ns 0.405 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 1.95 % 2.90 % 4 -ssa s = "123456789"; int res = s.to_int_mean 13.0 ns 12.8 ns 4 -ssa s = "123456789"; int res = s.to_int_median 12.9 ns 12.7 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.150 ns 0.395 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.16 % 3.07 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 13.1 ns 13.1 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 13.0 ns 13.1 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.257 ns 0.228 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 1.96 % 1.74 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.0 ns 31.0 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.0 ns 30.7 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.509 ns 0.698 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.64 % 2.25 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.7 ns 13.6 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.7 ns 13.7 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.121 ns 0.301 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.88 % 2.21 % 4 +stringa s = "123456789"; int res = s.to_int_mean 14.2 ns 14.1 ns 4 +stringa s = "123456789"; int res = s.to_int_median 14.2 ns 14.1 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.237 ns 0.256 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.66 % 1.81 % 4 +ssa s = "123456789"; int res = s.to_int_mean 13.8 ns 13.7 ns 4 +ssa s = "123456789"; int res = s.to_int_median 13.8 ns 13.8 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.073 ns 0.157 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 0.53 % 1.14 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 13.7 ns 13.7 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 13.7 ns 13.7 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.237 ns 0.140 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.73 % 1.02 % 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 33.4 ns 33.3 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 33.2 ns 33.0 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.712 ns 0.732 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.14 % 2.20 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.21 ns 8.21 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.22 ns 8.27 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.113 ns 0.200 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.37 % 2.44 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 12.3 ns 12.3 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 12.3 ns 12.3 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.376 ns 0.315 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 3.06 % 2.56 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 11.7 ns 11.7 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 11.7 ns 11.7 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.057 ns 0.000 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 0.49 % 0.00 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 11.8 ns 11.7 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 11.8 ns 11.9 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.078 ns 0.395 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.66 % 3.37 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 34.5 ns 34.2 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.6 ns 34.4 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.558 ns 0.366 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.61 % 1.07 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.45 ns 8.42 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.44 ns 8.48 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.143 ns 0.200 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.69 % 2.38 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 12.8 ns 12.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 12.7 ns 12.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.211 ns 0.228 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.65 % 1.77 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 12.3 ns 12.2 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 12.4 ns 12.2 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.187 ns 0.256 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.52 % 2.09 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 12.0 ns 12.1 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 12.0 ns 11.9 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.238 ns 0.314 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.98 % 2.60 % 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 43.3 ns 43.2 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 43.6 ns 43.5 ns 4 std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 43.6 ns 43.5 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.992 ns 0.935 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.29 % 2.16 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 17.7 ns 17.6 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 17.7 ns 17.6 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.430 ns 0.443 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 2.43 % 2.51 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 16.7 ns 16.7 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 16.7 ns 16.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.433 ns 0.384 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 2.59 % 2.30 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.414 ns 0.564 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 0.95 % 1.30 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 18.7 ns 18.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 18.7 ns 18.8 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.244 ns 0.209 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.31 % 1.12 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 15.5 ns 15.5 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 15.5 ns 15.7 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.184 ns 0.349 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.18 % 2.25 % 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 101 ns 101 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 101 ns 101 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.12 ns 2.34 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.10 % 2.32 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 61.4 ns 61.5 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 61.2 ns 61.9 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.46 ns 1.67 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.37 % 2.72 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 35.2 ns 34.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 35.1 ns 34.5 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.645 ns 0.802 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.83 % 2.30 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 103 ns 103 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 102 ns 103 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.60 ns 2.63 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.53 % 2.55 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 59.6 ns 59.3 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 59.9 ns 59.3 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.02 ns 1.80 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.38 % 3.04 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.7 ns 36.1 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 36.8 ns 36.1 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.06 ns 0.655 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.89 % 1.81 % 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 4811 ns 4810 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 4826 ns 4834 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 143 ns 167 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.98 % 3.47 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1092 ns 1093 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1095 ns 1099 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 21.7 ns 20.0 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 1.99 % 1.83 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 739 ns 739 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 737 ns 739 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 9.89 ns 11.4 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.34 % 1.54 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 381 ns 379 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 378 ns 375 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 13.8 ns 16.7 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.63 % 4.40 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 230 ns 230 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 228 ns 229 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 13.7 ns 15.9 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.97 % 6.90 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 136 ns 137 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 136 ns 137 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.41 ns 1.81 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.04 % 1.33 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 4798 ns 4805 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 4820 ns 4844 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 96.4 ns 197 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.01 % 4.09 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 1101 ns 1093 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 1090 ns 1086 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 25.5 ns 23.4 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.32 % 2.14 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 756 ns 759 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 754 ns 759 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 8.71 ns 10.1 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.15 % 1.33 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 390 ns 390 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 392 ns 390 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 8.15 ns 7.40 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.09 % 1.90 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 231 ns 231 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 232 ns 233 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 4.08 ns 5.01 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.77 % 2.16 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 146 ns 140 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 140 ns 140 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 14.6 ns 2.28 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 10.00 % 1.63 % 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 4701 ns 4678 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4726 ns 4703 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 199 ns 209 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 4.23 % 4.46 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3729 ns 3728 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3726 ns 3706 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 77.9 ns 83.5 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.09 % 2.24 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 711 ns 706 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 713 ns 706 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.7 ns 22.5 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.93 % 3.19 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 450 ns 449 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 449 ns 449 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 10.7 ns 7.97 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.37 % 1.77 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 302 ns 302 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 301 ns 302 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.45 ns 3.83 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.81 % 1.27 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 209 ns 209 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 210 ns 209 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 1.78 ns 0.000 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.85 % 0.00 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 4654 ns 4627 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4651 ns 4653 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 62.0 ns 50.6 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.33 % 1.09 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3826 ns 3788 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3793 ns 3767 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 119 ns 41.9 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.12 % 1.10 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 730 ns 732 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 725 ns 724 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.2 ns 24.7 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.36 % 3.37 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 461 ns 460 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 462 ns 460 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.65 ns 12.1 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.87 % 2.62 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 304 ns 300 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 306 ns 300 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.28 ns 5.98 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.72 % 1.99 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 212 ns 212 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 213 ns 215 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.71 ns 4.88 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.75 % 2.30 % 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 226339 ns 225830 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 225516 ns 224609 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2799 ns 2441 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.24 % 1.08 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 196248 ns 195679 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 190589 ns 190447 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 13733 ns 15043 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 7.00 % 7.69 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18586 ns 18625 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18560 ns 18625 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 298 ns 242 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.61 % 1.30 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16639 ns 16593 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16604 ns 16497 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 189 ns 192 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.13 % 1.16 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16065 ns 16044 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16115 ns 16044 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 348 ns 285 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.17 % 1.77 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16783 ns 16741 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16245 ns 16218 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1355 ns 1424 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 8.08 % 8.51 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 218672 ns 218506 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 219327 ns 217285 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4902 ns 4675 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.24 % 2.14 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 193765 ns 193839 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 193537 ns 192705 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2124 ns 4341 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.10 % 2.24 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19712 ns 19749 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19750 ns 19880 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 248 ns 262 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.26 % 1.32 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16887 ns 16881 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16737 ns 16689 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 423 ns 543 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.50 % 3.21 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16377 ns 16305 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16276 ns 16497 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 567 ns 384 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.46 % 2.35 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16381 ns 16392 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16413 ns 16392 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 204 ns 285 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.24 % 1.74 % 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 4316 ns 4296 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 4327 ns 4296 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 70.9 ns 55.7 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 1.64 % 1.30 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 3897 ns 3880 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 3882 ns 3836 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 75.9 ns 87.2 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 1.95 % 2.25 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 796 ns 798 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 796 ns 802 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 13.0 ns 21.9 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.63 % 2.75 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 516 ns 520 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 518 ns 523 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 8.07 ns 15.0 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.56 % 2.88 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 389 ns 389 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 380 ns 381 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 24.6 ns 26.0 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 6.33 % 6.69 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 287 ns 287 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 283 ns 286 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 15.7 ns 17.3 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 5.48 % 6.02 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 4521 ns 4476 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 4563 ns 4450 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 209 ns 209 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 4.62 % 4.66 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 4020 ns 3967 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 4025 ns 3945 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 79.9 ns 86.8 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.99 % 2.19 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 801 ns 795 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 800 ns 795 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 17.6 ns 17.1 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.20 % 2.15 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 531 ns 531 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 530 ns 531 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 5.02 ns 0.000 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 0.95 % 0.00 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 386 ns 384 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 389 ns 384 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 9.19 ns 7.12 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.38 % 1.86 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 285 ns 286 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 287 ns 289 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.16 ns 6.28 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.81 % 2.20 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 11483 ns 11457 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 10983 ns 10986 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 1410 ns 1415 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 12.28 % 12.35 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1108 ns 1099 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1093 ns 1074 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 93.1 ns 93.5 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 8.40 % 8.51 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2766 ns 2767 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2753 ns 2750 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 84.6 ns 63.4 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.06 % 2.29 % 4 -std::string str = std::format("test = {} times", k);_mean 1868 ns 1873 ns 4 -std::string str = std::format("test = {} times", k);_median 1869 ns 1883 ns 4 -std::string str = std::format("test = {} times", k);_stddev 9.71 ns 20.9 ns 4 -std::string str = std::format("test = {} times", k);_cv 0.52 % 1.12 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2065 ns 2040 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2044 ns 2018 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 48.4 ns 64.1 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.35 % 3.14 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1014 ns 1007 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1017 ns 1001 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 12.7 ns 12.2 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.26 % 1.21 % 4 -lstringa<8> str = "test = " + k + " times";_mean 803 ns 802 ns 4 -lstringa<8> str = "test = " + k + " times";_median 806 ns 802 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 5.56 ns 0.000 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 0.69 % 0.00 % 4 -lstringa<32> str = "test = " + k + " times";_mean 155 ns 156 ns 4 -lstringa<32> str = "test = " + k + " times";_median 155 ns 155 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.91 ns 3.01 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.87 % 1.92 % 4 -stringa str = "test = " + k + " times";_mean 151 ns 151 ns 4 -stringa str = "test = " + k + " times";_median 150 ns 150 ns 4 -stringa str = "test = " + k + " times";_stddev 2.11 ns 1.74 ns 4 -stringa str = "test = " + k + " times";_cv 1.40 % 1.16 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 11080 ns 11108 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 11069 ns 11108 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 207 ns 141 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 1.87 % 1.27 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1104 ns 1105 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1096 ns 1111 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 27.8 ns 23.4 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 2.51 % 2.12 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2849 ns 2809 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2858 ns 2794 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 48.0 ns 60.1 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.68 % 2.14 % 4 +std::string str = std::format("test = {} times", k);_mean 1859 ns 1862 ns 4 +std::string str = std::format("test = {} times", k);_median 1856 ns 1862 ns 4 +std::string str = std::format("test = {} times", k);_stddev 21.3 ns 24.2 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.15 % 1.30 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 2069 ns 2051 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 2055 ns 2051 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 60.8 ns 79.7 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 2.94 % 3.89 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1013 ns 1013 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1016 ns 1013 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 20.9 ns 14.1 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 2.07 % 1.39 % 4 +lstringa<8> str = "test = " + k + " times";_mean 875 ns 874 ns 4 +lstringa<8> str = "test = " + k + " times";_median 867 ns 868 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 19.4 ns 20.0 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 2.22 % 2.29 % 4 +lstringa<32> str = "test = " + k + " times";_mean 157 ns 156 ns 4 +lstringa<32> str = "test = " + k + " times";_median 157 ns 157 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 2.01 ns 1.57 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.28 % 1.01 % 4 +stringa str = "test = " + k + " times";_mean 153 ns 151 ns 4 +stringa str = "test = " + k + " times";_median 153 ns 151 ns 4 +stringa str = "test = " + k + " times";_stddev 3.20 ns 2.56 ns 4 +stringa str = "test = " + k + " times";_cv 2.09 % 1.70 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 557 ns 559 ns 4 -std::string::find + substr + std::strtol_median 559 ns 562 ns 4 -std::string::find + substr + std::strtol_stddev 20.4 ns 23.4 ns 4 -std::string::find + substr + std::strtol_cv 3.66 % 4.20 % 4 -ssa::splitter + ssa::as_int_mean 163 ns 162 ns 4 -ssa::splitter + ssa::as_int_median 163 ns 161 ns 4 -ssa::splitter + ssa::as_int_stddev 3.52 ns 4.01 ns 4 -ssa::splitter + ssa::as_int_cv 2.16 % 2.47 % 4 -ssa::splitf + functor_mean 187 ns 186 ns 4 -ssa::splitf + functor_median 187 ns 184 ns 4 -ssa::splitf + functor_stddev 4.73 ns 4.19 ns 4 -ssa::splitf + functor_cv 2.52 % 2.25 % 4 +std::string::find + substr + std::strtol_mean 546 ns 547 ns 4 +std::string::find + substr + std::strtol_median 546 ns 547 ns 4 +std::string::find + substr + std::strtol_stddev 5.42 ns 0.000 ns 4 +std::string::find + substr + std::strtol_cv 0.99 % 0.00 % 4 +ssa::splitter + ssa::as_int_mean 166 ns 164 ns 4 +ssa::splitter + ssa::as_int_median 166 ns 164 ns 4 +ssa::splitter + ssa::as_int_stddev 6.43 ns 2.85 ns 4 +ssa::splitter + ssa::as_int_cv 3.88 % 1.74 % 4 +ssa::splitf + functor_mean 193 ns 193 ns 4 +ssa::splitf + functor_median 193 ns 193 ns 4 +ssa::splitf + functor_stddev 2.92 ns 2.62 ns 4 +ssa::splitf + functor_cv 1.51 % 1.36 % 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 1151 ns 1151 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1147 ns 1158 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 30.0 ns 26.7 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 2.60 % 2.32 % 4 -replace symbols with std::string find_first_of + replace_mean 2019 ns 2006 ns 4 -replace symbols with std::string find_first_of + replace_median 2017 ns 2018 ns 4 -replace symbols with std::string find_first_of + replace_stddev 17.4 ns 43.4 ns 4 -replace symbols with std::string find_first_of + replace_cv 0.86 % 2.16 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2391 ns 2393 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2348 ns 2344 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 100.0 ns 97.7 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 4.18 % 4.08 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1462 ns 1465 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1469 ns 1465 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 31.5 ns 28.5 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 2.15 % 1.94 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1359 ns 1360 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1365 ns 1367 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 48.3 ns 57.5 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 3.56 % 4.23 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1231 ns 1235 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1231 ns 1242 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 8.58 ns 26.7 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 0.70 % 2.16 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1178 ns 1178 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1170 ns 1172 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 62.5 ns 72.9 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 5.30 % 6.19 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 1116 ns 1102 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 1114 ns 1116 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 8.69 ns 27.9 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 0.78 % 2.53 % 4 +replace symbols with std::string find_first_of + replace_mean 2075 ns 2039 ns 4 +replace symbols with std::string find_first_of + replace_median 2077 ns 2002 ns 4 +replace symbols with std::string find_first_of + replace_stddev 46.8 ns 73.2 ns 4 +replace symbols with std::string find_first_of + replace_cv 2.26 % 3.59 % 4 +replace symbols with std::string_view find_first_of + copy_mean 2461 ns 2455 ns 4 +replace symbols with std::string_view find_first_of + copy_median 2446 ns 2455 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 81.0 ns 91.1 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 3.29 % 3.71 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1456 ns 1436 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1460 ns 1444 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 20.4 ns 39.5 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 1.40 % 2.75 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1328 ns 1306 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1324 ns 1306 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 34.7 ns 14.1 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 2.61 % 1.08 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1171 ns 1154 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1166 ns 1160 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 19.1 ns 41.7 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 1.63 % 3.61 % 4 +replace const symbols with string expressions and memorization of all search results_mean 1215 ns 1214 ns 4 +replace const symbols with string expressions and memorization of all search results_median 1214 ns 1214 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 22.7 ns 16.1 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 1.87 % 1.33 % 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 344 ns 341 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 335 ns 333 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 40.6 ns 38.5 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 11.80 % 11.28 % 4 -Short replace symbols with std::string find_first_of + replace_mean 401 ns 401 ns 4 -Short replace symbols with std::string find_first_of + replace_median 393 ns 394 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 37.2 ns 39.4 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 9.27 % 9.83 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 326 ns 326 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 321 ns 322 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 15.2 ns 14.7 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 4.66 % 4.51 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 267 ns 268 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 267 ns 268 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.37 ns 0.000 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 0.89 % 0.00 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 356 ns 356 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 358 ns 360 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 7.52 ns 8.37 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.11 % 2.35 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 217 ns 216 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 216 ns 214 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 6.10 ns 7.85 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 2.81 % 3.64 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 303 ns 300 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 308 ns 303 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 10.9 ns 9.86 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 3.58 % 3.29 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 320 ns 317 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 319 ns 314 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.83 ns 6.98 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.13 % 2.20 % 4 +Short replace symbols with std::string find_first_of + replace_mean 382 ns 377 ns 4 +Short replace symbols with std::string find_first_of + replace_median 379 ns 375 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 13.1 ns 11.0 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 3.44 % 2.91 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 330 ns 330 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 329 ns 331 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 5.71 ns 6.68 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 1.73 % 2.03 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 257 ns 256 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 256 ns 258 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.36 ns 5.68 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 2.47 % 2.21 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 355 ns 351 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 352 ns 349 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 9.93 ns 11.0 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 2.80 % 3.13 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 222 ns 221 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 223 ns 222 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 4.02 ns 5.01 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 1.81 % 2.27 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 309 ns 307 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 311 ns 314 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 7.65 ns 14.0 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 2.48 % 4.55 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 226 ns 226 ns 4 -replace bb to ---- in std::string|64_median 227 ns 227 ns 4 -replace bb to ---- in std::string|64_stddev 5.27 ns 4.67 ns 4 -replace bb to ---- in std::string|64_cv 2.33 % 2.07 % 4 -replace bb to ---- in std::string|256_mean 793 ns 793 ns 4 -replace bb to ---- in std::string|256_median 751 ns 750 ns 4 -replace bb to ---- in std::string|256_stddev 89.4 ns 87.2 ns 4 -replace bb to ---- in std::string|256_cv 11.27 % 10.99 % 4 -replace bb to ---- in std::string|512_mean 1453 ns 1452 ns 4 -replace bb to ---- in std::string|512_median 1436 ns 1444 ns 4 -replace bb to ---- in std::string|512_stddev 46.9 ns 39.5 ns 4 -replace bb to ---- in std::string|512_cv 3.23 % 2.72 % 4 -replace bb to ---- in std::string|1024_mean 3359 ns 3346 ns 4 -replace bb to ---- in std::string|1024_median 3407 ns 3380 ns 4 -replace bb to ---- in std::string|1024_stddev 192 ns 175 ns 4 -replace bb to ---- in std::string|1024_cv 5.73 % 5.24 % 4 -replace bb to ---- in std::string|2048_mean 7816 ns 7804 ns 4 -replace bb to ---- in std::string|2048_median 7813 ns 7847 ns 4 -replace bb to ---- in std::string|2048_stddev 65.5 ns 87.2 ns 4 -replace bb to ---- in std::string|2048_cv 0.84 % 1.12 % 4 -replace bb to ---- in lstringa<8>|64_mean 224 ns 225 ns 4 -replace bb to ---- in lstringa<8>|64_median 222 ns 220 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 7.93 ns 9.77 ns 4 -replace bb to ---- in lstringa<8>|64_cv 3.54 % 4.35 % 4 -replace bb to ---- in lstringa<8>|256_mean 614 ns 614 ns 4 -replace bb to ---- in lstringa<8>|256_median 616 ns 614 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 7.18 ns 11.4 ns 4 -replace bb to ---- in lstringa<8>|256_cv 1.17 % 1.86 % 4 -replace bb to ---- in lstringa<8>|512_mean 1070 ns 1068 ns 4 -replace bb to ---- in lstringa<8>|512_median 1072 ns 1074 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 33.2 ns 30.7 ns 4 -replace bb to ---- in lstringa<8>|512_cv 3.11 % 2.88 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1874 ns 1862 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1881 ns 1862 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 38.3 ns 24.2 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 2.04 % 1.30 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3872 ns 3870 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3763 ns 3730 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 427 ns 426 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 11.02 % 11.02 % 4 -replace bb to ---- by init stringa|64_mean 185 ns 185 ns 4 -replace bb to ---- by init stringa|64_median 186 ns 186 ns 4 -replace bb to ---- by init stringa|64_stddev 13.9 ns 11.9 ns 4 -replace bb to ---- by init stringa|64_cv 7.47 % 6.45 % 4 -replace bb to ---- by init stringa|256_mean 369 ns 366 ns 4 -replace bb to ---- by init stringa|256_median 369 ns 364 ns 4 -replace bb to ---- by init stringa|256_stddev 4.10 ns 8.01 ns 4 -replace bb to ---- by init stringa|256_cv 1.11 % 2.19 % 4 -replace bb to ---- by init stringa|512_mean 796 ns 793 ns 4 -replace bb to ---- by init stringa|512_median 787 ns 793 ns 4 -replace bb to ---- by init stringa|512_stddev 29.1 ns 22.5 ns 4 -replace bb to ---- by init stringa|512_cv 3.66 % 2.84 % 4 -replace bb to ---- by init stringa|1024_mean 1684 ns 1683 ns 4 -replace bb to ---- by init stringa|1024_median 1672 ns 1657 ns 4 -replace bb to ---- by init stringa|1024_stddev 90.5 ns 91.7 ns 4 -replace bb to ---- by init stringa|1024_cv 5.37 % 5.45 % 4 -replace bb to ---- by init stringa|2048_mean 3149 ns 3156 ns 4 -replace bb to ---- by init stringa|2048_median 3133 ns 3139 ns 4 -replace bb to ---- by init stringa|2048_stddev 93.8 ns 87.8 ns 4 -replace bb to ---- by init stringa|2048_cv 2.98 % 2.78 % 4 +replace bb to ---- in std::string|64_mean 231 ns 228 ns 4 +replace bb to ---- in std::string|64_median 232 ns 229 ns 4 +replace bb to ---- in std::string|64_stddev 2.69 ns 6.14 ns 4 +replace bb to ---- in std::string|64_cv 1.16 % 2.69 % 4 +replace bb to ---- in std::string|256_mean 790 ns 789 ns 4 +replace bb to ---- in std::string|256_median 792 ns 793 ns 4 +replace bb to ---- in std::string|256_stddev 11.5 ns 16.7 ns 4 +replace bb to ---- in std::string|256_cv 1.46 % 2.12 % 4 +replace bb to ---- in std::string|512_mean 1467 ns 1460 ns 4 +replace bb to ---- in std::string|512_median 1478 ns 1460 ns 4 +replace bb to ---- in std::string|512_stddev 26.4 ns 18.1 ns 4 +replace bb to ---- in std::string|512_cv 1.80 % 1.24 % 4 +replace bb to ---- in std::string|1024_mean 3177 ns 3174 ns 4 +replace bb to ---- in std::string|1024_median 3178 ns 3174 ns 4 +replace bb to ---- in std::string|1024_stddev 13.4 ns 40.3 ns 4 +replace bb to ---- in std::string|1024_cv 0.42 % 1.27 % 4 +replace bb to ---- in std::string|2048_mean 8072 ns 8022 ns 4 +replace bb to ---- in std::string|2048_median 8057 ns 8022 ns 4 +replace bb to ---- in std::string|2048_stddev 189 ns 142 ns 4 +replace bb to ---- in std::string|2048_cv 2.34 % 1.77 % 4 +replace bb to ---- in lstringa<8>|64_mean 241 ns 239 ns 4 +replace bb to ---- in lstringa<8>|64_median 240 ns 238 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 4.83 ns 5.01 ns 4 +replace bb to ---- in lstringa<8>|64_cv 2.00 % 2.09 % 4 +replace bb to ---- in lstringa<8>|256_mean 641 ns 638 ns 4 +replace bb to ---- in lstringa<8>|256_median 645 ns 635 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 9.51 ns 13.4 ns 4 +replace bb to ---- in lstringa<8>|256_cv 1.48 % 2.09 % 4 +replace bb to ---- in lstringa<8>|512_mean 1060 ns 1062 ns 4 +replace bb to ---- in lstringa<8>|512_median 1066 ns 1067 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 23.4 ns 31.4 ns 4 +replace bb to ---- in lstringa<8>|512_cv 2.21 % 2.96 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1917 ns 1894 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1917 ns 1883 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 58.3 ns 20.9 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 3.04 % 1.10 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3571 ns 3568 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3575 ns 3568 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 27.6 ns 44.3 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 0.77 % 1.24 % 4 +replace bb to ---- by init stringa|64_mean 175 ns 174 ns 4 +replace bb to ---- by init stringa|64_median 175 ns 175 ns 4 +replace bb to ---- by init stringa|64_stddev 1.04 ns 3.67 ns 4 +replace bb to ---- by init stringa|64_cv 0.60 % 2.12 % 4 +replace bb to ---- by init stringa|256_mean 382 ns 377 ns 4 +replace bb to ---- by init stringa|256_median 383 ns 377 ns 4 +replace bb to ---- by init stringa|256_stddev 11.3 ns 9.26 ns 4 +replace bb to ---- by init stringa|256_cv 2.95 % 2.46 % 4 +replace bb to ---- by init stringa|512_mean 830 ns 833 ns 4 +replace bb to ---- by init stringa|512_median 830 ns 837 ns 4 +replace bb to ---- by init stringa|512_stddev 20.3 ns 21.9 ns 4 +replace bb to ---- by init stringa|512_cv 2.45 % 2.64 % 4 +replace bb to ---- by init stringa|1024_mean 1705 ns 1707 ns 4 +replace bb to ---- by init stringa|1024_median 1706 ns 1707 ns 4 +replace bb to ---- by init stringa|1024_stddev 15.9 ns 22.2 ns 4 +replace bb to ---- by init stringa|1024_cv 0.93 % 1.30 % 4 +replace bb to ---- by init stringa|2048_mean 3170 ns 3174 ns 4 +replace bb to ---- by init stringa|2048_median 3166 ns 3174 ns 4 +replace bb to ---- by init stringa|2048_stddev 77.6 ns 90.1 ns 4 +replace bb to ---- by init stringa|2048_cv 2.45 % 2.84 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 197 ns 197 ns 4 -replace bb to -- in std::string|64_median 191 ns 191 ns 4 -replace bb to -- in std::string|64_stddev 12.9 ns 15.0 ns 4 -replace bb to -- in std::string|64_cv 6.56 % 7.61 % 4 -replace bb to -- in std::string|256_mean 496 ns 495 ns 4 -replace bb to -- in std::string|256_median 486 ns 488 ns 4 -replace bb to -- in std::string|256_stddev 28.0 ns 24.2 ns 4 -replace bb to -- in std::string|256_cv 5.65 % 4.88 % 4 -replace bb to -- in std::string|512_mean 849 ns 848 ns 4 -replace bb to -- in std::string|512_median 850 ns 848 ns 4 -replace bb to -- in std::string|512_stddev 10.3 ns 12.1 ns 4 -replace bb to -- in std::string|512_cv 1.22 % 1.43 % 4 -replace bb to -- in std::string|1024_mean 1966 ns 1972 ns 4 -replace bb to -- in std::string|1024_median 1983 ns 1995 ns 4 -replace bb to -- in std::string|1024_stddev 80.2 ns 86.8 ns 4 -replace bb to -- in std::string|1024_cv 4.08 % 4.40 % 4 -replace bb to -- in std::string|2048_mean 3153 ns 3149 ns 4 -replace bb to -- in std::string|2048_median 3093 ns 3113 ns 4 -replace bb to -- in std::string|2048_stddev 125 ns 104 ns 4 -replace bb to -- in std::string|2048_cv 3.97 % 3.29 % 4 -replace bb to -- in lstringa<8>|64_mean 179 ns 178 ns 4 -replace bb to -- in lstringa<8>|64_median 178 ns 176 ns 4 -replace bb to -- in lstringa<8>|64_stddev 2.78 ns 4.19 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.56 % 2.35 % 4 -replace bb to -- in lstringa<8>|256_mean 446 ns 444 ns 4 -replace bb to -- in lstringa<8>|256_median 446 ns 444 ns 4 -replace bb to -- in lstringa<8>|256_stddev 18.1 ns 20.3 ns 4 -replace bb to -- in lstringa<8>|256_cv 4.05 % 4.58 % 4 -replace bb to -- in lstringa<8>|512_mean 748 ns 746 ns 4 -replace bb to -- in lstringa<8>|512_median 748 ns 741 ns 4 -replace bb to -- in lstringa<8>|512_stddev 16.3 ns 16.7 ns 4 -replace bb to -- in lstringa<8>|512_cv 2.18 % 2.24 % 4 -replace bb to -- in lstringa<8>|1024_mean 1392 ns 1395 ns 4 -replace bb to -- in lstringa<8>|1024_median 1367 ns 1381 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 70.7 ns 60.3 ns 4 -replace bb to -- in lstringa<8>|1024_cv 5.08 % 4.32 % 4 -replace bb to -- in lstringa<8>|2048_mean 2687 ns 2684 ns 4 -replace bb to -- in lstringa<8>|2048_median 2688 ns 2668 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 64.9 ns 60.1 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.41 % 2.24 % 4 -replace bb to -- by init stringa|64_mean 161 ns 161 ns 4 -replace bb to -- by init stringa|64_median 161 ns 162 ns 4 -replace bb to -- by init stringa|64_stddev 4.49 ns 5.96 ns 4 -replace bb to -- by init stringa|64_cv 2.79 % 3.69 % 4 -replace bb to -- by init stringa|256_mean 360 ns 359 ns 4 -replace bb to -- by init stringa|256_median 360 ns 357 ns 4 -replace bb to -- by init stringa|256_stddev 5.37 ns 7.68 ns 4 -replace bb to -- by init stringa|256_cv 1.49 % 2.14 % 4 -replace bb to -- by init stringa|512_mean 596 ns 596 ns 4 -replace bb to -- by init stringa|512_median 595 ns 593 ns 4 -replace bb to -- by init stringa|512_stddev 5.42 ns 13.4 ns 4 -replace bb to -- by init stringa|512_cv 0.91 % 2.24 % 4 -replace bb to -- by init stringa|1024_mean 1072 ns 1072 ns 4 -replace bb to -- by init stringa|1024_median 1066 ns 1067 ns 4 -replace bb to -- by init stringa|1024_stddev 18.5 ns 31.4 ns 4 -replace bb to -- by init stringa|1024_cv 1.72 % 2.93 % 4 -replace bb to -- by init stringa|2048_mean 2037 ns 2040 ns 4 -replace bb to -- by init stringa|2048_median 2031 ns 2030 ns 4 -replace bb to -- by init stringa|2048_stddev 44.3 ns 40.1 ns 4 -replace bb to -- by init stringa|2048_cv 2.18 % 1.96 % 4 +replace bb to -- in std::string|64_mean 195 ns 193 ns 4 +replace bb to -- in std::string|64_median 194 ns 193 ns 4 +replace bb to -- in std::string|64_stddev 4.52 ns 0.000 ns 4 +replace bb to -- in std::string|64_cv 2.31 % 0.00 % 4 +replace bb to -- in std::string|256_mean 502 ns 500 ns 4 +replace bb to -- in std::string|256_median 506 ns 508 ns 4 +replace bb to -- in std::string|256_stddev 13.9 ns 22.1 ns 4 +replace bb to -- in std::string|256_cv 2.77 % 4.42 % 4 +replace bb to -- in std::string|512_mean 1022 ns 1019 ns 4 +replace bb to -- in std::string|512_median 1009 ns 1001 ns 4 +replace bb to -- in std::string|512_stddev 33.7 ns 36.6 ns 4 +replace bb to -- in std::string|512_cv 3.30 % 3.59 % 4 +replace bb to -- in std::string|1024_mean 1730 ns 1698 ns 4 +replace bb to -- in std::string|1024_median 1734 ns 1707 ns 4 +replace bb to -- in std::string|1024_stddev 41.7 ns 36.7 ns 4 +replace bb to -- in std::string|1024_cv 2.41 % 2.16 % 4 +replace bb to -- in std::string|2048_mean 3149 ns 3156 ns 4 +replace bb to -- in std::string|2048_median 3127 ns 3139 ns 4 +replace bb to -- in std::string|2048_stddev 92.0 ns 87.8 ns 4 +replace bb to -- in std::string|2048_cv 2.92 % 2.78 % 4 +replace bb to -- in lstringa<8>|64_mean 185 ns 184 ns 4 +replace bb to -- in lstringa<8>|64_median 184 ns 184 ns 4 +replace bb to -- in lstringa<8>|64_stddev 4.39 ns 3.42 ns 4 +replace bb to -- in lstringa<8>|64_cv 2.38 % 1.86 % 4 +replace bb to -- in lstringa<8>|256_mean 454 ns 450 ns 4 +replace bb to -- in lstringa<8>|256_median 453 ns 450 ns 4 +replace bb to -- in lstringa<8>|256_stddev 10.3 ns 5.84 ns 4 +replace bb to -- in lstringa<8>|256_cv 2.27 % 1.30 % 4 +replace bb to -- in lstringa<8>|512_mean 783 ns 785 ns 4 +replace bb to -- in lstringa<8>|512_median 792 ns 785 ns 4 +replace bb to -- in lstringa<8>|512_stddev 17.3 ns 14.2 ns 4 +replace bb to -- in lstringa<8>|512_cv 2.20 % 1.81 % 4 +replace bb to -- in lstringa<8>|1024_mean 1485 ns 1491 ns 4 +replace bb to -- in lstringa<8>|1024_median 1484 ns 1507 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 25.8 ns 31.4 ns 4 +replace bb to -- in lstringa<8>|1024_cv 1.74 % 2.11 % 4 +replace bb to -- in lstringa<8>|2048_mean 2845 ns 2816 ns 4 +replace bb to -- in lstringa<8>|2048_median 2832 ns 2816 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 44.1 ns 38.3 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.55 % 1.36 % 4 +replace bb to -- by init stringa|64_mean 162 ns 160 ns 4 +replace bb to -- by init stringa|64_median 164 ns 160 ns 4 +replace bb to -- by init stringa|64_stddev 5.47 ns 5.70 ns 4 +replace bb to -- by init stringa|64_cv 3.37 % 3.55 % 4 +replace bb to -- by init stringa|256_mean 362 ns 359 ns 4 +replace bb to -- by init stringa|256_median 361 ns 361 ns 4 +replace bb to -- by init stringa|256_stddev 3.41 ns 3.84 ns 4 +replace bb to -- by init stringa|256_cv 0.94 % 1.07 % 4 +replace bb to -- by init stringa|512_mean 605 ns 598 ns 4 +replace bb to -- by init stringa|512_median 603 ns 594 ns 4 +replace bb to -- by init stringa|512_stddev 13.4 ns 7.81 ns 4 +replace bb to -- by init stringa|512_cv 2.21 % 1.31 % 4 +replace bb to -- by init stringa|1024_mean 1070 ns 1059 ns 4 +replace bb to -- by init stringa|1024_median 1062 ns 1052 ns 4 +replace bb to -- by init stringa|1024_stddev 27.5 ns 30.1 ns 4 +replace bb to -- by init stringa|1024_cv 2.57 % 2.84 % 4 +replace bb to -- by init stringa|2048_mean 2042 ns 2051 ns 4 +replace bb to -- by init stringa|2048_median 2050 ns 2051 ns 4 +replace bb to -- by init stringa|2048_stddev 38.9 ns 34.2 ns 4 +replace bb to -- by init stringa|2048_cv 1.90 % 1.67 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3949761 ns 3968917 ns 4 -hashStrMapA emplace & find stringa;_median 3949255 ns 3968917 ns 4 -hashStrMapA emplace & find stringa;_stddev 80959 ns 107871 ns 4 -hashStrMapA emplace & find stringa;_cv 2.05 % 2.72 % 4 -std::unordered_map emplace & find std::string;_mean 5604257 ns 5625000 ns 4 -std::unordered_map emplace & find std::string;_median 5546210 ns 5546875 ns 4 -std::unordered_map emplace & find std::string;_stddev 225236 ns 220971 ns 4 -std::unordered_map emplace & find std::string;_cv 4.02 % 3.93 % 4 -hashStrMapA emplace & find ssa;_mean 3501051 ns 3504136 ns 4 -hashStrMapA emplace & find ssa;_median 3492655 ns 3523284 ns 4 -hashStrMapA emplace & find ssa;_stddev 88845 ns 96378 ns 4 -hashStrMapA emplace & find ssa;_cv 2.54 % 2.75 % 4 -std::unordered_map emplace & find std::string_view;_mean 6433478 ns 6406250 ns 4 -std::unordered_map emplace & find std::string_view;_median 6397733 ns 6328125 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 386916 ns 382733 ns 4 -std::unordered_map emplace & find std::string_view;_cv 6.01 % 5.97 % 4 +hashStrMapA emplace & find stringa;_mean 3994959 ns 3989806 ns 4 +hashStrMapA emplace & find stringa;_median 3978794 ns 3968917 ns 4 +hashStrMapA emplace & find stringa;_stddev 80406 ns 79999 ns 4 +hashStrMapA emplace & find stringa;_cv 2.01 % 2.01 % 4 +std::unordered_map emplace & find std::string;_mean 5594557 ns 5580357 ns 4 +std::unordered_map emplace & find std::string;_median 5531872 ns 5510603 ns 4 +std::unordered_map emplace & find std::string;_stddev 191789 ns 197295 ns 4 +std::unordered_map emplace & find std::string;_cv 3.43 % 3.54 % 4 +hashStrMapA emplace & find ssa;_mean 3503253 ns 3504136 ns 4 +hashStrMapA emplace & find ssa;_median 3514522 ns 3523284 ns 4 +hashStrMapA emplace & find ssa;_stddev 59974 ns 38297 ns 4 +hashStrMapA emplace & find ssa;_cv 1.71 % 1.09 % 4 +std::unordered_map emplace & find std::string_view;_mean 6252759 ns 6250000 ns 4 +std::unordered_map emplace & find std::string_view;_median 6251412 ns 6250000 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 124886 ns 141753 ns 4 +std::unordered_map emplace & find std::string_view;_cv 2.00 % 2.27 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1714 ns 1717 ns 4 -Build func full name std::string;_median 1631 ns 1631 ns 4 -Build func full name std::string;_stddev 223 ns 213 ns 4 -Build func full name std::string;_cv 13.01 % 12.43 % 4 -Build func full name std::string 1;_mean 1657 ns 1653 ns 4 -Build func full name std::string 1;_median 1626 ns 1611 ns 4 -Build func full name std::string 1;_stddev 119 ns 130 ns 4 -Build func full name std::string 1;_cv 7.16 % 7.87 % 4 -Build func full name std::stream;_mean 8196 ns 8240 ns 4 -Build func full name std::stream;_median 8292 ns 8283 ns 4 -Build func full name std::stream;_stddev 237 ns 298 ns 4 -Build func full name std::stream;_cv 2.89 % 3.61 % 4 -Build func full name stringa;_mean 814 ns 815 ns 4 -Build func full name stringa;_median 814 ns 820 ns 4 -Build func full name stringa;_stddev 15.2 ns 8.72 ns 4 -Build func full name stringa;_cv 1.87 % 1.07 % 4 -Build func full name stringa 1;_mean 962 ns 963 ns 4 -Build func full name stringa 1;_median 943 ns 952 ns 4 -Build func full name stringa 1;_stddev 42.5 ns 45.2 ns 4 -Build func full name stringa 1;_cv 4.42 % 4.70 % 4 +Build func full name std::string;_mean 1567 ns 1569 ns 4 +Build func full name std::string;_median 1550 ns 1554 ns 4 +Build func full name std::string;_stddev 48.2 ns 44.4 ns 4 +Build func full name std::string;_cv 3.07 % 2.83 % 4 +Build func full name std::string 1;_mean 1586 ns 1587 ns 4 +Build func full name std::string 1;_median 1584 ns 1587 ns 4 +Build func full name std::string 1;_stddev 20.0 ns 20.1 ns 4 +Build func full name std::string 1;_cv 1.26 % 1.27 % 4 +Build func full name std::stream;_mean 8328 ns 8196 ns 4 +Build func full name std::stream;_median 8351 ns 8196 ns 4 +Build func full name std::stream;_stddev 138 ns 142 ns 4 +Build func full name std::stream;_cv 1.66 % 1.74 % 4 +Build func full name stringa;_mean 825 ns 827 ns 4 +Build func full name stringa;_median 819 ns 827 ns 4 +Build func full name stringa;_stddev 20.1 ns 27.0 ns 4 +Build func full name stringa;_cv 2.44 % 3.27 % 4 +Build func full name stringa 1;_mean 935 ns 921 ns 4 +Build func full name stringa 1;_median 933 ns 910 ns 4 +Build func full name stringa 1;_stddev 29.6 ns 29.6 ns 4 +Build func full name stringa 1;_cv 3.17 % 3.21 % 4 diff --git a/bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt b/bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt index 9669ab9..bf6f862 100644 --- a/bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt +++ b/bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.6.4 +Benchmarks of simstr, version 1.6.5 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html -2026-02-04T15:58:14+03:00 +2026-02-08T13:25:12+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,916 +14,924 @@ CPU Caches: 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 351 ns 350 ns 4 -Concat std::string and number by std to std::string_median 351 ns 352 ns 4 -Concat std::string and number by std to std::string_stddev 17.4 ns 16.2 ns 4 -Concat std::string and number by std to std::string_cv 4.95 % 4.64 % 4 -Concat std::string and number by StrExpr to std::string_mean 220 ns 220 ns 4 -Concat std::string and number by StrExpr to std::string_median 213 ns 215 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 16.3 ns 17.6 ns 4 -Concat std::string and number by StrExpr to std::string_cv 7.41 % 7.99 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 116 ns 116 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 115 ns 114 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 6.89 ns 7.59 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 5.94 % 6.55 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 110 ns 110 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 110 ns 110 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 0.514 ns 1.21 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 0.47 % 1.10 % 4 +Concat std::string and number by std to std::string_mean 324 ns 321 ns 4 +Concat std::string and number by std to std::string_median 321 ns 321 ns 4 +Concat std::string and number by std to std::string_stddev 6.59 ns 5.70 ns 4 +Concat std::string and number by std to std::string_cv 2.04 % 1.77 % 4 +Concat std::string and number by StrExpr to std::string_mean 213 ns 212 ns 4 +Concat std::string and number by StrExpr to std::string_median 213 ns 212 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 3.74 ns 6.30 ns 4 +Concat std::string and number by StrExpr to std::string_cv 1.76 % 2.97 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 107 ns 106 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 107 ns 106 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 2.34 ns 1.41 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 2.20 % 1.33 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 119 ns 119 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 119 ns 119 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 2.79 ns 3.60 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 2.35 % 3.04 % 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 1042 ns 1041 ns 4 -Concat std::string and format hex number and literal to std::string_median 1052 ns 1057 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 35.4 ns 39.6 ns 4 -Concat std::string and format hex number and literal to std::string_cv 3.39 % 3.80 % 4 -std::format std::string and hex number by literal to std::string_mean 1850 ns 1832 ns 4 -std::format std::string and hex number by literal to std::string_median 1839 ns 1822 ns 4 -std::format std::string and hex number by literal to std::string_stddev 29.1 ns 36.7 ns 4 -std::format std::string and hex number by literal to std::string_cv 1.57 % 2.01 % 4 -Concat std::string and std::to_chars and string to std::string_mean 254 ns 254 ns 4 -Concat std::string and std::to_chars and string to std::string_median 253 ns 254 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 4.97 ns 7.20 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.96 % 2.84 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 116 ns 116 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 116 ns 117 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.84 ns 2.09 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 1.59 % 1.80 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 99.4 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 100 ns 98.4 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 4.35 ns 3.62 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.32 % 3.65 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 106 ns 106 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 105 ns 106 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.41 ns 3.57 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.22 % 3.37 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 174 ns 174 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 173 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.22 ns 1.92 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.28 % 1.10 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 349 ns 349 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 350 ns 349 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 2.95 ns 7.12 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.84 % 2.04 % 4 ------ format/vformat and subst/vsubst octal number ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -"art "_ss + i / 0x8a010_fmt + " end"_mean 125 ns 125 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_median 126 ns 126 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_stddev 2.31 ns 4.19 ns 4 -"art "_ss + i / 0x8a010_fmt + " end"_cv 1.84 % 3.35 % 4 -e_subst("art {} end", i / 0x8a010_fmt)_mean 206 ns 206 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_median 200 ns 201 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_stddev 11.9 ns 13.4 ns 4 -e_subst("art {} end", i / 0x8a010_fmt)_cv 5.79 % 6.50 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 375 ns 374 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 367 ns 364 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 30.9 ns 34.5 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 8.24 % 9.23 % 4 -std::format("art {:#010o} end", i)_mean 1823 ns 1822 ns 4 -std::format("art {:#010o} end", i)_median 1873 ns 1880 ns 4 -std::format("art {:#010o} end", i)_stddev 126 ns 115 ns 4 -std::format("art {:#010o} end", i)_cv 6.93 % 6.32 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1745 ns 1746 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1740 ns 1746 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 76.8 ns 78.5 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 4.40 % 4.50 % 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6869 ns 6871 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6971 ns 6975 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 217 ns 209 ns 4 -strm << "art 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.15 % 3.05 % 4 +Concat std::string and format hex number and literal to std::string_mean 1041 ns 1038 ns 4 +Concat std::string and format hex number and literal to std::string_median 1042 ns 1038 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 34.7 ns 31.5 ns 4 +Concat std::string and format hex number and literal to std::string_cv 3.33 % 3.04 % 4 +std::format std::string and hex number by literal to std::string_mean 1901 ns 1909 ns 4 +std::format std::string and hex number by literal to std::string_median 1864 ns 1861 ns 4 +std::format std::string and hex number by literal to std::string_stddev 126 ns 138 ns 4 +std::format std::string and hex number by literal to std::string_cv 6.63 % 7.22 % 4 +Concat std::string and std::to_chars and string to std::string_mean 255 ns 255 ns 4 +Concat std::string and std::to_chars and string to std::string_median 256 ns 255 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 3.26 ns 4.84 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.28 % 1.90 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 118 ns 118 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 119 ns 117 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 3.68 ns 3.66 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 3.11 % 3.11 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 101 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 101 ns 101 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.37 ns 2.34 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 2.34 % 2.32 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 105 ns 105 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 105 ns 105 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.24 ns 1.99 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.19 % 1.90 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 174 ns 173 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 174 ns 171 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 5.28 ns 5.43 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 3.03 % 3.14 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 357 ns 358 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 357 ns 360 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.12 ns 4.19 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.87 % 1.17 % 4 +---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 695 ns 689 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 694 ns 689 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 8.69 ns 10.1 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.25 % 1.46 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 817 ns 811 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 816 ns 820 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 19.3 ns 17.4 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.37 % 2.15 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1144 ns 1147 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1146 ns 1147 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 20.7 ns 28.2 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.81 % 2.46 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1570 ns 1561 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1560 ns 1552 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 61.2 ns 59.6 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.90 % 3.82 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1473 ns 1467 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1472 ns 1475 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 47.2 ns 39.5 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.21 % 2.69 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1941 ns 1927 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1948 ns 1927 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 44.1 ns 26.2 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.27 % 1.36 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1947 ns 1946 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1937 ns 1946 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 39.5 ns 54.0 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 2.03 % 2.78 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7402 ns 7394 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 7368 ns 7394 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 212 ns 114 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.87 % 1.54 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 58.5 ns 57.0 ns 4 -Concat std::string by std to std::string_median 56.6 ns 56.2 ns 4 -Concat std::string by std to std::string_stddev 4.75 ns 2.71 ns 4 -Concat std::string by std to std::string_cv 8.11 % 4.75 % 4 -Concat std::string by StrExpr to std::string_mean 79.7 ns 79.9 ns 4 -Concat std::string by StrExpr to std::string_median 79.7 ns 79.5 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.13 ns 1.76 ns 4 -Concat std::string by StrExpr to std::string_cv 1.42 % 2.20 % 4 -Concat stringa by StrExpr to stringa_mean 51.1 ns 51.2 ns 4 -Concat stringa by StrExpr to stringa_median 50.9 ns 51.6 ns 4 -Concat stringa by StrExpr to stringa_stddev 1.000 ns 0.781 ns 4 -Concat stringa by StrExpr to stringa_cv 1.96 % 1.53 % 4 +Concat std::string by std to std::string_mean 55.5 ns 55.5 ns 4 +Concat std::string by std to std::string_median 55.2 ns 55.1 ns 4 +Concat std::string by std to std::string_stddev 1.16 ns 1.34 ns 4 +Concat std::string by std to std::string_cv 2.09 % 2.41 % 4 +Concat std::string by StrExpr to std::string_mean 82.4 ns 81.5 ns 4 +Concat std::string by StrExpr to std::string_median 82.1 ns 82.0 ns 4 +Concat std::string by StrExpr to std::string_stddev 1.74 ns 2.19 ns 4 +Concat std::string by StrExpr to std::string_cv 2.12 % 2.69 % 4 +Concat stringa by StrExpr to stringa_mean 53.5 ns 53.1 ns 4 +Concat stringa by StrExpr to stringa_median 53.0 ns 53.1 ns 4 +Concat stringa by StrExpr to stringa_stddev 1.15 ns 1.28 ns 4 +Concat stringa by StrExpr to stringa_cv 2.15 % 2.40 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 232 ns 231 ns 4 -Find concat three std::string_median 236 ns 235 ns 4 -Find concat three std::string_stddev 10.5 ns 7.85 ns 4 -Find concat three std::string_cv 4.52 % 3.39 % 4 -Find concat three strexpr_mean 130 ns 130 ns 4 -Find concat three strexpr_median 129 ns 131 ns 4 -Find concat three strexpr_stddev 11.2 ns 11.2 ns 4 -Find concat three strexpr_cv 8.61 % 8.59 % 4 -Find concat three simstr_mean 27.9 ns 27.9 ns 4 -Find concat three simstr_median 27.4 ns 27.6 ns 4 -Find concat three simstr_stddev 1.11 ns 1.09 ns 4 -Find concat three simstr_cv 3.97 % 3.89 % 4 +Find concat three std::string_mean 229 ns 228 ns 4 +Find concat three std::string_median 229 ns 227 ns 4 +Find concat three std::string_stddev 4.66 ns 2.27 ns 4 +Find concat three std::string_cv 2.04 % 1.00 % 4 +Find concat three strexpr_mean 122 ns 122 ns 4 +Find concat three strexpr_median 122 ns 121 ns 4 +Find concat three strexpr_stddev 2.19 ns 2.67 ns 4 +Find concat three strexpr_cv 1.80 % 2.19 % 4 +Find concat three simstr_mean 28.7 ns 28.5 ns 4 +Find concat three simstr_median 28.7 ns 28.5 ns 4 +Find concat three simstr_stddev 0.452 ns 0.541 ns 4 +Find concat three simstr_cv 1.58 % 1.90 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 18.8 ns 18.7 ns 4 -BuildTypeNameStr 0/0_median 18.6 ns 18.6 ns 4 -BuildTypeNameStr 0/0_stddev 0.340 ns 0.401 ns 4 -BuildTypeNameStr 0/0_cv 1.81 % 2.14 % 4 -BuildTypeNameExp 0/0_mean 12.8 ns 12.6 ns 4 -BuildTypeNameExp 0/0_median 12.8 ns 12.7 ns 4 -BuildTypeNameExp 0/0_stddev 0.200 ns 0.536 ns 4 -BuildTypeNameExp 0/0_cv 1.57 % 4.24 % 4 -BuildTypeNameSim 0/0_mean 16.7 ns 16.7 ns 4 -BuildTypeNameSim 0/0_median 16.6 ns 16.6 ns 4 -BuildTypeNameSim 0/0_stddev 0.505 ns 0.334 ns 4 -BuildTypeNameSim 0/0_cv 3.02 % 2.01 % 4 -BuildTypeNameStr 10/10_mean 84.4 ns 84.1 ns 4 -BuildTypeNameStr 10/10_median 83.1 ns 82.8 ns 4 -BuildTypeNameStr 10/10_stddev 3.15 ns 3.30 ns 4 -BuildTypeNameStr 10/10_cv 3.74 % 3.92 % 4 -BuildTypeNameExp 10/10_mean 40.2 ns 40.1 ns 4 -BuildTypeNameExp 10/10_median 39.4 ns 39.4 ns 4 -BuildTypeNameExp 10/10_stddev 2.14 ns 2.38 ns 4 -BuildTypeNameExp 10/10_cv 5.32 % 5.94 % 4 -BuildTypeNameSim 10/10_mean 38.0 ns 37.7 ns 4 -BuildTypeNameSim 10/10_median 37.5 ns 37.2 ns 4 -BuildTypeNameSim 10/10_stddev 0.945 ns 1.18 ns 4 -BuildTypeNameSim 10/10_cv 2.49 % 3.14 % 4 +BuildTypeNameStr 0/0_mean 17.4 ns 17.4 ns 4 +BuildTypeNameStr 0/0_median 17.5 ns 17.4 ns 4 +BuildTypeNameStr 0/0_stddev 0.656 ns 0.540 ns 4 +BuildTypeNameStr 0/0_cv 3.77 % 3.11 % 4 +BuildTypeNameExp 0/0_mean 12.9 ns 12.8 ns 4 +BuildTypeNameExp 0/0_median 12.9 ns 12.8 ns 4 +BuildTypeNameExp 0/0_stddev 0.298 ns 0.322 ns 4 +BuildTypeNameExp 0/0_cv 2.31 % 2.51 % 4 +BuildTypeNameSim 0/0_mean 15.3 ns 15.3 ns 4 +BuildTypeNameSim 0/0_median 15.3 ns 15.3 ns 4 +BuildTypeNameSim 0/0_stddev 0.239 ns 0.000 ns 4 +BuildTypeNameSim 0/0_cv 1.56 % 0.00 % 4 +BuildTypeNameStr 10/10_mean 79.9 ns 79.8 ns 4 +BuildTypeNameStr 10/10_median 80.0 ns 80.2 ns 4 +BuildTypeNameStr 10/10_stddev 1.45 ns 2.19 ns 4 +BuildTypeNameStr 10/10_cv 1.81 % 2.75 % 4 +BuildTypeNameExp 10/10_mean 39.2 ns 39.2 ns 4 +BuildTypeNameExp 10/10_median 39.3 ns 39.4 ns 4 +BuildTypeNameExp 10/10_stddev 0.492 ns 0.868 ns 4 +BuildTypeNameExp 10/10_cv 1.26 % 2.21 % 4 +BuildTypeNameSim 10/10_mean 36.5 ns 36.6 ns 4 +BuildTypeNameSim 10/10_median 36.5 ns 36.6 ns 4 +BuildTypeNameSim 10/10_stddev 0.999 ns 0.712 ns 4 +BuildTypeNameSim 10/10_cv 2.74 % 1.94 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 341 ns 341 ns 4 -Concat with replace str_median 337 ns 337 ns 4 -Concat with replace str_stddev 15.2 ns 15.4 ns 4 -Concat with replace str_cv 4.47 % 4.51 % 4 -Concat with replace exp_mean 225 ns 224 ns 4 -Concat with replace exp_median 225 ns 225 ns 4 -Concat with replace exp_stddev 3.68 ns 2.96 ns 4 -Concat with replace exp_cv 1.64 % 1.32 % 4 +Concat with replace str_mean 343 ns 343 ns 4 +Concat with replace str_median 340 ns 341 ns 4 +Concat with replace str_stddev 12.3 ns 13.7 ns 4 +Concat with replace str_cv 3.60 % 3.99 % 4 +Concat with replace exp_mean 219 ns 220 ns 4 +Concat with replace exp_median 218 ns 220 ns 4 +Concat with replace exp_stddev 5.57 ns 8.54 ns 4 +Concat with replace exp_cv 2.54 % 3.89 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 2.53 ns 2.51 ns 4 -std::string e;_median 2.53 ns 2.51 ns 4 -std::string e;_stddev 0.011 ns 0.046 ns 4 -std::string e;_cv 0.42 % 1.81 % 4 -std::string_view e;_mean 1.83 ns 1.82 ns 4 -std::string_view e;_median 1.81 ns 1.82 ns 4 -std::string_view e;_stddev 0.035 ns 0.022 ns 4 -std::string_view e;_cv 1.93 % 1.22 % 4 -ssa e;_mean 1.90 ns 1.90 ns 4 -ssa e;_median 1.91 ns 1.90 ns 4 -ssa e;_stddev 0.063 ns 0.054 ns 4 -ssa e;_cv 3.33 % 2.84 % 4 -stringa e;_mean 2.36 ns 2.36 ns 4 -stringa e;_median 2.37 ns 2.40 ns 4 -stringa e;_stddev 0.118 ns 0.124 ns 4 -stringa e;_cv 4.99 % 5.25 % 4 -lstringa<20> e;_mean 2.59 ns 2.58 ns 4 -lstringa<20> e;_median 2.59 ns 2.59 ns 4 -lstringa<20> e;_stddev 0.054 ns 0.053 ns 4 -lstringa<20> e;_cv 2.08 % 2.07 % 4 -lstringa<40> e;_mean 2.56 ns 2.55 ns 4 -lstringa<40> e;_median 2.58 ns 2.57 ns 4 -lstringa<40> e;_stddev 0.063 ns 0.070 ns 4 -lstringa<40> e;_cv 2.46 % 2.75 % 4 +std::string e;_mean 2.61 ns 2.59 ns 4 +std::string e;_median 2.60 ns 2.61 ns 4 +std::string e;_stddev 0.038 ns 0.030 ns 4 +std::string e;_cv 1.46 % 1.14 % 4 +std::string_view e;_mean 1.87 ns 1.87 ns 4 +std::string_view e;_median 1.87 ns 1.86 ns 4 +std::string_view e;_stddev 0.042 ns 0.040 ns 4 +std::string_view e;_cv 2.24 % 2.14 % 4 +ssa e;_mean 1.83 ns 1.83 ns 4 +ssa e;_median 1.84 ns 1.82 ns 4 +ssa e;_stddev 0.024 ns 0.040 ns 4 +ssa e;_cv 1.32 % 2.19 % 4 +stringa e;_mean 2.23 ns 2.24 ns 4 +stringa e;_median 2.23 ns 2.25 ns 4 +stringa e;_stddev 0.061 ns 0.066 ns 4 +stringa e;_cv 2.75 % 2.94 % 4 +lstringa<20> e;_mean 2.62 ns 2.61 ns 4 +lstringa<20> e;_median 2.62 ns 2.64 ns 4 +lstringa<20> e;_stddev 0.058 ns 0.084 ns 4 +lstringa<20> e;_cv 2.20 % 3.21 % 4 +lstringa<40> e;_mean 2.58 ns 2.58 ns 4 +lstringa<40> e;_median 2.58 ns 2.58 ns 4 +lstringa<40> e;_stddev 0.018 ns 0.034 ns 4 +lstringa<40> e;_cv 0.71 % 1.33 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 2.59 ns 2.56 ns 4 -std::string e = "Test text";_median 2.59 ns 2.57 ns 4 -std::string e = "Test text";_stddev 0.037 ns 0.031 ns 4 -std::string e = "Test text";_cv 1.43 % 1.23 % 4 -std::string_view e = "Test text";_mean 1.82 ns 1.82 ns 4 -std::string_view e = "Test text";_median 1.82 ns 1.82 ns 4 -std::string_view e = "Test text";_stddev 0.022 ns 0.022 ns 4 -std::string_view e = "Test text";_cv 1.20 % 1.22 % 4 -ssa e = "Test text";_mean 1.82 ns 1.81 ns 4 -ssa e = "Test text";_median 1.82 ns 1.81 ns 4 -ssa e = "Test text";_stddev 0.019 ns 0.000 ns 4 -ssa e = "Test text";_cv 1.04 % 0.00 % 4 -stringa e = "Test text";_mean 3.00 ns 3.00 ns 4 -stringa e = "Test text";_median 2.98 ns 2.98 ns 4 -stringa e = "Test text";_stddev 0.082 ns 0.083 ns 4 -stringa e = "Test text";_cv 2.72 % 2.78 % 4 -lstringa<20> e = "Test text";_mean 2.53 ns 2.53 ns 4 -lstringa<20> e = "Test text";_median 2.51 ns 2.51 ns 4 -lstringa<20> e = "Test text";_stddev 0.043 ns 0.028 ns 4 -lstringa<20> e = "Test text";_cv 1.71 % 1.10 % 4 -lstringa<40> e = "Test text";_mean 2.56 ns 2.55 ns 4 -lstringa<40> e = "Test text";_median 2.55 ns 2.54 ns 4 -lstringa<40> e = "Test text";_stddev 0.041 ns 0.053 ns 4 -lstringa<40> e = "Test text";_cv 1.59 % 2.09 % 4 +std::string e = "Test text";_mean 2.60 ns 2.58 ns 4 +std::string e = "Test text";_median 2.61 ns 2.58 ns 4 +std::string e = "Test text";_stddev 0.040 ns 0.034 ns 4 +std::string e = "Test text";_cv 1.53 % 1.33 % 4 +std::string_view e = "Test text";_mean 1.85 ns 1.84 ns 4 +std::string_view e = "Test text";_median 1.85 ns 1.84 ns 4 +std::string_view e = "Test text";_stddev 0.021 ns 0.034 ns 4 +std::string_view e = "Test text";_cv 1.12 % 1.86 % 4 +ssa e = "Test text";_mean 1.85 ns 1.82 ns 4 +ssa e = "Test text";_median 1.85 ns 1.82 ns 4 +ssa e = "Test text";_stddev 0.020 ns 0.054 ns 4 +ssa e = "Test text";_cv 1.10 % 2.97 % 4 +stringa e = "Test text";_mean 2.55 ns 2.55 ns 4 +stringa e = "Test text";_median 2.53 ns 2.55 ns 4 +stringa e = "Test text";_stddev 0.048 ns 0.048 ns 4 +stringa e = "Test text";_cv 1.90 % 1.90 % 4 +lstringa<20> e = "Test text";_mean 2.66 ns 2.65 ns 4 +lstringa<20> e = "Test text";_median 2.67 ns 2.67 ns 4 +lstringa<20> e = "Test text";_stddev 0.055 ns 0.089 ns 4 +lstringa<20> e = "Test text";_cv 2.07 % 3.35 % 4 +lstringa<40> e = "Test text";_mean 2.55 ns 2.55 ns 4 +lstringa<40> e = "Test text";_median 2.55 ns 2.57 ns 4 +lstringa<40> e = "Test text";_stddev 0.033 ns 0.028 ns 4 +lstringa<40> e = "Test text";_cv 1.31 % 1.09 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 79.5 ns 79.8 ns 4 -std::string e = "123456789012345678901234567890";_median 79.5 ns 79.3 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.49 ns 1.67 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.87 % 2.09 % 4 -std::string_view e = "123456789012345678901234567890";_mean 1.83 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890";_median 1.82 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.033 ns 0.022 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.79 % 1.22 % 4 -ssa e = "123456789012345678901234567890";_mean 1.82 ns 1.82 ns 4 -ssa e = "123456789012345678901234567890";_median 1.82 ns 1.84 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.013 ns 0.043 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.74 % 2.38 % 4 -stringa e = "123456789012345678901234567890";_mean 2.20 ns 2.18 ns 4 -stringa e = "123456789012345678901234567890";_median 2.22 ns 2.20 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.056 ns 0.079 ns 4 -stringa e = "123456789012345678901234567890";_cv 2.55 % 3.63 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 81.8 ns 82.0 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 80.7 ns 81.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 3.43 ns 3.77 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 4.19 % 4.60 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 3.35 ns 3.36 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 3.35 ns 3.34 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.051 ns 0.073 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.52 % 2.19 % 4 +std::string e = "123456789012345678901234567890";_mean 76.9 ns 76.7 ns 4 +std::string e = "123456789012345678901234567890";_median 76.3 ns 75.9 ns 4 +std::string e = "123456789012345678901234567890";_stddev 2.05 ns 2.47 ns 4 +std::string e = "123456789012345678901234567890";_cv 2.67 % 3.21 % 4 +std::string_view e = "123456789012345678901234567890";_mean 1.84 ns 1.83 ns 4 +std::string_view e = "123456789012345678901234567890";_median 1.85 ns 1.82 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.035 ns 0.040 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 1.88 % 2.19 % 4 +ssa e = "123456789012345678901234567890";_mean 1.83 ns 1.82 ns 4 +ssa e = "123456789012345678901234567890";_median 1.82 ns 1.82 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.040 ns 0.022 ns 4 +ssa e = "123456789012345678901234567890";_cv 2.18 % 1.22 % 4 +stringa e = "123456789012345678901234567890";_mean 2.89 ns 2.89 ns 4 +stringa e = "123456789012345678901234567890";_median 2.88 ns 2.89 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.057 ns 0.051 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.96 % 1.77 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 75.7 ns 75.4 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 74.9 ns 75.0 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 2.05 ns 2.62 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 2.70 % 3.47 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 3.32 ns 3.31 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 3.31 ns 3.30 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.037 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 0.94 % 1.10 % 4 ----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text"; auto c{e};_mean 5.06 ns 5.08 ns 4 -std::string e = "Test text"; auto c{e};_median 5.06 ns 5.08 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.048 ns 0.090 ns 4 -std::string e = "Test text"; auto c{e};_cv 0.95 % 1.78 % 4 -std::string_view e = "Test text"; auto c{e};_mean 3.80 ns 3.79 ns 4 -std::string_view e = "Test text"; auto c{e};_median 3.80 ns 3.77 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.024 ns 0.042 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 0.64 % 1.10 % 4 -ssa e = "Test text"; auto c{e};_mean 3.79 ns 3.79 ns 4 -ssa e = "Test text"; auto c{e};_median 3.79 ns 3.79 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.020 ns 0.050 ns 4 -ssa e = "Test text"; auto c{e};_cv 0.54 % 1.33 % 4 -stringa e = "Test text"; auto c{e};_mean 4.17 ns 4.17 ns 4 -stringa e = "Test text"; auto c{e};_median 4.17 ns 4.14 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.185 ns 0.209 ns 4 -stringa e = "Test text"; auto c{e};_cv 4.43 % 5.01 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 8.29 ns 8.21 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 8.43 ns 8.37 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.468 ns 0.494 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 5.64 % 6.02 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 8.09 ns 8.07 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 8.10 ns 8.11 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.128 ns 0.167 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.58 % 2.07 % 4 +std::string e = "Test text"; auto c{e};_mean 5.13 ns 5.12 ns 4 +std::string e = "Test text"; auto c{e};_median 5.14 ns 5.16 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.056 ns 0.078 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.08 % 1.53 % 4 +std::string_view e = "Test text"; auto c{e};_mean 3.81 ns 3.81 ns 4 +std::string_view e = "Test text"; auto c{e};_median 3.81 ns 3.81 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.018 ns 0.048 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 0.47 % 1.27 % 4 +ssa e = "Test text"; auto c{e};_mean 3.83 ns 3.83 ns 4 +ssa e = "Test text"; auto c{e};_median 3.84 ns 3.85 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.020 ns 0.042 ns 4 +ssa e = "Test text"; auto c{e};_cv 0.51 % 1.09 % 4 +stringa e = "Test text"; auto c{e};_mean 4.07 ns 4.06 ns 4 +stringa e = "Test text"; auto c{e};_median 4.05 ns 4.04 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.080 ns 0.087 ns 4 +stringa e = "Test text"; auto c{e};_cv 1.97 % 2.14 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 7.68 ns 7.67 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 7.69 ns 7.67 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.130 ns 0.142 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 1.69 % 1.86 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 8.13 ns 8.11 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 8.12 ns 8.11 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.038 ns 0.101 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 0.46 % 1.24 % 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 80.2 ns 80.0 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 80.3 ns 80.6 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.29 ns 2.00 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.61 % 2.50 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.49 ns 1.49 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.48 ns 1.48 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.055 ns 0.054 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 3.71 % 3.65 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.47 ns 1.46 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 1.46 ns 1.46 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.032 ns 0.018 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.19 % 1.24 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 3.40 ns 3.40 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 3.39 ns 3.38 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.044 ns 0.067 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.29 % 1.96 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 80.1 ns 80.2 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 79.8 ns 80.2 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.69 ns 1.42 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.11 % 1.77 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.07 ns 7.06 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.07 ns 7.15 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.177 ns 0.174 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.51 % 2.47 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 79.2 ns 78.5 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 78.7 ns 78.5 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.87 ns 2.01 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.63 % 2.57 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.83 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.83 ns 1.84 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.023 ns 0.021 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.23 % 1.14 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.84 ns 1.83 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 1.84 ns 1.84 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.021 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.89 % 1.14 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 3.01 ns 3.00 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 3.02 ns 3.02 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.071 ns 0.063 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.38 % 2.12 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 81.2 ns 80.7 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 80.7 ns 80.2 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.37 ns 2.19 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.92 % 2.72 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.05 ns 7.05 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.05 ns 7.05 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.078 ns 0.081 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.11 % 1.14 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find;_mean 41.5 ns 41.7 ns 4 -std::string::find;_median 41.3 ns 41.4 ns 4 -std::string::find;_stddev 1.68 ns 1.41 ns 4 -std::string::find;_cv 4.05 % 3.39 % 4 -std::string_view::find;_mean 39.7 ns 39.8 ns 4 -std::string_view::find;_median 39.5 ns 39.6 ns 4 -std::string_view::find;_stddev 1.08 ns 1.18 ns 4 -std::string_view::find;_cv 2.73 % 2.98 % 4 -ssa::find;_mean 21.7 ns 21.7 ns 4 -ssa::find;_median 21.8 ns 22.0 ns 4 -ssa::find;_stddev 0.407 ns 0.488 ns 4 -ssa::find;_cv 1.87 % 2.25 % 4 -stringa::find;_mean 29.8 ns 29.8 ns 4 -stringa::find;_median 29.7 ns 29.8 ns 4 -stringa::find;_stddev 0.402 ns 0.541 ns 4 -stringa::find;_cv 1.35 % 1.81 % 4 -lstringa<20>::find;_mean 22.1 ns 22.1 ns 4 -lstringa<20>::find;_median 22.1 ns 22.2 ns 4 -lstringa<20>::find;_stddev 0.633 ns 0.893 ns 4 -lstringa<20>::find;_cv 2.87 % 4.04 % 4 -lstringa<40>::find;_mean 20.5 ns 20.5 ns 4 -lstringa<40>::find;_median 20.5 ns 20.4 ns 4 -lstringa<40>::find;_stddev 0.253 ns 0.227 ns 4 -lstringa<40>::find;_cv 1.23 % 1.10 % 4 +std::string::find;_mean 41.8 ns 41.7 ns 4 +std::string::find;_median 41.7 ns 41.4 ns 4 +std::string::find;_stddev 1.01 ns 1.18 ns 4 +std::string::find;_cv 2.41 % 2.84 % 4 +std::string_view::find;_mean 39.8 ns 39.7 ns 4 +std::string_view::find;_median 39.7 ns 39.7 ns 4 +std::string_view::find;_stddev 0.859 ns 0.503 ns 4 +std::string_view::find;_cv 2.16 % 1.27 % 4 +ssa::find;_mean 22.1 ns 22.1 ns 4 +ssa::find;_median 22.1 ns 22.2 ns 4 +ssa::find;_stddev 0.391 ns 0.227 ns 4 +ssa::find;_cv 1.77 % 1.03 % 4 +stringa::find;_mean 30.6 ns 30.5 ns 4 +stringa::find;_median 30.6 ns 30.5 ns 4 +stringa::find;_stddev 1.42 ns 1.21 ns 4 +stringa::find;_cv 4.64 % 3.97 % 4 +lstringa<20>::find;_mean 22.0 ns 22.0 ns 4 +lstringa<20>::find;_median 22.0 ns 22.0 ns 4 +lstringa<20>::find;_stddev 0.394 ns 0.399 ns 4 +lstringa<20>::find;_cv 1.79 % 1.81 % 4 +lstringa<40>::find;_mean 20.9 ns 20.9 ns 4 +lstringa<40>::find;_median 20.9 ns 20.6 ns 4 +lstringa<40>::find;_stddev 0.572 ns 0.641 ns 4 +lstringa<40>::find;_cv 2.73 % 3.07 % 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 4.36 ns 4.36 ns 4 -std::string copy{str_with_len_N};/15_median 4.34 ns 4.33 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.104 ns 0.141 ns 4 -std::string copy{str_with_len_N};/15_cv 2.38 % 3.24 % 4 -std::string copy{str_with_len_N};/16_mean 84.6 ns 84.6 ns 4 -std::string copy{str_with_len_N};/16_median 85.0 ns 85.4 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.28 ns 1.74 ns 4 -std::string copy{str_with_len_N};/16_cv 1.51 % 2.06 % 4 -std::string copy{str_with_len_N};/23_mean 83.2 ns 83.3 ns 4 -std::string copy{str_with_len_N};/23_median 82.9 ns 82.8 ns 4 -std::string copy{str_with_len_N};/23_stddev 1.83 ns 1.67 ns 4 -std::string copy{str_with_len_N};/23_cv 2.20 % 2.01 % 4 -std::string copy{str_with_len_N};/24_mean 86.1 ns 85.9 ns 4 -std::string copy{str_with_len_N};/24_median 85.8 ns 85.4 ns 4 -std::string copy{str_with_len_N};/24_stddev 2.77 ns 2.19 ns 4 -std::string copy{str_with_len_N};/24_cv 3.22 % 2.55 % 4 -std::string copy{str_with_len_N};/32_mean 85.4 ns 85.4 ns 4 -std::string copy{str_with_len_N};/32_median 85.0 ns 85.4 ns 4 -std::string copy{str_with_len_N};/32_stddev 3.07 ns 3.18 ns 4 -std::string copy{str_with_len_N};/32_cv 3.60 % 3.73 % 4 -std::string copy{str_with_len_N};/64_mean 81.6 ns 81.6 ns 4 -std::string copy{str_with_len_N};/64_median 81.5 ns 81.6 ns 4 -std::string copy{str_with_len_N};/64_stddev 2.90 ns 2.42 ns 4 -std::string copy{str_with_len_N};/64_cv 3.56 % 2.96 % 4 -std::string copy{str_with_len_N};/128_mean 88.6 ns 88.5 ns 4 -std::string copy{str_with_len_N};/128_median 88.7 ns 88.9 ns 4 -std::string copy{str_with_len_N};/128_stddev 4.10 ns 3.87 ns 4 -std::string copy{str_with_len_N};/128_cv 4.63 % 4.37 % 4 -std::string copy{str_with_len_N};/256_mean 90.1 ns 90.2 ns 4 -std::string copy{str_with_len_N};/256_median 90.1 ns 89.8 ns 4 -std::string copy{str_with_len_N};/256_stddev 7.72 ns 7.98 ns 4 -std::string copy{str_with_len_N};/256_cv 8.57 % 8.84 % 4 -std::string copy{str_with_len_N};/512_mean 89.3 ns 89.4 ns 4 -std::string copy{str_with_len_N};/512_median 89.5 ns 89.8 ns 4 -std::string copy{str_with_len_N};/512_stddev 2.37 ns 1.67 ns 4 -std::string copy{str_with_len_N};/512_cv 2.65 % 1.87 % 4 -std::string copy{str_with_len_N};/1024_mean 95.8 ns 95.7 ns 4 -std::string copy{str_with_len_N};/1024_median 96.0 ns 95.2 ns 4 -std::string copy{str_with_len_N};/1024_stddev 4.07 ns 3.57 ns 4 -std::string copy{str_with_len_N};/1024_cv 4.25 % 3.73 % 4 -std::string copy{str_with_len_N};/2048_mean 132 ns 132 ns 4 -std::string copy{str_with_len_N};/2048_median 131 ns 130 ns 4 -std::string copy{str_with_len_N};/2048_stddev 7.07 ns 7.34 ns 4 -std::string copy{str_with_len_N};/2048_cv 5.36 % 5.57 % 4 -std::string copy{str_with_len_N};/4096_mean 180 ns 180 ns 4 -std::string copy{str_with_len_N};/4096_median 179 ns 180 ns 4 -std::string copy{str_with_len_N};/4096_stddev 3.73 ns 3.42 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.07 % 1.90 % 4 -stringa copy{str_with_len_N};/15_mean 3.97 ns 3.97 ns 4 -stringa copy{str_with_len_N};/15_median 3.97 ns 3.99 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.018 ns 0.045 ns 4 -stringa copy{str_with_len_N};/15_cv 0.46 % 1.14 % 4 -stringa copy{str_with_len_N};/16_mean 4.09 ns 4.08 ns 4 -stringa copy{str_with_len_N};/16_median 4.09 ns 4.05 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.143 ns 0.149 ns 4 -stringa copy{str_with_len_N};/16_cv 3.48 % 3.65 % 4 -stringa copy{str_with_len_N};/23_mean 4.04 ns 4.04 ns 4 -stringa copy{str_with_len_N};/23_median 4.07 ns 4.08 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.107 ns 0.091 ns 4 -stringa copy{str_with_len_N};/23_cv 2.66 % 2.25 % 4 -stringa copy{str_with_len_N};/24_mean 18.4 ns 18.3 ns 4 -stringa copy{str_with_len_N};/24_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.129 ns 0.209 ns 4 -stringa copy{str_with_len_N};/24_cv 0.71 % 1.14 % 4 -stringa copy{str_with_len_N};/32_mean 19.0 ns 18.8 ns 4 -stringa copy{str_with_len_N};/32_median 19.0 ns 18.8 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.193 ns 0.342 ns 4 -stringa copy{str_with_len_N};/32_cv 1.02 % 1.81 % 4 -stringa copy{str_with_len_N};/64_mean 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/64_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.159 ns 0.000 ns 4 -stringa copy{str_with_len_N};/64_cv 0.86 % 0.00 % 4 -stringa copy{str_with_len_N};/128_mean 18.9 ns 18.7 ns 4 -stringa copy{str_with_len_N};/128_median 18.5 ns 18.6 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.698 ns 0.715 ns 4 -stringa copy{str_with_len_N};/128_cv 3.70 % 3.82 % 4 -stringa copy{str_with_len_N};/256_mean 18.2 ns 18.2 ns 4 -stringa copy{str_with_len_N};/256_median 18.2 ns 18.1 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.086 ns 0.227 ns 4 -stringa copy{str_with_len_N};/256_cv 0.47 % 1.24 % 4 -stringa copy{str_with_len_N};/512_mean 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/512_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.174 ns 0.313 ns 4 -stringa copy{str_with_len_N};/512_cv 0.94 % 1.70 % 4 -stringa copy{str_with_len_N};/1024_mean 18.4 ns 18.2 ns 4 -stringa copy{str_with_len_N};/1024_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.051 ns 0.419 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.28 % 2.30 % 4 -stringa copy{str_with_len_N};/2048_mean 18.3 ns 18.1 ns 4 -stringa copy{str_with_len_N};/2048_median 18.3 ns 18.0 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.078 ns 0.192 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.42 % 1.06 % 4 -stringa copy{str_with_len_N};/4096_mean 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/4096_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.123 ns 0.000 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.67 % 0.00 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 8.05 ns 7.98 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 7.91 ns 7.85 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.387 ns 0.387 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 4.80 % 4.85 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 8.00 ns 7.98 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 7.91 ns 7.93 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.457 ns 0.436 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 5.71 % 5.46 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 8.62 ns 8.58 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 8.50 ns 8.48 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.804 ns 0.819 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 9.33 % 9.55 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 86.2 ns 86.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 86.5 ns 86.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 6.52 ns 6.12 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 7.56 % 7.09 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 85.7 ns 85.3 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 86.0 ns 84.8 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 3.38 ns 3.57 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 3.94 % 4.19 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 82.9 ns 82.8 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 83.3 ns 83.7 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 1.61 ns 1.74 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 1.95 % 2.11 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 87.2 ns 87.2 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 87.2 ns 87.2 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 1.70 ns 2.01 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 1.95 % 2.31 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 87.6 ns 87.6 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 87.8 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 2.03 ns 2.62 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.31 % 2.99 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 92.1 ns 91.6 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 91.9 ns 90.7 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 4.32 ns 3.34 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 4.69 % 3.65 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 103 ns 103 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 103 ns 104 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.33 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 2.27 % 1.94 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 128 ns 129 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 128 ns 128 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 6.91 ns 7.82 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 5.38 % 6.07 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 187 ns 188 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 3.66 ns 2.09 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 1.94 % 1.12 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 8.52 ns 8.48 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 8.56 ns 8.48 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.186 ns 0.121 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 2.18 % 1.43 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 8.53 ns 8.54 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 8.35 ns 8.46 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.413 ns 0.377 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 4.84 % 4.41 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 8.48 ns 8.50 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 8.41 ns 8.37 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.212 ns 0.262 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 2.50 % 3.08 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 8.74 ns 8.74 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 8.87 ns 8.79 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.384 ns 0.431 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 4.39 % 4.94 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 11.9 ns 11.9 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 11.9 ns 11.9 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.248 ns 0.161 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 2.08 % 1.36 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 11.8 ns 11.8 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 11.8 ns 11.9 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.204 ns 0.267 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.72 % 2.27 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 12.3 ns 12.1 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 12.3 ns 12.1 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.124 ns 0.161 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.01 % 1.33 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 13.0 ns 13.0 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 13.0 ns 13.0 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.140 ns 0.161 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 1.08 % 1.24 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 14.4 ns 14.4 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 14.5 ns 14.4 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.255 ns 0.395 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.77 % 2.75 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 101 ns 101 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 97.0 ns 96.8 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 12.3 ns 11.8 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 12.20 % 11.69 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 125 ns 125 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 124 ns 124 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 1.39 ns 2.67 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.12 % 2.14 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 189 ns 188 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 4.15 ns 5.27 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 2.20 % 2.81 % 4 +std::string copy{str_with_len_N};/15_mean 4.46 ns 4.47 ns 4 +std::string copy{str_with_len_N};/15_median 4.46 ns 4.47 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.090 ns 0.054 ns 4 +std::string copy{str_with_len_N};/15_cv 2.01 % 1.22 % 4 +std::string copy{str_with_len_N};/16_mean 84.6 ns 84.2 ns 4 +std::string copy{str_with_len_N};/16_median 84.7 ns 84.8 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.40 ns 2.00 ns 4 +std::string copy{str_with_len_N};/16_cv 1.65 % 2.38 % 4 +std::string copy{str_with_len_N};/23_mean 86.8 ns 86.3 ns 4 +std::string copy{str_with_len_N};/23_median 86.5 ns 85.8 ns 4 +std::string copy{str_with_len_N};/23_stddev 1.35 ns 1.05 ns 4 +std::string copy{str_with_len_N};/23_cv 1.56 % 1.21 % 4 +std::string copy{str_with_len_N};/24_mean 86.0 ns 85.0 ns 4 +std::string copy{str_with_len_N};/24_median 86.0 ns 84.6 ns 4 +std::string copy{str_with_len_N};/24_stddev 2.06 ns 2.98 ns 4 +std::string copy{str_with_len_N};/24_cv 2.40 % 3.50 % 4 +std::string copy{str_with_len_N};/32_mean 89.2 ns 87.4 ns 4 +std::string copy{str_with_len_N};/32_median 88.3 ns 86.8 ns 4 +std::string copy{str_with_len_N};/32_stddev 3.79 ns 2.00 ns 4 +std::string copy{str_with_len_N};/32_cv 4.25 % 2.29 % 4 +std::string copy{str_with_len_N};/64_mean 86.3 ns 85.8 ns 4 +std::string copy{str_with_len_N};/64_median 85.4 ns 84.8 ns 4 +std::string copy{str_with_len_N};/64_stddev 2.17 ns 2.96 ns 4 +std::string copy{str_with_len_N};/64_cv 2.52 % 3.45 % 4 +std::string copy{str_with_len_N};/128_mean 90.5 ns 89.7 ns 4 +std::string copy{str_with_len_N};/128_median 89.8 ns 87.9 ns 4 +std::string copy{str_with_len_N};/128_stddev 4.39 ns 5.41 ns 4 +std::string copy{str_with_len_N};/128_cv 4.85 % 6.03 % 4 +std::string copy{str_with_len_N};/256_mean 93.4 ns 92.1 ns 4 +std::string copy{str_with_len_N};/256_median 93.4 ns 92.1 ns 4 +std::string copy{str_with_len_N};/256_stddev 1.57 ns 1.71 ns 4 +std::string copy{str_with_len_N};/256_cv 1.69 % 1.86 % 4 +std::string copy{str_with_len_N};/512_mean 94.6 ns 94.7 ns 4 +std::string copy{str_with_len_N};/512_median 94.6 ns 94.2 ns 4 +std::string copy{str_with_len_N};/512_stddev 1.17 ns 1.05 ns 4 +std::string copy{str_with_len_N};/512_cv 1.24 % 1.10 % 4 +std::string copy{str_with_len_N};/1024_mean 103 ns 102 ns 4 +std::string copy{str_with_len_N};/1024_median 105 ns 103 ns 4 +std::string copy{str_with_len_N};/1024_stddev 4.25 ns 3.14 ns 4 +std::string copy{str_with_len_N};/1024_cv 4.11 % 3.08 % 4 +std::string copy{str_with_len_N};/2048_mean 139 ns 137 ns 4 +std::string copy{str_with_len_N};/2048_median 135 ns 133 ns 4 +std::string copy{str_with_len_N};/2048_stddev 9.60 ns 11.3 ns 4 +std::string copy{str_with_len_N};/2048_cv 6.93 % 8.21 % 4 +std::string copy{str_with_len_N};/4096_mean 184 ns 182 ns 4 +std::string copy{str_with_len_N};/4096_median 183 ns 182 ns 4 +std::string copy{str_with_len_N};/4096_stddev 5.82 ns 5.40 ns 4 +std::string copy{str_with_len_N};/4096_cv 3.17 % 2.97 % 4 +stringa copy{str_with_len_N};/15_mean 4.06 ns 4.01 ns 4 +stringa copy{str_with_len_N};/15_median 4.07 ns 3.99 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.057 ns 0.045 ns 4 +stringa copy{str_with_len_N};/15_cv 1.40 % 1.13 % 4 +stringa copy{str_with_len_N};/16_mean 4.06 ns 4.06 ns 4 +stringa copy{str_with_len_N};/16_median 4.08 ns 4.08 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.064 ns 0.045 ns 4 +stringa copy{str_with_len_N};/16_cv 1.57 % 1.12 % 4 +stringa copy{str_with_len_N};/23_mean 4.06 ns 4.06 ns 4 +stringa copy{str_with_len_N};/23_median 4.06 ns 4.08 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.056 ns 0.045 ns 4 +stringa copy{str_with_len_N};/23_cv 1.38 % 1.12 % 4 +stringa copy{str_with_len_N};/24_mean 18.9 ns 18.8 ns 4 +stringa copy{str_with_len_N};/24_median 18.7 ns 18.6 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.590 ns 0.592 ns 4 +stringa copy{str_with_len_N};/24_cv 3.12 % 3.14 % 4 +stringa copy{str_with_len_N};/32_mean 19.3 ns 19.1 ns 4 +stringa copy{str_with_len_N};/32_median 19.3 ns 19.3 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.288 ns 0.527 ns 4 +stringa copy{str_with_len_N};/32_cv 1.50 % 2.75 % 4 +stringa copy{str_with_len_N};/64_mean 18.7 ns 18.4 ns 4 +stringa copy{str_with_len_N};/64_median 18.6 ns 18.4 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.215 ns 0.342 ns 4 +stringa copy{str_with_len_N};/64_cv 1.15 % 1.86 % 4 +stringa copy{str_with_len_N};/128_mean 18.6 ns 18.7 ns 4 +stringa copy{str_with_len_N};/128_median 18.6 ns 18.8 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.099 ns 0.192 ns 4 +stringa copy{str_with_len_N};/128_cv 0.53 % 1.03 % 4 +stringa copy{str_with_len_N};/256_mean 19.2 ns 19.3 ns 4 +stringa copy{str_with_len_N};/256_median 19.2 ns 19.3 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.659 ns 0.764 ns 4 +stringa copy{str_with_len_N};/256_cv 3.43 % 3.97 % 4 +stringa copy{str_with_len_N};/512_mean 19.0 ns 18.7 ns 4 +stringa copy{str_with_len_N};/512_median 19.0 ns 18.6 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.148 ns 0.401 ns 4 +stringa copy{str_with_len_N};/512_cv 0.78 % 2.14 % 4 +stringa copy{str_with_len_N};/1024_mean 19.1 ns 19.0 ns 4 +stringa copy{str_with_len_N};/1024_median 18.9 ns 18.8 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.543 ns 0.725 ns 4 +stringa copy{str_with_len_N};/1024_cv 2.85 % 3.81 % 4 +stringa copy{str_with_len_N};/2048_mean 18.7 ns 18.7 ns 4 +stringa copy{str_with_len_N};/2048_median 18.7 ns 18.8 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.109 ns 0.209 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.58 % 1.12 % 4 +stringa copy{str_with_len_N};/4096_mean 18.5 ns 18.5 ns 4 +stringa copy{str_with_len_N};/4096_median 18.5 ns 18.6 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.200 ns 0.227 ns 4 +stringa copy{str_with_len_N};/4096_cv 1.08 % 1.23 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 7.52 ns 7.46 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 7.46 ns 7.50 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.194 ns 0.087 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 2.58 % 1.17 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 7.34 ns 7.32 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 7.30 ns 7.32 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.115 ns 0.142 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.57 % 1.94 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 7.58 ns 7.57 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 7.48 ns 7.53 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.274 ns 0.176 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 3.62 % 2.32 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 80.3 ns 79.5 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 80.6 ns 79.5 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 2.60 ns 2.42 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 3.24 % 3.04 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 83.1 ns 82.4 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 82.9 ns 82.8 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.949 ns 1.67 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 1.14 % 2.03 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 83.9 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 84.0 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.923 ns 1.42 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.10 % 1.70 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 86.0 ns 85.0 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 86.0 ns 84.6 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.788 ns 1.67 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 0.92 % 1.96 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 87.0 ns 86.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 86.4 ns 86.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 2.80 ns 2.70 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 3.22 % 3.11 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 89.9 ns 89.4 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 89.0 ns 88.9 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 1.81 ns 0.872 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 2.02 % 0.98 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 99.9 ns 98.9 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 99.1 ns 97.3 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 3.11 ns 3.96 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 3.11 % 4.01 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 130 ns 129 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 128 ns 127 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 7.32 ns 8.01 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 5.64 % 6.21 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 192 ns 191 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 192 ns 192 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 6.30 ns 4.83 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 3.29 % 2.53 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 8.58 ns 8.48 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 8.58 ns 8.48 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.106 ns 0.121 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 1.23 % 1.43 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 8.44 ns 8.46 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 8.42 ns 8.46 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.159 ns 0.101 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 1.89 % 1.19 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 8.61 ns 8.58 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 8.61 ns 8.58 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.307 ns 0.342 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 3.57 % 3.98 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 8.64 ns 8.58 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 8.61 ns 8.58 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.123 ns 0.000 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 1.43 % 0.00 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 11.6 ns 11.5 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 11.5 ns 11.5 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.293 ns 0.199 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 2.53 % 1.74 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 11.7 ns 11.5 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 11.7 ns 11.5 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.363 ns 0.307 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 3.11 % 2.66 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 12.2 ns 12.2 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 12.2 ns 12.1 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.248 ns 0.301 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 2.04 % 2.47 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 13.0 ns 12.7 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 12.9 ns 12.7 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.291 ns 0.181 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 2.24 % 1.43 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 14.7 ns 14.5 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 14.7 ns 14.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.180 ns 0.301 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.23 % 2.07 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 96.6 ns 95.2 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 95.0 ns 93.1 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 4.47 ns 4.98 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 4.62 % 5.23 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 137 ns 135 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 137 ns 135 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 3.08 ns 2.56 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.25 % 1.90 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 195 ns 194 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 195 ns 195 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 5.47 ns 4.01 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 2.80 % 2.07 % 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 31.8 ns 31.5 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.5 ns 31.5 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.552 ns 0.000 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.74 % 0.00 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.0 ns 14.0 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.9 ns 14.0 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.525 ns 0.575 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.75 % 4.10 % 4 -stringa s = "123456789"; int res = s.to_int_mean 14.9 ns 14.9 ns 4 -stringa s = "123456789"; int res = s.to_int_median 15.0 ns 15.0 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.292 ns 0.523 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 1.95 % 3.51 % 4 -ssa s = "123456789"; int res = s.to_int_mean 15.2 ns 15.0 ns 4 -ssa s = "123456789"; int res = s.to_int_median 15.1 ns 15.0 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.226 ns 0.285 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.49 % 1.90 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 15.7 ns 15.6 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 15.6 ns 15.7 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.833 ns 0.851 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 5.31 % 5.44 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 33.2 ns 33.1 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 33.3 ns 33.3 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.294 ns 0.701 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.89 % 2.12 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.0 ns 13.8 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.1 ns 13.8 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.190 ns 0.256 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.36 % 1.86 % 4 +stringa s = "123456789"; int res = s.to_int_mean 15.0 ns 15.1 ns 4 +stringa s = "123456789"; int res = s.to_int_median 15.1 ns 15.1 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.159 ns 0.256 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.06 % 1.70 % 4 +ssa s = "123456789"; int res = s.to_int_mean 15.4 ns 15.4 ns 4 +ssa s = "123456789"; int res = s.to_int_median 15.5 ns 15.5 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.387 ns 0.334 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 2.50 % 2.16 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 15.4 ns 15.3 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 15.4 ns 15.3 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.296 ns 0.403 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.92 % 2.62 % 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 36.5 ns 36.3 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 36.5 ns 36.5 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.35 ns 2.21 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 6.43 % 6.09 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.40 ns 9.40 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.39 ns 9.40 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.146 ns 0.141 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.55 % 1.50 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 14.3 ns 14.2 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 14.1 ns 14.1 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.478 ns 0.395 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 3.34 % 2.78 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 12.8 ns 12.7 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 12.8 ns 12.7 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.257 ns 0.405 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 2.00 % 3.19 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 14.5 ns 14.5 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 14.4 ns 14.6 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.451 ns 0.536 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 3.11 % 3.69 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 37.1 ns 36.6 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 36.4 ns 36.8 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.79 ns 2.50 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.83 % 6.83 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 12.8 ns 12.8 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 12.8 ns 12.7 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.395 ns 0.395 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.08 % 3.07 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 13.9 ns 13.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 13.9 ns 13.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.319 ns 0.256 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 2.30 % 1.86 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 12.7 ns 12.6 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 12.6 ns 12.7 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.258 ns 0.267 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 2.03 % 2.12 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 14.1 ns 14.1 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 14.1 ns 14.1 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.518 ns 0.513 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 3.67 % 3.63 % 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 45.1 ns 45.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.0 ns 45.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.725 ns 0.584 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.61 % 1.30 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 22.6 ns 22.7 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 22.4 ns 22.4 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 1.32 ns 1.43 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 5.84 % 6.32 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 16.8 ns 16.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 16.8 ns 16.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.200 ns 0.313 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.19 % 1.86 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 46.0 ns 45.4 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 46.2 ns 45.4 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.04 ns 0.564 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.27 % 1.24 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 21.8 ns 21.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 21.8 ns 21.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.405 ns 0.302 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.85 % 1.39 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 17.4 ns 17.3 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 17.4 ns 17.3 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.274 ns 0.000 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.58 % 0.00 % 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 99.9 ns 100 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 100.0 ns 100 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.58 ns 3.82 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.59 % 3.80 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 79.1 ns 79.0 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 78.7 ns 78.5 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.40 ns 2.00 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.03 % 2.54 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 35.1 ns 34.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 35.0 ns 34.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.704 ns 0.463 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.01 % 1.33 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 102 ns 101 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 101 ns 101 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.73 ns 3.57 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.70 % 3.54 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 84.9 ns 83.7 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 84.1 ns 83.7 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 3.35 ns 3.42 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.95 % 4.08 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 37.1 ns 37.0 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 37.2 ns 37.2 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.13 ns 1.43 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 3.04 % 3.86 % 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 5721 ns 5720 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 5723 ns 5790 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 191 ns 197 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 3.35 % 3.45 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1309 ns 1311 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1308 ns 1311 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 45.6 ns 32.2 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 3.49 % 2.46 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 919 ns 921 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 919 ns 921 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 5.60 ns 17.1 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.61 % 1.86 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 511 ns 512 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 510 ns 516 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 5.05 ns 7.81 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 0.99 % 1.53 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 355 ns 355 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 355 ns 353 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 3.31 ns 3.84 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.93 % 1.08 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 242 ns 242 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 241 ns 241 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.65 ns 6.58 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.92 % 2.72 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5731 ns 5720 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 5728 ns 5720 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 65.7 ns 114 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.15 % 1.99 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 1326 ns 1303 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 1327 ns 1318 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 25.4 ns 54.4 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 1.92 % 4.17 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 980 ns 973 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 967 ns 963 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 34.0 ns 36.2 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.47 % 3.72 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 538 ns 531 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 539 ns 531 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 7.71 ns 0.000 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 1.43 % 0.00 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 373 ns 374 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 371 ns 372 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 7.32 ns 7.35 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.97 % 1.96 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 249 ns 248 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 249 ns 248 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 3.04 ns 3.22 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.22 % 1.30 % 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 5561 ns 5547 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5420 ns 5391 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 413 ns 372 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 7.42 % 6.71 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3842 ns 3854 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3825 ns 3854 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 65.7 ns 52.4 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.71 % 1.36 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 828 ns 828 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 827 ns 828 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.2 ns 22.5 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.80 % 2.72 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 546 ns 547 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 548 ns 547 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 24.9 ns 18.0 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.56 % 3.30 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 384 ns 383 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 384 ns 381 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.2 ns 16.5 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.96 % 4.32 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 267 ns 265 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 267 ns 267 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.88 ns 8.89 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.58 % 3.35 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 5544 ns 5547 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5522 ns 5547 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 188 ns 202 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.39 % 3.64 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 4025 ns 3945 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 4020 ns 3945 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 69.1 ns 52.4 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.72 % 1.33 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 841 ns 841 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 844 ns 846 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 22.7 ns 29.8 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.69 % 3.54 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 548 ns 543 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 548 ns 539 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 16.8 ns 15.0 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.07 % 2.76 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 382 ns 384 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 383 ns 384 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.47 ns 10.1 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.69 % 2.62 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 270 ns 270 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 270 ns 270 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.62 ns 5.13 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.71 % 1.90 % 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 272552 ns 273338 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 272781 ns 271682 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 3139 ns 3313 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.15 % 1.21 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 193600 ns 193730 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 192019 ns 191812 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4483 ns 3836 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.32 % 1.98 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 25270 ns 25373 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24860 ns 24850 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1048 ns 1245 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.15 % 4.91 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22011 ns 21972 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22123 ns 21972 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 566 ns 427 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.57 % 1.94 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21538 ns 21484 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21613 ns 21484 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 434 ns 399 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 1.86 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21560 ns 21606 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21684 ns 21484 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 686 ns 732 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.18 % 3.39 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 285142 ns 281621 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 284910 ns 281621 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4291 ns 3826 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.50 % 1.36 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 198228 ns 198373 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 196112 ns 197240 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 8257 ns 7744 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.17 % 3.90 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 25031 ns 24833 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24760 ns 24833 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 575 ns 322 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.30 % 1.30 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22562 ns 22339 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22535 ns 22461 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 155 ns 244 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.69 % 1.09 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21974 ns 21973 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21998 ns 21973 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 341 ns 564 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.55 % 2.57 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21580 ns 21484 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21487 ns 21240 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 722 ns 1055 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.35 % 4.91 % 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 5486 ns 5508 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 5385 ns 5391 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 371 ns 296 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 6.77 % 5.37 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 3948 ns 3955 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 3908 ns 3955 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 106 ns 76.9 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 2.69 % 1.94 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 912 ns 905 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 905 ns 900 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 22.2 ns 10.5 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.43 % 1.16 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 580 ns 582 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 584 ns 586 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 16.0 ns 15.0 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.75 % 2.57 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 446 ns 445 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 446 ns 447 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.7 ns 9.02 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.61 % 2.03 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 353 ns 353 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 354 ns 353 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.83 ns 8.86 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.65 % 2.51 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 5468 ns 5430 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 5478 ns 5391 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 244 ns 267 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 4.47 % 4.91 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 4027 ns 3990 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 4026 ns 3990 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 80.7 ns 74.0 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 2.01 % 1.86 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 916 ns 916 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 911 ns 910 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 16.7 ns 20.0 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.82 % 2.19 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 608 ns 607 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 608 ns 607 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 1.40 ns 8.05 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 0.23 % 1.33 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 467 ns 460 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 458 ns 460 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 20.7 ns 8.54 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.43 % 1.86 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 342 ns 337 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 338 ns 337 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 11.3 ns 6.55 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 3.30 % 1.94 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 11655 ns 11536 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 11406 ns 11353 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 658 ns 701 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 5.65 % 6.08 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1230 ns 1228 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1229 ns 1214 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 38.5 ns 39.5 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.13 % 3.21 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2831 ns 2833 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2820 ns 2849 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 24.8 ns 33.1 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.88 % 1.17 % 4 -std::string str = std::format("test = {} times", k);_mean 2410 ns 2407 ns 4 -std::string str = std::format("test = {} times", k);_median 2391 ns 2380 ns 4 -std::string str = std::format("test = {} times", k);_stddev 91.1 ns 74.0 ns 4 -std::string str = std::format("test = {} times", k);_cv 3.78 % 3.07 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2711 ns 2713 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2735 ns 2727 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 66.6 ns 74.6 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.46 % 2.75 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1605 ns 1602 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1570 ns 1573 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 96.7 ns 90.7 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 6.03 % 5.66 % 4 -lstringa<8> str = "test = " + k + " times";_mean 880 ns 884 ns 4 -lstringa<8> str = "test = " + k + " times";_median 876 ns 879 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 10.9 ns 10.5 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.24 % 1.18 % 4 -lstringa<32> str = "test = " + k + " times";_mean 188 ns 186 ns 4 -lstringa<32> str = "test = " + k + " times";_median 187 ns 186 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.22 ns 2.22 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.18 % 1.19 % 4 -stringa str = "test = " + k + " times";_mean 237 ns 235 ns 4 -stringa str = "test = " + k + " times";_median 237 ns 235 ns 4 -stringa str = "test = " + k + " times";_stddev 3.15 ns 6.04 ns 4 -stringa str = "test = " + k + " times";_cv 1.33 % 2.57 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 11644 ns 11440 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 11639 ns 11579 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 91.0 ns 395 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 0.78 % 3.45 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1260 ns 1263 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1262 ns 1270 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 14.0 ns 26.7 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 1.11 % 2.12 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2894 ns 2877 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2908 ns 2895 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 78.3 ns 66.8 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.71 % 2.32 % 4 +std::string str = std::format("test = {} times", k);_mean 2408 ns 2393 ns 4 +std::string str = std::format("test = {} times", k);_median 2411 ns 2407 ns 4 +std::string str = std::format("test = {} times", k);_stddev 44.9 ns 65.8 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.87 % 2.75 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 2700 ns 2652 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 2702 ns 2637 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 30.9 ns 79.0 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 1.15 % 2.98 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1546 ns 1554 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1540 ns 1554 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 34.6 ns 40.5 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 2.24 % 2.61 % 4 +lstringa<8> str = "test = " + k + " times";_mean 888 ns 884 ns 4 +lstringa<8> str = "test = " + k + " times";_median 888 ns 879 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 12.5 ns 26.3 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.41 % 2.98 % 4 +lstringa<32> str = "test = " + k + " times";_mean 187 ns 186 ns 4 +lstringa<32> str = "test = " + k + " times";_median 188 ns 188 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 7.17 ns 7.25 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 3.83 % 3.89 % 4 +stringa str = "test = " + k + " times";_mean 235 ns 235 ns 4 +stringa str = "test = " + k + " times";_median 236 ns 235 ns 4 +stringa str = "test = " + k + " times";_stddev 2.48 ns 4.27 ns 4 +stringa str = "test = " + k + " times";_cv 1.05 % 1.81 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 556 ns 555 ns 4 -std::string::find + substr + std::strtol_median 560 ns 558 ns 4 -std::string::find + substr + std::strtol_stddev 17.5 ns 17.6 ns 4 -std::string::find + substr + std::strtol_cv 3.15 % 3.17 % 4 -ssa::splitter + ssa::as_int_mean 297 ns 297 ns 4 -ssa::splitter + ssa::as_int_median 294 ns 295 ns 4 -ssa::splitter + ssa::as_int_stddev 8.22 ns 7.90 ns 4 -ssa::splitter + ssa::as_int_cv 2.77 % 2.66 % 4 -ssa::splitf + functor_mean 214 ns 214 ns 4 -ssa::splitf + functor_median 215 ns 215 ns 4 -ssa::splitf + functor_stddev 1.35 ns 2.44 ns 4 -ssa::splitf + functor_cv 0.63 % 1.14 % 4 +std::string::find + substr + std::strtol_mean 547 ns 548 ns 4 +std::string::find + substr + std::strtol_median 548 ns 544 ns 4 +std::string::find + substr + std::strtol_stddev 4.03 ns 6.98 ns 4 +std::string::find + substr + std::strtol_cv 0.74 % 1.27 % 4 +ssa::splitter + ssa::as_int_mean 307 ns 304 ns 4 +ssa::splitter + ssa::as_int_median 307 ns 304 ns 4 +ssa::splitter + ssa::as_int_stddev 14.0 ns 13.1 ns 4 +ssa::splitter + ssa::as_int_cv 4.56 % 4.29 % 4 +ssa::splitf + functor_mean 218 ns 217 ns 4 +ssa::splitf + functor_median 218 ns 215 ns 4 +ssa::splitf + functor_stddev 5.02 ns 4.34 ns 4 +ssa::splitf + functor_cv 2.30 % 2.01 % 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 1277 ns 1271 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1270 ns 1271 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 67.9 ns 65.3 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 5.32 % 5.14 % 4 -replace symbols with std::string find_first_of + replace_mean 2209 ns 2210 ns 4 -replace symbols with std::string find_first_of + replace_median 2200 ns 2199 ns 4 -replace symbols with std::string find_first_of + replace_stddev 71.7 ns 77.4 ns 4 -replace symbols with std::string find_first_of + replace_cv 3.24 % 3.50 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2536 ns 2550 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2519 ns 2550 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 52.7 ns 48.4 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 2.08 % 1.90 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1563 ns 1563 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1567 ns 1573 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 26.6 ns 19.2 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 1.70 % 1.23 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1398 ns 1381 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1372 ns 1367 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 62.6 ns 27.9 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 4.47 % 2.02 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1306 ns 1311 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1300 ns 1311 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 20.3 ns 22.8 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.55 % 1.74 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1348 ns 1350 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1286 ns 1287 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 129 ns 126 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 9.55 % 9.30 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 1184 ns 1184 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 1179 ns 1172 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 19.8 ns 24.4 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 1.67 % 2.06 % 4 +replace symbols with std::string find_first_of + replace_mean 2271 ns 2250 ns 4 +replace symbols with std::string find_first_of + replace_median 2284 ns 2276 ns 4 +replace symbols with std::string find_first_of + replace_stddev 125 ns 113 ns 4 +replace symbols with std::string find_first_of + replace_cv 5.50 % 5.02 % 4 +replace symbols with std::string_view find_first_of + copy_mean 2625 ns 2594 ns 4 +replace symbols with std::string_view find_first_of + copy_median 2606 ns 2579 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 41.8 ns 101 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 1.59 % 3.90 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1627 ns 1621 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1636 ns 1631 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 33.4 ns 36.7 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 2.05 % 2.27 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1457 ns 1439 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1456 ns 1439 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 20.4 ns 22.2 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 1.40 % 1.54 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1301 ns 1295 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1301 ns 1303 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 32.3 ns 53.6 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 2.48 % 4.14 % 4 +replace const symbols with string expressions and memorization of all search results_mean 1292 ns 1287 ns 4 +replace const symbols with string expressions and memorization of all search results_median 1291 ns 1287 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 18.9 ns 25.6 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 1.46 % 1.99 % 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 352 ns 352 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 346 ns 344 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 17.5 ns 19.8 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.98 % 5.64 % 4 -Short replace symbols with std::string find_first_of + replace_mean 428 ns 429 ns 4 -Short replace symbols with std::string find_first_of + replace_median 421 ns 424 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 16.8 ns 15.6 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 3.93 % 3.65 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 352 ns 353 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 353 ns 353 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 9.76 ns 9.26 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 2.77 % 2.62 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 303 ns 303 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 303 ns 303 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.52 ns 9.01 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 2.15 % 2.97 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 402 ns 404 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 400 ns 404 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 11.1 ns 11.7 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.77 % 2.90 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 270 ns 271 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 272 ns 273 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 3.72 ns 2.96 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.38 % 1.09 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 345 ns 345 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 345 ns 345 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 9.75 ns 6.55 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 2.83 % 1.90 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 356 ns 349 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 357 ns 349 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 4.35 ns 4.63 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.22 % 1.33 % 4 +Short replace symbols with std::string find_first_of + replace_mean 448 ns 448 ns 4 +Short replace symbols with std::string find_first_of + replace_median 450 ns 450 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 23.4 ns 20.9 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 5.24 % 4.66 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 366 ns 366 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 363 ns 362 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 9.78 ns 12.3 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 2.67 % 3.37 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 320 ns 318 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 320 ns 318 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 9.65 ns 4.43 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 3.02 % 1.39 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 416 ns 415 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 413 ns 415 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 11.2 ns 12.6 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 2.69 % 3.04 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 260 ns 255 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 260 ns 258 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 3.42 ns 12.8 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 1.32 % 5.02 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 377 ns 375 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 377 ns 377 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 6.21 ns 4.01 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 1.65 % 1.07 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 259 ns 261 ns 4 -replace bb to ---- in std::string|64_median 255 ns 254 ns 4 -replace bb to ---- in std::string|64_stddev 22.0 ns 20.8 ns 4 -replace bb to ---- in std::string|64_cv 8.48 % 7.99 % 4 -replace bb to ---- in std::string|256_mean 848 ns 846 ns 4 -replace bb to ---- in std::string|256_median 848 ns 854 ns 4 -replace bb to ---- in std::string|256_stddev 13.4 ns 17.4 ns 4 -replace bb to ---- in std::string|256_cv 1.58 % 2.06 % 4 -replace bb to ---- in std::string|512_mean 1584 ns 1569 ns 4 -replace bb to ---- in std::string|512_median 1560 ns 1552 ns 4 -replace bb to ---- in std::string|512_stddev 72.4 ns 75.3 ns 4 -replace bb to ---- in std::string|512_cv 4.57 % 4.80 % 4 -replace bb to ---- in std::string|1024_mean 3220 ns 3226 ns 4 -replace bb to ---- in std::string|1024_median 3190 ns 3209 ns 4 -replace bb to ---- in std::string|1024_stddev 89.3 ns 87.8 ns 4 -replace bb to ---- in std::string|1024_cv 2.77 % 2.72 % 4 -replace bb to ---- in std::string|2048_mean 8086 ns 8065 ns 4 -replace bb to ---- in std::string|2048_median 8076 ns 8022 ns 4 -replace bb to ---- in std::string|2048_stddev 42.6 ns 87.2 ns 4 -replace bb to ---- in std::string|2048_cv 0.53 % 1.08 % 4 -replace bb to ---- in lstringa<8>|64_mean 244 ns 245 ns 4 -replace bb to ---- in lstringa<8>|64_median 239 ns 242 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 15.8 ns 16.6 ns 4 -replace bb to ---- in lstringa<8>|64_cv 6.47 % 6.77 % 4 -replace bb to ---- in lstringa<8>|256_mean 643 ns 642 ns 4 -replace bb to ---- in lstringa<8>|256_median 640 ns 635 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 20.3 ns 19.7 ns 4 -replace bb to ---- in lstringa<8>|256_cv 3.16 % 3.07 % 4 -replace bb to ---- in lstringa<8>|512_mean 1112 ns 1111 ns 4 -replace bb to ---- in lstringa<8>|512_median 1117 ns 1111 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 15.0 ns 14.1 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.35 % 1.27 % 4 -replace bb to ---- in lstringa<8>|1024_mean 2056 ns 2063 ns 4 -replace bb to ---- in lstringa<8>|1024_median 2048 ns 2063 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 57.2 ns 58.5 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 2.78 % 2.84 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3901 ns 3908 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3942 ns 3955 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 99.7 ns 94.2 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 2.55 % 2.41 % 4 -replace bb to ---- by init stringa|64_mean 206 ns 206 ns 4 -replace bb to ---- by init stringa|64_median 205 ns 208 ns 4 -replace bb to ---- by init stringa|64_stddev 2.96 ns 4.67 ns 4 -replace bb to ---- by init stringa|64_cv 1.44 % 2.27 % 4 -replace bb to ---- by init stringa|256_mean 503 ns 504 ns 4 -replace bb to ---- by init stringa|256_median 498 ns 500 ns 4 -replace bb to ---- by init stringa|256_stddev 21.8 ns 23.4 ns 4 -replace bb to ---- by init stringa|256_cv 4.34 % 4.65 % 4 -replace bb to ---- by init stringa|512_mean 1130 ns 1130 ns 4 -replace bb to ---- by init stringa|512_median 1065 ns 1074 ns 4 -replace bb to ---- by init stringa|512_stddev 147 ns 141 ns 4 -replace bb to ---- by init stringa|512_cv 12.98 % 12.51 % 4 -replace bb to ---- by init stringa|1024_mean 2172 ns 2173 ns 4 -replace bb to ---- by init stringa|1024_median 2170 ns 2173 ns 4 -replace bb to ---- by init stringa|1024_stddev 25.4 ns 28.2 ns 4 -replace bb to ---- by init stringa|1024_cv 1.17 % 1.30 % 4 -replace bb to ---- by init stringa|2048_mean 4441 ns 4443 ns 4 -replace bb to ---- by init stringa|2048_median 4442 ns 4443 ns 4 -replace bb to ---- by init stringa|2048_stddev 28.9 ns 56.4 ns 4 -replace bb to ---- by init stringa|2048_cv 0.65 % 1.27 % 4 +replace bb to ---- in std::string|64_mean 253 ns 251 ns 4 +replace bb to ---- in std::string|64_median 254 ns 252 ns 4 +replace bb to ---- in std::string|64_stddev 8.98 ns 10.1 ns 4 +replace bb to ---- in std::string|64_cv 3.56 % 4.04 % 4 +replace bb to ---- in std::string|256_mean 807 ns 802 ns 4 +replace bb to ---- in std::string|256_median 805 ns 793 ns 4 +replace bb to ---- in std::string|256_stddev 19.7 ns 24.7 ns 4 +replace bb to ---- in std::string|256_cv 2.44 % 3.07 % 4 +replace bb to ---- in std::string|512_mean 1560 ns 1561 ns 4 +replace bb to ---- in std::string|512_median 1563 ns 1569 ns 4 +replace bb to ---- in std::string|512_stddev 33.1 ns 43.9 ns 4 +replace bb to ---- in std::string|512_cv 2.12 % 2.81 % 4 +replace bb to ---- in std::string|1024_mean 3234 ns 3226 ns 4 +replace bb to ---- in std::string|1024_median 3253 ns 3244 ns 4 +replace bb to ---- in std::string|1024_stddev 67.7 ns 66.8 ns 4 +replace bb to ---- in std::string|1024_cv 2.09 % 2.07 % 4 +replace bb to ---- in std::string|2048_mean 8346 ns 8266 ns 4 +replace bb to ---- in std::string|2048_median 8297 ns 8266 ns 4 +replace bb to ---- in std::string|2048_stddev 213 ns 270 ns 4 +replace bb to ---- in std::string|2048_cv 2.55 % 3.27 % 4 +replace bb to ---- in lstringa<8>|64_mean 235 ns 234 ns 4 +replace bb to ---- in lstringa<8>|64_median 232 ns 230 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 9.27 ns 7.85 ns 4 +replace bb to ---- in lstringa<8>|64_cv 3.95 % 3.35 % 4 +replace bb to ---- in lstringa<8>|256_mean 673 ns 670 ns 4 +replace bb to ---- in lstringa<8>|256_median 676 ns 670 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 7.54 ns 11.4 ns 4 +replace bb to ---- in lstringa<8>|256_cv 1.12 % 1.70 % 4 +replace bb to ---- in lstringa<8>|512_mean 1150 ns 1151 ns 4 +replace bb to ---- in lstringa<8>|512_median 1161 ns 1161 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 27.5 ns 29.6 ns 4 +replace bb to ---- in lstringa<8>|512_cv 2.39 % 2.57 % 4 +replace bb to ---- in lstringa<8>|1024_mean 2082 ns 2075 ns 4 +replace bb to ---- in lstringa<8>|1024_median 2077 ns 2075 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 40.8 ns 63.0 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.96 % 3.04 % 4 +replace bb to ---- in lstringa<8>|2048_mean 4062 ns 4035 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3996 ns 3990 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 149 ns 90.7 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 3.68 % 2.25 % 4 +replace bb to ---- by init stringa|64_mean 209 ns 205 ns 4 +replace bb to ---- by init stringa|64_median 209 ns 206 ns 4 +replace bb to ---- by init stringa|64_stddev 4.98 ns 4.34 ns 4 +replace bb to ---- by init stringa|64_cv 2.39 % 2.12 % 4 +replace bb to ---- by init stringa|256_mean 475 ns 476 ns 4 +replace bb to ---- by init stringa|256_median 475 ns 476 ns 4 +replace bb to ---- by init stringa|256_stddev 10.8 ns 8.83 ns 4 +replace bb to ---- by init stringa|256_cv 2.27 % 1.86 % 4 +replace bb to ---- by init stringa|512_mean 1069 ns 1067 ns 4 +replace bb to ---- by init stringa|512_median 1067 ns 1067 ns 4 +replace bb to ---- by init stringa|512_stddev 13.5 ns 17.1 ns 4 +replace bb to ---- by init stringa|512_cv 1.26 % 1.60 % 4 +replace bb to ---- by init stringa|1024_mean 2250 ns 2233 ns 4 +replace bb to ---- by init stringa|1024_median 2244 ns 2222 ns 4 +replace bb to ---- by init stringa|1024_stddev 27.7 ns 22.7 ns 4 +replace bb to ---- by init stringa|1024_cv 1.23 % 1.02 % 4 +replace bb to ---- by init stringa|2048_mean 4602 ns 4565 ns 4 +replace bb to ---- by init stringa|2048_median 4598 ns 4590 ns 4 +replace bb to ---- by init stringa|2048_stddev 31.1 ns 48.8 ns 4 +replace bb to ---- by init stringa|2048_cv 0.68 % 1.07 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 206 ns 206 ns 4 -replace bb to -- in std::string|64_median 206 ns 206 ns 4 -replace bb to -- in std::string|64_stddev 5.42 ns 5.85 ns 4 -replace bb to -- in std::string|64_cv 2.63 % 2.84 % 4 -replace bb to -- in std::string|256_mean 542 ns 541 ns 4 -replace bb to -- in std::string|256_median 528 ns 530 ns 4 -replace bb to -- in std::string|256_stddev 31.9 ns 30.9 ns 4 -replace bb to -- in std::string|256_cv 5.88 % 5.72 % 4 -replace bb to -- in std::string|512_mean 968 ns 970 ns 4 -replace bb to -- in std::string|512_median 964 ns 964 ns 4 -replace bb to -- in std::string|512_stddev 19.7 ns 23.4 ns 4 -replace bb to -- in std::string|512_cv 2.04 % 2.41 % 4 -replace bb to -- in std::string|1024_mean 1813 ns 1810 ns 4 -replace bb to -- in std::string|1024_median 1810 ns 1800 ns 4 -replace bb to -- in std::string|1024_stddev 15.0 ns 20.9 ns 4 -replace bb to -- in std::string|1024_cv 0.83 % 1.16 % 4 -replace bb to -- in std::string|2048_mean 3634 ns 3625 ns 4 -replace bb to -- in std::string|2048_median 3591 ns 3568 ns 4 -replace bb to -- in std::string|2048_stddev 136 ns 145 ns 4 -replace bb to -- in std::string|2048_cv 3.75 % 4.01 % 4 +replace bb to -- in std::string|64_mean 207 ns 207 ns 4 +replace bb to -- in std::string|64_median 209 ns 209 ns 4 +replace bb to -- in std::string|64_stddev 5.20 ns 5.71 ns 4 +replace bb to -- in std::string|64_cv 2.51 % 2.75 % 4 +replace bb to -- in std::string|256_mean 543 ns 543 ns 4 +replace bb to -- in std::string|256_median 544 ns 547 ns 4 +replace bb to -- in std::string|256_stddev 10.9 ns 7.81 ns 4 +replace bb to -- in std::string|256_cv 2.01 % 1.44 % 4 +replace bb to -- in std::string|512_mean 976 ns 977 ns 4 +replace bb to -- in std::string|512_median 974 ns 977 ns 4 +replace bb to -- in std::string|512_stddev 11.7 ns 19.9 ns 4 +replace bb to -- in std::string|512_cv 1.19 % 2.04 % 4 +replace bb to -- in std::string|1024_mean 1851 ns 1852 ns 4 +replace bb to -- in std::string|1024_median 1833 ns 1842 ns 4 +replace bb to -- in std::string|1024_stddev 50.3 ns 52.7 ns 4 +replace bb to -- in std::string|1024_cv 2.72 % 2.84 % 4 +replace bb to -- in std::string|2048_mean 3605 ns 3590 ns 4 +replace bb to -- in std::string|2048_median 3607 ns 3610 ns 4 +replace bb to -- in std::string|2048_stddev 43.6 ns 101 ns 4 +replace bb to -- in std::string|2048_cv 1.21 % 2.81 % 4 replace bb to -- in lstringa<8>|64_mean 196 ns 196 ns 4 -replace bb to -- in lstringa<8>|64_median 195 ns 195 ns 4 -replace bb to -- in lstringa<8>|64_stddev 9.94 ns 11.9 ns 4 -replace bb to -- in lstringa<8>|64_cv 5.07 % 6.08 % 4 -replace bb to -- in lstringa<8>|256_mean 475 ns 474 ns 4 -replace bb to -- in lstringa<8>|256_median 478 ns 474 ns 4 -replace bb to -- in lstringa<8>|256_stddev 20.3 ns 25.5 ns 4 -replace bb to -- in lstringa<8>|256_cv 4.27 % 5.37 % 4 -replace bb to -- in lstringa<8>|512_mean 802 ns 802 ns 4 -replace bb to -- in lstringa<8>|512_median 804 ns 802 ns 4 -replace bb to -- in lstringa<8>|512_stddev 11.6 ns 14.2 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.45 % 1.77 % 4 -replace bb to -- in lstringa<8>|1024_mean 1498 ns 1499 ns 4 -replace bb to -- in lstringa<8>|1024_median 1500 ns 1507 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 21.6 ns 15.7 ns 4 -replace bb to -- in lstringa<8>|1024_cv 1.44 % 1.05 % 4 -replace bb to -- in lstringa<8>|2048_mean 3056 ns 3015 ns 4 -replace bb to -- in lstringa<8>|2048_median 2949 ns 2883 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 254 ns 289 ns 4 -replace bb to -- in lstringa<8>|2048_cv 8.31 % 9.58 % 4 -replace bb to -- by init stringa|64_mean 175 ns 176 ns 4 -replace bb to -- by init stringa|64_median 175 ns 175 ns 4 -replace bb to -- by init stringa|64_stddev 2.66 ns 3.67 ns 4 -replace bb to -- by init stringa|64_cv 1.52 % 2.09 % 4 -replace bb to -- by init stringa|256_mean 391 ns 391 ns 4 -replace bb to -- by init stringa|256_median 391 ns 393 ns 4 -replace bb to -- by init stringa|256_stddev 5.49 ns 4.19 ns 4 -replace bb to -- by init stringa|256_cv 1.41 % 1.07 % 4 -replace bb to -- by init stringa|512_mean 648 ns 649 ns 4 -replace bb to -- by init stringa|512_median 656 ns 656 ns 4 -replace bb to -- by init stringa|512_stddev 19.2 ns 14.0 ns 4 -replace bb to -- by init stringa|512_cv 2.97 % 2.15 % 4 -replace bb to -- by init stringa|1024_mean 1152 ns 1151 ns 4 -replace bb to -- by init stringa|1024_median 1158 ns 1158 ns 4 -replace bb to -- by init stringa|1024_stddev 27.7 ns 47.7 ns 4 -replace bb to -- by init stringa|1024_cv 2.40 % 4.14 % 4 -replace bb to -- by init stringa|2048_mean 2207 ns 2210 ns 4 -replace bb to -- by init stringa|2048_median 2210 ns 2223 ns 4 -replace bb to -- by init stringa|2048_stddev 36.5 ns 50.1 ns 4 -replace bb to -- by init stringa|2048_cv 1.65 % 2.27 % 4 +replace bb to -- in lstringa<8>|64_median 196 ns 195 ns 4 +replace bb to -- in lstringa<8>|64_stddev 4.19 ns 4.01 ns 4 +replace bb to -- in lstringa<8>|64_cv 2.14 % 2.05 % 4 +replace bb to -- in lstringa<8>|256_mean 462 ns 458 ns 4 +replace bb to -- in lstringa<8>|256_median 462 ns 455 ns 4 +replace bb to -- in lstringa<8>|256_stddev 3.09 ns 5.06 ns 4 +replace bb to -- in lstringa<8>|256_cv 0.67 % 1.10 % 4 +replace bb to -- in lstringa<8>|512_mean 804 ns 802 ns 4 +replace bb to -- in lstringa<8>|512_median 808 ns 802 ns 4 +replace bb to -- in lstringa<8>|512_stddev 15.0 ns 14.2 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.86 % 1.77 % 4 +replace bb to -- in lstringa<8>|1024_mean 1499 ns 1477 ns 4 +replace bb to -- in lstringa<8>|1024_median 1504 ns 1477 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 20.7 ns 49.5 ns 4 +replace bb to -- in lstringa<8>|1024_cv 1.38 % 3.35 % 4 +replace bb to -- in lstringa<8>|2048_mean 2950 ns 2935 ns 4 +replace bb to -- in lstringa<8>|2048_median 2914 ns 2888 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 74.3 ns 94.2 ns 4 +replace bb to -- in lstringa<8>|2048_cv 2.52 % 3.21 % 4 +replace bb to -- by init stringa|64_mean 180 ns 179 ns 4 +replace bb to -- by init stringa|64_median 181 ns 180 ns 4 +replace bb to -- by init stringa|64_stddev 6.28 ns 5.27 ns 4 +replace bb to -- by init stringa|64_cv 3.48 % 2.94 % 4 +replace bb to -- by init stringa|256_mean 403 ns 396 ns 4 +replace bb to -- by init stringa|256_median 404 ns 398 ns 4 +replace bb to -- by init stringa|256_stddev 6.04 ns 14.3 ns 4 +replace bb to -- by init stringa|256_cv 1.50 % 3.61 % 4 +replace bb to -- by init stringa|512_mean 669 ns 656 ns 4 +replace bb to -- by init stringa|512_median 654 ns 649 ns 4 +replace bb to -- by init stringa|512_stddev 41.3 ns 19.7 ns 4 +replace bb to -- by init stringa|512_cv 6.18 % 3.01 % 4 +replace bb to -- by init stringa|1024_mean 1178 ns 1179 ns 4 +replace bb to -- by init stringa|1024_median 1179 ns 1172 ns 4 +replace bb to -- by init stringa|1024_stddev 22.5 ns 14.0 ns 4 +replace bb to -- by init stringa|1024_cv 1.91 % 1.18 % 4 +replace bb to -- by init stringa|2048_mean 2321 ns 2319 ns 4 +replace bb to -- by init stringa|2048_median 2335 ns 2319 ns 4 +replace bb to -- by init stringa|2048_stddev 60.1 ns 63.0 ns 4 +replace bb to -- by init stringa|2048_cv 2.59 % 2.72 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 4313136 ns 4321289 ns 4 -hashStrMapA emplace & find stringa;_median 4295278 ns 4296875 ns 4 -hashStrMapA emplace & find stringa;_stddev 128979 ns 146484 ns 4 -hashStrMapA emplace & find stringa;_cv 2.99 % 3.39 % 4 -std::unordered_map emplace & find std::string;_mean 5445614 ns 5440848 ns 4 -std::unordered_map emplace & find std::string;_median 5445550 ns 5440848 ns 4 -std::unordered_map emplace & find std::string;_stddev 221795 ns 254707 ns 4 -std::unordered_map emplace & find std::string;_cv 4.07 % 4.68 % 4 -hashStrMapA emplace & find ssa;_mean 3935073 ns 3928073 ns 4 -hashStrMapA emplace & find ssa;_median 3925982 ns 3928073 ns 4 -hashStrMapA emplace & find ssa;_stddev 71159 ns 71272 ns 4 -hashStrMapA emplace & find ssa;_cv 1.81 % 1.81 % 4 -std::unordered_map emplace & find std::string_view;_mean 6449283 ns 6452288 ns 4 -std::unordered_map emplace & find std::string_view;_median 6312495 ns 6277902 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 432828 ns 460943 ns 4 -std::unordered_map emplace & find std::string_view;_cv 6.71 % 7.14 % 4 +hashStrMapA emplace & find stringa;_mean 4457224 ns 4418945 ns 4 +hashStrMapA emplace & find stringa;_median 4445580 ns 4394531 ns 4 +hashStrMapA emplace & find stringa;_stddev 110684 ns 122881 ns 4 +hashStrMapA emplace & find stringa;_cv 2.48 % 2.78 % 4 +std::unordered_map emplace & find std::string;_mean 5651637 ns 5650112 ns 4 +std::unordered_map emplace & find std::string;_median 5574913 ns 5580357 ns 4 +std::unordered_map emplace & find std::string;_stddev 178845 ns 139509 ns 4 +std::unordered_map emplace & find std::string;_cv 3.16 % 2.47 % 4 +hashStrMapA emplace & find ssa;_mean 4092228 ns 4047440 ns 4 +hashStrMapA emplace & find ssa;_median 4083984 ns 4047440 ns 4 +hashStrMapA emplace & find ssa;_stddev 43580 ns 76854 ns 4 +hashStrMapA emplace & find ssa;_cv 1.06 % 1.90 % 4 +std::unordered_map emplace & find std::string_view;_mean 6487851 ns 6487165 ns 4 +std::unordered_map emplace & find std::string_view;_median 6425542 ns 6487165 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 291867 ns 290411 ns 4 +std::unordered_map emplace & find std::string_view;_cv 4.50 % 4.48 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1734 ns 1737 ns 4 -Build func full name std::string;_median 1735 ns 1716 ns 4 -Build func full name std::string;_stddev 116 ns 111 ns 4 -Build func full name std::string;_cv 6.71 % 6.38 % 4 -Build func full name std::string 1;_mean 1701 ns 1707 ns 4 -Build func full name std::string 1;_median 1705 ns 1707 ns 4 -Build func full name std::string 1;_stddev 53.2 ns 49.5 ns 4 -Build func full name std::string 1;_cv 3.12 % 2.90 % 4 -Build func full name std::stream;_mean 9780 ns 9783 ns 4 -Build func full name std::stream;_median 9731 ns 9731 ns 4 -Build func full name std::stream;_stddev 178 ns 200 ns 4 -Build func full name std::stream;_cv 1.82 % 2.05 % 4 -Build func full name stringa;_mean 868 ns 872 ns 4 -Build func full name stringa;_median 863 ns 863 ns 4 -Build func full name stringa;_stddev 16.7 ns 24.7 ns 4 -Build func full name stringa;_cv 1.93 % 2.83 % 4 -Build func full name stringa 1;_mean 1010 ns 1004 ns 4 -Build func full name stringa 1;_median 1008 ns 1004 ns 4 -Build func full name stringa 1;_stddev 25.1 ns 17.1 ns 4 -Build func full name stringa 1;_cv 2.48 % 1.70 % 4 +Build func full name std::string;_mean 1728 ns 1718 ns 4 +Build func full name std::string;_median 1716 ns 1709 ns 4 +Build func full name std::string;_stddev 110 ns 91.7 ns 4 +Build func full name std::string;_cv 6.35 % 5.34 % 4 +Build func full name std::string 1;_mean 1741 ns 1735 ns 4 +Build func full name std::string 1;_median 1743 ns 1726 ns 4 +Build func full name std::string 1;_stddev 31.5 ns 33.4 ns 4 +Build func full name std::string 1;_cv 1.81 % 1.92 % 4 +Build func full name std::stream;_mean 10062 ns 9949 ns 4 +Build func full name std::stream;_median 10066 ns 9766 ns 4 +Build func full name std::stream;_stddev 214 ns 366 ns 4 +Build func full name std::stream;_cv 2.13 % 3.68 % 4 +Build func full name stringa;_mean 909 ns 905 ns 4 +Build func full name stringa;_median 906 ns 900 ns 4 +Build func full name stringa;_stddev 15.9 ns 26.3 ns 4 +Build func full name stringa;_cv 1.75 % 2.91 % 4 +Build func full name stringa 1;_mean 1039 ns 1031 ns 4 +Build func full name stringa 1;_median 1049 ns 1038 ns 4 +Build func full name stringa 1;_stddev 22.2 ns 23.4 ns 4 +Build func full name stringa 1;_cv 2.14 % 2.27 % 4 diff --git a/bench/results/004-Xeon E5-2682 v4, WASM Firefox, Clang-21.txt b/bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt similarity index 50% rename from bench/results/004-Xeon E5-2682 v4, WASM Firefox, Clang-21.txt rename to bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt index 6c1a5fb..49cd3e7 100644 --- a/bench/results/004-Xeon E5-2682 v4, WASM Firefox, Clang-21.txt +++ b/bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt @@ -1,923 +1,930 @@ -Benchmarks of simstr, version 1.6.4 +Benchmarks of simstr, version 1.6.5 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 +Chrome/143.0.0.0 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 +Concat std::string and number by std to std::string_mean 1217 ns 1217 ns 4 +Concat std::string and number by std to std::string_median 1233 ns 1233 ns 4 +Concat std::string and number by std to std::string_stddev 44.4 ns 44.4 ns 4 +Concat std::string and number by std to std::string_cv 3.65 % 3.65 % 4 +Concat std::string and number by StrExpr to std::string_mean 576 ns 576 ns 4 +Concat std::string and number by StrExpr to std::string_median 576 ns 576 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 14.3 ns 14.3 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.49 % 2.49 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 284 ns 284 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 279 ns 279 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 15.1 ns 15.1 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 5.32 % 5.32 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 257 ns 257 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 249 ns 249 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 22.3 ns 22.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 8.67 % 8.67 % 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 +Concat std::string and format hex number and literal to std::string_mean 2352 ns 2352 ns 4 +Concat std::string and format hex number and literal to std::string_median 2360 ns 2360 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 47.2 ns 47.2 ns 4 +Concat std::string and format hex number and literal to std::string_cv 2.01 % 2.01 % 4 +std::format std::string and hex number by literal to std::string_mean 2837 ns 2837 ns 4 +std::format std::string and hex number by literal to std::string_median 2866 ns 2866 ns 4 +std::format std::string and hex number by literal to std::string_stddev 75.6 ns 75.6 ns 4 +std::format std::string and hex number by literal to std::string_cv 2.66 % 2.66 % 4 +Concat std::string and std::to_chars and string to std::string_mean 730 ns 730 ns 4 +Concat std::string and std::to_chars and string to std::string_median 738 ns 738 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 43.2 ns 43.2 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 5.92 % 5.92 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 501 ns 501 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 495 ns 495 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 15.1 ns 15.1 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 3.01 % 3.01 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 214 ns 214 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 216 ns 216 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 12.5 ns 12.5 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 5.84 % 5.84 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 211 ns 211 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 208 ns 208 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 16.5 ns 16.5 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 7.79 % 7.79 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 347 ns 347 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 350 ns 350 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 19.5 ns 19.5 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.63 % 5.63 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 912 ns 912 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 908 ns 908 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 22.5 ns 22.5 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.47 % 2.47 % 4 +---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 436 ns 436 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 437 ns 437 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.76 ns 4.76 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.09 % 1.09 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 672 ns 672 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 670 ns 670 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 43.9 ns 43.9 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 6.53 % 6.53 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1446 ns 1446 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1446 ns 1446 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 69.4 ns 69.4 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 4.80 % 4.80 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2218 ns 2218 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2215 ns 2215 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 41.4 ns 41.4 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.87 % 1.87 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 2848 ns 2849 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 2843 ns 2843 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 19.6 ns 19.6 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.69 % 0.69 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 3033 ns 3033 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 3015 ns 3015 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 62.9 ns 62.9 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.07 % 2.07 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 3038 ns 3038 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 3042 ns 3042 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 127 ns 127 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 4.16 % 4.16 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8529 ns 8529 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8532 ns 8532 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 113 ns 113 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.33 % 1.33 % 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 +Concat std::string by std to std::string_mean 124 ns 124 ns 4 +Concat std::string by std to std::string_median 122 ns 122 ns 4 +Concat std::string by std to std::string_stddev 5.77 ns 5.77 ns 4 +Concat std::string by std to std::string_cv 4.64 % 4.64 % 4 +Concat std::string by StrExpr to std::string_mean 133 ns 133 ns 4 +Concat std::string by StrExpr to std::string_median 133 ns 133 ns 4 +Concat std::string by StrExpr to std::string_stddev 4.58 ns 4.58 ns 4 +Concat std::string by StrExpr to std::string_cv 3.45 % 3.45 % 4 +Concat stringa by StrExpr to stringa_mean 103 ns 103 ns 4 +Concat stringa by StrExpr to stringa_median 104 ns 104 ns 4 +Concat stringa by StrExpr to stringa_stddev 3.70 ns 3.71 ns 4 +Concat stringa by StrExpr to stringa_cv 3.59 % 3.59 % 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 +Find concat three std::string_mean 214 ns 214 ns 4 +Find concat three std::string_median 214 ns 214 ns 4 +Find concat three std::string_stddev 2.85 ns 2.85 ns 4 +Find concat three std::string_cv 1.33 % 1.33 % 4 +Find concat three strexpr_mean 108 ns 108 ns 4 +Find concat three strexpr_median 109 ns 109 ns 4 +Find concat three strexpr_stddev 1.73 ns 1.73 ns 4 +Find concat three strexpr_cv 1.61 % 1.61 % 4 +Find concat three simstr_mean 63.2 ns 63.2 ns 4 +Find concat three simstr_median 61.5 ns 61.5 ns 4 +Find concat three simstr_stddev 4.01 ns 4.01 ns 4 +Find concat three simstr_cv 6.34 % 6.34 % 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 +BuildTypeNameStr 0/0_mean 21.9 ns 21.9 ns 4 +BuildTypeNameStr 0/0_median 22.1 ns 22.1 ns 4 +BuildTypeNameStr 0/0_stddev 0.375 ns 0.375 ns 4 +BuildTypeNameStr 0/0_cv 1.71 % 1.71 % 4 +BuildTypeNameExp 0/0_mean 27.7 ns 27.7 ns 4 +BuildTypeNameExp 0/0_median 27.5 ns 27.5 ns 4 +BuildTypeNameExp 0/0_stddev 0.803 ns 0.803 ns 4 +BuildTypeNameExp 0/0_cv 2.90 % 2.90 % 4 +BuildTypeNameSim 0/0_mean 20.4 ns 20.4 ns 4 +BuildTypeNameSim 0/0_median 20.2 ns 20.2 ns 4 +BuildTypeNameSim 0/0_stddev 0.685 ns 0.685 ns 4 +BuildTypeNameSim 0/0_cv 3.36 % 3.36 % 4 +BuildTypeNameStr 10/10_mean 368 ns 368 ns 4 +BuildTypeNameStr 10/10_median 375 ns 375 ns 4 +BuildTypeNameStr 10/10_stddev 15.1 ns 15.1 ns 4 +BuildTypeNameStr 10/10_cv 4.10 % 4.10 % 4 +BuildTypeNameExp 10/10_mean 124 ns 124 ns 4 +BuildTypeNameExp 10/10_median 123 ns 123 ns 4 +BuildTypeNameExp 10/10_stddev 7.15 ns 7.15 ns 4 +BuildTypeNameExp 10/10_cv 5.78 % 5.78 % 4 +BuildTypeNameSim 10/10_mean 77.3 ns 77.3 ns 4 +BuildTypeNameSim 10/10_median 77.0 ns 77.0 ns 4 +BuildTypeNameSim 10/10_stddev 2.64 ns 2.64 ns 4 +BuildTypeNameSim 10/10_cv 3.42 % 3.42 % 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 +Concat with replace str_mean 514 ns 514 ns 4 +Concat with replace str_median 517 ns 517 ns 4 +Concat with replace str_stddev 6.29 ns 6.29 ns 4 +Concat with replace str_cv 1.22 % 1.22 % 4 +Concat with replace exp_mean 243 ns 243 ns 4 +Concat with replace exp_median 244 ns 244 ns 4 +Concat with replace exp_stddev 2.40 ns 2.40 ns 4 +Concat with replace exp_cv 0.99 % 0.99 % 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 +std::string e;_mean 2.16 ns 2.16 ns 4 +std::string e;_median 2.16 ns 2.16 ns 4 +std::string e;_stddev 0.021 ns 0.021 ns 4 +std::string e;_cv 0.97 % 0.97 % 4 +std::string_view e;_mean 0.743 ns 0.743 ns 4 +std::string_view e;_median 0.748 ns 0.748 ns 4 +std::string_view e;_stddev 0.011 ns 0.011 ns 4 +std::string_view e;_cv 1.46 % 1.46 % 4 +ssa e;_mean 0.367 ns 0.367 ns 4 +ssa e;_median 0.369 ns 0.369 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 +ssa e;_cv 2.44 % 2.44 % 4 +stringa e;_mean 2.18 ns 2.18 ns 4 +stringa e;_median 2.18 ns 2.18 ns 4 +stringa e;_stddev 0.013 ns 0.013 ns 4 +stringa e;_cv 0.61 % 0.60 % 4 +lstringa<20> e;_mean 2.21 ns 2.21 ns 4 +lstringa<20> e;_median 2.21 ns 2.21 ns 4 +lstringa<20> e;_stddev 0.015 ns 0.015 ns 4 +lstringa<20> e;_cv 0.69 % 0.69 % 4 +lstringa<40> e;_mean 2.44 ns 2.44 ns 4 +lstringa<40> e;_median 2.44 ns 2.44 ns 4 +lstringa<40> e;_stddev 0.012 ns 0.012 ns 4 +lstringa<40> e;_cv 0.49 % 0.49 % 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 +std::string e = "Test text";_mean 2.45 ns 2.45 ns 4 +std::string e = "Test text";_median 2.45 ns 2.45 ns 4 +std::string e = "Test text";_stddev 0.034 ns 0.034 ns 4 +std::string e = "Test text";_cv 1.38 % 1.38 % 4 +std::string_view e = "Test text";_mean 1.10 ns 1.10 ns 4 +std::string_view e = "Test text";_median 1.10 ns 1.10 ns 4 +std::string_view e = "Test text";_stddev 0.017 ns 0.017 ns 4 +std::string_view e = "Test text";_cv 1.51 % 1.51 % 4 +ssa e = "Test text";_mean 0.732 ns 0.732 ns 4 +ssa e = "Test text";_median 0.728 ns 0.728 ns 4 +ssa e = "Test text";_stddev 0.022 ns 0.022 ns 4 +ssa e = "Test text";_cv 2.96 % 2.96 % 4 +stringa e = "Test text";_mean 2.21 ns 2.21 ns 4 +stringa e = "Test text";_median 2.21 ns 2.21 ns 4 +stringa e = "Test text";_stddev 0.022 ns 0.022 ns 4 +stringa e = "Test text";_cv 0.97 % 0.97 % 4 +lstringa<20> e = "Test text";_mean 2.77 ns 2.77 ns 4 +lstringa<20> e = "Test text";_median 2.77 ns 2.77 ns 4 +lstringa<20> e = "Test text";_stddev 0.008 ns 0.008 ns 4 +lstringa<20> e = "Test text";_cv 0.27 % 0.27 % 4 +lstringa<40> e = "Test text";_mean 2.94 ns 2.94 ns 4 +lstringa<40> e = "Test text";_median 2.92 ns 2.92 ns 4 +lstringa<40> e = "Test text";_stddev 0.141 ns 0.141 ns 4 +lstringa<40> e = "Test text";_cv 4.78 % 4.78 % 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 +std::string e = "123456789012345678901234567890";_mean 22.8 ns 22.8 ns 4 +std::string e = "123456789012345678901234567890";_median 22.6 ns 22.6 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.563 ns 0.563 ns 4 +std::string e = "123456789012345678901234567890";_cv 2.47 % 2.47 % 4 +std::string_view e = "123456789012345678901234567890";_mean 1.10 ns 1.10 ns 4 +std::string_view e = "123456789012345678901234567890";_median 1.10 ns 1.10 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.023 ns 0.023 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 2.09 % 2.09 % 4 +ssa e = "123456789012345678901234567890";_mean 0.734 ns 0.734 ns 4 +ssa e = "123456789012345678901234567890";_median 0.733 ns 0.733 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4 +ssa e = "123456789012345678901234567890";_cv 0.78 % 0.78 % 4 +stringa e = "123456789012345678901234567890";_mean 2.19 ns 2.19 ns 4 +stringa e = "123456789012345678901234567890";_median 2.18 ns 2.18 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.040 ns 0.040 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.80 % 1.80 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 23.2 ns 23.2 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 23.3 ns 23.3 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.376 ns 0.376 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.62 % 1.62 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 3.11 ns 3.11 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 3.14 ns 3.14 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.113 ns 0.113 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 3.64 % 3.64 % 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 +std::string e = "Test text"; auto c{e};_mean 3.69 ns 3.69 ns 4 +std::string e = "Test text"; auto c{e};_median 3.72 ns 3.72 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.077 ns 0.077 ns 4 +std::string e = "Test text"; auto c{e};_cv 2.10 % 2.10 % 4 +std::string_view e = "Test text"; auto c{e};_mean 1.10 ns 1.10 ns 4 +std::string_view e = "Test text"; auto c{e};_median 1.09 ns 1.09 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.011 ns 0.011 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 0.98 % 0.98 % 4 +ssa e = "Test text"; auto c{e};_mean 1.10 ns 1.10 ns 4 +ssa e = "Test text"; auto c{e};_median 1.11 ns 1.11 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4 +ssa e = "Test text"; auto c{e};_cv 1.47 % 1.47 % 4 +stringa e = "Test text"; auto c{e};_mean 2.54 ns 2.54 ns 4 +stringa e = "Test text"; auto c{e};_median 2.54 ns 2.54 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.011 ns 0.011 ns 4 +stringa e = "Test text"; auto c{e};_cv 0.43 % 0.44 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 15.5 ns 15.5 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 15.3 ns 15.3 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.693 ns 0.693 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 4.46 % 4.46 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 17.3 ns 17.3 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 17.3 ns 17.3 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.552 ns 0.552 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 3.19 % 3.19 % 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 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 50.4 ns 50.4 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 49.8 ns 49.8 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.60 ns 1.60 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.17 % 3.17 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.10 ns 1.10 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.10 ns 1.10 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.72 % 1.72 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.738 ns 0.738 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.733 ns 0.733 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.017 ns 0.017 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.30 % 2.30 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.16 ns 2.16 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 2.16 ns 2.16 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.022 ns 0.022 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.03 % 1.03 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 22.7 ns 22.7 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 22.6 ns 22.6 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.613 ns 0.613 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.70 % 2.70 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 16.5 ns 16.5 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 16.8 ns 16.8 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.939 ns 0.939 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 5.68 % 5.68 % 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 +std::string::find;_mean 44.8 ns 44.8 ns 4 +std::string::find;_median 44.5 ns 44.5 ns 4 +std::string::find;_stddev 1.42 ns 1.42 ns 4 +std::string::find;_cv 3.18 % 3.18 % 4 +std::string_view::find;_mean 45.9 ns 45.9 ns 4 +std::string_view::find;_median 45.8 ns 45.8 ns 4 +std::string_view::find;_stddev 0.626 ns 0.626 ns 4 +std::string_view::find;_cv 1.36 % 1.36 % 4 +ssa::find;_mean 43.9 ns 43.9 ns 4 +ssa::find;_median 43.7 ns 43.7 ns 4 +ssa::find;_stddev 1.10 ns 1.10 ns 4 +ssa::find;_cv 2.51 % 2.51 % 4 +stringa::find;_mean 44.5 ns 44.5 ns 4 +stringa::find;_median 44.9 ns 44.9 ns 4 +stringa::find;_stddev 0.961 ns 0.962 ns 4 +stringa::find;_cv 2.16 % 2.16 % 4 +lstringa<20>::find;_mean 39.8 ns 39.8 ns 4 +lstringa<20>::find;_median 39.7 ns 39.7 ns 4 +lstringa<20>::find;_stddev 0.377 ns 0.377 ns 4 +lstringa<20>::find;_cv 0.95 % 0.95 % 4 +lstringa<40>::find;_mean 41.8 ns 41.8 ns 4 +lstringa<40>::find;_median 41.8 ns 41.8 ns 4 +lstringa<40>::find;_stddev 0.332 ns 0.332 ns 4 +lstringa<40>::find;_cv 0.79 % 0.79 % 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 +std::string copy{str_with_len_N};/15_mean 52.4 ns 52.4 ns 4 +std::string copy{str_with_len_N};/15_median 52.6 ns 52.7 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.867 ns 0.867 ns 4 +std::string copy{str_with_len_N};/15_cv 1.65 % 1.65 % 4 +std::string copy{str_with_len_N};/16_mean 52.0 ns 52.0 ns 4 +std::string copy{str_with_len_N};/16_median 51.9 ns 51.9 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.36 ns 1.36 ns 4 +std::string copy{str_with_len_N};/16_cv 2.61 % 2.61 % 4 +std::string copy{str_with_len_N};/23_mean 51.2 ns 51.2 ns 4 +std::string copy{str_with_len_N};/23_median 51.1 ns 51.1 ns 4 +std::string copy{str_with_len_N};/23_stddev 1.97 ns 1.97 ns 4 +std::string copy{str_with_len_N};/23_cv 3.84 % 3.84 % 4 +std::string copy{str_with_len_N};/24_mean 51.3 ns 51.3 ns 4 +std::string copy{str_with_len_N};/24_median 52.0 ns 52.0 ns 4 +std::string copy{str_with_len_N};/24_stddev 2.04 ns 2.04 ns 4 +std::string copy{str_with_len_N};/24_cv 3.98 % 3.98 % 4 +std::string copy{str_with_len_N};/32_mean 53.9 ns 53.9 ns 4 +std::string copy{str_with_len_N};/32_median 54.2 ns 54.2 ns 4 +std::string copy{str_with_len_N};/32_stddev 1.20 ns 1.20 ns 4 +std::string copy{str_with_len_N};/32_cv 2.24 % 2.24 % 4 +std::string copy{str_with_len_N};/64_mean 56.8 ns 56.8 ns 4 +std::string copy{str_with_len_N};/64_median 56.8 ns 56.8 ns 4 +std::string copy{str_with_len_N};/64_stddev 2.09 ns 2.09 ns 4 +std::string copy{str_with_len_N};/64_cv 3.67 % 3.67 % 4 +std::string copy{str_with_len_N};/128_mean 56.4 ns 56.4 ns 4 +std::string copy{str_with_len_N};/128_median 56.5 ns 56.5 ns 4 +std::string copy{str_with_len_N};/128_stddev 2.11 ns 2.11 ns 4 +std::string copy{str_with_len_N};/128_cv 3.74 % 3.74 % 4 +std::string copy{str_with_len_N};/256_mean 63.7 ns 63.7 ns 4 +std::string copy{str_with_len_N};/256_median 58.5 ns 58.5 ns 4 +std::string copy{str_with_len_N};/256_stddev 12.1 ns 12.1 ns 4 +std::string copy{str_with_len_N};/256_cv 19.03 % 19.03 % 4 +std::string copy{str_with_len_N};/512_mean 61.7 ns 61.7 ns 4 +std::string copy{str_with_len_N};/512_median 62.3 ns 62.3 ns 4 +std::string copy{str_with_len_N};/512_stddev 4.94 ns 4.94 ns 4 +std::string copy{str_with_len_N};/512_cv 8.00 % 8.00 % 4 +std::string copy{str_with_len_N};/1024_mean 68.6 ns 68.6 ns 4 +std::string copy{str_with_len_N};/1024_median 67.4 ns 67.4 ns 4 +std::string copy{str_with_len_N};/1024_stddev 5.73 ns 5.73 ns 4 +std::string copy{str_with_len_N};/1024_cv 8.36 % 8.36 % 4 +std::string copy{str_with_len_N};/2048_mean 93.9 ns 93.9 ns 4 +std::string copy{str_with_len_N};/2048_median 94.3 ns 94.3 ns 4 +std::string copy{str_with_len_N};/2048_stddev 6.18 ns 6.18 ns 4 +std::string copy{str_with_len_N};/2048_cv 6.59 % 6.59 % 4 +std::string copy{str_with_len_N};/4096_mean 139 ns 139 ns 4 +std::string copy{str_with_len_N};/4096_median 140 ns 140 ns 4 +std::string copy{str_with_len_N};/4096_stddev 2.09 ns 2.09 ns 4 +std::string copy{str_with_len_N};/4096_cv 1.50 % 1.50 % 4 +stringa copy{str_with_len_N};/15_mean 2.42 ns 2.42 ns 4 +stringa copy{str_with_len_N};/15_median 2.42 ns 2.42 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.068 ns 0.068 ns 4 +stringa copy{str_with_len_N};/15_cv 2.82 % 2.82 % 4 +stringa copy{str_with_len_N};/16_mean 4.84 ns 4.84 ns 4 +stringa copy{str_with_len_N};/16_median 4.84 ns 4.84 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.044 ns 0.044 ns 4 +stringa copy{str_with_len_N};/16_cv 0.91 % 0.91 % 4 +stringa copy{str_with_len_N};/23_mean 4.79 ns 4.79 ns 4 +stringa copy{str_with_len_N};/23_median 4.77 ns 4.77 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.038 ns 0.038 ns 4 +stringa copy{str_with_len_N};/23_cv 0.80 % 0.80 % 4 +stringa copy{str_with_len_N};/24_mean 5.01 ns 5.01 ns 4 +stringa copy{str_with_len_N};/24_median 5.03 ns 5.03 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.101 ns 0.101 ns 4 +stringa copy{str_with_len_N};/24_cv 2.03 % 2.03 % 4 +stringa copy{str_with_len_N};/32_mean 4.89 ns 4.89 ns 4 +stringa copy{str_with_len_N};/32_median 4.90 ns 4.90 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.074 ns 0.074 ns 4 +stringa copy{str_with_len_N};/32_cv 1.51 % 1.51 % 4 +stringa copy{str_with_len_N};/64_mean 4.90 ns 4.90 ns 4 +stringa copy{str_with_len_N};/64_median 4.80 ns 4.80 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.223 ns 0.223 ns 4 +stringa copy{str_with_len_N};/64_cv 4.55 % 4.55 % 4 +stringa copy{str_with_len_N};/128_mean 4.89 ns 4.89 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 +stringa copy{str_with_len_N};/128_stddev 0.098 ns 0.098 ns 4 +stringa copy{str_with_len_N};/128_cv 2.01 % 2.01 % 4 +stringa copy{str_with_len_N};/256_mean 4.81 ns 4.81 ns 4 +stringa copy{str_with_len_N};/256_median 4.81 ns 4.81 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.025 ns 0.025 ns 4 +stringa copy{str_with_len_N};/256_cv 0.52 % 0.52 % 4 +stringa copy{str_with_len_N};/512_mean 4.84 ns 4.84 ns 4 +stringa copy{str_with_len_N};/512_median 4.81 ns 4.81 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.087 ns 0.087 ns 4 +stringa copy{str_with_len_N};/512_cv 1.80 % 1.80 % 4 +stringa copy{str_with_len_N};/1024_mean 4.84 ns 4.84 ns 4 +stringa copy{str_with_len_N};/1024_median 4.83 ns 4.83 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.068 ns 0.068 ns 4 +stringa copy{str_with_len_N};/1024_cv 1.40 % 1.40 % 4 +stringa copy{str_with_len_N};/2048_mean 4.80 ns 4.80 ns 4 +stringa copy{str_with_len_N};/2048_median 4.81 ns 4.81 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.071 ns 0.071 ns 4 +stringa copy{str_with_len_N};/2048_cv 1.47 % 1.47 % 4 +stringa copy{str_with_len_N};/4096_mean 4.79 ns 4.79 ns 4 +stringa copy{str_with_len_N};/4096_median 4.79 ns 4.79 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.060 ns 0.060 ns 4 +stringa copy{str_with_len_N};/4096_cv 1.26 % 1.26 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 16.0 ns 16.0 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 15.8 ns 15.8 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.704 ns 0.704 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 4.40 % 4.40 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 16.4 ns 16.4 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 16.5 ns 16.5 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.857 ns 0.857 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 5.23 % 5.23 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 38.8 ns 38.8 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 39.0 ns 39.0 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 1.16 ns 1.16 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 2.99 % 2.99 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 37.3 ns 37.3 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 37.1 ns 37.1 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.572 ns 0.571 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 1.53 % 1.53 % 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 +lstringa<16> copy{str_with_len_N};/32_median 42.3 ns 42.3 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.931 ns 0.931 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 2.20 % 2.20 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 47.2 ns 47.2 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 46.3 ns 46.3 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 2.87 ns 2.87 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 6.09 % 6.09 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 44.4 ns 44.4 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 44.2 ns 44.2 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.740 ns 0.740 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 1.67 % 1.67 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 50.3 ns 50.3 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 45.8 ns 45.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 10.9 ns 10.9 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 21.71 % 21.71 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 48.5 ns 48.5 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 48.2 ns 48.2 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 4.36 ns 4.36 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 8.98 % 8.98 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 57.8 ns 57.8 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 55.1 ns 55.1 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 7.48 ns 7.48 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 12.95 % 12.95 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 82.1 ns 82.1 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 82.4 ns 82.4 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 7.04 ns 7.04 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 8.58 % 8.58 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 126 ns 126 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 125 ns 125 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 0.317 ns 0.317 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 0.25 % 0.25 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 15.3 ns 15.3 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 15.4 ns 15.4 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.444 ns 0.444 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 2.90 % 2.90 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 15.3 ns 15.3 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 15.4 ns 15.4 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.476 ns 0.476 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 3.11 % 3.11 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 16.1 ns 16.1 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 16.3 ns 16.3 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.964 ns 0.964 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 5.98 % 5.98 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 14.8 ns 14.8 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 14.7 ns 14.7 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.310 ns 0.311 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 2.10 % 2.10 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 17.8 ns 17.8 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 17.9 ns 17.9 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.326 ns 0.326 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.83 % 1.83 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 17.6 ns 17.6 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 17.6 ns 17.6 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.372 ns 0.372 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 2.11 % 2.11 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 19.0 ns 19.0 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 19.2 ns 19.2 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.514 ns 0.514 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 2.71 % 2.71 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 20.7 ns 20.7 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 20.4 ns 20.4 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 1.03 ns 1.03 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 4.97 % 4.97 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 23.4 ns 23.4 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 23.5 ns 23.5 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.530 ns 0.530 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 2.27 % 2.27 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 58.5 ns 58.5 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 56.5 ns 56.5 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 7.80 ns 7.80 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 13.33 % 13.33 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 80.2 ns 80.2 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 79.7 ns 79.7 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 9.04 ns 9.04 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 11.27 % 11.27 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 123 ns 123 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 122 ns 122 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 2.62 ns 2.62 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 2.14 % 2.14 % 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 s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 91.6 ns 91.6 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 91.2 ns 91.2 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.39 ns 1.39 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.52 % 1.52 % 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 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.450 ns 0.450 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.62 % 1.62 % 4 +stringa s = "123456789"; int res = s.to_int_mean 19.2 ns 19.2 ns 4 +stringa s = "123456789"; int res = s.to_int_median 19.2 ns 19.2 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.349 ns 0.349 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.82 % 1.82 % 4 +ssa s = "123456789"; int res = s.to_int_mean 19.2 ns 19.2 ns 4 +ssa s = "123456789"; int res = s.to_int_median 19.3 ns 19.3 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.253 ns 0.253 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 1.32 % 1.31 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 19.3 ns 19.3 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 19.1 ns 19.1 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.597 ns 0.597 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 3.10 % 3.10 % 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 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 70.4 ns 70.4 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 71.0 ns 71.0 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.14 ns 2.14 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.04 % 3.03 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 26.1 ns 26.1 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 25.8 ns 25.8 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.918 ns 0.918 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.52 % 3.52 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 19.8 ns 19.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 19.8 ns 19.8 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.659 ns 0.659 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 3.34 % 3.34 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 19.9 ns 19.9 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 19.8 ns 19.8 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.443 ns 0.443 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 2.23 % 2.23 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 20.0 ns 20.0 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 20.1 ns 20.1 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.320 ns 0.320 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.60 % 1.60 % 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 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 99.8 ns 99.8 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 99.2 ns 99.2 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.55 ns 1.55 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.55 % 1.55 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 25.1 ns 25.1 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 24.8 ns 24.8 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.770 ns 0.770 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 3.06 % 3.06 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 19.6 ns 19.6 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 19.3 ns 19.3 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.606 ns 0.606 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 3.10 % 3.10 % 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 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 306 ns 306 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 306 ns 306 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.12 ns 4.12 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.34 % 1.34 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 110 ns 110 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 110 ns 110 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.94 ns 1.94 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.76 % 1.76 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 42.9 ns 42.9 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 43.0 ns 43.0 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.658 ns 0.658 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.53 % 1.53 % 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 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 6574 ns 6574 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 6620 ns 6620 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 138 ns 138 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.10 % 2.10 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 811 ns 811 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 805 ns 805 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 13.7 ns 13.7 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 1.68 % 1.68 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 737 ns 737 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 732 ns 732 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 20.9 ns 20.9 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.84 % 2.84 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 650 ns 650 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 636 ns 636 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 36.0 ns 36.0 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.54 % 5.54 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 473 ns 473 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 470 ns 470 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 10.8 ns 10.8 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.29 % 2.29 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 429 ns 429 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 426 ns 426 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 16.4 ns 16.4 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 3.83 % 3.82 % 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 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 7037 ns 7037 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7056 ns 7056 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 163 ns 163 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.32 % 2.32 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2266 ns 2266 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2264 ns 2264 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 81.7 ns 81.7 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.60 % 3.61 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 992 ns 992 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 984 ns 984 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 20.4 ns 20.4 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.06 % 2.05 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 851 ns 851 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 856 ns 856 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 25.1 ns 25.1 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.96 % 2.96 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 706 ns 706 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 705 ns 705 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.5 ns 12.5 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.78 % 1.78 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 677 ns 677 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 673 ns 673 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 22.3 ns 22.3 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.30 % 3.30 % 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 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 347176 ns 347177 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 348329 ns 348331 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6993 ns 6994 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 124333 ns 124334 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 124822 ns 124822 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2411 ns 2411 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.94 % 1.94 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 50774 ns 50774 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 50843 ns 50843 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1331 ns 1331 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.62 % 2.62 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 46223 ns 46223 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 46469 ns 46470 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1510 ns 1510 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.27 % 3.27 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 46054 ns 46054 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 45864 ns 45864 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1832 ns 1832 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.98 % 3.98 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 45846 ns 45846 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 46100 ns 46100 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1019 ns 1019 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.22 % 2.22 % 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 +std::stringstream str; ... str << str_var1 << str_var2;_mean 7255 ns 7255 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 7261 ns 7261 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 110 ns 110 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 1.52 % 1.52 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 2567 ns 2567 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 2539 ns 2539 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 86.4 ns 86.4 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 3.37 % 3.37 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 1192 ns 1192 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 1197 ns 1197 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 40.4 ns 40.4 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.39 % 3.39 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 1050 ns 1050 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 1048 ns 1048 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 28.8 ns 28.8 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.75 % 2.74 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 936 ns 936 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 945 ns 945 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 20.2 ns 20.2 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.15 % 2.15 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 887 ns 887 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 895 ns 895 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 22.5 ns 22.5 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.54 % 2.54 % 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 +std::stringstream str; str << "test = " << k << " times";_mean 11693 ns 11694 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 11612 ns 11613 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 398 ns 398 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 3.41 % 3.41 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1717 ns 1717 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1735 ns 1735 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 40.5 ns 40.5 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 2.36 % 2.36 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5454 ns 5454 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5459 ns 5459 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 83.7 ns 83.7 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.53 % 1.53 % 4 +std::string str = std::format("test = {} times", k);_mean 2880 ns 2880 ns 4 +std::string str = std::format("test = {} times", k);_median 2875 ns 2875 ns 4 +std::string str = std::format("test = {} times", k);_stddev 124 ns 124 ns 4 +std::string str = std::format("test = {} times", k);_cv 4.31 % 4.31 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 4935 ns 4935 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 4953 ns 4953 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 118 ns 118 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 2.39 % 2.39 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 4130 ns 4130 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 4126 ns 4126 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 46.2 ns 46.2 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 1.12 % 1.12 % 4 +lstringa<8> str = "test = " + k + " times";_mean 576 ns 576 ns 4 +lstringa<8> str = "test = " + k + " times";_median 575 ns 575 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 9.84 ns 9.84 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.71 % 1.71 % 4 +lstringa<32> str = "test = " + k + " times";_mean 348 ns 348 ns 4 +lstringa<32> str = "test = " + k + " times";_median 340 ns 340 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 33.2 ns 33.2 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 9.55 % 9.55 % 4 +stringa str = "test = " + k + " times";_mean 610 ns 610 ns 4 +stringa str = "test = " + k + " times";_median 606 ns 606 ns 4 +stringa str = "test = " + k + " times";_stddev 16.9 ns 16.9 ns 4 +stringa str = "test = " + k + " times";_cv 2.77 % 2.77 % 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 +std::string::find + substr + std::strtol_mean 735 ns 735 ns 4 +std::string::find + substr + std::strtol_median 734 ns 734 ns 4 +std::string::find + substr + std::strtol_stddev 17.8 ns 17.8 ns 4 +std::string::find + substr + std::strtol_cv 2.42 % 2.42 % 4 +ssa::splitter + ssa::as_int_mean 244 ns 244 ns 4 +ssa::splitter + ssa::as_int_median 244 ns 244 ns 4 +ssa::splitter + ssa::as_int_stddev 4.79 ns 4.79 ns 4 +ssa::splitter + ssa::as_int_cv 1.96 % 1.96 % 4 +ssa::splitf + functor_mean 278 ns 278 ns 4 +ssa::splitf + functor_median 278 ns 278 ns 4 +ssa::splitf + functor_stddev 1.93 ns 1.93 ns 4 +ssa::splitf + functor_cv 0.70 % 0.70 % 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 +Naive (and wrong) replace symbols with std::string find + replace_mean 3050 ns 3050 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 3016 ns 3016 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 121 ns 121 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 3.97 % 3.97 % 4 +replace symbols with std::string find_first_of + replace_mean 4955 ns 4955 ns 4 +replace symbols with std::string find_first_of + replace_median 4910 ns 4910 ns 4 +replace symbols with std::string find_first_of + replace_stddev 128 ns 128 ns 4 +replace symbols with std::string find_first_of + replace_cv 2.57 % 2.58 % 4 +replace symbols with std::string_view find_first_of + copy_mean 3059 ns 3059 ns 4 +replace symbols with std::string_view find_first_of + copy_median 3058 ns 3058 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 109 ns 109 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 3.57 % 3.57 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 3223 ns 3223 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 3185 ns 3185 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 150 ns 150 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 4.64 % 4.64 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 2579 ns 2579 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 2587 ns 2587 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 125 ns 125 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 4.84 % 4.84 % 4 +replace const symbols with string expressions and without remembering all search results_mean 2637 ns 2637 ns 4 +replace const symbols with string expressions and without remembering all search results_median 2613 ns 2613 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 84.0 ns 84.0 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 3.19 % 3.19 % 4 +replace const symbols with string expressions and memorization of all search results_mean 2389 ns 2389 ns 4 +replace const symbols with string expressions and memorization of all search results_median 2396 ns 2397 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 76.0 ns 76.0 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 3.18 % 3.18 % 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 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 439 ns 439 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 436 ns 436 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 12.8 ns 12.8 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.92 % 2.92 % 4 +Short replace symbols with std::string find_first_of + replace_mean 654 ns 654 ns 4 +Short replace symbols with std::string find_first_of + replace_median 642 ns 642 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 28.0 ns 28.0 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 4.28 % 4.28 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 511 ns 511 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 517 ns 517 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 21.5 ns 21.5 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 4.20 % 4.20 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 388 ns 388 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 394 ns 394 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 17.5 ns 17.5 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 4.52 % 4.52 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 451 ns 451 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 454 ns 454 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 12.8 ns 12.8 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 2.85 % 2.85 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 268 ns 268 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 268 ns 268 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 14.5 ns 14.5 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 5.39 % 5.39 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 340 ns 340 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 340 ns 340 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 16.7 ns 16.7 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 4.90 % 4.90 % 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 bb to ---- in std::string|64_mean 414 ns 414 ns 4 +replace bb to ---- in std::string|64_median 415 ns 415 ns 4 +replace bb to ---- in std::string|64_stddev 18.5 ns 18.5 ns 4 +replace bb to ---- in std::string|64_cv 4.46 % 4.46 % 4 +replace bb to ---- in std::string|256_mean 1247 ns 1247 ns 4 +replace bb to ---- in std::string|256_median 1249 ns 1249 ns 4 +replace bb to ---- in std::string|256_stddev 46.9 ns 46.9 ns 4 +replace bb to ---- in std::string|256_cv 3.76 % 3.76 % 4 +replace bb to ---- in std::string|512_mean 2343 ns 2343 ns 4 +replace bb to ---- in std::string|512_median 2348 ns 2348 ns 4 +replace bb to ---- in std::string|512_stddev 102 ns 102 ns 4 +replace bb to ---- in std::string|512_cv 4.36 % 4.36 % 4 +replace bb to ---- in std::string|1024_mean 4971 ns 4971 ns 4 +replace bb to ---- in std::string|1024_median 4909 ns 4909 ns 4 +replace bb to ---- in std::string|1024_stddev 329 ns 329 ns 4 +replace bb to ---- in std::string|1024_cv 6.62 % 6.62 % 4 +replace bb to ---- in std::string|2048_mean 11336 ns 11336 ns 4 +replace bb to ---- in std::string|2048_median 11316 ns 11316 ns 4 +replace bb to ---- in std::string|2048_stddev 196 ns 196 ns 4 +replace bb to ---- in std::string|2048_cv 1.73 % 1.73 % 4 +replace bb to ---- in lstringa<8>|64_mean 307 ns 307 ns 4 +replace bb to ---- in lstringa<8>|64_median 307 ns 307 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 10.5 ns 10.5 ns 4 +replace bb to ---- in lstringa<8>|64_cv 3.43 % 3.43 % 4 +replace bb to ---- in lstringa<8>|256_mean 945 ns 945 ns 4 +replace bb to ---- in lstringa<8>|256_median 928 ns 928 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 65.6 ns 65.6 ns 4 +replace bb to ---- in lstringa<8>|256_cv 6.94 % 6.94 % 4 +replace bb to ---- in lstringa<8>|512_mean 1772 ns 1772 ns 4 +replace bb to ---- in lstringa<8>|512_median 1775 ns 1775 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 26.8 ns 26.8 ns 4 +replace bb to ---- in lstringa<8>|512_cv 1.51 % 1.51 % 4 +replace bb to ---- in lstringa<8>|1024_mean 3390 ns 3390 ns 4 +replace bb to ---- in lstringa<8>|1024_median 3371 ns 3371 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 105 ns 105 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 3.10 % 3.10 % 4 +replace bb to ---- in lstringa<8>|2048_mean 6782 ns 6782 ns 4 +replace bb to ---- in lstringa<8>|2048_median 6707 ns 6707 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 482 ns 482 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 7.11 % 7.11 % 4 +replace bb to ---- by init stringa|64_mean 209 ns 209 ns 4 +replace bb to ---- by init stringa|64_median 208 ns 208 ns 4 +replace bb to ---- by init stringa|64_stddev 2.28 ns 2.28 ns 4 +replace bb to ---- by init stringa|64_cv 1.09 % 1.09 % 4 +replace bb to ---- by init stringa|256_mean 613 ns 613 ns 4 +replace bb to ---- by init stringa|256_median 613 ns 613 ns 4 +replace bb to ---- by init stringa|256_stddev 20.5 ns 20.5 ns 4 +replace bb to ---- by init stringa|256_cv 3.35 % 3.35 % 4 +replace bb to ---- by init stringa|512_mean 1421 ns 1421 ns 4 +replace bb to ---- by init stringa|512_median 1411 ns 1411 ns 4 +replace bb to ---- by init stringa|512_stddev 47.5 ns 47.5 ns 4 +replace bb to ---- by init stringa|512_cv 3.34 % 3.34 % 4 +replace bb to ---- by init stringa|1024_mean 2946 ns 2946 ns 4 +replace bb to ---- by init stringa|1024_median 2962 ns 2962 ns 4 +replace bb to ---- by init stringa|1024_stddev 58.1 ns 58.1 ns 4 +replace bb to ---- by init stringa|1024_cv 1.97 % 1.97 % 4 +replace bb to ---- by init stringa|2048_mean 6119 ns 6119 ns 4 +replace bb to ---- by init stringa|2048_median 6090 ns 6090 ns 4 +replace bb to ---- by init stringa|2048_stddev 159 ns 159 ns 4 +replace bb to ---- by init stringa|2048_cv 2.59 % 2.59 % 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 +replace bb to -- in std::string|64_mean 287 ns 287 ns 4 +replace bb to -- in std::string|64_median 289 ns 289 ns 4 +replace bb to -- in std::string|64_stddev 7.44 ns 7.44 ns 4 +replace bb to -- in std::string|64_cv 2.59 % 2.60 % 4 +replace bb to -- in std::string|256_mean 909 ns 909 ns 4 +replace bb to -- in std::string|256_median 890 ns 890 ns 4 +replace bb to -- in std::string|256_stddev 49.0 ns 49.0 ns 4 +replace bb to -- in std::string|256_cv 5.39 % 5.39 % 4 +replace bb to -- in std::string|512_mean 1631 ns 1631 ns 4 +replace bb to -- in std::string|512_median 1613 ns 1613 ns 4 +replace bb to -- in std::string|512_stddev 75.3 ns 75.3 ns 4 +replace bb to -- in std::string|512_cv 4.62 % 4.62 % 4 +replace bb to -- in std::string|1024_mean 3086 ns 3086 ns 4 +replace bb to -- in std::string|1024_median 3094 ns 3094 ns 4 +replace bb to -- in std::string|1024_stddev 45.0 ns 45.0 ns 4 +replace bb to -- in std::string|1024_cv 1.46 % 1.46 % 4 +replace bb to -- in std::string|2048_mean 6778 ns 6778 ns 4 +replace bb to -- in std::string|2048_median 6712 ns 6712 ns 4 +replace bb to -- in std::string|2048_stddev 455 ns 455 ns 4 +replace bb to -- in std::string|2048_cv 6.71 % 6.71 % 4 +replace bb to -- in lstringa<8>|64_mean 222 ns 222 ns 4 +replace bb to -- in lstringa<8>|64_median 222 ns 222 ns 4 +replace bb to -- in lstringa<8>|64_stddev 0.782 ns 0.781 ns 4 +replace bb to -- in lstringa<8>|64_cv 0.35 % 0.35 % 4 +replace bb to -- in lstringa<8>|256_mean 670 ns 670 ns 4 +replace bb to -- in lstringa<8>|256_median 668 ns 668 ns 4 +replace bb to -- in lstringa<8>|256_stddev 37.1 ns 37.2 ns 4 +replace bb to -- in lstringa<8>|256_cv 5.54 % 5.54 % 4 +replace bb to -- in lstringa<8>|512_mean 1251 ns 1251 ns 4 +replace bb to -- in lstringa<8>|512_median 1258 ns 1258 ns 4 +replace bb to -- in lstringa<8>|512_stddev 19.5 ns 19.5 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.56 % 1.56 % 4 +replace bb to -- in lstringa<8>|1024_mean 2408 ns 2408 ns 4 +replace bb to -- in lstringa<8>|1024_median 2422 ns 2422 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 76.9 ns 76.9 ns 4 +replace bb to -- in lstringa<8>|1024_cv 3.19 % 3.19 % 4 +replace bb to -- in lstringa<8>|2048_mean 4767 ns 4767 ns 4 +replace bb to -- in lstringa<8>|2048_median 4759 ns 4759 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 117 ns 117 ns 4 +replace bb to -- in lstringa<8>|2048_cv 2.44 % 2.45 % 4 +replace bb to -- by init stringa|64_mean 172 ns 172 ns 4 +replace bb to -- by init stringa|64_median 171 ns 171 ns 4 +replace bb to -- by init stringa|64_stddev 7.68 ns 7.68 ns 4 +replace bb to -- by init stringa|64_cv 4.46 % 4.46 % 4 +replace bb to -- by init stringa|256_mean 508 ns 508 ns 4 +replace bb to -- by init stringa|256_median 507 ns 507 ns 4 +replace bb to -- by init stringa|256_stddev 6.27 ns 6.27 ns 4 +replace bb to -- by init stringa|256_cv 1.23 % 1.23 % 4 +replace bb to -- by init stringa|512_mean 849 ns 849 ns 4 +replace bb to -- by init stringa|512_median 843 ns 843 ns 4 +replace bb to -- by init stringa|512_stddev 24.6 ns 24.6 ns 4 +replace bb to -- by init stringa|512_cv 2.90 % 2.90 % 4 +replace bb to -- by init stringa|1024_mean 1687 ns 1687 ns 4 +replace bb to -- by init stringa|1024_median 1683 ns 1683 ns 4 +replace bb to -- by init stringa|1024_stddev 13.2 ns 13.2 ns 4 +replace bb to -- by init stringa|1024_cv 0.78 % 0.78 % 4 +replace bb to -- by init stringa|2048_mean 3367 ns 3367 ns 4 +replace bb to -- by init stringa|2048_median 3329 ns 3329 ns 4 +replace bb to -- by init stringa|2048_stddev 76.6 ns 76.6 ns 4 +replace bb to -- by init stringa|2048_cv 2.28 % 2.28 % 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 +hashStrMapA emplace & find stringa;_mean 3337923 ns 3337952 ns 4 +hashStrMapA emplace & find stringa;_median 3342195 ns 3342230 ns 4 +hashStrMapA emplace & find stringa;_stddev 38842 ns 38824 ns 4 +hashStrMapA emplace & find stringa;_cv 1.16 % 1.16 % 4 +std::unordered_map emplace & find std::string;_mean 3713478 ns 3713491 ns 4 +std::unordered_map emplace & find std::string;_median 3646049 ns 3646049 ns 4 +std::unordered_map emplace & find std::string;_stddev 176783 ns 176790 ns 4 +std::unordered_map emplace & find std::string;_cv 4.76 % 4.76 % 4 +hashStrMapA emplace & find ssa;_mean 3277536 ns 3277548 ns 4 +hashStrMapA emplace & find ssa;_median 3283080 ns 3283104 ns 4 +hashStrMapA emplace & find ssa;_stddev 61487 ns 61477 ns 4 +hashStrMapA emplace & find ssa;_cv 1.88 % 1.88 % 4 +std::unordered_map emplace & find std::string_view;_mean 4219440 ns 4219456 ns 4 +std::unordered_map emplace & find std::string_view;_median 4180920 ns 4180920 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 92117 ns 92126 ns 4 +std::unordered_map emplace & find std::string_view;_cv 2.18 % 2.18 % 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 +Build func full name std::string;_mean 3514 ns 3514 ns 4 +Build func full name std::string;_median 3509 ns 3509 ns 4 +Build func full name std::string;_stddev 69.4 ns 69.4 ns 4 +Build func full name std::string;_cv 1.97 % 1.97 % 4 +Build func full name std::string 1;_mean 3573 ns 3573 ns 4 +Build func full name std::string 1;_median 3562 ns 3562 ns 4 +Build func full name std::string 1;_stddev 44.7 ns 44.7 ns 4 +Build func full name std::string 1;_cv 1.25 % 1.25 % 4 +Build func full name std::stream;_mean 12140 ns 12140 ns 4 +Build func full name std::stream;_median 12165 ns 12165 ns 4 +Build func full name std::stream;_stddev 301 ns 301 ns 4 +Build func full name std::stream;_cv 2.48 % 2.48 % 4 +Build func full name stringa;_mean 1750 ns 1750 ns 4 +Build func full name stringa;_median 1710 ns 1710 ns 4 +Build func full name stringa;_stddev 102 ns 102 ns 4 +Build func full name stringa;_cv 5.83 % 5.83 % 4 +Build func full name stringa 1;_mean 2047 ns 2047 ns 4 +Build func full name stringa 1;_median 2070 ns 2070 ns 4 +Build func full name stringa 1;_stddev 103 ns 103 ns 4 +Build func full name stringa 1;_cv 5.01 % 5.01 % 4 \ No newline at end of file diff --git a/docs/Doxyfile b/docs/Doxyfile index 6740233..7b5c509 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = "simstr" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.6.4 +PROJECT_NUMBER = 1.6.5 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewers a diff --git a/docs/Doxyfile_ru b/docs/Doxyfile_ru index 68f57a5..8a10742 100644 --- a/docs/Doxyfile_ru +++ b/docs/Doxyfile_ru @@ -48,7 +48,7 @@ PROJECT_NAME = "simstr" # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.6.4 +PROJECT_NUMBER = 1.6.5 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewers a diff --git a/include/simstr/simple_unicode.h b/include/simstr/simple_unicode.h index 6ebd01c..378611a 100644 --- a/include/simstr/simple_unicode.h +++ b/include/simstr/simple_unicode.h @@ -1,6 +1,6 @@ /* * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com - * ver. 1.6.4 + * ver. 1.6.5 */ #pragma once diff --git a/include/simstr/sstring.h b/include/simstr/sstring.h index 20a44d2..179e4e2 100644 --- a/include/simstr/sstring.h +++ b/include/simstr/sstring.h @@ -1,9 +1,8 @@ /* +* ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com - * ver. 1.6.4 * Классы для работы со строками * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com -* ver. 1.6.4 * Classes for working with strings */ diff --git a/include/simstr/strexpr.h b/include/simstr/strexpr.h index 1664406..db5303f 100644 --- a/include/simstr/strexpr.h +++ b/include/simstr/strexpr.h @@ -1,5 +1,5 @@ /* - * ver. 1.6.4 + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * База для строковых конкатенаций через выражения времени компиляции * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -2247,7 +2247,7 @@ concept good_int_flags = * - f::с при задании ширины поля выравнивать по центру. * - f::p выводить префикс системы счисления, 0b для 2, 0 для 8, 0x для 16. * - f::P выводить префикс системы счисления, 0B для 2, 0 для 8, 0X для 16. - * - f::z дополнять число до заданной ширины нулями справа. Не совместимо с опциями выравнивания. + * - f::z дополнять число до заданной ширины нулями слева. Не совместимо с опциями выравнивания. * - f::u Для систем счисления более 10, выводить символы в верхнем регистре. * - f::sp Для знаковых типов чисел для положительных значений выводить '+' перед числом. * - f::ss Для знаковых типов чисел для положительных значений выводить пробел перед числом. @@ -2269,8 +2269,8 @@ concept good_int_flags = * - f::с when setting the field width, align to the center. * - f::p print number system prefix, 0b for 2, 0 for 8, 0x for 16. * - f::P print number system prefix, 0B for 2, 0 for 8, 0X for 16. - * - f::z pad the number to the specified width with zeros on the right. Not compatible with alignment options. - * - f::u For number systems greater than 10, output characters in uppercase. + * - f::z pad the number to the specified width with zeros on the let. Not compatible with alignment options. + * - f::u For radix greater than 10, output characters in uppercase. * - f::sp For signed number types, print '+' before the number for positive values. * - f::ss For signed number types, print a space before the number for positive values. * - f::f<'c'> Specifies a placeholder character when specifying the field width. Default is space. @@ -2293,7 +2293,7 @@ concept good_int_flags = * - с при задании ширины поля выравнивать по центру, аналог f::c. * - a выводить префикс системы счисления, 0b для 2, 0 для 8, 0x для 16, аналог f::p. * - A выводить префикс системы счисления, 0B для 2, 0 для 8, 0X для 16, аналог f::P. - * - 0 дополнять число до заданной ширины нулями справа. Не совместимо с опциями выравнивания, аналог f::z. + * - 0 дополнять число до заданной ширины нулями слева. Не совместимо с опциями выравнивания, аналог f::z. * - E Для систем счисления более 10, выводить символы в верхнем регистре, аналог f::u. * - e Для знаковых типов чисел для положительных значений выводить '+' перед числом, аналог f::sp. * - f Для знаковых типов чисел для положительных значений выводить пробел перед числом, аналог f::ss. @@ -2303,6 +2303,7 @@ concept good_int_flags = * либо дополнение нулями (0), но не оба сразу. Если ничего из этого не указано, применяется выравнивание вправо. * Число дополняется до заданной ширины, если оно короче. Если длиннее, то выводится всё число. * - ' разделитель, пропускается. + * * Так как после `F` все символы воспринимаются как hex код символа разделителя, при необходимости его использования * лучше ставить его в конце литерала форматирования, или отделять '. *
    @@ -2314,8 +2315,8 @@ concept good_int_flags = * - c when setting the field width, align to the center, analogous to f::c. * - a display the number system prefix, 0b for 2, 0 for 8, 0x for 16, analogous to f::p. * - A display the number system prefix, 0B for 2, 0 for 8, 0X for 16, analogous to f::P. - * - 0 pad the number to the specified width with zeros on the right. Not compatible with alignment options, similar to f::z. - * - E For number systems greater than 10, display characters in uppercase, analogous to f::u. + * - 0 pad the number to the specified width with zeros on the left. Not compatible with alignment options, similar to f::z. + * - E For radix greater than 10, display characters in uppercase, analogous to f::u. * - e For signed number types, for positive values, print '+' before the number, analogous to f::sp. * - f For signed number types, for positive values, print a space before the number, analogous to f::ss. * - FCodeInhex Sets the code of the filler character when specifying the field width, analogous to f::f<'c'>. @@ -2324,6 +2325,7 @@ concept good_int_flags = * or zero padding (0), but not both. If none of these are specified, right alignment is applied. * The number is padded to the given width if it is shorter. If it is longer, then the entire number is displayed. * - ' delimiter, skipped. + * * Since after `F` all characters are perceived as hex code of the delimiter character, if necessary, use it * it is better to put it at the end of format literal, or separate with '. *
    @@ -2491,19 +2493,52 @@ enum HexFlags : unsigned { /*! * @ingroup StrExprs - * @ru @brief Позволяет конкатенировать текст и беззнаковое число в 16-ричном виде. + * @ru @brief Создает объект, который может преобразовываться в строковое выражение, генерирующее 16ричное представление числа. * @tparam Flags - флаги форматирования, побитовое ИЛИ из HexFlags. * @tparam T - тип числа, выводится автоматически. - * @en @brief Allows you to concatenate text and a unsigned number in hexadecimal. + * @param v - число. + * @details Это более быстрое преобразование в строку в 16ричном виде, чем через `e_int`, однако с меньшими возможностями + * форматирования. По умолчанию создается представление в виде `0x000012AB`, то есть префикс `0x` и дополнения нулями до ширины + * по размеру типа числа (2 символа на байт). Можно указать флаги: + * - HexFlags::Short - не дополнять нулями до фиксированной ширины. + * - HexFlags::Lcase - выводить символы в нижнем регистре. + * - HexFlags::No0x - не выводить префикс. + * + * Кроме того, возможна краткая запись этого выражения в виде `num / N_f16` + * N обозначает флаги форматирования + * - 1 - HexFlags::Short + * - 2 - HexFlags::Lcase + * - 3 - HexFlags::No0x + * + * @en @brief Creates an object that can be converted to a string expression that generates a hexadecimal representation of a number. * @tparam Flags - format flags, bitwise OR of HexFlags. * @tparam T - number type, deducted automatically. - * @details @ru Пример @en Example @~ + * @param v - number. + * @details This is a faster conversion to a hexadecimal string than `e_int`, but with less power formatting. + * By default, a representation of the form `0x000012AB` is created, that is, prefixed with `0x` and padded with zeros to the width + * by number type size (2 characters per byte). You can specify flags: + * - HexFlags::Short - do not pad with zeros to a fixed width. + * - HexFlags::Lcase - display characters in lowercase. + * - HexFlags::No0x - do not display the prefix. + * + * In addition, this expression can be written briefly as `num / N_f16` + * N stands for formatting flags + * - 1 - HexFlags::Short + * - 2 - HexFlags::Lcase + * - 3 - HexFlags::No0x + * + * @ru Пример @en Example @~ * ```cpp - * stringa text = +"val = "sv + e_hex(10u); + * stringa text = +"val = "sv + e_hex(10); * EXPECT_EQ(text, "val = 0x0000000A"); * - * stringu textu = +u"val = 0X"sv + e_hex(0x12Au); + * stringu textu = +u"val = 0X"sv + e_hex(0x12A); * EXPECT_EQ(textu, u"val = 0X12a"); + * + * text = "Num in hex: " + num / 0_f16; // same as e_hex(num); + * text = "Num in hex: " + num / 13_f16; // same as e_hex(num); + * text = "Num in hex: " + num / 123_f16; // same as e_hex(num); + * text = "Num in hex: " + num / 2_f16; // same as e_hex(num); * ``` */ template @@ -2511,6 +2546,34 @@ constexpr auto e_hex(T v) { return expr_hex_src{v}; } +template +constexpr unsigned parse_f16_flags() { + if constexpr (c == '1') { + return HexFlags::Short | parse_f16_flags(); + } else if constexpr (c == '2') { + return HexFlags::Lcase | parse_f16_flags(); + } else if constexpr (c == '3') { + return HexFlags::No0x | parse_f16_flags(); + } else { + return 0; + } +} + +template +struct f16flags{}; + +template +constexpr auto operator/(T v, const f16flags&) { + return expr_hex_src{v}; +} + +inline namespace literals { +template +constexpr auto operator""_f16() { + return f16flags()>{}; +} +} // namespace literals + /*! * @ru @brief Специализация шаблона для преобразования e_hex в строковое выражение, позволяет использовать их в * операциях конкатенации со строковыми выражениями. @@ -3387,6 +3450,19 @@ public: constexpr str_piece from_to(size_t from, size_t to) const noexcept { return str_piece{_str() + from, to - from}; } + /*! + * @ru @brief Получить подстроку str_src от начала и до первого найденного вхождения указанной подстроки. + * @details Если не найдено, вернёт всю строку. + * @param offset - позиция для начала поиска. + * @return Подстроку, str_src. + * @en @brief Get the substring str_src from the beginning to the first found occurrence of the specified substring. + * @details If not found, returns the entire string. + * @param offset - position to start the search. + * @return Substring, str_src. + */ + constexpr str_piece until(str_piece pattern, size_t offset = 0) const noexcept { + return (*this)(0, find_or_all(pattern, offset)); + } /*! * @ru @brief Проверка на пустоту. * @en @brief Check for emptiness. @@ -4933,7 +5009,7 @@ inline namespace literals { * - c при задании ширины поля выравнивать по центру, аналог f::c. * - a выводить префикс системы счисления, 0b для 2, 0 для 8, 0x для 16, аналог f::p. * - A выводить префикс системы счисления, 0B для 2, 0 для 8, 0X для 16, аналог f::P. - * - 0 дополнять число до заданной ширины нулями справа. Не совместимо с опциями выравнивания, аналог f::z. + * - 0 дополнять число до заданной ширины нулями слева. Не совместимо с опциями выравнивания, аналог f::z. * - E Для систем счисления более 10, выводить символы в верхнем регистре, аналог f::u. * - e Для знаковых типов чисел для положительных значений выводить '+' перед числом, аналог f::sp. * - f Для знаковых типов чисел для положительных значений выводить пробел перед числом, аналог f::ss. @@ -4943,6 +5019,7 @@ inline namespace literals { * либо дополнение нулями (0), но не оба сразу. Если ничего из этого не указано, применяется выравнивание вправо. * Число дополняется до заданной ширины, если оно короче. Если длиннее, то выводится всё число. * - ' разделитель, пропускается. + * * Так как после `F` все символы воспринимаются как hex код символа разделителя, при необходимости его использования * лучше ставить его в конце литерала форматирования, или отделять '. *
    @@ -4955,8 +5032,8 @@ inline namespace literals { * - c when setting the field width, align to the center, analogous to f::c. * - a display the number system prefix, 0b for 2, 0 for 8, 0x for 16, analogous to f::p. * - A display the number system prefix, 0B for 2, 0 for 8, 0X for 16, analogous to f::P. - * - 0 pad the number to the specified width with zeros on the right. Not compatible with alignment options, similar to f::z. - * - E For number systems greater than 10, display characters in uppercase, analogous to f::u. + * - 0 pad the number to the specified width with zeros on the left. Not compatible with alignment options, similar to f::z. + * - E For radix greater than 10, display characters in uppercase, analogous to f::u. * - e For signed number types, for positive values, print '+' before the number, analogous to f::sp. * - f For signed number types, for positive values, print a space before the number, analogous to f::ss. * - FCodeInhex Sets the code of the filler character when specifying the field width, analogous to f::f<'c'>. @@ -4965,6 +5042,7 @@ inline namespace literals { * or zero padding (0), but not both. If none of these are specified, right alignment is applied. * The number is padded to the given width if it is shorter. If it is longer, then the entire number is displayed. * - ' delimiter, skipped. + * * Since after `F` all characters are perceived as hex code of the delimiter character, if necessary, use it * it is better to put it at the end of format literal, or separate with '. *
    @@ -6717,6 +6795,57 @@ std::basic_string, A>& insert(std::basic_string, A>& - ссылку на переданную строку. + * @details Метод заменяет содержимое строки результатом строкового выражения. + * + * ВАЖНО!!! части строкового выражения не должны ссылаться на саму строку, иначе результат неопределён!!! + * + * @en @brief Rewrite the entire string with the given string expression, resizing the string if necessary. + * @tparam K - character type. + * @tparam A - allocator type. + * @tparam E - string expression type. + * @param str - string. + * @param expr - string expression to insert. + * @return std::basic_string, A>& - a reference to the passed string. + * @details The method replaces the contents of a string with the result of a string expression. + * + * IMPORTANT!!! Parts of a string expression must not reference the string itself, otherwise the result is undefined!!! + * + */ +template E> +std::basic_string, A>& overwrite(std::basic_string, A>& str, const E& expr) { + if (size_t expr_length = expr.length()) { + if (expr_length <= str.length()) { + K* data = str.data(); + expr.place((typename E::symb_type*)data); + str.resize(expr_length); + } else { + auto fill = [&](K* data, size_t) -> size_t { + expr.place((typename E::symb_type*)data); + return expr_length; + }; + if constexpr (requires{str.resize_and_overwrite(expr_length, fill);}) { + str.resize_and_overwrite(expr_length, fill); + } else if constexpr (requires{str._Resize_and_overwrite(expr_length, fill);}) { + str._Resize_and_overwrite(expr_length, fill); + } else { + str.resize(expr_length); + expr.place((typename E::symb_type*)str.data()); + } + } + } else { + str.clear(); + } + return str; +} + namespace details { template diff --git a/readme.md b/readme.md index 68620c2..9ede401 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ [![CMake on multiple platforms](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml) -Version 1.6.4. +Version 1.6.5.

    Speed up your work with strings by 2-10 times!

    @@ -108,8 +108,6 @@ the sizes of SSO buffers in objects are smaller. On the [release page](https://github.com/orefkov/simstr/releases) you can download binary builds of benchmarks and run them on your equipment. You can also run the [Emscripten build of benchmarks](https://orefkov.github.io/simstr/bench/benchStr.html) directly in the browser. -(Before following the link, it is better to open "Developer Tools" (usually **F12**) in advance to see the console -Javascript, since the page will not be updated until the benchmarks are completed, and all output will be visible in the console). - [Benchmark source code](bench/bench_str.cpp) - [Benchmark results](https://orefkov.github.io/simstr/results.html) @@ -324,8 +322,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.6.4 # Specify the desired release - FIND_PACKAGE_ARGS NAMES simstr 1.6.4 + GIT_TAG tags/rel1.6.5 # Specify the desired release + FIND_PACKAGE_ARGS NAMES simstr 1.6.5 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/readme_ru.md b/readme_ru.md index 81975c6..8541630 100644 --- a/readme_ru.md +++ b/readme_ru.md @@ -3,7 +3,7 @@ [![CMake on multiple platforms](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml/badge.svg)](https://github.com/orefkov/simstr/actions/workflows/cmake-multi-platform.yml) -Версия 1.6.4. +Версия 1.6.5.

    Ускорь работу со строками в 2-10 раз!

    @@ -109,8 +109,6 @@ Windows и Linux (в WSL), с использованием компилятор На [странице релизов](https://github.com/orefkov/simstr/releases) вы можете скачать бинарные сборки бенчмарков и запустить их на своём оборудовании. Также вы можете запустить [Emscripten сборку бенчмарков](https://orefkov.github.io/simstr/bench/benchStr.html) прямо в браузере. -(Перед переходом по ссылке лучше предварительно откройте "Инструменты разработчика" (обычно **F12**), чтобы видеть консоль -Javascript, так как до окончания бенчмарков страница не будет обновляться, а весь вывод будет виден в консоли). - [Исходный код бенчмарков](bench/bench_str.cpp) - [Результаты бенчмарков](https://orefkov.github.io/simstr/results.html) @@ -325,8 +323,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.6.4 # Укажите нужный релиз - FIND_PACKAGE_ARGS NAMES simstr 1.6.4 + GIT_TAG tags/rel1.6.5 # Укажите нужный релиз + FIND_PACKAGE_ARGS NAMES simstr 1.6.5 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/src/sstring.cpp b/src/sstring.cpp index 66cc2ff..73f2989 100644 --- a/src/sstring.cpp +++ b/src/sstring.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.6.4 + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Реализация строковых функций * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com diff --git a/tests/test_expr_only.cpp b/tests/test_expr_only.cpp index ff8057d..d42bd12 100644 --- a/tests/test_expr_only.cpp +++ b/tests/test_expr_only.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.6.4 + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com diff --git a/tests/test_str.cpp b/tests/test_str.cpp index b465dc2..6bc7cc9 100644 --- a/tests/test_str.cpp +++ b/tests/test_str.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.6.4 + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -2004,6 +2004,11 @@ TEST(SimStr, EIntFmt) { EXPECT_EQ(test, "'0x0000000A' _______A"); test = 100 / 0x2a010_fmt; EXPECT_EQ(test, "0b01100100"); + + std::u16string textu = +u"val = 0X"sv + 0x12A / 123_f16; + EXPECT_EQ(textu, u"val = 0X12a"); + textu = u"val = "_ss + 0x12A / 0_f16; + EXPECT_EQ(textu, u"val = 0x0000012A"); } #ifndef _MSC_VER diff --git a/tests/test_tostrexpr.cpp b/tests/test_tostrexpr.cpp index 2b1eb2c..f9e7d4d 100644 --- a/tests/test_tostrexpr.cpp +++ b/tests/test_tostrexpr.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.6.4 + * ver. 1.6.5 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com