From e9e717c8bd72cc534dddbec625dc3cf7d96e63b2 Mon Sep 17 00:00:00 2001 From: Aleksandr Orefkov Date: Sun, 22 Mar 2026 14:49:15 +0300 Subject: [PATCH] =?UTF-8?q?1.8.1=20-=20Added=20the=20ability=20to=20use=20?= =?UTF-8?q?allocators=20with=20size=20specification=20when=20deallocating.?= =?UTF-8?q?=20---=20-=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B0=D0=BB=D0=BB=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D1=8B=20=D1=81=20=D1=83=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=D0=BC=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D1=80=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=B4=D0=B5=D0=B0=D0=BB?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=D1=86=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- bench/bench_str.cpp | 2 +- bench/emscripten/shell_minimal.html | 2 +- bench/results.html | 1423 ++++++------- ... E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt | 1852 ++++++++-------- ...2 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt | 1854 ++++++++-------- ...on E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt | 1862 ++++++++-------- ...-Xeon E5-2682 v4, Windows 10, Clang-22.txt | 1874 ++++++++--------- ...4-Xeon E5-2682 v4, Windows 10, MSVC-19.txt | 1868 ++++++++-------- ... E5-2682 v4, WASM Chrome 143, Clang-22.txt | 1869 ++++++++-------- docs/Doxyfile | 2 +- docs/Doxyfile_ru | 2 +- include/simstr/simple_unicode.h | 2 +- include/simstr/sstring.h | 400 ++-- include/simstr/strexpr.h | 2 +- readme.md | 6 +- readme_ru.md | 6 +- src/sstring.cpp | 4 +- tests/test_expr_only.cpp | 2 +- tests/test_str.cpp | 61 +- tests/test_tostrexpr.cpp | 2 +- 21 files changed, 6545 insertions(+), 6552 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5d80b6..d7b3162 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ include(FetchContent) project( simstr - VERSION 1.7.3 + VERSION 1.8.1 DESCRIPTION "Yet another modern C++ string library" HOMEPAGE_URL "https://github.com/orefkov/simstr" LANGUAGES CXX diff --git a/bench/bench_str.cpp b/bench/bench_str.cpp index bb57fbe..bde990e 100644 --- a/bench/bench_str.cpp +++ b/bench/bench_str.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.2 + * ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Бенчмарки * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com diff --git a/bench/emscripten/shell_minimal.html b/bench/emscripten/shell_minimal.html index aced9c1..fe39bae 100644 --- a/bench/emscripten/shell_minimal.html +++ b/bench/emscripten/shell_minimal.html @@ -185,7 +185,7 @@
-

SimStr 1.7.1 Benchmark

+

SimStr 1.8.1 Benchmark

All results Sources for benchmarks diff --git a/bench/results.html b/bench/results.html index c1133ea..3099a4e 100644 --- a/bench/results.html +++ b/bench/results.html @@ -275,21 +275,21 @@ L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.03, 0.01, 0.00 +Load Average: 0.20, 0.67, 0.53 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++32 X 2494.22 MHz CPU sCPU Caches: L1 Data 32 KiB (x16) L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.03, 0.45, 0.43 +Load Average: 0.28, 0.77, 0.74 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-1532 X 2494.22 MHz CPU sCPU Caches: L1 Data 32 KiB (x16) L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.00, 0.00, 0.00 +Load Average: 0.06, 0.09, 0.08 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • Xeon E5-2682 v4, Windows 10, Clang-2232 X 2494 MHz CPU sCPU Caches: L1 Data 32 KiB (x16) @@ -308,45 +308,45 @@ Load Average: 0.00, 0.00, 0.00

    # Concatenate email

    - - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Concat email std::formatstd::string email_concat_format(std::string_view name, std::string_view domain, std::string_view tld) { +
    Concat email std::formatstd::string email_concat_format(std::string_view name, std::string_view domain, std::string_view tld) { return std::format("{}@{}.{}", name, domain, tld); -}165167160207252994
    Concat email std::stringstreamstd::string email_concat_stream(std::string_view name, std::string_view domain, std::string_view tld) { +}167170160201256483
    Concat email std::stringstreamstd::string email_concat_stream(std::string_view name, std::string_view domain, std::string_view tld) { std::stringstream s; s << name << "@" << domain << "." << tld; return s.str(); -}3252683188089092551
    Concat email stringzilla appendsz::string email_concat_stringzilla_app(sz::string name, sz::string_view domain, sz::string_view tld) { +}3792793218309401090
    Concat email stringzilla appendsz::string email_concat_stringzilla_app(sz::string name, sz::string_view domain, sz::string_view tld) { return name.append("@").append(domain).append(".").append(tld); -}136141108260272591
    Concat email stringzilla concatsz::string email_concat_stringzilla_exp(sz::string name, sz::string_view domain, sz::string_view tld) { +}143141108273287230
    Concat email stringzilla concatsz::string email_concat_stringzilla_exp(sz::string name, sz::string_view domain, sz::string_view tld) { return sz::string{name | sz::string_view{"@"} | domain | sz::string_view{"."} | tld}; } >> В stringzilla тоже есть конкатенация строковыми выражениями, но не так удобна и развита, как в simstr. Stringzilla also has concatenation by expression templates, -but it's not as convenient or advanced as simstr.54.858.342.7125127222
    Concat email std::string appendstd::string email_concat_std(std::string name, std::string_view domain, std::string_view tld) { +but it's not as convenient or advanced as simstr.54.655.042.812613492.5
    Concat email std::string appendstd::string email_concat_std(std::string name, std::string_view domain, std::string_view tld) { return name.append("@").append(domain).append(".").append(tld); -}73.794.977.9182196643
    Concat email std::string by strexprstd::string email_concat_std_expr(std::string_view name, std::string_view domain, std::string_view tld) { +}73.991.079.2187200289
    Concat email std::string by strexprstd::string email_concat_std_expr(std::string_view name, std::string_view domain, std::string_view tld) { return +name + "@" + domain + "." + tld; -}44.845.233.6106111164
    Concat email stringastringa email_concat_sim_expr(ssa name, ssa domain, ssa tld) { +}46.846.834.410411388.2
    Concat email stringastringa email_concat_sim_expr(ssa name, ssa domain, ssa tld) { return name + "@" + domain + "." + tld; -}40.539.339.792.9101131
    39.138.740.794.410667.4

    # Concatenate string + Number + "Literal"

    - - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Concat std::string and number by std to std::stringvoid ConcatStdToStd(benchmark::State& state) { +
    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) { @@ -355,8 +355,8 @@ but it's not as convenient or advanced as simstr.2162392072653311982
    Concat std::string and number by StrExpr to std::stringvoid ConcatSimToStd(benchmark::State& state) { +}2232422142683331042
    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) { @@ -365,8 +365,8 @@ but it's not as convenient or advanced as simstr.104100101156211980
    Concat stringa and number by StrExpr to simstr::stringavoid ConcatSimToSim(benchmark::State& state) { +}105102102160219486
    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) { @@ -382,8 +382,8 @@ but it's not as convenient or advanced as simstr.65.665.168.166.5102352
    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.964.372.368.7109217
    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) { @@ -392,17 +392,17 @@ while in stringa , the entire test is included in SSO.71.267.876.474.2113377
    72.372.177.774.2121218

    # Concatenate string + Hex Number + "Literal"

    - - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Concat std::string and format hex number and literal to std::stringvoid ConcatStdToFmtHex(benchmark::State& state) { +
    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) { @@ -413,8 +413,8 @@ while in stringa , the entire test is included in SSO.70370374270110433864
    std::format std::string and hex number by literal to std::stringvoid ConcatAllFmtToHex(benchmark::State& state) { +}69672472872510302057
    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) { @@ -425,8 +425,8 @@ while in stringa , the entire test is included in SSO.835804850146518345212
    Concat std::string and std::to_chars and string to std::stringvoid ConcatStdToCharsHex(benchmark::State& state) { +}828783893152518722629
    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) { @@ -439,8 +439,8 @@ while in stringa , the entire test is included in SSO.2072181941822541159
    Concat std::string and hex number and literal by StrExpr to std::stringvoid ConcatSimToStdHex(benchmark::State& state) { +}210221199188252676
    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) { @@ -451,8 +451,8 @@ while in stringa , the entire test is included in SSO.13314512183.5119912
    Concat stringa and hex number and literal by StrExpr to simstr::stringavoid ConcatSimToSimHex(benchmark::State& state) { +}13415012584.6115526
    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) { @@ -463,8 +463,8 @@ while in stringa , the entire test is included in SSO.11711511667.1101221
    Concat stringa and hex number and literal by e_concat to simstr::stringavoid ConcatSimToSimHexC(benchmark::State& state) { +}11712012271.4101189
    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) { @@ -475,8 +475,8 @@ while in stringa , the entire test is included in SSO.12412312175.9105221
    Subst stringa and hex number by e_subst literal to simstr::stringavoid ConcatSimToSimHexS(benchmark::State& state) { +}12812412576.9108198
    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) { @@ -486,8 +486,8 @@ while in stringa , the entire test is included in SSO.182183165145171350
    Subst stringa and hex number by e_vsubst stra to simstr::stringavoid ConcatSimToSimHexVS(benchmark::State& state) { +}193187172149173355
    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) { @@ -497,37 +497,37 @@ while in stringa , the entire test is included in SSO.314320275292359928
    333332280287361843

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

    - - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"void ConcatSimToSimOct(benchmark::State& state) { +
    "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 = "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"; benchmark::DoNotOptimize(str); } } -}265278259668695418
    e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)void SubstSimToSimOct(benchmark::State& state) { +}271278261639702414
    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("abcdefghihklmopqr {} end", i / 0x8a010_fmt); benchmark::DoNotOptimize(str); } } -}350357314753828657
    e_vsubst(pattern, i / 0x8a010_fmt)void VSubstSimToSimOct(benchmark::State& state) { +}357358315750810621
    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) { @@ -535,16 +535,16 @@ while in stringa , the entire test is included in SSO.628640571105211661440
    fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)void FmtFormatComp(benchmark::State& state) { +}621608593107011441426
    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 = fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i); benchmark::DoNotOptimize(str); } } -}703668632140815772237
    fmt::format("abcdefghihklmopqr {:#010o} end", i)void FmtFormat(benchmark::State& state) { +}723697629143315832149
    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); @@ -552,16 +552,16 @@ while in stringa , the entire test is included in SSO.873795747138414402986
    std::format("abcdefghihklmopqr {:#010o} end", i)void FormatStdToStdOct(benchmark::State& state) { +}842814788132715962879
    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); } } -}98212161210157419213132
    std::vformat(pattern, std::make_format_args(i))void VFormatStdToStdOct(benchmark::State& state) { +}101712681171156819462940
    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) { @@ -569,18 +569,21 @@ while in stringa , the entire test is included in SSO.97512431241157819143119
    std::format with std::formatted_sizevoid StdFormatSize(benchmark::State& state) { +}99912281176155519902985
    std::format with std::formatted_sizevoid StdFormatSize(benchmark::State& state) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { size_t len = std::formatted_size("abcdefghihklmopqr {:#010o} end", i); - std::string str(len, 0); - std::format_to_n(str.data(), len, "abcdefghihklmopqr {:#010o} end", i); + std::string str; + str.resize_and_overwrite(len, [&](char* p, size_t) { + std::format_to_n(str.data(), len, "abcdefghihklmopqr {:#010o} end", i); + return len; + }); benchmark::DoNotOptimize(str); } } -}181821592117244328615329
    strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"void StreamStdToStdOct(benchmark::State& state) { +}186721752267249629225263
    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; @@ -589,22 +592,22 @@ while in stringa , the entire test is included in SSO.237325941954658969478569
    207426082021670770268433

    # Concatenate string + "Literal"

    - - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Concat std::string by std to std::stringvoid ConcatStdToStdS(benchmark::State& state) { +
    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) { @@ -613,8 +616,8 @@ while in stringa , the entire test is included in SSO.47.234.045.340.455.1116
    Concat std::string by StrExpr to std::stringvoid ConcatSimToStdS(benchmark::State& state) { +}51.734.147.942.255.5109
    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) { @@ -623,8 +626,8 @@ while in stringa , the entire test is included in SSO.33.036.029.938.780.2131
    Concat stringa by StrExpr to stringavoid ConcatSimToSimS(benchmark::State& state) { +}36.937.335.339.377.4120
    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) { @@ -633,41 +636,41 @@ while in stringa , the entire test is included in SSO.29.229.426.729.352.4101
    31.628.327.430.652.295.4

    # Find three concatenated string in string_view

    - - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Find concat three std::stringsize_t find_pos_str(std::string_view src, std::string_view name) { +
    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"); -}11090.6116205223214
    Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { +}11292.4119206230214
    Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { return src.find(std::string{"\n- " + name + " -\n"}); -}52.643.138.4114124107
    Find concat three simstrsize_t find_pos_sim(ssa src, ssa name) { +}52.446.538.2113138100.0
    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.18.816.614.420.828.257.6
    Find concat three stringzilla stringsize_t find_pos_sz(sz::string_view src, sz::string_view name) { +it is collected in a stack-based buffer, without allocation or deallocation.18.917.015.621.228.358.2
    Find concat three stringzilla stringsize_t find_pos_sz(sz::string_view src, sz::string_view name) { return src.find(sz::string{"\n- "}.append(name).append(" -\n")); -}157135118211221271
    153176125215232268

    # Build Type Name

    - - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    BuildTypeNameStr 0/0std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { +
    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); @@ -677,20 +680,20 @@ it is collected in a stack-based buffer, without allocation or deallocation.7.236.798.408.2117.523.2
    BuildTypeNameExp 0/0std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}7.586.458.658.3417.820.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.615.996.687.4814.125.8
    BuildTypeNameSim 0/0stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}6.946.416.997.6714.423.1
    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; -}4.204.284.837.4616.321.4
    BuildTypeNameStr 10/10std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { +}5.034.994.977.9015.420.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); @@ -700,31 +703,31 @@ it is collected in a stack-based buffer, without allocation or deallocation.59.788.972.569.383.6400
    BuildTypeNameExp 10/10std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}59.190.076.679.580.1365
    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; -}30.938.826.532.238.1126
    BuildTypeNameSim 10/10stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}31.039.027.933.139.4116
    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; -}23.923.521.725.938.473.2
    23.423.622.625.238.869.0

    # Replace string by copy

    - - + +simstr has a string expression for replacing substrings out of the box.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Concat with replace strstd::string make_str_str(std::string_view from, std::string_view pattern, std::string_view repl) { +
    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; ;) { @@ -740,74 +743,74 @@ it is collected in a stack-based buffer, without allocation or deallocation."; -}208233219310360546
    Concat with replace expstd::string make_str_exp(std::string_view from, std::string_view pattern, std::string_view repl) { +}210243236315352500
    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.158140129213219247
    154151135220222235

    # Create Empty Str

    - - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string e;template<typename T> +
    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.140.7421.091.092.522.35
    std::string_view e;template<typename T> +Empty lines, nothing unusual.1.130.7581.131.122.582.15
    std::string_view e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3890.3730.7400.3631.820.772
    ssa e;template<typename T> +}0.3770.3800.7540.3691.840.740
    ssa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3700.3750.1810.3571.810.359
    stringa e;template<typename T> +}0.3720.3750.1870.3621.860.378
    stringa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.7700.7630.7370.7412.222.12
    lstringa<20> e;template<typename T> +}0.7630.7540.7530.7452.222.15
    lstringa<20> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.111.101.101.082.542.26
    lstringa<40> e;template<typename T> +}1.141.131.141.102.552.20
    lstringa<40> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.111.101.101.092.562.41
    1.141.141.151.112.572.20

    # Create Str from short literal (9 symbols)

    - - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string e = "Test text";template<typename T> +
    std::string e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -816,8 +819,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.951.461.831.832.582.49
    std::string_view e = "Test text";template<typename T> +time is spent only copying 10 bytes.1.871.511.891.842.572.47
    std::string_view e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -826,15 +829,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.7410.7410.7300.7181.831.08
    ssa e = "Test text";template<typename T> +a pointer to text and its length.0.7610.7670.7540.7411.841.12
    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.3740.3700.7290.3671.820.779
    stringa e = "Test text";template<typename T> +}0.3820.3810.7570.3691.840.744
    stringa e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -843,8 +846,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.131.121.101.102.552.17
    lstringa<20> e = "Test text";template<typename T> +only a pointer to the text and its length.1.151.131.131.112.572.19
    lstringa<20> e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -853,26 +856,26 @@ void CreateShortLiteral(benchmark::State& state) { } >> Внутреннего буфера хватает для размещения символов, время уходит только на копирование байтов. The internal buffer is sufficient to accommodate characters; -time is spent only on copying bytes.1.931.861.831.822.532.58
    lstringa<40> e = "Test text";template<typename T> +time is spent only on copying bytes.1.901.891.921.842.602.63
    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.891.871.851.822.552.55
    1.881.861.901.852.582.61

    # Create Str from long literal (30 symbols)

    - - + - + - + - + - + +bytes are simply copied.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string e = "123456789012345678901234567890";template<typename T> +
    std::string e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -883,8 +886,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...20.218.819.176.078.923.4
    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.519.319.773.979.321.8
    std::string_view e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -893,23 +896,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.7380.7320.7400.7341.841.15
    ssa e = "123456789012345678901234567890";template<typename T> +remember the pointer to the text and its size.0.7630.7450.7510.7361.861.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.3690.3710.7460.3621.850.757
    stringa e = "123456789012345678901234567890";template<typename T> +}0.3750.3740.7610.3691.860.741
    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.111.111.092.872.17
    lstringa<20> e = "123456789012345678901234567890";template<typename T> +stringa doesn't lag behind on constant literals!1.141.121.131.112.242.22
    lstringa<20> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -917,8 +920,8 @@ void CreateLongLiteral(benchmark::State& state) { } } >> lstringa<20> может вместить в себя до 23 символов, Очевидно, что для 30-и символов уже нужна аллокация. -Obviously, 30 characters already require allocation.20.519.220.176.776.929.8
    lstringa<40> e = "123456789012345678901234567890";template<typename T> +Obviously, 30 characters already require allocation.18.018.918.373.172.722.0
    lstringa<40> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -927,19 +930,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.571.841.822.503.272.95
    2.681.891.912.563.322.98

    # Create copy of Str with 9 symbols

    - - + - + - + - + - + +Only bytes are copied.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string e = "Test text"; auto c{e};template<typename T> +
    std::string e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -948,8 +951,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Строка в пределах SSO, так что просто копирует байты. -The string is within the SSO, so it just copies the bytes.5.691.124.801.845.994.03
    std::string_view e = "Test text"; auto c{e};template<typename T> +The string is within the SSO, so it just copies the bytes.5.771.185.031.845.403.72
    std::string_view e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -957,8 +960,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}0.3720.3730.3660.3683.471.15
    ssa e = "Test text"; auto c{e};template<typename T> +}0.3880.3770.3880.3732.951.10
    ssa e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -969,8 +972,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.3770.3680.3750.3673.461.09
    stringa e = "Test text"; auto c{e};template<typename T> +string information is copied.0.3800.3780.3880.3802.951.11
    stringa e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -981,8 +984,8 @@ void CopyShortString(benchmark::State& state) { } >> Копирование stringa происходит быстро, особенно если она инициализирована литералом. Copying a stringa is fast, -especially if it is initialized with a literal.1.121.101.101.084.002.49
    lstringa<20> e = "Test text"; auto c{e};template<typename T> +especially if it is initialized with a literal.1.121.131.131.104.122.53
    lstringa<20> e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -991,8 +994,8 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> В обоих случаях хватает внутреннего буфера. -In both cases, the internal buffer is sufficient.1.121.111.441.104.774.74
    lstringa<40> e = "Test text"; auto c{e};template<typename T> +In both cases, the internal buffer is sufficient.1.141.121.151.124.784.17
    lstringa<40> e = "Test text"; auto c{e};template<typename T> void CopyShortString(benchmark::State& state) { T x{TEST_TEXT}; for (auto _: state) { @@ -1001,19 +1004,19 @@ void CopyShortString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Только копируются байты. -Only bytes are copied.1.141.821.451.104.895.17
    1.151.851.151.115.494.49

    # Create copy of Str with 30 symbols

    - - + - + - + - + - + +Placed in the internal buffer.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string e = "123456789012345678901234567890"; auto c{e};template<typename T> +
    std::string e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1023,24 +1026,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...19.824.022.574.974.949.0
    std::string_view e = "123456789012345678901234567890"; auto c{e};template<typename T> +SSO is no longer sufficient. And again, how allocation lags under Windows...20.224.923.278.078.846.5
    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.7380.7370.7300.7311.831.07
    ssa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.7580.7570.7590.7341.501.11
    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.3730.3720.7330.3651.810.784
    stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.3740.3810.7580.3771.470.750
    stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1050,8 +1053,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.126.701.082.902.28
    lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> +compare with the previous benchmark.1.141.146.851.122.982.21
    lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1059,8 +1062,8 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Не влезает, аллокация. -Doesn't fit, allocation.20.418.219.575.181.123.8
    lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> +Doesn't fit, allocation.19.118.017.772.682.921.2
    lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1068,19 +1071,19 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Уложили во внутренний буфер. -Placed in the internal buffer.4.745.024.074.887.7316.7
    4.985.534.185.427.4115.8

    # Find 9 symbols text in end of 99 symbols text

    - - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    sz::string::find;template<typename T> +
    sz::string::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1095,8 +1098,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> stringzilla более заточена на поиск больших строк в больших строках. -stringzilla is more focused on searching large strings within large strings.98.196.284.995.3115123
    std::string::find;template<typename T> +stringzilla is more focused on searching large strings within large strings.95.996.587.994.8117125
    std::string::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1113,8 +1116,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.047.466.6439.140.543.8
    std::string_view::find;template<typename T> +However, Windows and Linux are clearly in different weight classes.7.347.766.9540.240.340.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) { @@ -1128,8 +1131,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.157.137.0537.939.541.6
    ssa::find;template<typename T> +}7.817.827.3939.339.841.2
    ssa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1143,8 +1146,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.456.976.7318.122.041.1
    stringa::find;template<typename T> +}7.377.826.8718.721.940.6
    stringa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1158,8 +1161,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}8.207.887.0119.229.940.6
    lstringa<20>::find;template<typename T> +}8.148.607.2119.629.441.2
    lstringa<20>::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1173,8 +1176,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}6.826.736.5317.221.939.8
    lstringa<40>::find;template<typename T> +}6.946.986.5218.024.439.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) { @@ -1188,20 +1191,20 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}6.706.796.2717.622.939.2
    6.937.016.4918.523.139.7

    # Copy not literal Str with N symbols

    - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string copy{str_with_len_N};/15template<typename T> +
    std::string copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1209,8 +1212,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.241.174.851.905.0945.0
    std::string copy{str_with_len_N};/16template<typename T> +}5.781.185.011.835.1852.3
    std::string copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1223,8 +1226,8 @@ void CopyDynString(benchmark::State& state) { SSO у std::string меньше, 10 символов + 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.23.21.2227.279.182.651.9
    std::string copy{str_with_len_N};/23template<typename T> +smaller, as far as I remember: 11 characters + 0.24.51.1629.478.783.553.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) { @@ -1233,8 +1236,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Дальше просто добавляется время на копирование байтов. -Then the time for copying bytes is simply added.27.423.927.777.683.148.6
    std::string copy{str_with_len_N};/24template<typename T> +Then the time for copying bytes is simply added.28.525.828.979.182.052.5
    std::string copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1242,8 +1245,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}22.624.621.278.383.049.6
    std::string copy{str_with_len_N};/32template<typename T> +}23.324.822.380.383.551.6
    std::string copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1251,8 +1254,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}22.123.822.381.985.553.9
    std::string copy{str_with_len_N};/64template<typename T> +}23.224.721.579.689.453.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) { @@ -1260,8 +1263,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}22.225.723.280.890.052.8
    std::string copy{str_with_len_N};/128template<typename T> +}23.326.224.680.790.654.4
    std::string copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1269,8 +1272,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}24.726.528.484.089.559.2
    std::string copy{str_with_len_N};/256template<typename T> +}24.926.824.284.290.059.7
    std::string copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1278,8 +1281,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}24.827.725.286.991.477.3
    std::string copy{str_with_len_N};/512template<typename T> +}26.027.525.787.391.873.8
    std::string copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1287,8 +1290,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}29.131.227.889.893.486.0
    std::string copy{str_with_len_N};/1024template<typename T> +}29.431.628.587.396.281.2
    std::string copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1296,8 +1299,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}47.838.235.597.298.8106
    std::string copy{str_with_len_N};/2048template<typename T> +}47.738.433.497.610293.3
    std::string copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1305,8 +1308,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}12386.4118126132119
    std::string copy{str_with_len_N};/4096template<typename T> +}12586.0122132132109
    std::string copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1315,8 +1318,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Чем длиннее строка, тем дольше создаётся копия. -The longer the string, the longer it takes to create a copy.146115154180181165
    stringa copy{str_with_len_N};/15template<typename T> +The longer the string, the longer it takes to create a copy.152117157180184165
    stringa copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1327,8 +1330,8 @@ void CopyDynString(benchmark::State& state) { } >> Здесь stringa инициализируется не литералом, а значит, должна сама хранить символы. Here, stringa is not initialized with a literal, -meaning it must store characters itself.1.111.101.101.074.032.50
    stringa copy{str_with_len_N};/16template<typename T> +meaning it must store characters itself.1.121.131.131.094.042.46
    stringa copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1341,8 +1344,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.141.121.084.074.92
    stringa copy{str_with_len_N};/23template<typename T> +increment was replaced with a regular one, judging by the time.1.131.131.151.084.074.57
    stringa copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1353,8 +1356,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.121.111.101.083.994.77
    stringa copy{str_with_len_N};/24template<typename T> +copies faster than 15 in std::string.1.121.131.131.094.094.54
    stringa copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1365,8 +1368,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.316.016.115.818.44.73
    stringa copy{str_with_len_N};/32template<typename T> +Time is added for the atomic counter increment.16.416.516.416.118.84.55
    stringa copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1374,8 +1377,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.016.115.918.44.77
    stringa copy{str_with_len_N};/64template<typename T> +}16.316.516.416.118.64.57
    stringa copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1383,8 +1386,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.116.115.818.44.76
    stringa copy{str_with_len_N};/128template<typename T> +}16.316.516.516.018.64.56
    stringa copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1392,8 +1395,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}15.916.216.015.818.44.74
    stringa copy{str_with_len_N};/256template<typename T> +}16.416.516.416.118.64.55
    stringa copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1401,8 +1404,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.316.015.818.74.74
    stringa copy{str_with_len_N};/512template<typename T> +}16.416.616.516.118.74.57
    stringa copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1410,8 +1413,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.016.015.818.54.75
    stringa copy{str_with_len_N};/1024template<typename T> +}16.416.616.316.019.14.60
    stringa copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1419,8 +1422,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.016.015.818.54.75
    stringa copy{str_with_len_N};/2048template<typename T> +}16.316.516.416.118.74.57
    stringa copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1428,8 +1431,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.215.915.818.45.34
    stringa copy{str_with_len_N};/4096template<typename T> +}16.416.516.416.018.74.56
    stringa copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1440,8 +1443,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.016.115.818.45.09
    lstringa<16> copy{str_with_len_N};/15template<typename T> +increment; copying time does not depend on the string length.16.416.716.516.118.74.57
    lstringa<16> copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1452,8 +1455,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.1.111.131.471.104.554.26
    lstringa<16> copy{str_with_len_N};/16template<typename T> +WASM has a 32-bit architecture, so SSO is up to 19 characters.1.141.121.151.124.064.14
    lstringa<16> copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1461,8 +1464,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.425.274.434.799.6416.3
    lstringa<16> copy{str_with_len_N};/23template<typename T> +}5.105.354.894.568.4816.9
    lstringa<16> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1470,8 +1473,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.175.224.434.819.6636.5
    lstringa<16> copy{str_with_len_N};/24template<typename T> +}5.165.314.914.498.5436.0
    lstringa<16> copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1480,8 +1483,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> И после начинает вести себя при копировании, как std::string. -And then it starts to behave like std::string when copied.23.223.123.377.282.037.9
    lstringa<16> copy{str_with_len_N};/32template<typename T> +And then it starts to behave like std::string when copied.21.921.822.476.681.237.0
    lstringa<16> copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1489,8 +1492,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}23.122.824.080.783.439.6
    lstringa<16> copy{str_with_len_N};/64template<typename T> +}22.121.922.577.384.138.0
    lstringa<16> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1498,8 +1501,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}24.924.225.377.384.939.5
    lstringa<16> copy{str_with_len_N};/128template<typename T> +}23.423.124.379.382.438.3
    lstringa<16> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1507,8 +1510,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}24.923.940.083.488.639.7
    lstringa<16> copy{str_with_len_N};/256template<typename T> +}24.525.733.882.685.638.8
    lstringa<16> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1516,8 +1519,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}27.326.827.086.688.463.9
    lstringa<16> copy{str_with_len_N};/512template<typename T> +}25.424.825.983.787.162.4
    lstringa<16> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1525,8 +1528,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}29.829.029.188.191.771.1
    lstringa<16> copy{str_with_len_N};/1024template<typename T> +}28.627.734.888.590.766.7
    lstringa<16> copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1534,8 +1537,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}95.478.397.494.795.584.9
    lstringa<16> copy{str_with_len_N};/2048template<typename T> +}98.978.499.793.910178.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) { @@ -1543,8 +1546,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}10574.6107126126104
    lstringa<16> copy{str_with_len_N};/4096template<typename T> +}10373.411012513594.8
    lstringa<16> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1552,8 +1555,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}12289.5121191186145
    lstringa<512> copy{str_with_len_N};/15template<typename T> +}12288.6129190196146
    lstringa<512> copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1561,8 +1564,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}1.131.141.471.104.414.67
    lstringa<512> copy{str_with_len_N};/16template<typename T> +}1.131.131.151.144.464.06
    lstringa<512> copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1570,8 +1573,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.124.804.395.369.3016.9
    lstringa<512> copy{str_with_len_N};/23template<typename T> +}5.004.984.226.128.9615.1
    lstringa<512> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1579,8 +1582,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.984.974.405.239.2916.2
    lstringa<512> copy{str_with_len_N};/24template<typename T> +}4.925.014.245.298.9215.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) { @@ -1588,8 +1591,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.454.424.155.199.5216.0
    lstringa<512> copy{str_with_len_N};/32template<typename T> +}29.64.594.265.279.0715.2
    lstringa<512> copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1597,8 +1600,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.664.724.198.3012.320.1
    lstringa<512> copy{str_with_len_N};/64template<typename T> +}29.64.644.208.1412.616.9
    lstringa<512> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1606,8 +1609,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}6.036.105.948.0112.020.1
    lstringa<512> copy{str_with_len_N};/128template<typename T> +}30.26.065.678.4812.517.9
    lstringa<512> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1615,8 +1618,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}6.416.395.938.4513.020.3
    lstringa<512> copy{str_with_len_N};/256template<typename T> +}30.56.636.298.5812.918.2
    lstringa<512> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1624,8 +1627,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}7.858.097.879.5613.821.6
    lstringa<512> copy{str_with_len_N};/512template<typename T> +}21.717.37.989.6914.020.8
    lstringa<512> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1636,8 +1639,8 @@ void CopyDynString(benchmark::State& state) { } >> Даже 512 символов копируются быстрее, чем одна аллокация или атомарный инкремент. Even 512 characters are copied faster than a single -allocation or atomic increment.10.610.510.211.015.324.0
    lstringa<512> copy{str_with_len_N};/1024template<typename T> +allocation or atomic increment.24.710.610.211.415.724.0
    lstringa<512> copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1646,8 +1649,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> А дальше уже как у всех. -And then it's like everyone else.98.151.897.098.295.282.6
    lstringa<512> copy{str_with_len_N};/2048template<typename T> +And then it's like everyone else.96.952.196.598.395.078.6
    lstringa<512> copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1655,8 +1658,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}10473.1105132129103
    lstringa<512> copy{str_with_len_N};/4096template<typename T> +}10673.610313012895.8
    lstringa<512> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1664,61 +1667,61 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}12186.2123185195152
    12390.1126188193146

    # Convert to int '1234567'

    - - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);void ToIntStr10(benchmark::State& state, const std::string& s, int c) { +
    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 @@ -1737,8 +1740,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.27.427.026.330.734.496.0
    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.927.427.931.431.991.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) { for (auto _: state) { int res = 0; std::from_chars(s.data(), s.data() + s.size(), res, 10); @@ -1753,8 +1756,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.13.517.011.512.512.60.787
    stringa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +signs, spaces, 0x prefixes, etc.14.917.512.512.611.80.739
    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; @@ -1770,8 +1773,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.9.159.4116.513.817.719.6
    ssa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +decimal system, no leading spaces, and no plus sign.9.369.4816.813.716.820.4
    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; @@ -1784,8 +1787,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}9.469.407.419.1916.320.8
    lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +}9.529.767.549.4015.616.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; @@ -1798,18 +1801,18 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}9.309.447.4313.614.816.6
    9.619.518.4313.414.816.1

    # Convert to unsigned 'abcDef'

    - - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);void ToIntStr16(benchmark::State& state, const std::string& s, int c) { +
    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 @@ -1821,8 +1824,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> Всё то же, только для 16ричной системы -Everything is the same, only for the hexadecimal system24.023.323.633.434.569.8
    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 system24.524.423.933.635.567.2
    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); @@ -1834,8 +1837,8 @@ Everything is the same, only for the hexadecimal system9.2221.98.898.028.7419.3
    stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}9.5922.09.158.508.9618.3
    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; @@ -1848,8 +1851,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.607.7115.812.714.220.2
    ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}8.048.2816.213.714.517.2
    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; @@ -1862,8 +1865,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.567.626.357.2613.120.1
    lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}7.577.656.487.5013.316.7
    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; @@ -1876,18 +1879,18 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.357.416.3212.512.515.9
    7.827.846.4212.612.716.1

    # Convert to int ' 1234567'

    - - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);void ToIntStr0(benchmark::State& state, const std::string& s, int c) { +
    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 @@ -1899,8 +1902,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> А здесь уже парсинг произвольного числа. -And here we have parsing of an arbitrary number.29.028.628.543.945.598.1
    stringa s = " 123456789"; int res = s.to_int<int>; // Check overflowtemplate<typename T> +And here we have parsing of an arbitrary number.29.229.429.143.645.697.3
    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; @@ -1913,8 +1916,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}11.111.122.918.122.013.9
    ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflowvoid ToIntNoOverflow(benchmark::State& state, ssa t, int c) { +}11.011.423.817.322.413.7
    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 @@ -1926,16 +1929,16 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}13.313.110.713.518.714.8
    13.313.211.012.919.115.0

    # Convert to double '1234.567e10'

    - - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);void ToDoubleStr(benchmark::State& state, const std::string& s, double c) { +
    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); @@ -1950,8 +1953,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { #endif benchmark::DoNotOptimize(res); } -}63.666.663.597.199.9305
    std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);template<typename K = char> +}66.665.866.3100103298
    std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);template<typename K = char> void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { for (auto _: state) { double res = 0; @@ -1970,8 +1973,8 @@ void ToDoubleFromChars(benchmark::State& state, const std::string_view& #endif benchmark::DoNotOptimize(res); } -}24.1Not impl23.861.685.0106
    ssa s = "1234.567e10"; double res = *s.to_double()template<typename T> +}24.5Not impl24.458.782.7108
    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>(); @@ -1988,16 +1991,16 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}26.034.224.236.637.044.4
    26.834.824.536.737.742.2

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

    - - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::stringstream str; ... str << "abbaabbaabbaabba";void AppendStreamConstLiteral(benchmark::State& state) { +
    std::stringstream str; ... str << "abbaabbaabbaabba";void AppendStreamConstLiteral(benchmark::State& state) { for (auto _: state) { std::string result; std::stringstream str; @@ -2014,8 +2017,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(str); } -}137419481379464656686891
    std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { +}142420801411511857226499
    std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { for (auto _: state) { std::string result; for (size_t c = 0; c < 64; c++) { @@ -2029,8 +2032,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { #endif benchmark::DoNotOptimize(result); } -}44541938010601286853
    lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}44541638010731306815
    lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2045,8 +2048,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}413381360777929805
    lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}388362364767914794
    lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2064,8 +2067,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { } >> Чем больше внутренний буфер, тем меньше раз требуется аллокация, тем быстрее результат. The larger the internal buffer, the fewer allocations are -required, and the faster the result.289279263399539594
    lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> +required, and the faster the result.276245271390542620
    lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2080,8 +2083,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}248253219269350462
    lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}219217229239364401
    lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2096,19 +2099,19 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}139157143157227366
    137136144158230335

    # 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-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba";void AppendStreamStrConstLiteral(benchmark::State& state) { +
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba";void AppendStreamStrConstLiteral(benchmark::State& state) { std::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2126,8 +2129,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}143919611348459655907083
    std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { +}142620371391465756657163
    std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2143,8 +2146,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}128912631202378139662327
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}128812531161377439022186
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2161,8 +2164,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}4434674567268291069
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}426401443716822890
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2179,8 +2182,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}383355401465535895
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}340335368442535864
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2197,8 +2200,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}332317310289377800
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}313291348303377722
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2215,19 +2218,19 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}206230212217281713
    217214214188286639

    # 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-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 timesvoid AppendStreamStrConstLiteralBig(benchmark::State& state) { +
    std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 timesvoid AppendStreamStrConstLiteralBig(benchmark::State& state) { std::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2245,8 +2248,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}7612514056773026215409287657345299
    std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { +}7580915973375407221584295560348509
    std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2262,8 +2265,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}715079463066199193253196942127979
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}7309810471067303183793199734120123
    lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2280,8 +2283,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}180294302122156189262636152828
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}197674981520392196872522144146
    lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2298,8 +2301,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}159972382218805171702327049507
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}173792727017950168802319144572
    lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2316,8 +2319,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}157761815618433159552189050433
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}168951686017908170612188744298
    lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2334,19 +2337,19 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}189911787418781175282225747948
    170821689917735164442257744327

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

    - - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::stringstream str; ... str << str_var1 << str_var2;void AppendStream2String(benchmark::State& state) { +
    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) { @@ -2366,8 +2369,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}136420031378439755357228
    std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { +}146920731397440355387317
    std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { std::string s1 = TEXT_16; std::string s2 = TEXT_16; @@ -2386,8 +2389,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}134213701285397040142636
    lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> +}141514921344389340192607
    lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2406,8 +2409,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}5234965328129241283
    lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> +}5274765477949001132
    lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2426,8 +2429,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4434344745146071173
    lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> +}4654484545276411062
    lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2446,8 +2449,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4093873793834711019
    lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> +}408379422381482914
    lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2466,19 +2469,19 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}306290281286355906
    309298310297365829

    # Append text, number, text

    - - + - + - + - + - + - + - + - + +enough to accommodate the result, hence the long time.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::stringstream str; str << "test = " << k << " times";void AppendStreamStrNumStr(benchmark::State& state) { +
    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; @@ -2494,8 +2497,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}311533222931105431131111660
    std::string str = "test = " + std::to_string(k) + " times";void AppendStdStringStrNumStr(benchmark::State& state) { +}306734193033108331172511412
    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"; @@ -2509,8 +2512,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}437475412108812581723
    char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;void AppendSprintfStrNumStr(benchmark::State& state) { +}457474427105312261772
    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]; @@ -2526,8 +2529,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}138212001435274327975394
    std::string str = std::format("test = {} times", k);void AppendFormatStrNumStr(benchmark::State& state) { +}139312291487281028155285
    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); @@ -2541,8 +2544,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}11219481165191923702892
    lstringa<8> str; str.format("test = {} times", k);template<typename T> +}11409591206190423912834
    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) { @@ -2560,8 +2563,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } >> В simstr format с первого раза не помещается в такую строку без аллокации. In simstr format, the first time it doesn't fit into such a -string without allocation.126920191487197226244873
    lstringa<32> str; str.format("test = {} times", k);template<typename T> +string without allocation.135620021559200326774681
    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) { @@ -2578,8 +2581,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } } >> А в такую помещается. Используйте сразу буфера подходящего размера. -And it fits in this one. Use buffers of the appropriate size right away.9671714100599315134141
    lstringa<8> str = "test = " + k + " times";template<typename T> +And it fits in this one. Use buffers of the appropriate size right away.10021745105496214804054
    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) { @@ -2595,8 +2598,8 @@ void AppendSimStrStrNumStr(benchmark::State& state) { } } } >> Результат не помещается в SSO, возникает аллокация. -The result does not fit into SSO, an allocation occurs.278271289810877611
    lstringa<32> str = "test = " + k + " times";template<typename T> +The result does not fit into SSO, an allocation occurs.262263290807890555
    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) { @@ -2614,8 +2617,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.120120132129171374
    stringa str = "test = " + k + " times";template<typename T> +Once again, use appropriately sized buffers from the start.126119136134180339
    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) { @@ -2633,22 +2636,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.121124136118172554
    124118137126172511

    # Split text and convert to int

    - - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    std::string::find + substr + std::strtolvoid SplitConvertIntStdString(benchmark::State& state) { +
    std::string::find + substr + std::strtolvoid SplitConvertIntStdString(benchmark::State& state) { std::string numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2670,8 +2673,8 @@ enough to accommodate the result, hence the long time.291277272547555684
    ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { +}270277275558573660
    ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2687,8 +2690,8 @@ enough to accommodate the result, hence the long time.159153190167306247
    ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { +}156159192176304245
    ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2702,16 +2705,16 @@ enough to accommodate the result, hence the long time.201211194194212284
    207213196192218271

    # Replace symbols in text ~400 symbols

    - - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Naive (and wrong) replace symbols with std::string find + replacevoid ReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { +
    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" @@ -2768,8 +2771,8 @@ enough to accommodate the result, hence the long time.'b' and 'b'->'a'. But if the substitutions don't conflict, -it works quickly.826892793107612492994
    replace symbols with std::string find_first_of + replacevoid ReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +it works quickly.844916822112412062872
    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" @@ -2823,8 +2826,8 @@ it works quickly.826 >> Дальше уже правильные реализации, не зависящие от конфликтующих замен. Further, there are correct implementations that do not depend on -conflicting replacements.245021932390189921115651
    replace symbols with std::string_view find_first_of + copyvoid ReplaceSymbolsStdString(benchmark::State& state) { +conflicting replacements.264724282428194022005223
    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" @@ -2875,8 +2878,8 @@ conflicting replacements.245010731024960227225222910
    replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}112310261065235925442704
    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 >" @@ -2921,8 +2924,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}124714631320159116822879
    replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}127314081372165416632675
    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 >" @@ -2967,8 +2970,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}95911311012134914702251
    replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}106710831016148314422107
    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 >" @@ -3010,8 +3013,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}110410031057112912712457
    replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}102911281045112212932227
    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 >" @@ -3053,20 +3056,20 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}804876827118212092073
    887820837117012131872

    # Replace symbols in text ~40 symbols

    - - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Short Naive (and wrong) replace symbols with std::string find + replacevoid ShortReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { +
    Short Naive (and wrong) replace symbols with std::string find + replacevoid ShortReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3104,8 +3107,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}158167157299327498
    Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +}166177161308328472
    Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3143,8 +3146,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}311309318346407751
    Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { +}334324329364420718
    Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3181,8 +3184,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}154152150296339448
    Short replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}154141154305333433
    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 >" @@ -3213,8 +3216,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}166192175266309392
    Short replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}169198180269310378
    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 >" @@ -3245,8 +3248,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}174208178357387421
    Short replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}201186184366401391
    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 >" @@ -3274,8 +3277,8 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}127124136198250278
    Short replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}130126139202254271
    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 >" @@ -3303,20 +3306,20 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}138137129297363317
    145136132293334294

    # Replace All Str To Longer Size

    - - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    replace bb to ---- in std::string|64template<size_t Long> +
    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"; @@ -3348,8 +3351,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}152173154221239370
    replace bb to ---- in std::string|256template<size_t Long> +}151180154223242363
    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"; @@ -3381,8 +3384,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}5258445007377551187
    replace bb to ---- in std::string|512template<size_t Long> +}6038425047277911189
    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"; @@ -3414,8 +3417,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}10781199972136414672268
    replace bb to ---- in std::string|1024template<size_t Long> +}106012591000141814642210
    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"; @@ -3447,8 +3450,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}226424622261303430814800
    replace bb to ---- in std::string|2048template<size_t Long> +}233224222347305832044756
    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"; @@ -3480,8 +3483,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}5910629858877577785810945
    replace bb to ---- in lstringa<8>|64template<size_t N, size_t Count> +}5851634759698038808011109
    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"; @@ -3502,8 +3505,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}127129130214231285
    replace bb to ---- in lstringa<8>|256template<size_t N, size_t Count> +}127129138216225292
    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"; @@ -3524,8 +3527,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}425446494601653910
    replace bb to ---- in lstringa<8>|512template<size_t N, size_t Count> +}442444444606655913
    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"; @@ -3546,8 +3549,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}801831839100911151712
    replace bb to ---- in lstringa<8>|1024template<size_t N, size_t Count> +}831828899100211241685
    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"; @@ -3568,8 +3571,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}163916091731185120483116
    replace bb to ---- in lstringa<8>|2048template<size_t N, size_t Count> +}169816141751184820383100
    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"; @@ -3590,8 +3593,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}307730583350346838076042
    replace bb to ---- by init stringa|64template<size_t Count> +}325631273301355639646119
    replace bb to ---- by init stringa|64template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3611,8 +3614,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}92.589.482.3161197170
    replace bb to ---- by init stringa|256template<size_t Count> +}91.590.992.8165196187
    replace bb to ---- by init stringa|256template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3632,8 +3635,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}293283276362448586
    replace bb to ---- by init stringa|512template<size_t Count> +}306308287366456580
    replace bb to ---- by init stringa|512template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3653,8 +3656,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}68767367577310491275
    replace bb to ---- by init stringa|1024template<size_t Count> +}71870970579310641341
    replace bb to ---- by init stringa|1024template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3674,8 +3677,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}158114321510157521722632
    replace bb to ---- by init stringa|2048template<size_t Count> +}162913921550162621612813
    replace bb to ---- by init stringa|2048template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3695,28 +3698,28 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}316728543059287643735701
    340028103106304744815550

    # Replace All Str To Same Size

    - - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    replace bb to -- in std::string|64template<size_t Long> +
    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"; @@ -3747,8 +3750,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}112118120178196264
    replace bb to -- in std::string|256template<size_t Long> +}114130131187198243
    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"; @@ -3779,8 +3782,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}376413365459503846
    replace bb to -- in std::string|512template<size_t Long> +}390427381469520814
    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"; @@ -3811,8 +3814,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}7208257728288981556
    replace bb to -- in std::string|1024template<size_t Long> +}7438517438379281542
    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"; @@ -3843,8 +3846,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}143815431404154917312961
    replace bb to -- in std::string|2048template<size_t Long> +}147716031483161217502825
    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"; @@ -3875,8 +3878,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}283931402726307234335794
    replace bb to -- in lstringa<8>|64template<size_t N, size_t Long> +}292932302798313134025545
    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"; @@ -3896,8 +3899,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}93.288.190.0173185198
    replace bb to -- in lstringa<8>|256template<size_t N, size_t Long> +}89.290.891.5175186192
    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"; @@ -3917,8 +3920,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}297282295426442663
    replace bb to -- in lstringa<8>|512template<size_t N, size_t Long> +}295294302427442636
    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"; @@ -3938,8 +3941,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}5195265407277651186
    replace bb to -- in lstringa<8>|1024template<size_t N, size_t Long> +}5535515397237711150
    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"; @@ -3959,8 +3962,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}108110721086138114472250
    replace bb to -- in lstringa<8>|2048template<size_t N, size_t Long> +}112210661121137314572296
    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"; @@ -3980,8 +3983,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}211720232111265328264373
    replace bb to -- by init stringa|64template<size_t Count> +}208822422174268528004237
    replace bb to -- by init stringa|64template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4005,8 +4008,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}75.575.375.9150163144
    replace bb to -- by init stringa|256template<size_t Count> +}73.983.0112153165136
    replace bb to -- by init stringa|256template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4030,8 +4033,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}243233241329373472
    replace bb to -- by init stringa|512template<size_t Count> +}240237262322367464
    replace bb to -- by init stringa|512template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4055,8 +4058,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}429428457519620894
    replace bb to -- by init stringa|1024template<size_t Count> +}434435479520632838
    replace bb to -- by init stringa|1024template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4080,8 +4083,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}90984692098711011701
    replace bb to -- by init stringa|2048template<size_t Count> +}89885195495411081620
    replace bb to -- by init stringa|2048template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4105,28 +4108,28 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}168716541760174421142793
    170916581809180621182774

    # Hash Map insert and find

    - - + - + - + +We insert std::string and look for std::string_view
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    hashStrMapA<size_t> emplace & find stringa;void HashMapSimStr(benchmark::State& state) { +
    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++) { @@ -4151,8 +4154,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.371913936775573672616386565643731443509082
    std::unordered_map<std::string, size_t> emplace & find std::string;void HashMapStdStr(benchmark::State& state) { +hashStrMapA, and then search for them in it.375447337800263843202406970244796573271665
    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++) { @@ -4175,8 +4178,8 @@ hashStrMapA, and then search for them in it. >> То же самое c std::string и std::unordered_map -Same thing with std::string and std::unordered_map354609935172103585692570655557959063684923
    hashStrMapA<size_t> emplace & find ssa;void HashMapSimSsa(benchmark::State& state) { +Same thing with std::string and std::unordered_map358456937069583689411591352360658323592775
    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++) { @@ -4200,8 +4203,8 @@ Same thing with std::string and std::unordered_map >> Теперь вставляем stringa, а ищем ssa -Now we insert stringa and search for ssa359697836306653715466346280739171533369803
    std::unordered_map<std::string, size_t> emplace & find std::string_view;void HashMapStdStrView(benchmark::State& state) { +Now we insert stringa and search for ssa371865238156003848145361949541273573244867
    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++) { @@ -4225,17 +4228,17 @@ Now we insert stringa and search for ssa >> Вставляем std::string, а ищем std::string_view -We insert std::string and look for std::string_view427199540420573948260645350763411434260216
    419660941341554076242649726865921674041903

    # Build Full Func Name

    - - + - + - + - + +to be written in a single string, but is slightly slower in execution time.
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    Build func full name std::string;std::string build_full_name_std() const { +
    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; @@ -4272,8 +4275,8 @@ We insert std::string and look for std::string_view652991733154315743466
    Build func full name std::string 1;std::string build_full_name_std1() const { +return values. The algorithm uses std::string.6731021738150716223162
    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 + "("; @@ -4304,8 +4307,8 @@ return values. The algorithm uses std::string. >> Почти тот же алгоритм, но несколько последовательных += к строке заменены на одно += + + +. Almost the same algorithm, but several consecutive -+= to a string are replaced with a single += + + +.722997789152716383613
    Build func full name std::stream;std::string build_full_name_stream() const { ++= to a string are replaced with a single += + + +.7681021820151516973363
    Build func full name std::stream;std::string build_full_name_stream() const { std::ostringstream str; if (has_ret_type_resolver) { str << "any"; @@ -4338,8 +4341,8 @@ Almost the same algorithm, but several consecutive str << ")"; return str.str(); } >> Строим имя функции через std::ostringstream и << -We construct the function name through std::ostringstream and <<2537283224908122977113169
    Build func full name stringa;stringa build_full_name() const { +We construct the function name through std::ostringstream and <<3165298426108296969811876
    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; @@ -4356,8 +4359,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.4834434497658551567
    Build func full name stringa 1;stringa build_full_name1() const { +Parameter information is appended to the current line.4724714807498671461
    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; @@ -4374,18 +4377,18 @@ Parameter information is appended to the current line.5995975308529881808
    6166485648789961910

    # Make Upper

    - - + +}
    Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15Xeon E5-2682 v4, Windows 10, Clang-22Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-22
    To upper case std::wstringvoid UpperCaseStd(benchmark::State& state) { +
    To upper case std::wstringvoid UpperCaseStd(benchmark::State& state) { static const auto& loc = std::locale("en_US.utf8"); for (auto _: state) { @@ -4403,8 +4406,8 @@ to be written in a single string, but is slightly slower in execution time.15016716814051404226
    To upper case lstringw<15>void UpperCaseSim(benchmark::State& state) { +}16217517514571438204
    To upper case lstringw<15>void UpperCaseSim(benchmark::State& state) { for (auto _: state) { lstringw<15> test = L"TestПриветTest"; benchmark::DoNotOptimize(test); @@ -4418,8 +4421,8 @@ to be written in a single string, but is slightly slower in execution time.39.840.339.336.247.968.2
    43.738.540.441.044.463.1
    \ No newline at end of file diff --git a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt index 8365987..01cf681 100644 --- a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt +++ b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler Clang 22.0.0 -2026-02-27T22:30:05+03:00 +2026-03-22T13:18:22+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,980 +10,980 @@ CPU Caches: L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.03, 0.01, 0.00 +Load Average: 0.20, 0.67, 0.53 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. -------------------------------------------------------------------------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 165 ns 165 ns 4 -Concat email std::format_median 165 ns 165 ns 4 -Concat email std::format_stddev 7.11 ns 7.11 ns 4 -Concat email std::format_cv 4.31 % 4.31 % 4 -Concat email std::stringstream_mean 325 ns 325 ns 4 -Concat email std::stringstream_median 325 ns 325 ns 4 -Concat email std::stringstream_stddev 10.1 ns 10.1 ns 4 -Concat email std::stringstream_cv 3.09 % 3.09 % 4 -Concat email stringzilla append_mean 136 ns 136 ns 4 -Concat email stringzilla append_median 134 ns 134 ns 4 -Concat email stringzilla append_stddev 3.86 ns 3.86 ns 4 -Concat email stringzilla append_cv 2.84 % 2.84 % 4 -Concat email stringzilla concat_mean 54.8 ns 54.8 ns 4 -Concat email stringzilla concat_median 54.4 ns 54.4 ns 4 -Concat email stringzilla concat_stddev 2.05 ns 2.05 ns 4 -Concat email stringzilla concat_cv 3.74 % 3.74 % 4 -Concat email std::string append_mean 73.7 ns 73.7 ns 4 -Concat email std::string append_median 73.6 ns 73.6 ns 4 -Concat email std::string append_stddev 2.36 ns 2.36 ns 4 -Concat email std::string append_cv 3.21 % 3.20 % 4 -Concat email std::string by strexpr_mean 44.8 ns 44.8 ns 4 -Concat email std::string by strexpr_median 43.9 ns 43.9 ns 4 -Concat email std::string by strexpr_stddev 2.21 ns 2.21 ns 4 -Concat email std::string by strexpr_cv 4.93 % 4.93 % 4 -Concat email stringa_mean 40.5 ns 40.5 ns 4 -Concat email stringa_median 40.6 ns 40.6 ns 4 -Concat email stringa_stddev 1.17 ns 1.17 ns 4 -Concat email stringa_cv 2.89 % 2.89 % 4 +Concat email std::format_mean 167 ns 167 ns 4 +Concat email std::format_median 166 ns 166 ns 4 +Concat email std::format_stddev 2.04 ns 2.04 ns 4 +Concat email std::format_cv 1.22 % 1.22 % 4 +Concat email std::stringstream_mean 379 ns 379 ns 4 +Concat email std::stringstream_median 379 ns 379 ns 4 +Concat email std::stringstream_stddev 2.80 ns 2.80 ns 4 +Concat email std::stringstream_cv 0.74 % 0.74 % 4 +Concat email stringzilla append_mean 143 ns 143 ns 4 +Concat email stringzilla append_median 142 ns 142 ns 4 +Concat email stringzilla append_stddev 4.40 ns 4.40 ns 4 +Concat email stringzilla append_cv 3.07 % 3.07 % 4 +Concat email stringzilla concat_mean 54.6 ns 54.6 ns 4 +Concat email stringzilla concat_median 54.3 ns 54.3 ns 4 +Concat email stringzilla concat_stddev 1.36 ns 1.36 ns 4 +Concat email stringzilla concat_cv 2.50 % 2.50 % 4 +Concat email std::string append_mean 73.9 ns 73.9 ns 4 +Concat email std::string append_median 74.2 ns 74.2 ns 4 +Concat email std::string append_stddev 0.919 ns 0.919 ns 4 +Concat email std::string append_cv 1.24 % 1.24 % 4 +Concat email std::string by strexpr_mean 46.8 ns 46.8 ns 4 +Concat email std::string by strexpr_median 47.4 ns 47.4 ns 4 +Concat email std::string by strexpr_stddev 1.39 ns 1.39 ns 4 +Concat email std::string by strexpr_cv 2.96 % 2.96 % 4 +Concat email stringa_mean 39.1 ns 39.1 ns 4 +Concat email stringa_median 38.9 ns 38.9 ns 4 +Concat email stringa_stddev 0.543 ns 0.543 ns 4 +Concat email stringa_cv 1.39 % 1.39 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 216 ns 216 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 1.76 ns 1.76 ns 4 -Concat std::string and number by std to std::string_cv 0.82 % 0.82 % 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 104 ns 104 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 2.09 ns 2.09 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.01 % 2.01 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 65.6 ns 65.6 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 65.4 ns 65.4 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.33 % 2.33 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 71.2 ns 71.2 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 71.0 ns 71.0 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 2.73 ns 2.73 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 3.84 % 3.84 % 4 +Concat std::string and number by std to std::string_mean 223 ns 223 ns 4 +Concat std::string and number by std to std::string_median 223 ns 223 ns 4 +Concat std::string and number by std to std::string_stddev 3.04 ns 3.04 ns 4 +Concat std::string and number by std to std::string_cv 1.36 % 1.36 % 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 106 ns 106 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 2.70 ns 2.70 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.56 % 2.56 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 64.9 ns 64.9 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 64.8 ns 64.8 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 0.353 ns 0.353 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 0.54 % 0.54 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 72.3 ns 72.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 71.9 ns 71.9 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 1.59 ns 1.59 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 2.20 % 2.20 % 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 703 ns 703 ns 4 -Concat std::string and format hex number and literal to std::string_median 712 ns 712 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 37.5 ns 37.5 ns 4 -Concat std::string and format hex number and literal to std::string_cv 5.34 % 5.34 % 4 -std::format std::string and hex number by literal to std::string_mean 835 ns 835 ns 4 -std::format std::string and hex number by literal to std::string_median 832 ns 832 ns 4 -std::format std::string and hex number by literal to std::string_stddev 42.1 ns 42.1 ns 4 -std::format std::string and hex number by literal to std::string_cv 5.05 % 5.05 % 4 -Concat std::string and std::to_chars and string to std::string_mean 207 ns 207 ns 4 -Concat std::string and std::to_chars and string to std::string_median 205 ns 205 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 5.19 ns 5.19 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 2.51 % 2.51 % 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 4.04 ns 4.04 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 3.03 % 3.03 % 4 +Concat std::string and format hex number and literal to std::string_mean 696 ns 696 ns 4 +Concat std::string and format hex number and literal to std::string_median 699 ns 699 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 9.35 ns 9.34 ns 4 +Concat std::string and format hex number and literal to std::string_cv 1.34 % 1.34 % 4 +std::format std::string and hex number by literal to std::string_mean 828 ns 828 ns 4 +std::format std::string and hex number by literal to std::string_median 827 ns 827 ns 4 +std::format std::string and hex number by literal to std::string_stddev 25.8 ns 25.8 ns 4 +std::format std::string and hex number by literal to std::string_cv 3.11 % 3.11 % 4 +Concat std::string and std::to_chars and string to std::string_mean 210 ns 210 ns 4 +Concat std::string and std::to_chars and string to std::string_median 210 ns 210 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.60 % 1.60 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 134 ns 134 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 134 ns 134 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.42 ns 1.42 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 1.06 % 1.06 % 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 116 ns 116 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.14 ns 2.14 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.83 % 1.83 % 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 123 ns 123 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.97 ns 3.97 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.20 % 3.20 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 182 ns 182 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 182 ns 182 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.55 ns 1.55 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.85 % 0.85 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 314 ns 314 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 313 ns 313 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.94 ns 3.94 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.26 % 1.26 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 118 ns 118 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.602 ns 0.602 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.51 % 0.51 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 128 ns 128 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 4.95 ns 4.95 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 3.87 % 3.87 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 193 ns 193 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 187 ns 187 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 13.1 ns 13.1 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 6.78 % 6.78 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 333 ns 333 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 324 ns 324 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 29.5 ns 29.5 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 8.88 % 8.88 % 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 265 ns 265 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 265 ns 265 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.25 ns 4.25 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.60 % 1.60 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 350 ns 350 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 348 ns 348 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 7.82 ns 7.82 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.24 % 2.24 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 628 ns 628 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 616 ns 616 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 28.7 ns 28.7 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 4.58 % 4.58 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 703 ns 703 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 707 ns 707 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 22.9 ns 22.9 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.26 % 3.26 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 873 ns 873 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 871 ns 871 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 61.4 ns 61.4 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 7.03 % 7.03 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 982 ns 982 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 986 ns 986 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 43.1 ns 43.1 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 4.39 % 4.39 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 975 ns 975 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 974 ns 974 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 38.5 ns 38.5 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 3.95 % 3.95 % 4 -std::format with std::formatted_size_mean 1818 ns 1818 ns 4 -std::format with std::formatted_size_median 1810 ns 1810 ns 4 -std::format with std::formatted_size_stddev 59.9 ns 59.9 ns 4 -std::format with std::formatted_size_cv 3.30 % 3.30 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2373 ns 2373 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2386 ns 2386 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 80.8 ns 80.8 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.40 % 3.40 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 271 ns 271 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 271 ns 271 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 1.20 ns 1.20 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 0.44 % 0.44 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 357 ns 357 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 357 ns 357 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 1.91 ns 1.91 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 0.54 % 0.54 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 621 ns 621 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 607 ns 607 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 47.0 ns 47.0 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 7.56 % 7.56 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 723 ns 723 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 722 ns 722 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 12.0 ns 12.0 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.66 % 1.66 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 842 ns 842 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 840 ns 840 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 27.2 ns 27.2 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.22 % 3.22 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1017 ns 1017 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1011 ns 1011 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 11.7 ns 11.7 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.15 % 1.15 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 999 ns 999 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 994 ns 994 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 24.6 ns 24.6 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 2.46 % 2.46 % 4 +std::format with std::formatted_size_mean 1867 ns 1867 ns 4 +std::format with std::formatted_size_median 1881 ns 1881 ns 4 +std::format with std::formatted_size_stddev 33.7 ns 33.7 ns 4 +std::format with std::formatted_size_cv 1.80 % 1.80 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2074 ns 2074 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2074 ns 2074 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 6.88 ns 6.87 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 0.33 % 0.33 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 47.2 ns 47.2 ns 4 -Concat std::string by std to std::string_median 46.8 ns 46.8 ns 4 -Concat std::string by std to std::string_stddev 1.29 ns 1.29 ns 4 -Concat std::string by std to std::string_cv 2.72 % 2.72 % 4 -Concat std::string by StrExpr to std::string_mean 33.0 ns 33.0 ns 4 -Concat std::string by StrExpr to std::string_median 32.5 ns 32.5 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.54 ns 1.54 ns 4 -Concat std::string by StrExpr to std::string_cv 4.67 % 4.67 % 4 -Concat stringa by StrExpr to stringa_mean 29.2 ns 29.2 ns 4 -Concat stringa by StrExpr to stringa_median 29.4 ns 29.4 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.491 ns 0.491 ns 4 -Concat stringa by StrExpr to stringa_cv 1.68 % 1.68 % 4 +Concat std::string by std to std::string_mean 51.7 ns 51.7 ns 4 +Concat std::string by std to std::string_median 51.6 ns 51.6 ns 4 +Concat std::string by std to std::string_stddev 0.623 ns 0.623 ns 4 +Concat std::string by std to std::string_cv 1.21 % 1.21 % 4 +Concat std::string by StrExpr to std::string_mean 36.9 ns 36.9 ns 4 +Concat std::string by StrExpr to std::string_median 36.8 ns 36.8 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.272 ns 0.272 ns 4 +Concat std::string by StrExpr to std::string_cv 0.74 % 0.74 % 4 +Concat stringa by StrExpr to stringa_mean 31.6 ns 31.6 ns 4 +Concat stringa by StrExpr to stringa_median 31.8 ns 31.8 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.842 ns 0.842 ns 4 +Concat stringa by StrExpr to stringa_cv 2.66 % 2.66 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 110 ns 110 ns 4 -Find concat three std::string_median 109 ns 109 ns 4 -Find concat three std::string_stddev 4.78 ns 4.78 ns 4 -Find concat three std::string_cv 4.35 % 4.35 % 4 -Find concat three strexpr_mean 52.6 ns 52.6 ns 4 -Find concat three strexpr_median 51.2 ns 51.2 ns 4 -Find concat three strexpr_stddev 3.81 ns 3.81 ns 4 -Find concat three strexpr_cv 7.23 % 7.23 % 4 -Find concat three simstr_mean 18.8 ns 18.8 ns 4 +Find concat three std::string_mean 112 ns 112 ns 4 +Find concat three std::string_median 112 ns 112 ns 4 +Find concat three std::string_stddev 2.70 ns 2.70 ns 4 +Find concat three std::string_cv 2.41 % 2.41 % 4 +Find concat three strexpr_mean 52.4 ns 52.4 ns 4 +Find concat three strexpr_median 52.6 ns 52.6 ns 4 +Find concat three strexpr_stddev 2.35 ns 2.35 ns 4 +Find concat three strexpr_cv 4.48 % 4.48 % 4 +Find concat three simstr_mean 18.9 ns 18.9 ns 4 Find concat three simstr_median 18.8 ns 18.8 ns 4 -Find concat three simstr_stddev 0.250 ns 0.250 ns 4 -Find concat three simstr_cv 1.33 % 1.33 % 4 -Find concat three stringzilla string_mean 157 ns 157 ns 4 -Find concat three stringzilla string_median 160 ns 160 ns 4 -Find concat three stringzilla string_stddev 7.16 ns 7.16 ns 4 -Find concat three stringzilla string_cv 4.56 % 4.56 % 4 +Find concat three simstr_stddev 0.278 ns 0.278 ns 4 +Find concat three simstr_cv 1.47 % 1.47 % 4 +Find concat three stringzilla string_mean 153 ns 153 ns 4 +Find concat three stringzilla string_median 153 ns 153 ns 4 +Find concat three stringzilla string_stddev 1.37 ns 1.37 ns 4 +Find concat three stringzilla string_cv 0.90 % 0.90 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 7.23 ns 7.23 ns 4 -BuildTypeNameStr 0/0_median 7.14 ns 7.14 ns 4 -BuildTypeNameStr 0/0_stddev 0.249 ns 0.249 ns 4 -BuildTypeNameStr 0/0_cv 3.44 % 3.44 % 4 -BuildTypeNameExp 0/0_mean 6.61 ns 6.61 ns 4 -BuildTypeNameExp 0/0_median 6.59 ns 6.59 ns 4 -BuildTypeNameExp 0/0_stddev 0.302 ns 0.302 ns 4 -BuildTypeNameExp 0/0_cv 4.56 % 4.56 % 4 -BuildTypeNameSim 0/0_mean 4.20 ns 4.20 ns 4 -BuildTypeNameSim 0/0_median 4.16 ns 4.16 ns 4 -BuildTypeNameSim 0/0_stddev 0.136 ns 0.136 ns 4 -BuildTypeNameSim 0/0_cv 3.25 % 3.25 % 4 -BuildTypeNameStr 10/10_mean 59.7 ns 59.7 ns 4 -BuildTypeNameStr 10/10_median 59.7 ns 59.7 ns 4 -BuildTypeNameStr 10/10_stddev 2.44 ns 2.44 ns 4 -BuildTypeNameStr 10/10_cv 4.08 % 4.08 % 4 -BuildTypeNameExp 10/10_mean 30.9 ns 30.9 ns 4 -BuildTypeNameExp 10/10_median 30.5 ns 30.5 ns 4 -BuildTypeNameExp 10/10_stddev 1.75 ns 1.75 ns 4 -BuildTypeNameExp 10/10_cv 5.67 % 5.67 % 4 -BuildTypeNameSim 10/10_mean 23.9 ns 23.9 ns 4 -BuildTypeNameSim 10/10_median 23.8 ns 23.8 ns 4 -BuildTypeNameSim 10/10_stddev 1.51 ns 1.51 ns 4 -BuildTypeNameSim 10/10_cv 6.32 % 6.32 % 4 +BuildTypeNameStr 0/0_mean 7.58 ns 7.58 ns 4 +BuildTypeNameStr 0/0_median 7.65 ns 7.65 ns 4 +BuildTypeNameStr 0/0_stddev 0.170 ns 0.170 ns 4 +BuildTypeNameStr 0/0_cv 2.25 % 2.25 % 4 +BuildTypeNameExp 0/0_mean 6.94 ns 6.94 ns 4 +BuildTypeNameExp 0/0_median 6.94 ns 6.94 ns 4 +BuildTypeNameExp 0/0_stddev 0.141 ns 0.141 ns 4 +BuildTypeNameExp 0/0_cv 2.03 % 2.03 % 4 +BuildTypeNameSim 0/0_mean 5.03 ns 5.03 ns 4 +BuildTypeNameSim 0/0_median 5.02 ns 5.02 ns 4 +BuildTypeNameSim 0/0_stddev 0.096 ns 0.096 ns 4 +BuildTypeNameSim 0/0_cv 1.91 % 1.91 % 4 +BuildTypeNameStr 10/10_mean 59.1 ns 59.1 ns 4 +BuildTypeNameStr 10/10_median 59.0 ns 59.0 ns 4 +BuildTypeNameStr 10/10_stddev 2.58 ns 2.58 ns 4 +BuildTypeNameStr 10/10_cv 4.37 % 4.37 % 4 +BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4 +BuildTypeNameExp 10/10_median 31.1 ns 31.1 ns 4 +BuildTypeNameExp 10/10_stddev 0.361 ns 0.361 ns 4 +BuildTypeNameExp 10/10_cv 1.16 % 1.16 % 4 +BuildTypeNameSim 10/10_mean 23.4 ns 23.4 ns 4 +BuildTypeNameSim 10/10_median 23.5 ns 23.5 ns 4 +BuildTypeNameSim 10/10_stddev 0.470 ns 0.470 ns 4 +BuildTypeNameSim 10/10_cv 2.01 % 2.01 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 208 ns 208 ns 4 -Concat with replace str_median 208 ns 208 ns 4 -Concat with replace str_stddev 5.65 ns 5.65 ns 4 -Concat with replace str_cv 2.72 % 2.72 % 4 -Concat with replace exp_mean 158 ns 158 ns 4 -Concat with replace exp_median 158 ns 158 ns 4 -Concat with replace exp_stddev 5.03 ns 5.03 ns 4 -Concat with replace exp_cv 3.18 % 3.18 % 4 +Concat with replace str_mean 210 ns 210 ns 4 +Concat with replace str_median 209 ns 209 ns 4 +Concat with replace str_stddev 4.51 ns 4.51 ns 4 +Concat with replace str_cv 2.14 % 2.14 % 4 +Concat with replace exp_mean 154 ns 154 ns 4 +Concat with replace exp_median 154 ns 154 ns 4 +Concat with replace exp_stddev 1.87 ns 1.87 ns 4 +Concat with replace exp_cv 1.22 % 1.22 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.14 ns 1.14 ns 4 +std::string e;_mean 1.13 ns 1.13 ns 4 std::string e;_median 1.14 ns 1.14 ns 4 -std::string e;_stddev 0.040 ns 0.040 ns 4 -std::string e;_cv 3.52 % 3.52 % 4 -std::string_view e;_mean 0.389 ns 0.389 ns 4 -std::string_view e;_median 0.389 ns 0.389 ns 4 -std::string_view e;_stddev 0.012 ns 0.012 ns 4 -std::string_view e;_cv 3.04 % 3.04 % 4 -ssa e;_mean 0.370 ns 0.370 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 2.39 % 2.39 % 4 -stringa e;_mean 0.770 ns 0.770 ns 4 -stringa e;_median 0.767 ns 0.767 ns 4 -stringa e;_stddev 0.017 ns 0.017 ns 4 -stringa e;_cv 2.18 % 2.18 % 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.024 ns 0.024 ns 4 -lstringa<20> e;_cv 2.14 % 2.14 % 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.018 ns 0.018 ns 4 -lstringa<40> e;_cv 1.62 % 1.62 % 4 +std::string e;_stddev 0.019 ns 0.019 ns 4 +std::string e;_cv 1.68 % 1.68 % 4 +std::string_view e;_mean 0.377 ns 0.377 ns 4 +std::string_view e;_median 0.377 ns 0.377 ns 4 +std::string_view e;_stddev 0.006 ns 0.006 ns 4 +std::string_view e;_cv 1.57 % 1.57 % 4 +ssa e;_mean 0.372 ns 0.372 ns 4 +ssa e;_median 0.371 ns 0.371 ns 4 +ssa e;_stddev 0.005 ns 0.005 ns 4 +ssa e;_cv 1.34 % 1.34 % 4 +stringa e;_mean 0.763 ns 0.763 ns 4 +stringa e;_median 0.759 ns 0.759 ns 4 +stringa e;_stddev 0.012 ns 0.012 ns 4 +stringa e;_cv 1.61 % 1.61 % 4 +lstringa<20> e;_mean 1.14 ns 1.14 ns 4 +lstringa<20> e;_median 1.13 ns 1.13 ns 4 +lstringa<20> e;_stddev 0.015 ns 0.015 ns 4 +lstringa<20> e;_cv 1.36 % 1.36 % 4 +lstringa<40> e;_mean 1.14 ns 1.14 ns 4 +lstringa<40> e;_median 1.12 ns 1.12 ns 4 +lstringa<40> e;_stddev 0.026 ns 0.026 ns 4 +lstringa<40> e;_cv 2.27 % 2.27 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.95 ns 1.95 ns 4 -std::string e = "Test text";_median 1.97 ns 1.97 ns 4 -std::string e = "Test text";_stddev 0.076 ns 0.076 ns 4 -std::string e = "Test text";_cv 3.90 % 3.89 % 4 -std::string_view e = "Test text";_mean 0.741 ns 0.741 ns 4 -std::string_view e = "Test text";_median 0.739 ns 0.739 ns 4 -std::string_view e = "Test text";_stddev 0.013 ns 0.013 ns 4 -std::string_view e = "Test text";_cv 1.80 % 1.80 % 4 -ssa e = "Test text";_mean 0.374 ns 0.374 ns 4 -ssa e = "Test text";_median 0.371 ns 0.371 ns 4 -ssa e = "Test text";_stddev 0.007 ns 0.007 ns 4 -ssa e = "Test text";_cv 1.90 % 1.90 % 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.035 ns 0.035 ns 4 -stringa e = "Test text";_cv 3.09 % 3.09 % 4 -lstringa<20> e = "Test text";_mean 1.93 ns 1.93 ns 4 -lstringa<20> e = "Test text";_median 1.95 ns 1.95 ns 4 -lstringa<20> e = "Test text";_stddev 0.052 ns 0.052 ns 4 -lstringa<20> e = "Test text";_cv 2.68 % 2.68 % 4 -lstringa<40> e = "Test text";_mean 1.89 ns 1.89 ns 4 -lstringa<40> e = "Test text";_median 1.88 ns 1.88 ns 4 -lstringa<40> e = "Test text";_stddev 0.054 ns 0.054 ns 4 -lstringa<40> e = "Test text";_cv 2.85 % 2.85 % 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.027 ns 0.027 ns 4 +std::string e = "Test text";_cv 1.46 % 1.46 % 4 +std::string_view e = "Test text";_mean 0.761 ns 0.761 ns 4 +std::string_view e = "Test text";_median 0.765 ns 0.765 ns 4 +std::string_view e = "Test text";_stddev 0.010 ns 0.010 ns 4 +std::string_view e = "Test text";_cv 1.36 % 1.36 % 4 +ssa e = "Test text";_mean 0.382 ns 0.382 ns 4 +ssa e = "Test text";_median 0.382 ns 0.382 ns 4 +ssa e = "Test text";_stddev 0.005 ns 0.005 ns 4 +ssa e = "Test text";_cv 1.41 % 1.41 % 4 +stringa e = "Test text";_mean 1.15 ns 1.15 ns 4 +stringa e = "Test text";_median 1.14 ns 1.14 ns 4 +stringa e = "Test text";_stddev 0.029 ns 0.029 ns 4 +stringa e = "Test text";_cv 2.50 % 2.50 % 4 +lstringa<20> e = "Test text";_mean 1.90 ns 1.90 ns 4 +lstringa<20> e = "Test text";_median 1.90 ns 1.90 ns 4 +lstringa<20> e = "Test text";_stddev 0.045 ns 0.045 ns 4 +lstringa<20> e = "Test text";_cv 2.37 % 2.36 % 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.046 ns 0.046 ns 4 +lstringa<40> e = "Test text";_cv 2.46 % 2.46 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4 -std::string e = "123456789012345678901234567890";_median 20.1 ns 20.1 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.726 ns 0.726 ns 4 -std::string e = "123456789012345678901234567890";_cv 3.60 % 3.60 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.738 ns 0.738 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.741 ns 0.741 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.010 ns 0.010 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.36 % 1.36 % 4 -ssa e = "123456789012345678901234567890";_mean 0.369 ns 0.369 ns 4 -ssa e = "123456789012345678901234567890";_median 0.368 ns 0.368 ns 4 +std::string e = "123456789012345678901234567890";_mean 19.5 ns 19.5 ns 4 +std::string e = "123456789012345678901234567890";_median 19.3 ns 19.3 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.398 ns 0.398 ns 4 +std::string e = "123456789012345678901234567890";_cv 2.04 % 2.04 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.763 ns 0.763 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.764 ns 0.764 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.008 ns 0.008 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 1.10 % 1.10 % 4 +ssa e = "123456789012345678901234567890";_mean 0.375 ns 0.375 ns 4 +ssa e = "123456789012345678901234567890";_median 0.374 ns 0.374 ns 4 ssa e = "123456789012345678901234567890";_stddev 0.005 ns 0.005 ns 4 -ssa e = "123456789012345678901234567890";_cv 1.39 % 1.39 % 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.013 ns 0.013 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.19 % 1.19 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 20.5 ns 20.5 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 20.5 ns 20.5 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.616 ns 0.616 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 3.00 % 3.00 % 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.039 ns 0.039 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.54 % 1.54 % 4 +ssa e = "123456789012345678901234567890";_cv 1.45 % 1.45 % 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.024 ns 0.024 ns 4 +stringa e = "123456789012345678901234567890";_cv 2.13 % 2.13 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 18.0 ns 18.0 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 18.0 ns 18.0 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.581 ns 0.581 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 3.22 % 3.22 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 2.68 ns 2.68 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 2.67 ns 2.67 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.020 ns 0.020 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 0.73 % 0.73 % 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.69 ns 5.69 ns 4 -std::string e = "Test text"; auto c{e};_median 5.67 ns 5.67 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.121 ns 0.121 ns 4 -std::string e = "Test text"; auto c{e};_cv 2.13 % 2.13 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.372 ns 0.372 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.370 ns 0.370 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.007 ns 0.007 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 1.96 % 1.96 % 4 -ssa e = "Test text"; auto c{e};_mean 0.377 ns 0.377 ns 4 -ssa e = "Test text"; auto c{e};_median 0.376 ns 0.376 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.009 ns 0.009 ns 4 -ssa e = "Test text"; auto c{e};_cv 2.45 % 2.45 % 4 +std::string e = "Test text"; auto c{e};_mean 5.77 ns 5.77 ns 4 +std::string e = "Test text"; auto c{e};_median 5.75 ns 5.75 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.095 ns 0.095 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.64 % 1.64 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.388 ns 0.388 ns 4 +std::string_view e = "Test text"; auto c{e};_median 0.379 ns 0.379 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.022 ns 0.022 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 5.79 % 5.79 % 4 +ssa e = "Test text"; auto c{e};_mean 0.380 ns 0.380 ns 4 +ssa e = "Test text"; auto c{e};_median 0.382 ns 0.382 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.43 % 1.43 % 4 stringa e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4 stringa e = "Test text"; auto c{e};_median 1.12 ns 1.12 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.73 % 1.73 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.11 ns 1.11 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.038 ns 0.038 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 3.40 % 3.40 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.14 ns 1.14 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.14 ns 1.14 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.013 ns 0.013 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.11 % 1.11 % 4 +stringa e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4 +stringa e = "Test text"; auto c{e};_cv 1.46 % 1.46 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 1.14 ns 1.14 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.024 ns 0.024 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 2.13 % 2.13 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 1.15 ns 1.15 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.19 % 1.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 19.8 ns 19.8 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 19.8 ns 19.8 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.619 ns 0.619 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.12 % 3.12 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.738 ns 0.738 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.736 ns 0.736 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.010 ns 0.010 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.36 % 1.36 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.373 ns 0.373 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.371 ns 0.371 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.007 ns 0.007 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.91 % 1.91 % 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.010 ns 0.010 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.89 % 0.89 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 20.4 ns 20.4 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.0 ns 20.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.914 ns 0.914 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 4.48 % 4.48 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.74 ns 4.74 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.77 ns 4.77 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.121 ns 0.121 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.55 % 2.55 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 20.2 ns 20.2 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 20.2 ns 20.2 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.353 ns 0.353 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.75 % 1.75 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.758 ns 0.758 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.754 ns 0.755 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.19 % 1.19 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.374 ns 0.374 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.374 ns 0.374 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.002 ns 0.002 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.58 % 0.59 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.14 ns 1.14 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 1.14 ns 1.14 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.014 ns 0.014 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.23 % 1.23 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 19.1 ns 19.1 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 19.1 ns 19.1 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.086 ns 0.086 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.45 % 0.45 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.98 ns 4.98 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.03 ns 5.03 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.146 ns 0.146 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.94 % 2.94 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 98.1 ns 98.1 ns 4 -sz::string::find;_median 97.6 ns 97.6 ns 4 -sz::string::find;_stddev 2.02 ns 2.02 ns 4 -sz::string::find;_cv 2.06 % 2.06 % 4 -std::string::find;_mean 7.04 ns 7.04 ns 4 -std::string::find;_median 7.02 ns 7.02 ns 4 -std::string::find;_stddev 0.087 ns 0.087 ns 4 -std::string::find;_cv 1.24 % 1.24 % 4 -std::string_view::find;_mean 7.15 ns 7.15 ns 4 -std::string_view::find;_median 7.03 ns 7.03 ns 4 -std::string_view::find;_stddev 0.254 ns 0.254 ns 4 -std::string_view::find;_cv 3.56 % 3.56 % 4 -ssa::find;_mean 7.45 ns 7.45 ns 4 -ssa::find;_median 7.44 ns 7.44 ns 4 -ssa::find;_stddev 0.156 ns 0.156 ns 4 -ssa::find;_cv 2.09 % 2.09 % 4 -stringa::find;_mean 8.20 ns 8.20 ns 4 -stringa::find;_median 8.20 ns 8.20 ns 4 -stringa::find;_stddev 0.043 ns 0.043 ns 4 -stringa::find;_cv 0.52 % 0.52 % 4 -lstringa<20>::find;_mean 6.82 ns 6.82 ns 4 -lstringa<20>::find;_median 6.79 ns 6.79 ns 4 -lstringa<20>::find;_stddev 0.186 ns 0.186 ns 4 -lstringa<20>::find;_cv 2.72 % 2.72 % 4 -lstringa<40>::find;_mean 6.70 ns 6.70 ns 4 -lstringa<40>::find;_median 6.68 ns 6.68 ns 4 -lstringa<40>::find;_stddev 0.090 ns 0.090 ns 4 -lstringa<40>::find;_cv 1.34 % 1.34 % 4 +sz::string::find;_mean 95.9 ns 95.9 ns 4 +sz::string::find;_median 95.8 ns 95.8 ns 4 +sz::string::find;_stddev 1.48 ns 1.48 ns 4 +sz::string::find;_cv 1.54 % 1.54 % 4 +std::string::find;_mean 7.34 ns 7.34 ns 4 +std::string::find;_median 7.33 ns 7.33 ns 4 +std::string::find;_stddev 0.128 ns 0.128 ns 4 +std::string::find;_cv 1.75 % 1.75 % 4 +std::string_view::find;_mean 7.81 ns 7.81 ns 4 +std::string_view::find;_median 7.78 ns 7.78 ns 4 +std::string_view::find;_stddev 0.124 ns 0.124 ns 4 +std::string_view::find;_cv 1.59 % 1.59 % 4 +ssa::find;_mean 7.37 ns 7.37 ns 4 +ssa::find;_median 7.37 ns 7.37 ns 4 +ssa::find;_stddev 0.149 ns 0.149 ns 4 +ssa::find;_cv 2.02 % 2.02 % 4 +stringa::find;_mean 8.14 ns 8.14 ns 4 +stringa::find;_median 8.14 ns 8.14 ns 4 +stringa::find;_stddev 0.027 ns 0.027 ns 4 +stringa::find;_cv 0.33 % 0.33 % 4 +lstringa<20>::find;_mean 6.94 ns 6.94 ns 4 +lstringa<20>::find;_median 6.90 ns 6.90 ns 4 +lstringa<20>::find;_stddev 0.118 ns 0.118 ns 4 +lstringa<20>::find;_cv 1.70 % 1.70 % 4 +lstringa<40>::find;_mean 6.93 ns 6.93 ns 4 +lstringa<40>::find;_median 6.92 ns 6.92 ns 4 +lstringa<40>::find;_stddev 0.091 ns 0.091 ns 4 +lstringa<40>::find;_cv 1.31 % 1.31 % 4 ------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string copy{str_with_len_N};/15_mean 5.24 ns 5.24 ns 4 -std::string copy{str_with_len_N};/15_median 5.20 ns 5.20 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.128 ns 0.128 ns 4 -std::string copy{str_with_len_N};/15_cv 2.45 % 2.45 % 4 -std::string copy{str_with_len_N};/16_mean 23.2 ns 23.2 ns 4 -std::string copy{str_with_len_N};/16_median 23.3 ns 23.3 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.643 ns 0.643 ns 4 -std::string copy{str_with_len_N};/16_cv 2.77 % 2.77 % 4 -std::string copy{str_with_len_N};/23_mean 27.4 ns 27.4 ns 4 -std::string copy{str_with_len_N};/23_median 27.3 ns 27.3 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.180 ns 0.180 ns 4 -std::string copy{str_with_len_N};/23_cv 0.66 % 0.66 % 4 -std::string copy{str_with_len_N};/24_mean 22.6 ns 22.6 ns 4 -std::string copy{str_with_len_N};/24_median 22.4 ns 22.4 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.712 ns 0.711 ns 4 -std::string copy{str_with_len_N};/24_cv 3.15 % 3.15 % 4 -std::string copy{str_with_len_N};/32_mean 22.1 ns 22.1 ns 4 -std::string copy{str_with_len_N};/32_median 22.1 ns 22.1 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.400 ns 0.400 ns 4 -std::string copy{str_with_len_N};/32_cv 1.81 % 1.81 % 4 -std::string copy{str_with_len_N};/64_mean 22.2 ns 22.2 ns 4 -std::string copy{str_with_len_N};/64_median 22.1 ns 22.1 ns 4 -std::string copy{str_with_len_N};/64_stddev 0.596 ns 0.596 ns 4 -std::string copy{str_with_len_N};/64_cv 2.69 % 2.69 % 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.1 ns 24.1 ns 4 -std::string copy{str_with_len_N};/128_stddev 1.53 ns 1.53 ns 4 -std::string copy{str_with_len_N};/128_cv 6.19 % 6.19 % 4 -std::string copy{str_with_len_N};/256_mean 24.8 ns 24.8 ns 4 -std::string copy{str_with_len_N};/256_median 24.3 ns 24.3 ns 4 -std::string copy{str_with_len_N};/256_stddev 1.32 ns 1.32 ns 4 -std::string copy{str_with_len_N};/256_cv 5.33 % 5.33 % 4 -std::string copy{str_with_len_N};/512_mean 29.1 ns 29.1 ns 4 -std::string copy{str_with_len_N};/512_median 28.5 ns 28.5 ns 4 -std::string copy{str_with_len_N};/512_stddev 1.22 ns 1.22 ns 4 -std::string copy{str_with_len_N};/512_cv 4.19 % 4.19 % 4 -std::string copy{str_with_len_N};/1024_mean 47.8 ns 47.8 ns 4 -std::string copy{str_with_len_N};/1024_median 47.6 ns 47.6 ns 4 -std::string copy{str_with_len_N};/1024_stddev 0.948 ns 0.948 ns 4 -std::string copy{str_with_len_N};/1024_cv 1.98 % 1.98 % 4 -std::string copy{str_with_len_N};/2048_mean 123 ns 123 ns 4 -std::string copy{str_with_len_N};/2048_median 124 ns 124 ns 4 -std::string copy{str_with_len_N};/2048_stddev 4.54 ns 4.54 ns 4 -std::string copy{str_with_len_N};/2048_cv 3.70 % 3.70 % 4 -std::string copy{str_with_len_N};/4096_mean 146 ns 146 ns 4 -std::string copy{str_with_len_N};/4096_median 145 ns 145 ns 4 -std::string copy{str_with_len_N};/4096_stddev 4.21 ns 4.21 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.89 % 2.89 % 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.11 ns 1.11 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.023 ns 0.023 ns 4 -stringa copy{str_with_len_N};/15_cv 2.05 % 2.05 % 4 -stringa copy{str_with_len_N};/16_mean 1.11 ns 1.11 ns 4 -stringa copy{str_with_len_N};/16_median 1.11 ns 1.11 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.014 ns 0.014 ns 4 -stringa copy{str_with_len_N};/16_cv 1.27 % 1.27 % 4 +std::string copy{str_with_len_N};/15_mean 5.78 ns 5.78 ns 4 +std::string copy{str_with_len_N};/15_median 5.78 ns 5.78 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.153 ns 0.153 ns 4 +std::string copy{str_with_len_N};/15_cv 2.64 % 2.64 % 4 +std::string copy{str_with_len_N};/16_mean 24.5 ns 24.5 ns 4 +std::string copy{str_with_len_N};/16_median 24.6 ns 24.6 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.08 ns 1.08 ns 4 +std::string copy{str_with_len_N};/16_cv 4.42 % 4.42 % 4 +std::string copy{str_with_len_N};/23_mean 28.5 ns 28.5 ns 4 +std::string copy{str_with_len_N};/23_median 28.6 ns 28.6 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.346 ns 0.346 ns 4 +std::string copy{str_with_len_N};/23_cv 1.21 % 1.21 % 4 +std::string copy{str_with_len_N};/24_mean 23.3 ns 23.3 ns 4 +std::string copy{str_with_len_N};/24_median 23.3 ns 23.3 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.222 ns 0.222 ns 4 +std::string copy{str_with_len_N};/24_cv 0.95 % 0.95 % 4 +std::string copy{str_with_len_N};/32_mean 23.2 ns 23.2 ns 4 +std::string copy{str_with_len_N};/32_median 23.3 ns 23.3 ns 4 +std::string copy{str_with_len_N};/32_stddev 0.377 ns 0.377 ns 4 +std::string copy{str_with_len_N};/32_cv 1.62 % 1.62 % 4 +std::string copy{str_with_len_N};/64_mean 23.3 ns 23.3 ns 4 +std::string copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.320 ns 0.320 ns 4 +std::string copy{str_with_len_N};/64_cv 1.37 % 1.37 % 4 +std::string copy{str_with_len_N};/128_mean 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/128_median 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/128_stddev 0.584 ns 0.584 ns 4 +std::string copy{str_with_len_N};/128_cv 2.34 % 2.34 % 4 +std::string copy{str_with_len_N};/256_mean 26.0 ns 26.0 ns 4 +std::string copy{str_with_len_N};/256_median 25.3 ns 25.3 ns 4 +std::string copy{str_with_len_N};/256_stddev 1.69 ns 1.69 ns 4 +std::string copy{str_with_len_N};/256_cv 6.53 % 6.53 % 4 +std::string copy{str_with_len_N};/512_mean 29.4 ns 29.4 ns 4 +std::string copy{str_with_len_N};/512_median 29.5 ns 29.5 ns 4 +std::string copy{str_with_len_N};/512_stddev 0.683 ns 0.683 ns 4 +std::string copy{str_with_len_N};/512_cv 2.32 % 2.32 % 4 +std::string copy{str_with_len_N};/1024_mean 47.7 ns 47.7 ns 4 +std::string copy{str_with_len_N};/1024_median 47.8 ns 47.8 ns 4 +std::string copy{str_with_len_N};/1024_stddev 0.457 ns 0.457 ns 4 +std::string copy{str_with_len_N};/1024_cv 0.96 % 0.96 % 4 +std::string copy{str_with_len_N};/2048_mean 125 ns 125 ns 4 +std::string copy{str_with_len_N};/2048_median 125 ns 125 ns 4 +std::string copy{str_with_len_N};/2048_stddev 3.96 ns 3.96 ns 4 +std::string copy{str_with_len_N};/2048_cv 3.17 % 3.17 % 4 +std::string copy{str_with_len_N};/4096_mean 152 ns 152 ns 4 +std::string copy{str_with_len_N};/4096_median 154 ns 154 ns 4 +std::string copy{str_with_len_N};/4096_stddev 4.76 ns 4.76 ns 4 +std::string copy{str_with_len_N};/4096_cv 3.13 % 3.13 % 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.013 ns 0.013 ns 4 +stringa copy{str_with_len_N};/15_cv 1.17 % 1.17 % 4 +stringa copy{str_with_len_N};/16_mean 1.13 ns 1.13 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.021 ns 0.021 ns 4 +stringa copy{str_with_len_N};/16_cv 1.88 % 1.88 % 4 stringa copy{str_with_len_N};/23_mean 1.12 ns 1.12 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.022 ns 0.022 ns 4 -stringa copy{str_with_len_N};/23_cv 1.98 % 1.98 % 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.3 ns 16.3 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.167 ns 0.167 ns 4 -stringa copy{str_with_len_N};/24_cv 1.03 % 1.03 % 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.272 ns 0.272 ns 4 -stringa copy{str_with_len_N};/32_cv 1.69 % 1.69 % 4 -stringa copy{str_with_len_N};/64_mean 16.1 ns 16.1 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.169 ns 0.169 ns 4 -stringa copy{str_with_len_N};/64_cv 1.05 % 1.05 % 4 -stringa copy{str_with_len_N};/128_mean 15.9 ns 15.9 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.110 ns 0.110 ns 4 -stringa copy{str_with_len_N};/128_cv 0.69 % 0.69 % 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.077 ns 0.077 ns 4 -stringa copy{str_with_len_N};/256_cv 0.48 % 0.48 % 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.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.316 ns 0.316 ns 4 -stringa copy{str_with_len_N};/512_cv 1.96 % 1.96 % 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.065 ns 0.065 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.41 % 0.41 % 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.184 ns 0.184 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.15 % 1.15 % 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.061 ns 0.061 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.38 % 0.38 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.11 ns 1.11 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.11 ns 1.11 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 1.35 % 1.35 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 5.42 ns 5.42 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 5.33 ns 5.33 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.320 ns 0.320 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 5.91 % 5.91 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 5.17 ns 5.17 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 5.15 ns 5.15 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.059 ns 0.059 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 1.14 % 1.14 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 23.2 ns 23.2 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 23.2 ns 23.2 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.287 ns 0.287 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.23 % 1.23 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 23.1 ns 23.1 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 23.0 ns 23.0 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.219 ns 0.219 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 0.95 % 0.95 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 24.9 ns 24.9 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 24.9 ns 24.9 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.148 ns 0.148 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 0.60 % 0.60 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 24.9 ns 24.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 24.9 ns 24.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.164 ns 0.164 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 0.66 % 0.66 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 27.3 ns 27.3 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 27.6 ns 27.6 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 1.13 ns 1.13 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 4.12 % 4.12 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 29.8 ns 29.8 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 29.3 ns 29.3 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 1.16 ns 1.16 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 3.89 % 3.89 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 95.4 ns 95.4 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 95.7 ns 95.7 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 1.30 ns 1.30 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 1.37 % 1.37 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 105 ns 105 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 104 ns 104 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 3.28 ns 3.28 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 3.13 % 3.13 % 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.019 ns 0.019 ns 4 +stringa copy{str_with_len_N};/23_cv 1.67 % 1.67 % 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.135 ns 0.135 ns 4 +stringa copy{str_with_len_N};/24_cv 0.82 % 0.82 % 4 +stringa copy{str_with_len_N};/32_mean 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/32_median 16.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.180 ns 0.180 ns 4 +stringa copy{str_with_len_N};/32_cv 1.10 % 1.10 % 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.4 ns 16.4 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.69 % 0.69 % 4 +stringa copy{str_with_len_N};/128_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/128_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.085 ns 0.085 ns 4 +stringa copy{str_with_len_N};/128_cv 0.52 % 0.52 % 4 +stringa copy{str_with_len_N};/256_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/256_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.068 ns 0.068 ns 4 +stringa copy{str_with_len_N};/256_cv 0.42 % 0.42 % 4 +stringa copy{str_with_len_N};/512_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/512_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.072 ns 0.072 ns 4 +stringa copy{str_with_len_N};/512_cv 0.44 % 0.44 % 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.069 ns 0.069 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.42 % 0.42 % 4 +stringa copy{str_with_len_N};/2048_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/2048_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.041 ns 0.041 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.25 % 0.25 % 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.080 ns 0.080 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.49 % 0.49 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 1.14 ns 1.14 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.024 ns 0.024 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 2.09 % 2.09 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 5.10 ns 5.10 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 5.10 ns 5.10 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.076 ns 0.076 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.49 % 1.49 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 5.16 ns 5.16 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 5.14 ns 5.14 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.062 ns 0.062 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 1.21 % 1.21 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 21.9 ns 21.9 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 22.0 ns 22.0 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.377 ns 0.377 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 1.72 % 1.72 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 22.1 ns 22.1 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 22.0 ns 22.0 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.310 ns 0.310 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 1.41 % 1.41 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 23.4 ns 23.4 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.348 ns 0.348 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.49 % 1.49 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 24.5 ns 24.5 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 24.6 ns 24.6 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.410 ns 0.410 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 25.4 ns 25.4 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 25.4 ns 25.4 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 0.347 ns 0.347 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 1.37 % 1.37 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 28.6 ns 28.6 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 28.6 ns 28.6 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 0.490 ns 0.490 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 1.71 % 1.71 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 98.9 ns 98.9 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 97.3 ns 97.3 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 5.56 ns 5.56 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 5.62 % 5.62 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 103 ns 103 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 103 ns 103 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 1.53 ns 1.53 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 1.48 % 1.48 % 4 lstringa<16> copy{str_with_len_N};/4096_mean 122 ns 122 ns 4 lstringa<16> copy{str_with_len_N};/4096_median 121 ns 121 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 2.04 ns 2.04 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 1.68 % 1.68 % 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 5.22 ns 5.22 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 4.29 % 4.29 % 4 lstringa<512> copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 1.12 ns 1.12 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.35 % 1.35 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 5.12 ns 5.12 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 5.17 ns 5.17 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.134 ns 0.134 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 2.63 % 2.63 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.98 ns 4.98 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 4.99 ns 4.99 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.157 ns 0.157 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 3.15 % 3.15 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 4.45 ns 4.45 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 4.45 ns 4.45 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.083 ns 0.083 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.66 ns 4.66 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.71 ns 4.71 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.169 ns 0.169 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 3.62 % 3.62 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 6.03 ns 6.03 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 6.03 ns 6.03 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.053 ns 0.053 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 0.88 % 0.88 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 6.41 ns 6.41 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 6.42 ns 6.42 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.088 ns 0.088 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.38 % 1.38 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 7.85 ns 7.85 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 7.81 ns 7.81 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.306 ns 0.306 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 3.90 % 3.90 % 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.4 ns 10.4 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.616 ns 0.616 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 5.79 % 5.79 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 98.1 ns 98.1 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 97.4 ns 97.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 2.89 ns 2.89 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.94 % 2.94 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 104 ns 104 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 104 ns 104 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 1.22 ns 1.22 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.17 % 1.17 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 121 ns 121 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 120 ns 120 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 3.39 ns 3.39 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 2.80 % 2.80 % 4 +lstringa<512> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.011 ns 0.011 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 0.95 % 0.95 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 5.00 ns 5.00 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 5.05 ns 5.05 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.126 ns 0.126 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 2.52 % 2.52 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 4.92 ns 4.92 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 4.87 ns 4.87 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.113 ns 0.113 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 2.30 % 2.30 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 29.6 ns 29.6 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 29.5 ns 29.5 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.353 ns 0.353 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 1.19 % 1.19 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 29.6 ns 29.6 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 29.6 ns 29.6 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.133 ns 0.133 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 0.45 % 0.45 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 30.2 ns 30.2 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 30.2 ns 30.2 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.095 ns 0.095 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 0.31 % 0.31 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 30.5 ns 30.5 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 30.5 ns 30.5 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.108 ns 0.108 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 0.35 % 0.35 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 21.7 ns 21.7 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 21.7 ns 21.7 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.257 ns 0.257 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 1.19 % 1.19 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 24.7 ns 24.7 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 24.6 ns 24.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.267 ns 0.267 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.08 % 1.08 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 96.9 ns 96.9 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 96.8 ns 96.8 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 1.87 ns 1.87 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 1.93 % 1.93 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 106 ns 106 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 107 ns 107 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 2.33 ns 2.33 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.20 % 2.20 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 123 ns 123 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 123 ns 123 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 1.45 ns 1.45 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 1.19 % 1.19 % 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 27.4 ns 27.4 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 1.62 ns 1.62 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 5.91 % 5.91 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.5 ns 13.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.3 ns 13.3 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.358 ns 0.358 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.66 % 2.66 % 4 -stringa s = "123456789"; int res = s.to_int_mean 9.15 ns 9.15 ns 4 -stringa s = "123456789"; int res = s.to_int_median 9.17 ns 9.17 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.193 ns 0.193 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 2.11 % 2.11 % 4 -ssa s = "123456789"; int res = s.to_int_mean 9.46 ns 9.46 ns 4 -ssa s = "123456789"; int res = s.to_int_median 9.41 ns 9.41 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.154 ns 0.154 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.63 % 1.63 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 9.30 ns 9.30 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 9.31 ns 9.31 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.116 ns 0.116 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 1.25 % 1.25 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 26.9 ns 26.9 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.9 ns 26.9 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.215 ns 0.215 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.80 % 0.80 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 14.9 ns 14.9 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 14.9 ns 14.9 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.293 ns 0.293 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.97 % 1.97 % 4 +stringa s = "123456789"; int res = s.to_int_mean 9.36 ns 9.36 ns 4 +stringa s = "123456789"; int res = s.to_int_median 9.36 ns 9.36 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.047 ns 0.047 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 0.50 % 0.50 % 4 +ssa s = "123456789"; int res = s.to_int_mean 9.52 ns 9.52 ns 4 +ssa s = "123456789"; int res = s.to_int_median 9.50 ns 9.50 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.079 ns 0.079 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 0.83 % 0.83 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 9.61 ns 9.61 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 9.59 ns 9.59 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.146 ns 0.146 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.52 % 1.52 % 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 24.0 ns 24.0 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.2 ns 24.2 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 1.18 ns 1.18 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.92 % 4.92 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.22 ns 9.22 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.18 ns 9.18 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.188 ns 0.188 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.04 % 2.04 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 7.60 ns 7.60 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 7.59 ns 7.59 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.065 ns 0.065 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 0.86 % 0.86 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 7.56 ns 7.56 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 7.49 ns 7.49 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.213 ns 0.213 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 2.82 % 2.82 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.35 ns 7.35 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 7.33 ns 7.33 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.112 ns 0.112 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.52 % 1.52 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 24.5 ns 24.5 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.4 ns 24.4 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.615 ns 0.615 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.51 % 2.51 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.59 ns 9.59 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.63 ns 9.63 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.166 ns 0.166 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.73 % 1.73 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 8.04 ns 8.04 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 8.04 ns 8.04 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.114 ns 0.114 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.41 % 1.41 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 7.57 ns 7.57 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 7.52 ns 7.52 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.139 ns 0.139 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.84 % 1.84 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.82 ns 7.82 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.025 ns 0.025 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.32 % 0.32 % 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 29.0 ns 29.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.0 ns 29.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.663 ns 0.663 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.29 % 2.29 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 11.1 ns 11.1 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 29.2 ns 29.2 ns 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 1.09 ns 1.09 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.74 % 3.74 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 11.0 ns 11.0 ns 4 stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 11.0 ns 11.0 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.281 ns 0.281 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 2.54 % 2.54 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.152 ns 0.152 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.39 % 1.39 % 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.3 ns 13.3 ns 4 ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.2 ns 13.2 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.684 ns 0.684 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 5.13 % 5.13 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.137 ns 0.137 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.03 % 1.03 % 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 63.6 ns 63.6 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 63.6 ns 63.6 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.876 ns 0.876 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.38 % 1.38 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.1 ns 24.1 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.1 ns 24.1 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.525 ns 0.525 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.18 % 2.18 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 26.0 ns 26.0 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 26.1 ns 26.1 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.289 ns 0.289 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.11 % 1.11 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 66.6 ns 66.6 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.0 ns 66.0 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.62 ns 1.62 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.43 % 2.43 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.5 ns 24.5 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.348 ns 0.348 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.42 % 1.42 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 26.8 ns 26.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 26.8 ns 26.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.384 ns 0.384 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.43 % 1.43 % 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 1374 ns 1374 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1366 ns 1366 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 40.7 ns 40.7 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.96 % 2.96 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 1424 ns 1424 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 1429 ns 1429 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.2 ns 35.2 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.47 % 2.47 % 4 std::string str; ... str += "abbaabbaabbaabba";_mean 445 ns 445 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 444 ns 444 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 17.1 ns 17.1 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 3.85 % 3.85 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 413 ns 413 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 415 ns 415 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 12.5 ns 12.5 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 3.02 % 3.02 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 289 ns 289 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 288 ns 288 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 7.76 ns 7.76 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.68 % 2.68 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 248 ns 248 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 251 ns 251 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 7.60 ns 7.60 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.06 % 3.06 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 139 ns 139 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 138 ns 138 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 3.86 ns 3.86 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.78 % 2.78 % 4 +std::string str; ... str += "abbaabbaabbaabba";_median 446 ns 446 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 7.09 ns 7.08 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 1.59 % 1.59 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 388 ns 388 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 388 ns 388 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.37 ns 3.37 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.87 % 0.87 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 276 ns 276 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 278 ns 278 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 7.15 ns 7.15 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.59 % 2.59 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 219 ns 219 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 224 ns 224 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 11.1 ns 11.1 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 5.04 % 5.04 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 137 ns 137 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 137 ns 137 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.634 ns 0.634 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.46 % 0.46 % 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 1439 ns 1439 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1403 ns 1403 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 116 ns 116 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 8.02 % 8.02 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1289 ns 1289 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1281 ns 1281 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 45.3 ns 45.3 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.52 % 3.52 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 443 ns 443 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 444 ns 444 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.20 ns 7.20 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.62 % 1.62 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 383 ns 383 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 388 ns 388 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.9 ns 17.9 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.68 % 4.68 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 332 ns 332 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 331 ns 331 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.3 ns 11.3 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.40 % 3.40 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 206 ns 206 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 207 ns 207 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.33 ns 4.33 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.10 % 2.10 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 1426 ns 1426 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1428 ns 1428 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 39.2 ns 39.2 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.75 % 2.75 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1288 ns 1288 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1289 ns 1289 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.9 ns 12.9 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.01 % 1.01 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 426 ns 426 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 426 ns 426 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.08 ns 5.08 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.19 % 1.19 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 340 ns 340 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 346 ns 346 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.2 ns 14.2 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.17 % 4.17 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 313 ns 313 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 314 ns 314 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.6 ns 11.6 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.71 % 3.71 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 217 ns 217 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 218 ns 218 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.95 ns 6.95 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.21 % 3.21 % 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 76125 ns 76126 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 76988 ns 76988 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2401 ns 2402 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.15 % 3.15 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 71507 ns 71507 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 71137 ns 71138 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1501 ns 1501 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.10 % 2.10 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18029 ns 18029 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17974 ns 17974 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 176 ns 176 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.98 % 0.98 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15997 ns 15997 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15999 ns 15999 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 80.5 ns 80.5 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.50 % 0.50 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15776 ns 15776 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15795 ns 15795 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 216 ns 216 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.37 % 1.37 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18991 ns 18991 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18631 ns 18631 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 938 ns 938 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.94 % 4.94 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 75809 ns 75810 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 75636 ns 75637 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1270 ns 1270 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.68 % 1.68 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73098 ns 73098 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73402 ns 73402 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1487 ns 1487 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.03 % 2.03 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19767 ns 19767 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19715 ns 19715 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 326 ns 326 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.65 % 1.65 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17379 ns 17379 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17356 ns 17356 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 164 ns 164 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.94 % 0.94 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16895 ns 16895 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16961 ns 16961 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 186 ns 186 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.10 % 1.10 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17082 ns 17082 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17027 ns 17027 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 244 ns 244 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.43 % 1.43 % 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 1364 ns 1364 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1352 ns 1352 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 31.3 ns 31.3 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 2.29 % 2.29 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1342 ns 1342 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1343 ns 1343 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 12.1 ns 12.1 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 0.90 % 0.90 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 523 ns 523 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 523 ns 523 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 1.97 ns 1.97 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 0.38 % 0.38 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 443 ns 443 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 441 ns 441 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 24.2 ns 24.2 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 5.46 % 5.46 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 409 ns 409 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 411 ns 411 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 15.7 ns 15.7 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.84 % 3.84 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 306 ns 306 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.93 ns 3.93 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.29 % 1.29 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 1469 ns 1469 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 1481 ns 1481 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 31.4 ns 31.4 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 2.14 % 2.14 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 1415 ns 1415 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 1404 ns 1404 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 26.0 ns 26.0 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.84 % 1.84 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 527 ns 527 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 525 ns 525 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 8.07 ns 8.07 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 465 ns 465 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 469 ns 469 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 22.5 ns 22.5 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.85 % 4.85 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 408 ns 408 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 415 ns 415 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 20.7 ns 20.7 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.06 % 5.06 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 309 ns 309 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 310 ns 310 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 3.18 ns 3.18 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.03 % 1.03 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3115 ns 3115 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3117 ns 3117 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 85.5 ns 85.5 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 2.74 % 2.74 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 437 ns 437 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 437 ns 437 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 5.54 ns 5.54 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 1.27 % 1.27 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1382 ns 1382 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1365 ns 1365 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 48.9 ns 48.9 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.54 % 3.54 % 4 -std::string str = std::format("test = {} times", k);_mean 1121 ns 1121 ns 4 -std::string str = std::format("test = {} times", k);_median 1114 ns 1114 ns 4 -std::string str = std::format("test = {} times", k);_stddev 38.3 ns 38.3 ns 4 -std::string str = std::format("test = {} times", k);_cv 3.41 % 3.41 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1269 ns 1269 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1266 ns 1266 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 13.0 ns 13.0 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 1.03 % 1.03 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 967 ns 967 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 968 ns 968 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 15.9 ns 15.9 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.65 % 1.65 % 4 -lstringa<8> str = "test = " + k + " times";_mean 278 ns 278 ns 4 -lstringa<8> str = "test = " + k + " times";_median 278 ns 278 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 4.55 ns 4.55 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.64 % 1.64 % 4 -lstringa<32> str = "test = " + k + " times";_mean 120 ns 120 ns 4 -lstringa<32> str = "test = " + k + " times";_median 120 ns 120 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 0.350 ns 0.350 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 0.29 % 0.29 % 4 -stringa str = "test = " + k + " times";_mean 121 ns 121 ns 4 -stringa str = "test = " + k + " times";_median 121 ns 121 ns 4 -stringa str = "test = " + k + " times";_stddev 0.477 ns 0.477 ns 4 -stringa str = "test = " + k + " times";_cv 0.39 % 0.39 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 3067 ns 3067 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 3055 ns 3055 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 47.1 ns 47.1 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 1.54 % 1.54 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 457 ns 457 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 457 ns 457 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 4.69 ns 4.69 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 1.03 % 1.03 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1393 ns 1393 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1390 ns 1390 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 25.7 ns 25.6 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.84 % 1.84 % 4 +std::string str = std::format("test = {} times", k);_mean 1140 ns 1140 ns 4 +std::string str = std::format("test = {} times", k);_median 1150 ns 1150 ns 4 +std::string str = std::format("test = {} times", k);_stddev 32.3 ns 32.3 ns 4 +std::string str = std::format("test = {} times", k);_cv 2.83 % 2.83 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 1356 ns 1356 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 1349 ns 1349 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 39.1 ns 39.1 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 2.88 % 2.88 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1002 ns 1003 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1005 ns 1005 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 24.7 ns 24.7 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 2.46 % 2.46 % 4 +lstringa<8> str = "test = " + k + " times";_mean 262 ns 262 ns 4 +lstringa<8> str = "test = " + k + " times";_median 261 ns 261 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 3.40 ns 3.40 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.30 % 1.30 % 4 +lstringa<32> str = "test = " + k + " times";_mean 126 ns 126 ns 4 +lstringa<32> str = "test = " + k + " times";_median 126 ns 126 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 0.511 ns 0.511 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 0.40 % 0.40 % 4 +stringa str = "test = " + k + " times";_mean 124 ns 124 ns 4 +stringa str = "test = " + k + " times";_median 124 ns 124 ns 4 +stringa str = "test = " + k + " times";_stddev 3.39 ns 3.39 ns 4 +stringa str = "test = " + k + " times";_cv 2.74 % 2.74 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 291 ns 291 ns 4 -std::string::find + substr + std::strtol_median 291 ns 291 ns 4 -std::string::find + substr + std::strtol_stddev 14.6 ns 14.6 ns 4 -std::string::find + substr + std::strtol_cv 5.01 % 5.01 % 4 -ssa::splitter + ssa::as_int_mean 159 ns 159 ns 4 -ssa::splitter + ssa::as_int_median 159 ns 159 ns 4 -ssa::splitter + ssa::as_int_stddev 5.98 ns 5.98 ns 4 -ssa::splitter + ssa::as_int_cv 3.77 % 3.77 % 4 -ssa::splitf + functor_mean 201 ns 201 ns 4 -ssa::splitf + functor_median 198 ns 198 ns 4 -ssa::splitf + functor_stddev 6.72 ns 6.72 ns 4 -ssa::splitf + functor_cv 3.34 % 3.34 % 4 +std::string::find + substr + std::strtol_mean 270 ns 270 ns 4 +std::string::find + substr + std::strtol_median 268 ns 268 ns 4 +std::string::find + substr + std::strtol_stddev 7.54 ns 7.54 ns 4 +std::string::find + substr + std::strtol_cv 2.79 % 2.79 % 4 +ssa::splitter + ssa::as_int_mean 156 ns 156 ns 4 +ssa::splitter + ssa::as_int_median 156 ns 156 ns 4 +ssa::splitter + ssa::as_int_stddev 1.99 ns 1.99 ns 4 +ssa::splitter + ssa::as_int_cv 1.28 % 1.28 % 4 +ssa::splitf + functor_mean 207 ns 207 ns 4 +ssa::splitf + functor_median 207 ns 207 ns 4 +ssa::splitf + functor_stddev 2.33 ns 2.33 ns 4 +ssa::splitf + functor_cv 1.12 % 1.12 % 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 826 ns 826 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 818 ns 818 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 28.5 ns 28.5 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 3.45 % 3.45 % 4 -replace symbols with std::string find_first_of + replace_mean 2450 ns 2450 ns 4 -replace symbols with std::string find_first_of + replace_median 2450 ns 2450 ns 4 -replace symbols with std::string find_first_of + replace_stddev 37.7 ns 37.7 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.54 % 1.54 % 4 -replace symbols with std::string_view find_first_of + copy_mean 1073 ns 1073 ns 4 -replace symbols with std::string_view find_first_of + copy_median 1071 ns 1071 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.43 % 1.43 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1247 ns 1247 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1247 ns 1247 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 39.3 ns 39.3 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 3.15 % 3.15 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 959 ns 959 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 947 ns 947 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 31.6 ns 31.6 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 3.30 % 3.30 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1104 ns 1104 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1110 ns 1110 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 20.9 ns 20.9 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.89 % 1.89 % 4 -replace const symbols with string expressions and memorization of all search results_mean 804 ns 804 ns 4 -replace const symbols with string expressions and memorization of all search results_median 803 ns 803 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 4.71 ns 4.71 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 0.59 % 0.59 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 844 ns 844 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 846 ns 846 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 8.40 ns 8.40 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 1.00 % 1.00 % 4 +replace symbols with std::string find_first_of + replace_mean 2647 ns 2647 ns 4 +replace symbols with std::string find_first_of + replace_median 2649 ns 2649 ns 4 +replace symbols with std::string find_first_of + replace_stddev 41.4 ns 41.4 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 1123 ns 1123 ns 4 +replace symbols with std::string_view find_first_of + copy_median 1119 ns 1119 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 27.0 ns 27.0 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 2.40 % 2.40 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1273 ns 1273 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1269 ns 1269 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 42.9 ns 42.9 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 3.37 % 3.37 % 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 9.03 ns 9.03 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 0.85 % 0.85 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1029 ns 1029 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1021 ns 1021 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 24.0 ns 24.0 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 2.33 % 2.33 % 4 +replace const symbols with string expressions and memorization of all search results_mean 887 ns 887 ns 4 +replace const symbols with string expressions and memorization of all search results_median 884 ns 884 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 19.8 ns 19.8 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 2.23 % 2.23 % 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 158 ns 158 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 158 ns 158 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 3.76 ns 3.76 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.38 % 2.38 % 4 -Short replace symbols with std::string find_first_of + replace_mean 311 ns 311 ns 4 -Short replace symbols with std::string find_first_of + replace_median 311 ns 311 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 3.26 ns 3.26 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.05 % 1.05 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 166 ns 166 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 166 ns 166 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 1.88 ns 1.88 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.13 % 1.13 % 4 +Short replace symbols with std::string find_first_of + replace_mean 334 ns 334 ns 4 +Short replace symbols with std::string find_first_of + replace_median 334 ns 334 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 5.22 ns 5.23 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 1.57 % 1.57 % 4 Short replace symbols with std::string_view find_first_of + copy_mean 154 ns 154 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 155 ns 155 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 4.09 ns 4.09 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 2.66 % 2.66 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 166 ns 166 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 167 ns 167 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.15 ns 6.15 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.70 % 3.70 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 174 ns 174 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 173 ns 173 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 4.16 ns 4.16 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.39 % 2.39 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 127 ns 127 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 127 ns 127 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 1.66 ns 1.66 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.31 % 1.31 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 138 ns 138 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 137 ns 137 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 1.46 ns 1.46 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.06 % 1.06 % 4 +Short replace symbols with std::string_view find_first_of + copy_median 152 ns 152 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 4.50 ns 4.50 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 2.92 % 2.92 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 169 ns 169 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 169 ns 169 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.26 ns 2.26 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 1.34 % 1.34 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 201 ns 201 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 200 ns 200 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 2.87 ns 2.87 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 1.43 % 1.43 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 130 ns 130 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 131 ns 131 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 2.75 ns 2.75 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 2.12 % 2.12 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 145 ns 145 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 145 ns 145 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 1.24 ns 1.24 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 0.85 % 0.85 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 152 ns 152 ns 4 -replace bb to ---- in std::string|64_median 152 ns 152 ns 4 -replace bb to ---- in std::string|64_stddev 2.17 ns 2.17 ns 4 -replace bb to ---- in std::string|64_cv 1.43 % 1.43 % 4 -replace bb to ---- in std::string|256_mean 525 ns 525 ns 4 -replace bb to ---- in std::string|256_median 520 ns 520 ns 4 -replace bb to ---- in std::string|256_stddev 15.6 ns 15.6 ns 4 -replace bb to ---- in std::string|256_cv 2.97 % 2.97 % 4 -replace bb to ---- in std::string|512_mean 1078 ns 1078 ns 4 -replace bb to ---- in std::string|512_median 1068 ns 1068 ns 4 -replace bb to ---- in std::string|512_stddev 26.8 ns 26.8 ns 4 -replace bb to ---- in std::string|512_cv 2.49 % 2.49 % 4 -replace bb to ---- in std::string|1024_mean 2264 ns 2264 ns 4 -replace bb to ---- in std::string|1024_median 2265 ns 2265 ns 4 -replace bb to ---- in std::string|1024_stddev 66.6 ns 66.6 ns 4 -replace bb to ---- in std::string|1024_cv 2.94 % 2.94 % 4 -replace bb to ---- in std::string|2048_mean 5910 ns 5910 ns 4 -replace bb to ---- in std::string|2048_median 5814 ns 5814 ns 4 -replace bb to ---- in std::string|2048_stddev 429 ns 429 ns 4 -replace bb to ---- in std::string|2048_cv 7.26 % 7.26 % 4 +replace bb to ---- in std::string|64_mean 151 ns 151 ns 4 +replace bb to ---- in std::string|64_median 150 ns 150 ns 4 +replace bb to ---- in std::string|64_stddev 2.03 ns 2.03 ns 4 +replace bb to ---- in std::string|64_cv 1.34 % 1.34 % 4 +replace bb to ---- in std::string|256_mean 603 ns 603 ns 4 +replace bb to ---- in std::string|256_median 600 ns 600 ns 4 +replace bb to ---- in std::string|256_stddev 7.38 ns 7.38 ns 4 +replace bb to ---- in std::string|256_cv 1.22 % 1.22 % 4 +replace bb to ---- in std::string|512_mean 1060 ns 1060 ns 4 +replace bb to ---- in std::string|512_median 1058 ns 1058 ns 4 +replace bb to ---- in std::string|512_stddev 32.9 ns 32.9 ns 4 +replace bb to ---- in std::string|512_cv 3.10 % 3.10 % 4 +replace bb to ---- in std::string|1024_mean 2332 ns 2332 ns 4 +replace bb to ---- in std::string|1024_median 2323 ns 2323 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 5851 ns 5851 ns 4 +replace bb to ---- in std::string|2048_median 5742 ns 5742 ns 4 +replace bb to ---- in std::string|2048_stddev 405 ns 405 ns 4 +replace bb to ---- in std::string|2048_cv 6.92 % 6.92 % 4 replace bb to ---- in lstringa<8>|64_mean 127 ns 127 ns 4 -replace bb to ---- in lstringa<8>|64_median 127 ns 127 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 6.87 ns 6.87 ns 4 -replace bb to ---- in lstringa<8>|64_cv 5.42 % 5.42 % 4 -replace bb to ---- in lstringa<8>|256_mean 425 ns 425 ns 4 -replace bb to ---- in lstringa<8>|256_median 420 ns 420 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 13.2 ns 13.2 ns 4 -replace bb to ---- in lstringa<8>|256_cv 3.11 % 3.11 % 4 -replace bb to ---- in lstringa<8>|512_mean 801 ns 801 ns 4 -replace bb to ---- in lstringa<8>|512_median 797 ns 797 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 13.4 ns 13.4 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.67 % 1.67 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1639 ns 1639 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1633 ns 1633 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 68.5 ns 68.5 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 4.18 % 4.18 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3077 ns 3077 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3055 ns 3055 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 82.1 ns 82.1 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 2.67 % 2.67 % 4 -replace bb to ---- by init stringa|64_mean 92.5 ns 92.5 ns 4 -replace bb to ---- by init stringa|64_median 92.6 ns 92.6 ns 4 -replace bb to ---- by init stringa|64_stddev 2.76 ns 2.76 ns 4 -replace bb to ---- by init stringa|64_cv 2.98 % 2.98 % 4 -replace bb to ---- by init stringa|256_mean 293 ns 293 ns 4 -replace bb to ---- by init stringa|256_median 290 ns 290 ns 4 -replace bb to ---- by init stringa|256_stddev 5.68 ns 5.68 ns 4 -replace bb to ---- by init stringa|256_cv 1.94 % 1.94 % 4 -replace bb to ---- by init stringa|512_mean 687 ns 687 ns 4 -replace bb to ---- by init stringa|512_median 677 ns 677 ns 4 -replace bb to ---- by init stringa|512_stddev 26.9 ns 26.9 ns 4 -replace bb to ---- by init stringa|512_cv 3.92 % 3.92 % 4 -replace bb to ---- by init stringa|1024_mean 1581 ns 1581 ns 4 -replace bb to ---- by init stringa|1024_median 1585 ns 1585 ns 4 -replace bb to ---- by init stringa|1024_stddev 16.8 ns 16.8 ns 4 -replace bb to ---- by init stringa|1024_cv 1.06 % 1.06 % 4 -replace bb to ---- by init stringa|2048_mean 3167 ns 3167 ns 4 -replace bb to ---- by init stringa|2048_median 3165 ns 3165 ns 4 -replace bb to ---- by init stringa|2048_stddev 19.8 ns 19.8 ns 4 -replace bb to ---- by init stringa|2048_cv 0.62 % 0.62 % 4 +replace bb to ---- in lstringa<8>|64_median 126 ns 126 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 1.74 ns 1.74 ns 4 +replace bb to ---- in lstringa<8>|64_cv 1.37 % 1.37 % 4 +replace bb to ---- in lstringa<8>|256_mean 442 ns 442 ns 4 +replace bb to ---- in lstringa<8>|256_median 439 ns 439 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.23 % 2.23 % 4 +replace bb to ---- in lstringa<8>|512_mean 831 ns 831 ns 4 +replace bb to ---- in lstringa<8>|512_median 832 ns 832 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 13.7 ns 13.7 ns 4 +replace bb to ---- in lstringa<8>|512_cv 1.65 % 1.65 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1698 ns 1698 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1696 ns 1696 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 26.9 ns 26.9 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.59 % 1.59 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3256 ns 3256 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3280 ns 3280 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 73.1 ns 73.1 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 2.25 % 2.25 % 4 +replace bb to ---- by init stringa|64_mean 91.5 ns 91.5 ns 4 +replace bb to ---- by init stringa|64_median 91.9 ns 91.9 ns 4 +replace bb to ---- by init stringa|64_stddev 3.42 ns 3.42 ns 4 +replace bb to ---- by init stringa|64_cv 3.74 % 3.74 % 4 +replace bb to ---- by init stringa|256_mean 306 ns 306 ns 4 +replace bb to ---- by init stringa|256_median 305 ns 305 ns 4 +replace bb to ---- by init stringa|256_stddev 7.25 ns 7.25 ns 4 +replace bb to ---- by init stringa|256_cv 2.37 % 2.37 % 4 +replace bb to ---- by init stringa|512_mean 718 ns 718 ns 4 +replace bb to ---- by init stringa|512_median 719 ns 719 ns 4 +replace bb to ---- by init stringa|512_stddev 7.71 ns 7.71 ns 4 +replace bb to ---- by init stringa|512_cv 1.07 % 1.07 % 4 +replace bb to ---- by init stringa|1024_mean 1629 ns 1629 ns 4 +replace bb to ---- by init stringa|1024_median 1626 ns 1626 ns 4 +replace bb to ---- by init stringa|1024_stddev 21.1 ns 21.1 ns 4 +replace bb to ---- by init stringa|1024_cv 1.30 % 1.30 % 4 +replace bb to ---- by init stringa|2048_mean 3400 ns 3400 ns 4 +replace bb to ---- by init stringa|2048_median 3411 ns 3411 ns 4 +replace bb to ---- by init stringa|2048_stddev 57.0 ns 57.0 ns 4 +replace bb to ---- by init stringa|2048_cv 1.68 % 1.68 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 112 ns 112 ns 4 -replace bb to -- in std::string|64_median 111 ns 111 ns 4 -replace bb to -- in std::string|64_stddev 4.04 ns 4.04 ns 4 -replace bb to -- in std::string|64_cv 3.60 % 3.60 % 4 -replace bb to -- in std::string|256_mean 376 ns 376 ns 4 -replace bb to -- in std::string|256_median 376 ns 376 ns 4 -replace bb to -- in std::string|256_stddev 3.86 ns 3.86 ns 4 -replace bb to -- in std::string|256_cv 1.03 % 1.03 % 4 -replace bb to -- in std::string|512_mean 720 ns 720 ns 4 -replace bb to -- in std::string|512_median 718 ns 718 ns 4 -replace bb to -- in std::string|512_stddev 29.7 ns 29.7 ns 4 -replace bb to -- in std::string|512_cv 4.13 % 4.13 % 4 -replace bb to -- in std::string|1024_mean 1438 ns 1438 ns 4 -replace bb to -- in std::string|1024_median 1423 ns 1423 ns 4 -replace bb to -- in std::string|1024_stddev 64.0 ns 64.0 ns 4 -replace bb to -- in std::string|1024_cv 4.45 % 4.45 % 4 -replace bb to -- in std::string|2048_mean 2839 ns 2839 ns 4 -replace bb to -- in std::string|2048_median 2837 ns 2837 ns 4 -replace bb to -- in std::string|2048_stddev 40.2 ns 40.2 ns 4 -replace bb to -- in std::string|2048_cv 1.42 % 1.42 % 4 -replace bb to -- in lstringa<8>|64_mean 93.2 ns 93.2 ns 4 -replace bb to -- in lstringa<8>|64_median 93.3 ns 93.3 ns 4 -replace bb to -- in lstringa<8>|64_stddev 0.871 ns 0.871 ns 4 -replace bb to -- in lstringa<8>|64_cv 0.93 % 0.93 % 4 -replace bb to -- in lstringa<8>|256_mean 297 ns 297 ns 4 +replace bb to -- in std::string|64_mean 114 ns 114 ns 4 +replace bb to -- in std::string|64_median 113 ns 113 ns 4 +replace bb to -- in std::string|64_stddev 3.00 ns 3.00 ns 4 +replace bb to -- in std::string|64_cv 2.62 % 2.62 % 4 +replace bb to -- in std::string|256_mean 390 ns 390 ns 4 +replace bb to -- in std::string|256_median 391 ns 391 ns 4 +replace bb to -- in std::string|256_stddev 6.46 ns 6.46 ns 4 +replace bb to -- in std::string|256_cv 1.66 % 1.66 % 4 +replace bb to -- in std::string|512_mean 743 ns 743 ns 4 +replace bb to -- in std::string|512_median 741 ns 741 ns 4 +replace bb to -- in std::string|512_stddev 7.17 ns 7.17 ns 4 +replace bb to -- in std::string|512_cv 0.97 % 0.97 % 4 +replace bb to -- in std::string|1024_mean 1477 ns 1477 ns 4 +replace bb to -- in std::string|1024_median 1477 ns 1477 ns 4 +replace bb to -- in std::string|1024_stddev 22.5 ns 22.5 ns 4 +replace bb to -- in std::string|1024_cv 1.52 % 1.52 % 4 +replace bb to -- in std::string|2048_mean 2929 ns 2929 ns 4 +replace bb to -- in std::string|2048_median 2932 ns 2932 ns 4 +replace bb to -- in std::string|2048_stddev 32.1 ns 32.1 ns 4 +replace bb to -- in std::string|2048_cv 1.09 % 1.09 % 4 +replace bb to -- in lstringa<8>|64_mean 89.2 ns 89.2 ns 4 +replace bb to -- in lstringa<8>|64_median 88.6 ns 88.6 ns 4 +replace bb to -- in lstringa<8>|64_stddev 1.62 ns 1.62 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.82 % 1.82 % 4 +replace bb to -- in lstringa<8>|256_mean 295 ns 295 ns 4 replace bb to -- in lstringa<8>|256_median 296 ns 296 ns 4 -replace bb to -- in lstringa<8>|256_stddev 9.63 ns 9.63 ns 4 -replace bb to -- in lstringa<8>|256_cv 3.25 % 3.25 % 4 -replace bb to -- in lstringa<8>|512_mean 519 ns 519 ns 4 -replace bb to -- in lstringa<8>|512_median 517 ns 517 ns 4 -replace bb to -- in lstringa<8>|512_stddev 8.66 ns 8.66 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.67 % 1.67 % 4 -replace bb to -- in lstringa<8>|1024_mean 1081 ns 1081 ns 4 -replace bb to -- in lstringa<8>|1024_median 1081 ns 1081 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 7.31 ns 7.31 ns 4 -replace bb to -- in lstringa<8>|1024_cv 0.68 % 0.68 % 4 -replace bb to -- in lstringa<8>|2048_mean 2117 ns 2117 ns 4 -replace bb to -- in lstringa<8>|2048_median 2132 ns 2132 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 50.0 ns 50.0 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.36 % 2.36 % 4 -replace bb to -- by init stringa|64_mean 75.5 ns 75.5 ns 4 -replace bb to -- by init stringa|64_median 75.4 ns 75.4 ns 4 -replace bb to -- by init stringa|64_stddev 0.702 ns 0.702 ns 4 -replace bb to -- by init stringa|64_cv 0.93 % 0.93 % 4 -replace bb to -- by init stringa|256_mean 243 ns 243 ns 4 -replace bb to -- by init stringa|256_median 245 ns 245 ns 4 -replace bb to -- by init stringa|256_stddev 8.83 ns 8.84 ns 4 -replace bb to -- by init stringa|256_cv 3.63 % 3.63 % 4 -replace bb to -- by init stringa|512_mean 429 ns 429 ns 4 -replace bb to -- by init stringa|512_median 428 ns 428 ns 4 -replace bb to -- by init stringa|512_stddev 5.87 ns 5.87 ns 4 -replace bb to -- by init stringa|512_cv 1.37 % 1.37 % 4 -replace bb to -- by init stringa|1024_mean 909 ns 909 ns 4 -replace bb to -- by init stringa|1024_median 904 ns 904 ns 4 -replace bb to -- by init stringa|1024_stddev 43.4 ns 43.4 ns 4 -replace bb to -- by init stringa|1024_cv 4.77 % 4.77 % 4 -replace bb to -- by init stringa|2048_mean 1687 ns 1687 ns 4 -replace bb to -- by init stringa|2048_median 1682 ns 1682 ns 4 -replace bb to -- by init stringa|2048_stddev 16.6 ns 16.6 ns 4 -replace bb to -- by init stringa|2048_cv 0.98 % 0.98 % 4 +replace bb to -- in lstringa<8>|256_stddev 5.80 ns 5.80 ns 4 +replace bb to -- in lstringa<8>|256_cv 1.97 % 1.97 % 4 +replace bb to -- in lstringa<8>|512_mean 553 ns 553 ns 4 +replace bb to -- in lstringa<8>|512_median 547 ns 547 ns 4 +replace bb to -- in lstringa<8>|512_stddev 15.1 ns 14.9 ns 4 +replace bb to -- in lstringa<8>|512_cv 2.72 % 2.69 % 4 +replace bb to -- in lstringa<8>|1024_mean 1122 ns 1122 ns 4 +replace bb to -- in lstringa<8>|1024_median 1112 ns 1112 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 33.2 ns 33.2 ns 4 +replace bb to -- in lstringa<8>|1024_cv 2.96 % 2.96 % 4 +replace bb to -- in lstringa<8>|2048_mean 2088 ns 2088 ns 4 +replace bb to -- in lstringa<8>|2048_median 2076 ns 2076 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 33.4 ns 33.4 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.60 % 1.60 % 4 +replace bb to -- by init stringa|64_mean 73.9 ns 73.9 ns 4 +replace bb to -- by init stringa|64_median 74.1 ns 74.1 ns 4 +replace bb to -- by init stringa|64_stddev 1.95 ns 1.95 ns 4 +replace bb to -- by init stringa|64_cv 2.63 % 2.63 % 4 +replace bb to -- by init stringa|256_mean 240 ns 240 ns 4 +replace bb to -- by init stringa|256_median 240 ns 240 ns 4 +replace bb to -- by init stringa|256_stddev 3.28 ns 3.28 ns 4 +replace bb to -- by init stringa|256_cv 1.37 % 1.37 % 4 +replace bb to -- by init stringa|512_mean 434 ns 434 ns 4 +replace bb to -- by init stringa|512_median 434 ns 434 ns 4 +replace bb to -- by init stringa|512_stddev 4.69 ns 4.69 ns 4 +replace bb to -- by init stringa|512_cv 1.08 % 1.08 % 4 +replace bb to -- by init stringa|1024_mean 898 ns 898 ns 4 +replace bb to -- by init stringa|1024_median 897 ns 897 ns 4 +replace bb to -- by init stringa|1024_stddev 22.5 ns 22.5 ns 4 +replace bb to -- by init stringa|1024_cv 2.51 % 2.51 % 4 +replace bb to -- by init stringa|2048_mean 1709 ns 1709 ns 4 +replace bb to -- by init stringa|2048_median 1711 ns 1711 ns 4 +replace bb to -- by init stringa|2048_stddev 28.4 ns 28.4 ns 4 +replace bb to -- by init stringa|2048_cv 1.66 % 1.66 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3719139 ns 3719152 ns 4 -hashStrMapA emplace & find stringa;_median 3730503 ns 3730516 ns 4 -hashStrMapA emplace & find stringa;_stddev 107544 ns 107543 ns 4 -hashStrMapA emplace & find stringa;_cv 2.89 % 2.89 % 4 -std::unordered_map emplace & find std::string;_mean 3546099 ns 3546110 ns 4 -std::unordered_map emplace & find std::string;_median 3543718 ns 3543729 ns 4 -std::unordered_map emplace & find std::string;_stddev 96572 ns 96575 ns 4 -std::unordered_map emplace & find std::string;_cv 2.72 % 2.72 % 4 -hashStrMapA emplace & find ssa;_mean 3596978 ns 3596990 ns 4 -hashStrMapA emplace & find ssa;_median 3582222 ns 3582233 ns 4 -hashStrMapA emplace & find ssa;_stddev 32356 ns 32357 ns 4 -hashStrMapA emplace & find ssa;_cv 0.90 % 0.90 % 4 -std::unordered_map emplace & find std::string_view;_mean 4271995 ns 4272007 ns 4 -std::unordered_map emplace & find std::string_view;_median 4269262 ns 4269275 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 25174 ns 25173 ns 4 -std::unordered_map emplace & find std::string_view;_cv 0.59 % 0.59 % 4 +hashStrMapA emplace & find stringa;_mean 3754473 ns 3754484 ns 4 +hashStrMapA emplace & find stringa;_median 3770505 ns 3770516 ns 4 +hashStrMapA emplace & find stringa;_stddev 44910 ns 44913 ns 4 +hashStrMapA emplace & find stringa;_cv 1.20 % 1.20 % 4 +std::unordered_map emplace & find std::string;_mean 3584569 ns 3584594 ns 4 +std::unordered_map emplace & find std::string;_median 3584871 ns 3584864 ns 4 +std::unordered_map emplace & find std::string;_stddev 54232 ns 54206 ns 4 +std::unordered_map emplace & find std::string;_cv 1.51 % 1.51 % 4 +hashStrMapA emplace & find ssa;_mean 3718652 ns 3718652 ns 4 +hashStrMapA emplace & find ssa;_median 3722300 ns 3722310 ns 4 +hashStrMapA emplace & find ssa;_stddev 63421 ns 63405 ns 4 +hashStrMapA emplace & find ssa;_cv 1.71 % 1.71 % 4 +std::unordered_map emplace & find std::string_view;_mean 4196609 ns 4196628 ns 4 +std::unordered_map emplace & find std::string_view;_median 4205044 ns 4205067 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 39442 ns 39443 ns 4 +std::unordered_map emplace & find std::string_view;_cv 0.94 % 0.94 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 652 ns 652 ns 4 -Build func full name std::string;_median 646 ns 646 ns 4 -Build func full name std::string;_stddev 24.3 ns 24.3 ns 4 -Build func full name std::string;_cv 3.72 % 3.72 % 4 -Build func full name std::string 1;_mean 722 ns 722 ns 4 -Build func full name std::string 1;_median 723 ns 723 ns 4 -Build func full name std::string 1;_stddev 12.7 ns 12.7 ns 4 -Build func full name std::string 1;_cv 1.77 % 1.77 % 4 -Build func full name std::stream;_mean 2537 ns 2537 ns 4 -Build func full name std::stream;_median 2515 ns 2516 ns 4 -Build func full name std::stream;_stddev 55.7 ns 55.7 ns 4 -Build func full name std::stream;_cv 2.20 % 2.20 % 4 -Build func full name stringa;_mean 483 ns 483 ns 4 -Build func full name stringa;_median 475 ns 475 ns 4 -Build func full name stringa;_stddev 22.4 ns 22.4 ns 4 -Build func full name stringa;_cv 4.63 % 4.63 % 4 -Build func full name stringa 1;_mean 599 ns 599 ns 4 -Build func full name stringa 1;_median 597 ns 597 ns 4 -Build func full name stringa 1;_stddev 14.7 ns 14.7 ns 4 -Build func full name stringa 1;_cv 2.46 % 2.46 % 4 +Build func full name std::string;_mean 673 ns 673 ns 4 +Build func full name std::string;_median 673 ns 673 ns 4 +Build func full name std::string;_stddev 6.64 ns 6.64 ns 4 +Build func full name std::string;_cv 0.99 % 0.99 % 4 +Build func full name std::string 1;_mean 768 ns 768 ns 4 +Build func full name std::string 1;_median 770 ns 770 ns 4 +Build func full name std::string 1;_stddev 19.1 ns 19.1 ns 4 +Build func full name std::string 1;_cv 2.49 % 2.49 % 4 +Build func full name std::stream;_mean 3165 ns 3165 ns 4 +Build func full name std::stream;_median 3169 ns 3169 ns 4 +Build func full name std::stream;_stddev 34.1 ns 34.1 ns 4 +Build func full name std::stream;_cv 1.08 % 1.08 % 4 +Build func full name stringa;_mean 472 ns 472 ns 4 +Build func full name stringa;_median 474 ns 474 ns 4 +Build func full name stringa;_stddev 10.3 ns 10.3 ns 4 +Build func full name stringa;_cv 2.18 % 2.18 % 4 +Build func full name stringa 1;_mean 616 ns 616 ns 4 +Build func full name stringa 1;_median 600 ns 600 ns 4 +Build func full name stringa 1;_stddev 37.3 ns 37.3 ns 4 +Build func full name stringa 1;_cv 6.06 % 6.06 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 150 ns 150 ns 4 -To upper case std::wstring_median 150 ns 150 ns 4 -To upper case std::wstring_stddev 2.86 ns 2.86 ns 4 -To upper case std::wstring_cv 1.90 % 1.90 % 4 -To upper case lstringw<15>_mean 39.8 ns 39.8 ns 4 -To upper case lstringw<15>_median 39.9 ns 39.9 ns 4 -To upper case lstringw<15>_stddev 0.174 ns 0.174 ns 4 -To upper case lstringw<15>_cv 0.44 % 0.44 % 4 +To upper case std::wstring_mean 162 ns 162 ns 4 +To upper case std::wstring_median 161 ns 161 ns 4 +To upper case std::wstring_stddev 3.72 ns 3.72 ns 4 +To upper case std::wstring_cv 2.29 % 2.29 % 4 +To upper case lstringw<15>_mean 43.7 ns 43.7 ns 4 +To upper case lstringw<15>_median 42.9 ns 42.9 ns 4 +To upper case lstringw<15>_stddev 1.64 ns 1.64 ns 4 +To upper case lstringw<15>_cv 3.75 % 3.75 % 4 diff --git a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt index 2d25d91..452e69c 100644 --- a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt +++ b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler Clang 22.0.0, use libc++ -2026-02-27T22:45:08+03:00 +2026-03-22T13:31:21+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,980 +10,980 @@ CPU Caches: L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.03, 0.45, 0.43 +Load Average: 0.28, 0.77, 0.74 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. -------------------------------------------------------------------------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 167 ns 167 ns 4 -Concat email std::format_median 165 ns 165 ns 4 -Concat email std::format_stddev 6.31 ns 6.31 ns 4 -Concat email std::format_cv 3.78 % 3.78 % 4 -Concat email std::stringstream_mean 268 ns 268 ns 4 -Concat email std::stringstream_median 264 ns 264 ns 4 -Concat email std::stringstream_stddev 10.9 ns 10.9 ns 4 -Concat email std::stringstream_cv 4.05 % 4.05 % 4 +Concat email std::format_mean 170 ns 170 ns 4 +Concat email std::format_median 170 ns 170 ns 4 +Concat email std::format_stddev 3.56 ns 3.56 ns 4 +Concat email std::format_cv 2.09 % 2.09 % 4 +Concat email std::stringstream_mean 279 ns 279 ns 4 +Concat email std::stringstream_median 277 ns 277 ns 4 +Concat email std::stringstream_stddev 4.82 ns 4.82 ns 4 +Concat email std::stringstream_cv 1.73 % 1.73 % 4 Concat email stringzilla append_mean 141 ns 141 ns 4 Concat email stringzilla append_median 141 ns 141 ns 4 -Concat email stringzilla append_stddev 2.96 ns 2.96 ns 4 -Concat email stringzilla append_cv 2.10 % 2.10 % 4 -Concat email stringzilla concat_mean 58.3 ns 58.3 ns 4 -Concat email stringzilla concat_median 59.0 ns 59.0 ns 4 -Concat email stringzilla concat_stddev 2.06 ns 2.06 ns 4 -Concat email stringzilla concat_cv 3.54 % 3.54 % 4 -Concat email std::string append_mean 94.9 ns 94.9 ns 4 -Concat email std::string append_median 92.7 ns 92.7 ns 4 -Concat email std::string append_stddev 7.48 ns 7.48 ns 4 -Concat email std::string append_cv 7.88 % 7.88 % 4 -Concat email std::string by strexpr_mean 45.2 ns 45.2 ns 4 -Concat email std::string by strexpr_median 45.1 ns 45.1 ns 4 -Concat email std::string by strexpr_stddev 0.338 ns 0.338 ns 4 -Concat email std::string by strexpr_cv 0.75 % 0.75 % 4 -Concat email stringa_mean 39.3 ns 39.3 ns 4 -Concat email stringa_median 38.8 ns 38.8 ns 4 -Concat email stringa_stddev 1.26 ns 1.26 ns 4 -Concat email stringa_cv 3.21 % 3.21 % 4 +Concat email stringzilla append_stddev 1.31 ns 1.31 ns 4 +Concat email stringzilla append_cv 0.93 % 0.93 % 4 +Concat email stringzilla concat_mean 55.0 ns 55.0 ns 4 +Concat email stringzilla concat_median 55.5 ns 55.5 ns 4 +Concat email stringzilla concat_stddev 1.41 ns 1.41 ns 4 +Concat email stringzilla concat_cv 2.57 % 2.57 % 4 +Concat email std::string append_mean 91.0 ns 91.0 ns 4 +Concat email std::string append_median 91.0 ns 91.0 ns 4 +Concat email std::string append_stddev 0.590 ns 0.591 ns 4 +Concat email std::string append_cv 0.65 % 0.65 % 4 +Concat email std::string by strexpr_mean 46.8 ns 46.8 ns 4 +Concat email std::string by strexpr_median 46.7 ns 46.7 ns 4 +Concat email std::string by strexpr_stddev 1.12 ns 1.13 ns 4 +Concat email std::string by strexpr_cv 2.40 % 2.40 % 4 +Concat email stringa_mean 38.7 ns 38.7 ns 4 +Concat email stringa_median 38.6 ns 38.6 ns 4 +Concat email stringa_stddev 0.446 ns 0.446 ns 4 +Concat email stringa_cv 1.15 % 1.15 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 239 ns 239 ns 4 -Concat std::string and number by std to std::string_median 240 ns 240 ns 4 -Concat std::string and number by std to std::string_stddev 5.24 ns 5.24 ns 4 -Concat std::string and number by std to std::string_cv 2.19 % 2.19 % 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 100.0 ns 100.0 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 1.43 ns 1.43 ns 4 -Concat std::string and number by StrExpr to std::string_cv 1.42 % 1.42 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 65.1 ns 65.1 ns 4 +Concat std::string and number by std to std::string_mean 242 ns 242 ns 4 +Concat std::string and number by std to std::string_median 242 ns 242 ns 4 +Concat std::string and number by std to std::string_stddev 4.41 ns 4.41 ns 4 +Concat std::string and number by std to std::string_cv 1.82 % 1.82 % 4 +Concat std::string and number by StrExpr to std::string_mean 102 ns 102 ns 4 +Concat std::string and number by StrExpr to std::string_median 102 ns 102 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 2.17 ns 2.17 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.13 % 2.13 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 64.3 ns 64.3 ns 4 Concat stringa and number by StrExpr to simstr::stringa_median 64.5 ns 64.5 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 2.41 ns 2.41 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 3.69 % 3.69 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 67.8 ns 67.8 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 67.9 ns 67.9 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 0.788 ns 0.788 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 1.16 % 1.16 % 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 0.626 ns 0.626 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 0.97 % 0.97 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 72.1 ns 72.1 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 72.6 ns 72.6 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 1.16 ns 1.16 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 1.61 % 1.61 % 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 703 ns 703 ns 4 -Concat std::string and format hex number and literal to std::string_median 697 ns 697 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 18.7 ns 18.7 ns 4 -Concat std::string and format hex number and literal to std::string_cv 2.65 % 2.65 % 4 -std::format std::string and hex number by literal to std::string_mean 804 ns 804 ns 4 -std::format std::string and hex number by literal to std::string_median 787 ns 787 ns 4 -std::format std::string and hex number by literal to std::string_stddev 47.4 ns 47.4 ns 4 -std::format std::string and hex number by literal to std::string_cv 5.89 % 5.89 % 4 -Concat std::string and std::to_chars and string to std::string_mean 218 ns 218 ns 4 -Concat std::string and std::to_chars and string to std::string_median 218 ns 218 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 5.87 ns 5.87 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 2.69 % 2.69 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 145 ns 145 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 145 ns 145 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 0.874 ns 0.874 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 0.60 % 0.60 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 115 ns 115 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 115 ns 115 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.04 ns 2.04 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.77 % 1.77 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 123 ns 123 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 123 ns 123 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.43 ns 3.43 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.79 % 2.79 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 183 ns 183 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 184 ns 184 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.96 ns 4.96 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.71 % 2.71 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 320 ns 320 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 319 ns 319 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.95 ns 6.95 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.17 % 2.17 % 4 +Concat std::string and format hex number and literal to std::string_mean 724 ns 724 ns 4 +Concat std::string and format hex number and literal to std::string_median 719 ns 719 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 20.0 ns 20.0 ns 4 +Concat std::string and format hex number and literal to std::string_cv 2.76 % 2.77 % 4 +std::format std::string and hex number by literal to std::string_mean 783 ns 783 ns 4 +std::format std::string and hex number by literal to std::string_median 784 ns 784 ns 4 +std::format std::string and hex number by literal to std::string_stddev 20.1 ns 20.1 ns 4 +std::format std::string and hex number by literal to std::string_cv 2.56 % 2.56 % 4 +Concat std::string and std::to_chars and string to std::string_mean 221 ns 221 ns 4 +Concat std::string and std::to_chars and string to std::string_median 222 ns 222 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 3.44 ns 3.44 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.56 % 1.56 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 150 ns 150 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 151 ns 151 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 2.94 ns 2.94 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 1.96 % 1.96 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 120 ns 120 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 119 ns 119 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.85 ns 1.85 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.54 % 1.54 % 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 2.45 ns 2.45 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.97 % 1.97 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 187 ns 187 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 186 ns 186 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.21 ns 4.21 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.25 % 2.25 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 332 ns 332 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 334 ns 334 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.45 ns 5.45 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.64 % 1.64 % 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 278 ns 278 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 281 ns 281 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 8.53 ns 8.53 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.08 % 3.08 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 357 ns 357 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 361 ns 361 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 7.17 ns 7.17 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.01 % 2.01 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 640 ns 640 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 645 ns 645 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 21.4 ns 21.5 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 3.35 % 3.35 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 668 ns 668 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 660 ns 660 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 25.8 ns 25.8 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.87 % 3.87 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 795 ns 795 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 788 ns 788 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 21.0 ns 21.0 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.65 % 2.65 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1216 ns 1216 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1209 ns 1209 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 22.3 ns 22.3 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.83 % 1.83 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1243 ns 1243 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1238 ns 1238 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 48.6 ns 48.6 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 3.91 % 3.91 % 4 -std::format with std::formatted_size_mean 2159 ns 2159 ns 4 -std::format with std::formatted_size_median 2144 ns 2144 ns 4 -std::format with std::formatted_size_stddev 65.1 ns 65.1 ns 4 -std::format with std::formatted_size_cv 3.01 % 3.01 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2594 ns 2594 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2601 ns 2601 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 95.5 ns 95.5 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.68 % 3.68 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 277 ns 277 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 3.23 ns 3.23 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.16 % 1.16 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 358 ns 358 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 358 ns 358 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.17 ns 4.17 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.16 % 1.16 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 608 ns 608 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 607 ns 607 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 8.27 ns 8.26 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.36 % 1.36 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 697 ns 697 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 695 ns 695 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 8.91 ns 8.91 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.28 % 1.28 % 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 23.1 ns 23.1 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.84 % 2.84 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1268 ns 1268 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1255 ns 1255 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.3 ns 30.3 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.39 % 2.39 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1228 ns 1228 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1227 ns 1227 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 9.77 ns 9.77 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 0.80 % 0.80 % 4 +std::format with std::formatted_size_mean 2175 ns 2175 ns 4 +std::format with std::formatted_size_median 2181 ns 2180 ns 4 +std::format with std::formatted_size_stddev 13.9 ns 13.9 ns 4 +std::format with std::formatted_size_cv 0.64 % 0.64 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2608 ns 2608 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2609 ns 2609 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 18.4 ns 18.4 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 0.71 % 0.70 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 34.0 ns 34.0 ns 4 -Concat std::string by std to std::string_median 34.1 ns 34.1 ns 4 -Concat std::string by std to std::string_stddev 0.814 ns 0.814 ns 4 -Concat std::string by std to std::string_cv 2.39 % 2.39 % 4 -Concat std::string by StrExpr to std::string_mean 36.0 ns 36.0 ns 4 -Concat std::string by StrExpr to std::string_median 35.9 ns 35.9 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.27 ns 1.27 ns 4 -Concat std::string by StrExpr to std::string_cv 3.52 % 3.52 % 4 -Concat stringa by StrExpr to stringa_mean 29.4 ns 29.4 ns 4 -Concat stringa by StrExpr to stringa_median 29.3 ns 29.3 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.424 ns 0.424 ns 4 -Concat stringa by StrExpr to stringa_cv 1.44 % 1.44 % 4 +Concat std::string by std to std::string_mean 34.1 ns 34.1 ns 4 +Concat std::string by std to std::string_median 33.7 ns 33.7 ns 4 +Concat std::string by std to std::string_stddev 0.874 ns 0.874 ns 4 +Concat std::string by std to std::string_cv 2.56 % 2.56 % 4 +Concat std::string by StrExpr to std::string_mean 37.3 ns 37.3 ns 4 +Concat std::string by StrExpr to std::string_median 37.2 ns 37.2 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.340 ns 0.340 ns 4 +Concat std::string by StrExpr to std::string_cv 0.91 % 0.91 % 4 +Concat stringa by StrExpr to stringa_mean 28.3 ns 28.3 ns 4 +Concat stringa by StrExpr to stringa_median 28.0 ns 28.0 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.716 ns 0.716 ns 4 +Concat stringa by StrExpr to stringa_cv 2.53 % 2.53 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 90.6 ns 90.6 ns 4 -Find concat three std::string_median 89.4 ns 89.4 ns 4 -Find concat three std::string_stddev 3.87 ns 3.87 ns 4 -Find concat three std::string_cv 4.28 % 4.28 % 4 -Find concat three strexpr_mean 43.1 ns 43.1 ns 4 -Find concat three strexpr_median 43.0 ns 43.0 ns 4 -Find concat three strexpr_stddev 1.13 ns 1.13 ns 4 -Find concat three strexpr_cv 2.62 % 2.62 % 4 -Find concat three simstr_mean 16.6 ns 16.6 ns 4 -Find concat three simstr_median 16.5 ns 16.5 ns 4 -Find concat three simstr_stddev 0.696 ns 0.696 ns 4 -Find concat three simstr_cv 4.20 % 4.20 % 4 -Find concat three stringzilla string_mean 135 ns 135 ns 4 -Find concat three stringzilla string_median 134 ns 134 ns 4 -Find concat three stringzilla string_stddev 4.57 ns 4.57 ns 4 -Find concat three stringzilla string_cv 3.39 % 3.39 % 4 +Find concat three std::string_mean 92.4 ns 92.4 ns 4 +Find concat three std::string_median 92.1 ns 92.1 ns 4 +Find concat three std::string_stddev 1.44 ns 1.44 ns 4 +Find concat three std::string_cv 1.56 % 1.56 % 4 +Find concat three strexpr_mean 46.5 ns 46.5 ns 4 +Find concat three strexpr_median 45.9 ns 45.9 ns 4 +Find concat three strexpr_stddev 1.25 ns 1.25 ns 4 +Find concat three strexpr_cv 2.68 % 2.68 % 4 +Find concat three simstr_mean 17.0 ns 17.0 ns 4 +Find concat three simstr_median 16.9 ns 16.9 ns 4 +Find concat three simstr_stddev 0.649 ns 0.649 ns 4 +Find concat three simstr_cv 3.81 % 3.81 % 4 +Find concat three stringzilla string_mean 176 ns 176 ns 4 +Find concat three stringzilla string_median 177 ns 177 ns 4 +Find concat three stringzilla string_stddev 4.56 ns 4.56 ns 4 +Find concat three stringzilla string_cv 2.59 % 2.59 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 6.79 ns 6.79 ns 4 -BuildTypeNameStr 0/0_median 6.77 ns 6.77 ns 4 -BuildTypeNameStr 0/0_stddev 0.070 ns 0.070 ns 4 -BuildTypeNameStr 0/0_cv 1.04 % 1.04 % 4 -BuildTypeNameExp 0/0_mean 5.99 ns 5.99 ns 4 -BuildTypeNameExp 0/0_median 5.99 ns 5.99 ns 4 -BuildTypeNameExp 0/0_stddev 0.136 ns 0.136 ns 4 -BuildTypeNameExp 0/0_cv 2.28 % 2.28 % 4 -BuildTypeNameSim 0/0_mean 4.28 ns 4.28 ns 4 -BuildTypeNameSim 0/0_median 4.27 ns 4.27 ns 4 -BuildTypeNameSim 0/0_stddev 0.141 ns 0.141 ns 4 -BuildTypeNameSim 0/0_cv 3.29 % 3.29 % 4 -BuildTypeNameStr 10/10_mean 88.9 ns 88.9 ns 4 -BuildTypeNameStr 10/10_median 88.9 ns 88.9 ns 4 -BuildTypeNameStr 10/10_stddev 2.17 ns 2.17 ns 4 -BuildTypeNameStr 10/10_cv 2.44 % 2.44 % 4 -BuildTypeNameExp 10/10_mean 38.8 ns 38.8 ns 4 -BuildTypeNameExp 10/10_median 38.5 ns 38.5 ns 4 -BuildTypeNameExp 10/10_stddev 0.836 ns 0.836 ns 4 -BuildTypeNameExp 10/10_cv 2.15 % 2.15 % 4 -BuildTypeNameSim 10/10_mean 23.5 ns 23.5 ns 4 -BuildTypeNameSim 10/10_median 23.4 ns 23.4 ns 4 -BuildTypeNameSim 10/10_stddev 0.549 ns 0.549 ns 4 -BuildTypeNameSim 10/10_cv 2.34 % 2.34 % 4 +BuildTypeNameStr 0/0_mean 6.45 ns 6.44 ns 4 +BuildTypeNameStr 0/0_median 6.46 ns 6.46 ns 4 +BuildTypeNameStr 0/0_stddev 0.192 ns 0.192 ns 4 +BuildTypeNameStr 0/0_cv 2.97 % 2.97 % 4 +BuildTypeNameExp 0/0_mean 6.41 ns 6.41 ns 4 +BuildTypeNameExp 0/0_median 6.39 ns 6.39 ns 4 +BuildTypeNameExp 0/0_stddev 0.052 ns 0.052 ns 4 +BuildTypeNameExp 0/0_cv 0.81 % 0.81 % 4 +BuildTypeNameSim 0/0_mean 4.99 ns 4.99 ns 4 +BuildTypeNameSim 0/0_median 4.98 ns 4.98 ns 4 +BuildTypeNameSim 0/0_stddev 0.092 ns 0.092 ns 4 +BuildTypeNameSim 0/0_cv 1.84 % 1.84 % 4 +BuildTypeNameStr 10/10_mean 90.0 ns 90.0 ns 4 +BuildTypeNameStr 10/10_median 89.9 ns 89.9 ns 4 +BuildTypeNameStr 10/10_stddev 0.738 ns 0.739 ns 4 +BuildTypeNameStr 10/10_cv 0.82 % 0.82 % 4 +BuildTypeNameExp 10/10_mean 39.0 ns 39.0 ns 4 +BuildTypeNameExp 10/10_median 39.2 ns 39.2 ns 4 +BuildTypeNameExp 10/10_stddev 1.05 ns 1.05 ns 4 +BuildTypeNameExp 10/10_cv 2.70 % 2.70 % 4 +BuildTypeNameSim 10/10_mean 23.6 ns 23.6 ns 4 +BuildTypeNameSim 10/10_median 23.6 ns 23.6 ns 4 +BuildTypeNameSim 10/10_stddev 0.539 ns 0.539 ns 4 +BuildTypeNameSim 10/10_cv 2.28 % 2.28 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 233 ns 233 ns 4 -Concat with replace str_median 233 ns 233 ns 4 -Concat with replace str_stddev 1.09 ns 1.09 ns 4 -Concat with replace str_cv 0.47 % 0.47 % 4 -Concat with replace exp_mean 140 ns 140 ns 4 -Concat with replace exp_median 139 ns 139 ns 4 -Concat with replace exp_stddev 4.92 ns 4.92 ns 4 -Concat with replace exp_cv 3.51 % 3.51 % 4 +Concat with replace str_mean 243 ns 243 ns 4 +Concat with replace str_median 243 ns 243 ns 4 +Concat with replace str_stddev 5.58 ns 5.58 ns 4 +Concat with replace str_cv 2.29 % 2.29 % 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 1.04 ns 1.03 ns 4 +Concat with replace exp_cv 0.69 % 0.69 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 0.742 ns 0.742 ns 4 -std::string e;_median 0.738 ns 0.738 ns 4 -std::string e;_stddev 0.013 ns 0.013 ns 4 -std::string e;_cv 1.70 % 1.70 % 4 -std::string_view e;_mean 0.373 ns 0.373 ns 4 -std::string_view e;_median 0.372 ns 0.372 ns 4 -std::string_view e;_stddev 0.009 ns 0.009 ns 4 -std::string_view e;_cv 2.50 % 2.50 % 4 +std::string e;_mean 0.758 ns 0.758 ns 4 +std::string e;_median 0.756 ns 0.756 ns 4 +std::string e;_stddev 0.006 ns 0.006 ns 4 +std::string e;_cv 0.74 % 0.74 % 4 +std::string_view e;_mean 0.380 ns 0.380 ns 4 +std::string_view e;_median 0.380 ns 0.380 ns 4 +std::string_view e;_stddev 0.002 ns 0.002 ns 4 +std::string_view e;_cv 0.49 % 0.49 % 4 ssa e;_mean 0.375 ns 0.375 ns 4 -ssa e;_median 0.374 ns 0.374 ns 4 -ssa e;_stddev 0.010 ns 0.010 ns 4 -ssa e;_cv 2.55 % 2.55 % 4 -stringa e;_mean 0.763 ns 0.763 ns 4 -stringa e;_median 0.771 ns 0.771 ns 4 -stringa e;_stddev 0.022 ns 0.022 ns 4 -stringa e;_cv 2.83 % 2.83 % 4 -lstringa<20> e;_mean 1.10 ns 1.10 ns 4 -lstringa<20> e;_median 1.10 ns 1.10 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.10 ns 1.10 ns 4 -lstringa<40> e;_median 1.10 ns 1.10 ns 4 -lstringa<40> e;_stddev 0.015 ns 0.015 ns 4 -lstringa<40> e;_cv 1.38 % 1.38 % 4 +ssa e;_median 0.375 ns 0.375 ns 4 +ssa e;_stddev 0.006 ns 0.006 ns 4 +ssa e;_cv 1.57 % 1.57 % 4 +stringa e;_mean 0.754 ns 0.754 ns 4 +stringa e;_median 0.754 ns 0.754 ns 4 +stringa e;_stddev 0.005 ns 0.005 ns 4 +stringa e;_cv 0.66 % 0.66 % 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.026 ns 0.026 ns 4 +lstringa<20> e;_cv 2.28 % 2.28 % 4 +lstringa<40> e;_mean 1.14 ns 1.14 ns 4 +lstringa<40> e;_median 1.15 ns 1.15 ns 4 +lstringa<40> e;_stddev 0.027 ns 0.027 ns 4 +lstringa<40> e;_cv 2.39 % 2.39 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.46 ns 1.46 ns 4 -std::string e = "Test text";_median 1.46 ns 1.46 ns 4 -std::string e = "Test text";_stddev 0.009 ns 0.009 ns 4 -std::string e = "Test text";_cv 0.61 % 0.61 % 4 -std::string_view e = "Test text";_mean 0.741 ns 0.741 ns 4 -std::string_view e = "Test text";_median 0.737 ns 0.737 ns 4 -std::string_view e = "Test text";_stddev 0.020 ns 0.020 ns 4 -std::string_view e = "Test text";_cv 2.73 % 2.73 % 4 -ssa e = "Test text";_mean 0.370 ns 0.370 ns 4 -ssa e = "Test text";_median 0.370 ns 0.370 ns 4 +std::string e = "Test text";_mean 1.51 ns 1.51 ns 4 +std::string e = "Test text";_median 1.51 ns 1.51 ns 4 +std::string e = "Test text";_stddev 0.020 ns 0.020 ns 4 +std::string e = "Test text";_cv 1.30 % 1.30 % 4 +std::string_view e = "Test text";_mean 0.767 ns 0.767 ns 4 +std::string_view e = "Test text";_median 0.765 ns 0.765 ns 4 +std::string_view e = "Test text";_stddev 0.010 ns 0.010 ns 4 +std::string_view e = "Test text";_cv 1.33 % 1.33 % 4 +ssa e = "Test text";_mean 0.381 ns 0.381 ns 4 +ssa e = "Test text";_median 0.382 ns 0.382 ns 4 ssa e = "Test text";_stddev 0.006 ns 0.006 ns 4 -ssa e = "Test text";_cv 1.66 % 1.66 % 4 -stringa e = "Test text";_mean 1.12 ns 1.12 ns 4 -stringa e = "Test text";_median 1.11 ns 1.11 ns 4 -stringa e = "Test text";_stddev 0.023 ns 0.023 ns 4 -stringa e = "Test text";_cv 2.09 % 2.09 % 4 -lstringa<20> e = "Test text";_mean 1.86 ns 1.86 ns 4 -lstringa<20> e = "Test text";_median 1.84 ns 1.84 ns 4 -lstringa<20> e = "Test text";_stddev 0.053 ns 0.053 ns 4 -lstringa<20> e = "Test text";_cv 2.83 % 2.83 % 4 -lstringa<40> e = "Test text";_mean 1.87 ns 1.87 ns 4 -lstringa<40> e = "Test text";_median 1.87 ns 1.87 ns 4 -lstringa<40> e = "Test text";_stddev 0.045 ns 0.045 ns 4 -lstringa<40> e = "Test text";_cv 2.42 % 2.42 % 4 +ssa e = "Test text";_cv 1.64 % 1.64 % 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.014 ns 0.014 ns 4 +stringa e = "Test text";_cv 1.24 % 1.24 % 4 +lstringa<20> e = "Test text";_mean 1.89 ns 1.89 ns 4 +lstringa<20> e = "Test text";_median 1.89 ns 1.89 ns 4 +lstringa<20> e = "Test text";_stddev 0.038 ns 0.038 ns 4 +lstringa<20> e = "Test text";_cv 2.03 % 2.03 % 4 +lstringa<40> e = "Test text";_mean 1.86 ns 1.86 ns 4 +lstringa<40> e = "Test text";_median 1.86 ns 1.86 ns 4 +lstringa<40> e = "Test text";_stddev 0.017 ns 0.017 ns 4 +lstringa<40> e = "Test text";_cv 0.92 % 0.92 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 18.8 ns 18.8 ns 4 -std::string e = "123456789012345678901234567890";_median 18.8 ns 18.8 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.184 ns 0.184 ns 4 -std::string e = "123456789012345678901234567890";_cv 0.97 % 0.97 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.732 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.733 ns 0.733 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.005 ns 0.005 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 0.68 % 0.68 % 4 -ssa e = "123456789012345678901234567890";_mean 0.371 ns 0.371 ns 4 -ssa e = "123456789012345678901234567890";_median 0.370 ns 0.370 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4 -ssa e = "123456789012345678901234567890";_cv 1.69 % 1.69 % 4 -stringa e = "123456789012345678901234567890";_mean 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890";_median 1.09 ns 1.09 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.039 ns 0.039 ns 4 -stringa e = "123456789012345678901234567890";_cv 3.56 % 3.56 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 19.2 ns 19.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 19.1 ns 19.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.311 ns 0.311 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 1.62 % 1.62 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 1.84 ns 1.84 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 1.84 ns 1.84 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.031 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.69 % 1.69 % 4 +std::string e = "123456789012345678901234567890";_mean 19.3 ns 19.3 ns 4 +std::string e = "123456789012345678901234567890";_median 19.3 ns 19.2 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.214 ns 0.214 ns 4 +std::string e = "123456789012345678901234567890";_cv 1.11 % 1.11 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.745 ns 0.745 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.745 ns 0.745 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.016 ns 0.016 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 2.09 % 2.09 % 4 +ssa e = "123456789012345678901234567890";_mean 0.374 ns 0.374 ns 4 +ssa e = "123456789012345678901234567890";_median 0.373 ns 0.373 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.004 ns 0.004 ns 4 +ssa e = "123456789012345678901234567890";_cv 1.01 % 1.01 % 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.017 ns 0.017 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.53 % 1.53 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 18.9 ns 18.9 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 18.9 ns 18.9 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.143 ns 0.143 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 0.75 % 0.75 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 1.89 ns 1.89 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 1.89 ns 1.89 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.023 ns 0.023 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 1.21 % 1.22 % 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 1.12 ns 1.12 ns 4 -std::string e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.42 % 1.42 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.373 ns 0.373 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.372 ns 0.372 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.009 ns 0.009 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 2.47 % 2.47 % 4 -ssa e = "Test text"; auto c{e};_mean 0.368 ns 0.369 ns 4 -ssa e = "Test text"; auto c{e};_median 0.368 ns 0.368 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.26 % 1.26 % 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.09 ns 1.09 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.017 ns 0.017 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.57 % 1.57 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.11 ns 1.11 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.10 ns 1.10 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.026 ns 0.026 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 2.39 % 2.39 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.82 ns 1.82 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.81 ns 1.81 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.033 ns 0.033 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.83 % 1.84 % 4 +std::string e = "Test text"; auto c{e};_mean 1.18 ns 1.18 ns 4 +std::string e = "Test text"; auto c{e};_median 1.18 ns 1.18 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.010 ns 0.010 ns 4 +std::string e = "Test text"; auto c{e};_cv 0.82 % 0.82 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.377 ns 0.377 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.004 ns 0.004 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 1.03 % 1.03 % 4 +ssa e = "Test text"; auto c{e};_mean 0.378 ns 0.378 ns 4 +ssa e = "Test text"; auto c{e};_median 0.378 ns 0.378 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.80 % 0.80 % 4 +stringa e = "Test text"; auto c{e};_mean 1.13 ns 1.13 ns 4 +stringa e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.020 ns 0.020 ns 4 +stringa e = "Test text"; auto c{e};_cv 1.76 % 1.76 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 1.12 ns 1.12 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.012 ns 0.012 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 1.04 % 1.04 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 1.85 ns 1.85 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 1.85 ns 1.85 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.023 ns 0.023 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.27 % 1.27 % 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 24.0 ns 24.0 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 23.3 ns 23.3 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.44 ns 1.44 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 6.01 % 6.01 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.737 ns 0.737 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.736 ns 0.736 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.015 ns 0.015 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.99 % 1.99 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.372 ns 0.372 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.368 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.012 ns 0.012 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 3.33 % 3.33 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.12 ns 1.12 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.10 ns 1.10 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.049 ns 0.049 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 4.33 % 4.33 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 18.2 ns 18.2 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 18.2 ns 18.2 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.408 ns 0.408 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.24 % 2.24 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.02 ns 5.02 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.00 ns 5.00 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.037 ns 0.037 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 0.74 % 0.74 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 24.9 ns 24.9 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 24.8 ns 24.8 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.277 ns 0.277 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.11 % 1.11 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.757 ns 0.757 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.754 ns 0.754 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.67 % 1.67 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.381 ns 0.381 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.382 ns 0.382 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.004 ns 0.004 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.01 % 1.01 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.14 ns 1.14 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 1.14 ns 1.14 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.66 % 1.66 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 18.0 ns 18.0 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 18.1 ns 18.1 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.454 ns 0.454 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.52 % 2.52 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.53 ns 5.53 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.52 ns 5.52 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.080 ns 0.080 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.45 % 1.45 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 96.2 ns 96.2 ns 4 -sz::string::find;_median 95.5 ns 95.5 ns 4 -sz::string::find;_stddev 2.34 ns 2.34 ns 4 -sz::string::find;_cv 2.44 % 2.44 % 4 -std::string::find;_mean 7.46 ns 7.46 ns 4 -std::string::find;_median 7.45 ns 7.45 ns 4 -std::string::find;_stddev 0.118 ns 0.118 ns 4 -std::string::find;_cv 1.58 % 1.58 % 4 -std::string_view::find;_mean 7.13 ns 7.13 ns 4 -std::string_view::find;_median 7.09 ns 7.09 ns 4 -std::string_view::find;_stddev 0.140 ns 0.140 ns 4 -std::string_view::find;_cv 1.96 % 1.96 % 4 -ssa::find;_mean 6.97 ns 6.97 ns 4 -ssa::find;_median 6.95 ns 6.96 ns 4 -ssa::find;_stddev 0.101 ns 0.101 ns 4 -ssa::find;_cv 1.45 % 1.45 % 4 -stringa::find;_mean 7.88 ns 7.88 ns 4 -stringa::find;_median 7.88 ns 7.88 ns 4 -stringa::find;_stddev 0.069 ns 0.069 ns 4 -stringa::find;_cv 0.88 % 0.88 % 4 -lstringa<20>::find;_mean 6.73 ns 6.73 ns 4 -lstringa<20>::find;_median 6.72 ns 6.72 ns 4 -lstringa<20>::find;_stddev 0.117 ns 0.117 ns 4 -lstringa<20>::find;_cv 1.74 % 1.74 % 4 -lstringa<40>::find;_mean 6.79 ns 6.79 ns 4 -lstringa<40>::find;_median 6.79 ns 6.79 ns 4 -lstringa<40>::find;_stddev 0.155 ns 0.155 ns 4 -lstringa<40>::find;_cv 2.28 % 2.28 % 4 +sz::string::find;_mean 96.5 ns 96.5 ns 4 +sz::string::find;_median 96.3 ns 96.3 ns 4 +sz::string::find;_stddev 1.47 ns 1.47 ns 4 +sz::string::find;_cv 1.53 % 1.53 % 4 +std::string::find;_mean 7.76 ns 7.76 ns 4 +std::string::find;_median 7.84 ns 7.84 ns 4 +std::string::find;_stddev 0.180 ns 0.180 ns 4 +std::string::find;_cv 2.31 % 2.31 % 4 +std::string_view::find;_mean 7.82 ns 7.82 ns 4 +std::string_view::find;_median 7.85 ns 7.84 ns 4 +std::string_view::find;_stddev 0.082 ns 0.082 ns 4 +std::string_view::find;_cv 1.05 % 1.05 % 4 +ssa::find;_mean 7.82 ns 7.82 ns 4 +ssa::find;_median 7.81 ns 7.81 ns 4 +ssa::find;_stddev 0.113 ns 0.113 ns 4 +ssa::find;_cv 1.44 % 1.45 % 4 +stringa::find;_mean 8.60 ns 8.60 ns 4 +stringa::find;_median 8.59 ns 8.59 ns 4 +stringa::find;_stddev 0.045 ns 0.045 ns 4 +stringa::find;_cv 0.52 % 0.52 % 4 +lstringa<20>::find;_mean 6.98 ns 6.98 ns 4 +lstringa<20>::find;_median 6.95 ns 6.95 ns 4 +lstringa<20>::find;_stddev 0.090 ns 0.090 ns 4 +lstringa<20>::find;_cv 1.29 % 1.29 % 4 +lstringa<40>::find;_mean 7.01 ns 7.01 ns 4 +lstringa<40>::find;_median 7.02 ns 7.02 ns 4 +lstringa<40>::find;_stddev 0.253 ns 0.253 ns 4 +lstringa<40>::find;_cv 3.61 % 3.61 % 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.17 ns 1.17 ns 4 +std::string copy{str_with_len_N};/15_mean 1.18 ns 1.18 ns 4 std::string copy{str_with_len_N};/15_median 1.17 ns 1.17 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.050 ns 0.050 ns 4 -std::string copy{str_with_len_N};/15_cv 4.28 % 4.28 % 4 -std::string copy{str_with_len_N};/16_mean 1.22 ns 1.22 ns 4 -std::string copy{str_with_len_N};/16_median 1.20 ns 1.20 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.091 ns 0.091 ns 4 -std::string copy{str_with_len_N};/16_cv 7.42 % 7.42 % 4 -std::string copy{str_with_len_N};/23_mean 23.9 ns 23.9 ns 4 -std::string copy{str_with_len_N};/23_median 23.9 ns 23.9 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.073 ns 0.073 ns 4 -std::string copy{str_with_len_N};/23_cv 0.31 % 0.31 % 4 -std::string copy{str_with_len_N};/24_mean 24.6 ns 24.6 ns 4 -std::string copy{str_with_len_N};/24_median 24.7 ns 24.7 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.974 ns 0.974 ns 4 -std::string copy{str_with_len_N};/24_cv 3.96 % 3.96 % 4 -std::string copy{str_with_len_N};/32_mean 23.8 ns 23.8 ns 4 -std::string copy{str_with_len_N};/32_median 23.8 ns 23.8 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.382 ns 0.382 ns 4 -std::string copy{str_with_len_N};/32_cv 1.61 % 1.61 % 4 -std::string copy{str_with_len_N};/64_mean 25.7 ns 25.7 ns 4 -std::string copy{str_with_len_N};/64_median 25.2 ns 25.2 ns 4 -std::string copy{str_with_len_N};/64_stddev 1.35 ns 1.35 ns 4 -std::string copy{str_with_len_N};/64_cv 5.25 % 5.25 % 4 -std::string copy{str_with_len_N};/128_mean 26.5 ns 26.5 ns 4 -std::string copy{str_with_len_N};/128_median 26.7 ns 26.7 ns 4 -std::string copy{str_with_len_N};/128_stddev 1.17 ns 1.17 ns 4 -std::string copy{str_with_len_N};/128_cv 4.40 % 4.40 % 4 -std::string copy{str_with_len_N};/256_mean 27.7 ns 27.7 ns 4 -std::string copy{str_with_len_N};/256_median 27.4 ns 27.4 ns 4 -std::string copy{str_with_len_N};/256_stddev 1.18 ns 1.18 ns 4 -std::string copy{str_with_len_N};/256_cv 4.25 % 4.25 % 4 -std::string copy{str_with_len_N};/512_mean 31.2 ns 31.2 ns 4 -std::string copy{str_with_len_N};/512_median 30.9 ns 30.9 ns 4 -std::string copy{str_with_len_N};/512_stddev 1.01 ns 1.01 ns 4 -std::string copy{str_with_len_N};/512_cv 3.24 % 3.24 % 4 -std::string copy{str_with_len_N};/1024_mean 38.2 ns 38.2 ns 4 -std::string copy{str_with_len_N};/1024_median 38.0 ns 38.0 ns 4 -std::string copy{str_with_len_N};/1024_stddev 1.44 ns 1.44 ns 4 -std::string copy{str_with_len_N};/1024_cv 3.76 % 3.76 % 4 -std::string copy{str_with_len_N};/2048_mean 86.4 ns 86.4 ns 4 -std::string copy{str_with_len_N};/2048_median 88.6 ns 88.6 ns 4 -std::string copy{str_with_len_N};/2048_stddev 4.83 ns 4.83 ns 4 -std::string copy{str_with_len_N};/2048_cv 5.59 % 5.59 % 4 -std::string copy{str_with_len_N};/4096_mean 115 ns 115 ns 4 -std::string copy{str_with_len_N};/4096_median 116 ns 116 ns 4 -std::string copy{str_with_len_N};/4096_stddev 3.08 ns 3.08 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.67 % 2.67 % 4 -stringa copy{str_with_len_N};/15_mean 1.10 ns 1.10 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.024 ns 0.024 ns 4 -stringa copy{str_with_len_N};/15_cv 2.13 % 2.13 % 4 -stringa copy{str_with_len_N};/16_mean 1.14 ns 1.14 ns 4 -stringa copy{str_with_len_N};/16_median 1.13 ns 1.13 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.036 ns 0.036 ns 4 -stringa copy{str_with_len_N};/16_cv 3.18 % 3.18 % 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.015 ns 0.015 ns 4 -stringa copy{str_with_len_N};/23_cv 1.38 % 1.38 % 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.057 ns 0.057 ns 4 -stringa copy{str_with_len_N};/24_cv 0.35 % 0.35 % 4 -stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 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.039 ns 0.039 ns 4 -stringa copy{str_with_len_N};/32_cv 0.24 % 0.24 % 4 -stringa copy{str_with_len_N};/64_mean 16.1 ns 16.1 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.256 ns 0.256 ns 4 -stringa copy{str_with_len_N};/64_cv 1.58 % 1.58 % 4 -stringa copy{str_with_len_N};/128_mean 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/128_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.237 ns 0.237 ns 4 -stringa copy{str_with_len_N};/128_cv 1.47 % 1.47 % 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.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.443 ns 0.443 ns 4 -stringa copy{str_with_len_N};/256_cv 2.72 % 2.72 % 4 -stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.033 ns 0.033 ns 4 -stringa copy{str_with_len_N};/512_cv 0.21 % 0.21 % 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.059 ns 0.059 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.37 % 0.37 % 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.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.282 ns 0.282 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.75 % 1.75 % 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.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.042 ns 0.042 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.26 % 0.26 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.032 ns 0.032 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.84 % 2.84 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 5.27 ns 5.27 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 5.25 ns 5.25 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.172 ns 0.172 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 3.26 % 3.26 % 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.160 ns 0.160 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 3.06 % 3.06 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 23.1 ns 23.1 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 23.0 ns 23.0 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.960 ns 0.960 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 4.15 % 4.15 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 22.8 ns 22.8 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 22.7 ns 22.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.628 ns 0.628 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 2.75 % 2.75 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 24.2 ns 24.2 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 24.2 ns 24.2 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.661 ns 0.661 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 2.73 % 2.73 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 23.9 ns 23.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 23.8 ns 23.8 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.313 ns 0.313 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 1.31 % 1.31 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 26.8 ns 26.8 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.562 ns 0.562 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.10 % 2.10 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 29.0 ns 29.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 29.0 ns 29.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 1.21 ns 1.21 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 4.19 % 4.19 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 78.3 ns 78.3 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 84.9 ns 84.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 17.1 ns 17.1 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 21.87 % 21.87 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 74.6 ns 74.6 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 76.2 ns 76.2 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 7.81 ns 7.81 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 10.47 % 10.47 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 89.5 ns 89.5 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 89.9 ns 89.9 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 3.44 ns 3.44 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 3.84 % 3.84 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 1.14 ns 1.14 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.043 ns 0.043 ns 4 +std::string copy{str_with_len_N};/15_cv 3.65 % 3.65 % 4 +std::string copy{str_with_len_N};/16_mean 1.16 ns 1.16 ns 4 +std::string copy{str_with_len_N};/16_median 1.16 ns 1.16 ns 4 +std::string copy{str_with_len_N};/16_stddev 0.028 ns 0.028 ns 4 +std::string copy{str_with_len_N};/16_cv 2.42 % 2.42 % 4 +std::string copy{str_with_len_N};/23_mean 25.8 ns 25.8 ns 4 +std::string copy{str_with_len_N};/23_median 25.6 ns 25.6 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.708 ns 0.707 ns 4 +std::string copy{str_with_len_N};/23_cv 2.75 % 2.75 % 4 +std::string copy{str_with_len_N};/24_mean 24.8 ns 24.8 ns 4 +std::string copy{str_with_len_N};/24_median 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.390 ns 0.390 ns 4 +std::string copy{str_with_len_N};/24_cv 1.57 % 1.57 % 4 +std::string copy{str_with_len_N};/32_mean 24.7 ns 24.7 ns 4 +std::string copy{str_with_len_N};/32_median 24.9 ns 24.9 ns 4 +std::string copy{str_with_len_N};/32_stddev 0.466 ns 0.466 ns 4 +std::string copy{str_with_len_N};/32_cv 1.88 % 1.89 % 4 +std::string copy{str_with_len_N};/64_mean 26.2 ns 26.2 ns 4 +std::string copy{str_with_len_N};/64_median 26.2 ns 26.2 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.221 ns 0.221 ns 4 +std::string copy{str_with_len_N};/64_cv 0.84 % 0.84 % 4 +std::string copy{str_with_len_N};/128_mean 26.8 ns 26.8 ns 4 +std::string copy{str_with_len_N};/128_median 26.8 ns 26.8 ns 4 +std::string copy{str_with_len_N};/128_stddev 0.300 ns 0.300 ns 4 +std::string copy{str_with_len_N};/128_cv 1.12 % 1.12 % 4 +std::string copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4 +std::string copy{str_with_len_N};/256_median 27.5 ns 27.5 ns 4 +std::string copy{str_with_len_N};/256_stddev 0.234 ns 0.234 ns 4 +std::string copy{str_with_len_N};/256_cv 0.85 % 0.85 % 4 +std::string copy{str_with_len_N};/512_mean 31.6 ns 31.6 ns 4 +std::string copy{str_with_len_N};/512_median 31.6 ns 31.6 ns 4 +std::string copy{str_with_len_N};/512_stddev 0.751 ns 0.751 ns 4 +std::string copy{str_with_len_N};/512_cv 2.38 % 2.38 % 4 +std::string copy{str_with_len_N};/1024_mean 38.4 ns 38.4 ns 4 +std::string copy{str_with_len_N};/1024_median 38.4 ns 38.4 ns 4 +std::string copy{str_with_len_N};/1024_stddev 1.03 ns 1.03 ns 4 +std::string copy{str_with_len_N};/1024_cv 2.67 % 2.67 % 4 +std::string copy{str_with_len_N};/2048_mean 86.0 ns 86.0 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 4.29 ns 4.29 ns 4 +std::string copy{str_with_len_N};/2048_cv 4.99 % 4.99 % 4 +std::string copy{str_with_len_N};/4096_mean 117 ns 117 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 3.68 ns 3.68 ns 4 +std::string copy{str_with_len_N};/4096_cv 3.14 % 3.14 % 4 +stringa copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4 +stringa copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.037 ns 0.037 ns 4 +stringa copy{str_with_len_N};/15_cv 3.27 % 3.27 % 4 +stringa copy{str_with_len_N};/16_mean 1.13 ns 1.13 ns 4 +stringa copy{str_with_len_N};/16_median 1.14 ns 1.14 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.014 ns 0.014 ns 4 +stringa copy{str_with_len_N};/16_cv 1.22 % 1.22 % 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.13 ns 1.13 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.58 % 0.58 % 4 +stringa copy{str_with_len_N};/24_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/24_median 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.167 ns 0.167 ns 4 +stringa copy{str_with_len_N};/24_cv 1.01 % 1.01 % 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.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.075 ns 0.075 ns 4 +stringa copy{str_with_len_N};/32_cv 0.46 % 0.46 % 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.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.129 ns 0.129 ns 4 +stringa copy{str_with_len_N};/64_cv 0.78 % 0.78 % 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.176 ns 0.176 ns 4 +stringa copy{str_with_len_N};/128_cv 1.06 % 1.06 % 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.081 ns 0.081 ns 4 +stringa copy{str_with_len_N};/256_cv 0.49 % 0.49 % 4 +stringa copy{str_with_len_N};/512_mean 16.6 ns 16.6 ns 4 +stringa copy{str_with_len_N};/512_median 16.6 ns 16.6 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.117 ns 0.117 ns 4 +stringa copy{str_with_len_N};/512_cv 0.71 % 0.71 % 4 +stringa copy{str_with_len_N};/1024_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/1024_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.232 ns 0.232 ns 4 +stringa copy{str_with_len_N};/1024_cv 1.41 % 1.41 % 4 +stringa copy{str_with_len_N};/2048_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/2048_median 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.122 ns 0.122 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.74 % 0.74 % 4 +stringa copy{str_with_len_N};/4096_mean 16.7 ns 16.7 ns 4 +stringa copy{str_with_len_N};/4096_median 16.7 ns 16.7 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.175 ns 0.175 ns 4 +stringa copy{str_with_len_N};/4096_cv 1.05 % 1.05 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 1.12 ns 1.12 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 1.12 ns 1.12 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.018 ns 0.018 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.63 % 1.63 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 5.35 ns 5.35 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 5.32 ns 5.32 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.139 ns 0.139 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 2.60 % 2.60 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 5.31 ns 5.31 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 5.33 ns 5.33 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.075 ns 0.075 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 1.42 % 1.42 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 21.8 ns 21.8 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 21.9 ns 21.9 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.457 ns 0.457 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 2.10 % 2.10 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 21.9 ns 21.9 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 21.8 ns 21.8 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.650 ns 0.650 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 2.97 % 2.97 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 23.1 ns 23.1 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 22.9 ns 22.9 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.476 ns 0.476 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 2.06 % 2.06 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 25.7 ns 25.7 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.666 ns 0.666 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 2.59 % 2.59 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 24.8 ns 24.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 24.7 ns 24.7 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 0.339 ns 0.339 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 1.37 % 1.37 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 27.7 ns 27.7 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 27.7 ns 27.7 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 0.248 ns 0.248 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 0.90 % 0.90 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 78.4 ns 78.4 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 87.3 ns 87.3 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 19.5 ns 19.5 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 24.87 % 24.87 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 73.4 ns 73.4 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 76.1 ns 76.1 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 6.12 ns 6.12 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 8.34 % 8.34 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 88.6 ns 88.6 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 88.9 ns 88.9 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 0.993 ns 0.993 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 1.12 % 1.12 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4 lstringa<512> copy{str_with_len_N};/15_median 1.14 ns 1.14 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.050 ns 0.050 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 4.37 % 4.37 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 4.80 ns 4.80 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 4.80 ns 4.80 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.066 ns 0.066 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 1.37 % 1.37 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.97 ns 4.97 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 4.94 ns 4.94 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.189 ns 0.189 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 3.80 % 3.80 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 4.42 ns 4.42 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 4.38 ns 4.38 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.122 ns 0.122 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 2.75 % 2.75 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.72 ns 4.72 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.67 ns 4.67 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.243 ns 0.243 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 5.15 % 5.15 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 6.10 ns 6.10 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 6.08 ns 6.08 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.223 ns 0.223 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 3.65 % 3.65 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 6.39 ns 6.39 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 6.34 ns 6.34 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.156 ns 0.156 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 2.45 % 2.45 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 8.09 ns 8.09 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 8.15 ns 8.15 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.300 ns 0.300 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 3.71 % 3.71 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.5 ns 10.5 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 10.3 ns 10.3 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.608 ns 0.608 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 5.80 % 5.80 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 51.8 ns 51.8 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 51.7 ns 51.7 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 0.810 ns 0.810 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 1.56 % 1.56 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 73.1 ns 73.1 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 76.7 ns 76.7 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 8.49 ns 8.49 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 11.61 % 11.61 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 86.2 ns 86.2 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 86.4 ns 86.4 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 1.26 ns 1.26 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 1.46 % 1.46 % 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.008 ns 0.008 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 0.74 % 0.74 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 4.98 ns 4.98 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 4.96 ns 4.96 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.149 ns 0.149 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 3.00 % 3.00 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 5.01 ns 5.01 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 5.02 ns 5.02 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.121 ns 0.120 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 2.41 % 2.40 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 4.59 ns 4.59 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 4.59 ns 4.59 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.088 ns 0.088 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 1.92 % 1.92 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 4.64 ns 4.64 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 4.64 ns 4.64 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.075 ns 0.075 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.61 % 1.61 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 6.06 ns 6.06 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 6.10 ns 6.10 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.122 ns 0.122 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 2.01 % 2.01 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 6.63 ns 6.63 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 6.60 ns 6.60 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.128 ns 0.128 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 1.93 % 1.93 % 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.3 ns 17.3 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.252 ns 0.252 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 1.45 % 1.45 % 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.094 ns 0.094 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 0.88 % 0.88 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 52.1 ns 52.1 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 52.0 ns 52.0 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 1.85 ns 1.85 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 3.55 % 3.55 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 73.6 ns 73.6 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 76.5 ns 76.5 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 8.36 ns 8.36 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 11.35 % 11.35 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 90.1 ns 90.1 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 90.3 ns 90.3 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 0.860 ns 0.860 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 0.95 % 0.95 % 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 27.0 ns 27.0 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.1 ns 27.1 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.278 ns 0.278 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.03 % 1.03 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 17.0 ns 17.0 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 17.0 ns 17.0 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.191 ns 0.191 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.12 % 1.12 % 4 -stringa s = "123456789"; int res = s.to_int_mean 9.41 ns 9.41 ns 4 -stringa s = "123456789"; int res = s.to_int_median 9.32 ns 9.32 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.221 ns 0.221 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 2.35 % 2.35 % 4 -ssa s = "123456789"; int res = s.to_int_mean 9.40 ns 9.40 ns 4 -ssa s = "123456789"; int res = s.to_int_median 9.31 ns 9.31 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.289 ns 0.289 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 3.08 % 3.08 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 9.44 ns 9.44 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 9.47 ns 9.47 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.153 ns 0.153 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 1.62 % 1.62 % 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.5 ns 27.5 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.390 ns 0.390 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.42 % 1.42 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 17.5 ns 17.5 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 17.6 ns 17.6 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.354 ns 0.354 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.02 % 2.02 % 4 +stringa s = "123456789"; int res = s.to_int_mean 9.48 ns 9.48 ns 4 +stringa s = "123456789"; int res = s.to_int_median 9.50 ns 9.50 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.135 ns 0.135 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.42 % 1.42 % 4 +ssa s = "123456789"; int res = s.to_int_mean 9.76 ns 9.76 ns 4 +ssa s = "123456789"; int res = s.to_int_median 9.80 ns 9.80 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.135 ns 0.135 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 1.38 % 1.38 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 9.51 ns 9.51 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 9.53 ns 9.53 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.042 ns 0.042 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 0.44 % 0.44 % 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.3 ns 23.3 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.192 ns 0.192 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 0.82 % 0.82 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 21.9 ns 21.9 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 21.9 ns 21.9 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.300 ns 0.300 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.37 % 1.37 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 7.71 ns 7.71 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 7.64 ns 7.64 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.209 ns 0.209 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 2.71 % 2.71 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 7.62 ns 7.62 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 7.55 ns 7.55 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.225 ns 0.225 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 2.95 % 2.95 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.41 ns 7.41 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 7.44 ns 7.44 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.065 ns 0.065 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.88 % 0.88 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 24.4 ns 24.4 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 24.3 ns 24.3 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.490 ns 0.490 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.01 % 2.01 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 22.0 ns 22.0 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 22.2 ns 22.2 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.697 ns 0.697 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.17 % 3.17 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 8.28 ns 8.28 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 8.15 ns 8.15 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.363 ns 0.363 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 4.38 % 4.38 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 7.65 ns 7.65 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 7.63 ns 7.63 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.109 ns 0.109 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.43 % 1.43 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.84 ns 7.84 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 7.87 ns 7.87 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.130 ns 0.130 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.66 % 1.66 % 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.6 ns 28.6 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.7 ns 28.7 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.530 ns 0.530 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.85 % 1.85 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 11.1 ns 11.1 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 10.9 ns 10.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.625 ns 0.625 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 5.65 % 5.65 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.1 ns 13.1 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.1 ns 13.1 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.470 ns 0.470 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 3.60 % 3.60 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 29.4 ns 29.4 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 29.3 ns 29.3 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.371 ns 0.371 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.26 % 1.26 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 11.4 ns 11.4 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 11.4 ns 11.4 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.079 ns 0.079 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.70 % 0.70 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.2 ns 13.2 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.2 ns 13.2 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.292 ns 0.292 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 2.21 % 2.21 % 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.6 ns 66.6 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.5 ns 66.5 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.69 ns 1.69 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.53 % 2.53 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 65.8 ns 65.8 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 65.6 ns 65.6 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.998 ns 0.998 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.52 % 1.52 % 4 std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented' std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented' std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented' std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res); ERROR OCCURRED: 'not implemented' -ssa s = "1234.567e10"; double res = *s.to_double()_mean 34.2 ns 34.2 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 34.0 ns 34.0 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.705 ns 0.705 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.06 % 2.06 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 34.8 ns 34.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 34.7 ns 34.7 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.864 ns 0.864 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.48 % 2.48 % 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 1948 ns 1948 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1942 ns 1942 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 21.2 ns 21.2 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.09 % 1.09 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 419 ns 419 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 424 ns 424 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 30.8 ns 30.8 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 7.33 % 7.33 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 381 ns 381 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 387 ns 387 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 19.1 ns 19.1 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 5.00 % 5.00 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 279 ns 279 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 287 ns 287 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 24.2 ns 24.2 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 8.65 % 8.65 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 253 ns 253 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 260 ns 260 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 21.7 ns 21.7 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 8.57 % 8.57 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 157 ns 157 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 156 ns 156 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.06 ns 2.06 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.31 % 1.31 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 2080 ns 2080 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 2077 ns 2077 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.9 ns 35.9 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.72 % 1.72 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 416 ns 416 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 416 ns 416 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 18.5 ns 18.5 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 4.45 % 4.45 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 362 ns 362 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 362 ns 362 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.73 ns 3.73 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.03 % 1.03 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 245 ns 245 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 248 ns 248 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 19.5 ns 19.5 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 7.96 % 7.96 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 217 ns 217 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 222 ns 222 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.2 ns 16.2 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.49 % 7.49 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 136 ns 136 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 136 ns 136 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.48 ns 1.48 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.09 % 1.08 % 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 1961 ns 1961 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1969 ns 1969 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 32.4 ns 32.4 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.65 % 1.65 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1263 ns 1263 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1254 ns 1254 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 42.6 ns 42.6 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.37 % 3.37 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 467 ns 467 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 445 ns 445 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 61.8 ns 61.8 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 13.23 % 13.23 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 355 ns 355 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 358 ns 358 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.83 % 3.83 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 317 ns 317 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 320 ns 320 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.3 ns 23.3 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.37 % 7.37 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 230 ns 230 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 230 ns 230 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 1.11 ns 1.11 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.48 % 0.48 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 2037 ns 2037 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 2042 ns 2042 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 54.5 ns 54.5 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.68 % 2.67 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1253 ns 1253 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1255 ns 1255 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.7 ns 17.7 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.41 % 1.41 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 401 ns 401 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 406 ns 406 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.1 ns 23.1 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 5.75 % 5.75 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 335 ns 335 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 346 ns 346 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 24.4 ns 24.4 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.29 % 7.29 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 291 ns 291 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 297 ns 297 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.8 ns 18.8 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 6.47 % 6.47 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 214 ns 214 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 214 ns 214 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 1.16 ns 1.16 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.54 % 0.54 % 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 140567 ns 140568 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 139519 ns 139520 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 3948 ns 3948 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.81 % 2.81 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 94630 ns 94630 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 94079 ns 94080 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2140 ns 2140 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.26 % 2.26 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 43021 ns 43021 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 42724 ns 42724 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1352 ns 1352 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.14 % 3.14 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23822 ns 23822 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23394 ns 23394 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1063 ns 1063 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.46 % 4.46 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18156 ns 18156 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18115 ns 18115 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 583 ns 583 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.21 % 3.21 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17874 ns 17875 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17853 ns 17853 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 317 ns 317 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.78 % 1.78 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 159733 ns 159734 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 158296 ns 158296 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6342 ns 6342 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.97 % 3.97 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 104710 ns 104710 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 104630 ns 104630 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1116 ns 1116 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.07 % 1.07 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49815 ns 49815 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 49890 ns 49891 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 327 ns 327 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.66 % 0.66 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 27270 ns 27270 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 27160 ns 27160 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 903 ns 903 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.31 % 3.31 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16860 ns 16860 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16838 ns 16838 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 204 ns 204 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.21 % 1.21 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16899 ns 16899 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16878 ns 16878 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 88.6 ns 88.6 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.52 % 0.52 % 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 2003 ns 2003 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1970 ns 1970 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 83.4 ns 83.4 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 4.16 % 4.16 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1370 ns 1370 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1383 ns 1383 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 38.9 ns 38.9 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 2.84 % 2.84 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 496 ns 496 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 495 ns 495 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 21.7 ns 21.7 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.36 % 4.36 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 434 ns 434 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 442 ns 442 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 25.2 ns 25.2 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 5.81 % 5.81 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 387 ns 387 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 390 ns 390 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 17.2 ns 17.2 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.45 % 4.45 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 290 ns 290 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 289 ns 289 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.35 ns 4.35 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.50 % 1.50 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 2073 ns 2073 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 2050 ns 2050 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 66.2 ns 66.2 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 3.19 % 3.19 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 1492 ns 1492 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 1494 ns 1494 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 29.6 ns 29.6 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.98 % 1.98 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 476 ns 476 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 480 ns 480 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 20.4 ns 20.4 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 4.29 % 4.29 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 448 ns 448 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 460 ns 460 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 27.7 ns 27.7 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 6.18 % 6.18 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 379 ns 379 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 385 ns 385 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 13.8 ns 13.8 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 3.63 % 3.63 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 298 ns 298 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 296 ns 296 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.34 ns 4.34 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.46 % 1.46 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3322 ns 3322 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3297 ns 3297 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 111 ns 111 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 475 ns 475 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 463 ns 463 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 26.9 ns 26.9 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 5.67 % 5.67 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1200 ns 1200 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1162 ns 1162 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 118 ns 118 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 9.84 % 9.84 % 4 -std::string str = std::format("test = {} times", k);_mean 948 ns 948 ns 4 -std::string str = std::format("test = {} times", k);_median 943 ns 943 ns 4 -std::string str = std::format("test = {} times", k);_stddev 27.0 ns 27.0 ns 4 -std::string str = std::format("test = {} times", k);_cv 2.85 % 2.85 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2019 ns 2019 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2017 ns 2017 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 44.0 ns 44.0 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.18 % 2.18 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1714 ns 1714 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1701 ns 1701 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 46.4 ns 46.4 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 2.71 % 2.71 % 4 -lstringa<8> str = "test = " + k + " times";_mean 271 ns 271 ns 4 -lstringa<8> str = "test = " + k + " times";_median 272 ns 272 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 2.40 ns 2.40 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 0.89 % 0.89 % 4 -lstringa<32> str = "test = " + k + " times";_mean 120 ns 120 ns 4 -lstringa<32> str = "test = " + k + " times";_median 120 ns 120 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 1.02 ns 1.02 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 0.85 % 0.85 % 4 -stringa str = "test = " + k + " times";_mean 124 ns 124 ns 4 -stringa str = "test = " + k + " times";_median 121 ns 121 ns 4 -stringa str = "test = " + k + " times";_stddev 7.42 ns 7.42 ns 4 -stringa str = "test = " + k + " times";_cv 5.97 % 5.97 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 3419 ns 3419 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 3420 ns 3420 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 78.3 ns 78.3 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 2.29 % 2.29 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 474 ns 474 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 477 ns 477 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 9.20 ns 9.20 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 1.94 % 1.94 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1229 ns 1229 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1226 ns 1226 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 15.9 ns 15.9 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.29 % 1.29 % 4 +std::string str = std::format("test = {} times", k);_mean 959 ns 959 ns 4 +std::string str = std::format("test = {} times", k);_median 955 ns 955 ns 4 +std::string str = std::format("test = {} times", k);_stddev 9.35 ns 9.35 ns 4 +std::string str = std::format("test = {} times", k);_cv 0.97 % 0.97 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 2002 ns 2002 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 2000 ns 2000 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 27.3 ns 27.3 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 1.37 % 1.37 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1745 ns 1745 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1743 ns 1743 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 1.90 % 1.90 % 4 +lstringa<8> str = "test = " + k + " times";_mean 263 ns 263 ns 4 +lstringa<8> str = "test = " + k + " times";_median 264 ns 264 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 5.32 ns 5.32 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 2.02 % 2.02 % 4 +lstringa<32> str = "test = " + k + " times";_mean 119 ns 119 ns 4 +lstringa<32> str = "test = " + k + " times";_median 119 ns 119 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 1.45 ns 1.45 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.22 % 1.22 % 4 +stringa str = "test = " + k + " times";_mean 118 ns 118 ns 4 +stringa str = "test = " + k + " times";_median 118 ns 118 ns 4 +stringa str = "test = " + k + " times";_stddev 0.943 ns 0.943 ns 4 +stringa str = "test = " + k + " times";_cv 0.80 % 0.80 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 std::string::find + substr + std::strtol_mean 277 ns 277 ns 4 -std::string::find + substr + std::strtol_median 278 ns 278 ns 4 -std::string::find + substr + std::strtol_stddev 3.47 ns 3.47 ns 4 -std::string::find + substr + std::strtol_cv 1.25 % 1.25 % 4 -ssa::splitter + ssa::as_int_mean 153 ns 153 ns 4 -ssa::splitter + ssa::as_int_median 152 ns 152 ns 4 -ssa::splitter + ssa::as_int_stddev 3.60 ns 3.60 ns 4 -ssa::splitter + ssa::as_int_cv 2.35 % 2.35 % 4 -ssa::splitf + functor_mean 211 ns 211 ns 4 -ssa::splitf + functor_median 210 ns 210 ns 4 -ssa::splitf + functor_stddev 5.09 ns 5.09 ns 4 -ssa::splitf + functor_cv 2.41 % 2.41 % 4 +std::string::find + substr + std::strtol_median 276 ns 276 ns 4 +std::string::find + substr + std::strtol_stddev 2.54 ns 2.54 ns 4 +std::string::find + substr + std::strtol_cv 0.92 % 0.92 % 4 +ssa::splitter + ssa::as_int_mean 159 ns 159 ns 4 +ssa::splitter + ssa::as_int_median 159 ns 159 ns 4 +ssa::splitter + ssa::as_int_stddev 3.14 ns 3.14 ns 4 +ssa::splitter + ssa::as_int_cv 1.97 % 1.97 % 4 +ssa::splitf + functor_mean 213 ns 213 ns 4 +ssa::splitf + functor_median 212 ns 212 ns 4 +ssa::splitf + functor_stddev 8.20 ns 8.20 ns 4 +ssa::splitf + functor_cv 3.84 % 3.84 % 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 892 ns 892 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 892 ns 892 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 16.7 ns 16.7 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 1.88 % 1.88 % 4 -replace symbols with std::string find_first_of + replace_mean 2193 ns 2193 ns 4 -replace symbols with std::string find_first_of + replace_median 2199 ns 2199 ns 4 -replace symbols with std::string find_first_of + replace_stddev 29.9 ns 29.9 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.36 % 1.36 % 4 -replace symbols with std::string_view find_first_of + copy_mean 1024 ns 1024 ns 4 -replace symbols with std::string_view find_first_of + copy_median 1025 ns 1025 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 7.54 ns 7.54 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 0.74 % 0.74 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1463 ns 1463 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1440 ns 1440 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 61.5 ns 61.5 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 4.21 % 4.21 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1131 ns 1131 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1121 ns 1121 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 28.4 ns 28.4 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.51 % 2.51 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1003 ns 1003 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1000 ns 1000 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 15.8 ns 15.8 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.58 % 1.58 % 4 -replace const symbols with string expressions and memorization of all search results_mean 876 ns 876 ns 4 -replace const symbols with string expressions and memorization of all search results_median 872 ns 872 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 21.1 ns 21.1 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 2.41 % 2.41 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 916 ns 916 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 909 ns 909 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 27.2 ns 27.2 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 2.97 % 2.97 % 4 +replace symbols with std::string find_first_of + replace_mean 2428 ns 2428 ns 4 +replace symbols with std::string find_first_of + replace_median 2432 ns 2432 ns 4 +replace symbols with std::string find_first_of + replace_stddev 22.9 ns 22.9 ns 4 +replace symbols with std::string find_first_of + replace_cv 0.94 % 0.94 % 4 +replace symbols with std::string_view find_first_of + copy_mean 1026 ns 1026 ns 4 +replace symbols with std::string_view find_first_of + copy_median 1018 ns 1018 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 22.2 ns 22.2 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 2.16 % 2.16 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1408 ns 1408 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1410 ns 1410 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 14.7 ns 14.7 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 1.04 % 1.04 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1083 ns 1083 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1076 ns 1076 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 17.0 ns 17.0 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 1.57 % 1.57 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1128 ns 1128 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1130 ns 1130 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 7.02 ns 7.02 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 0.62 % 0.62 % 4 +replace const symbols with string expressions and memorization of all search results_mean 820 ns 820 ns 4 +replace const symbols with string expressions and memorization of all search results_median 812 ns 812 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 23.0 ns 23.0 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 2.81 % 2.81 % 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 167 ns 167 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 166 ns 166 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 4.51 ns 4.51 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.70 % 2.70 % 4 -Short replace symbols with std::string find_first_of + replace_mean 309 ns 309 ns 4 -Short replace symbols with std::string find_first_of + replace_median 309 ns 309 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 4.61 ns 4.61 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.49 % 1.49 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 152 ns 152 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 152 ns 152 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.46 ns 2.46 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 1.61 % 1.61 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 192 ns 192 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 189 ns 189 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 6.01 ns 6.01 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.13 % 3.13 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 208 ns 208 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 208 ns 208 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 2.40 ns 2.40 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 1.15 % 1.15 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 124 ns 124 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 124 ns 124 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 1.96 ns 1.96 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.58 % 1.58 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 137 ns 137 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 177 ns 177 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 177 ns 177 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 0.976 ns 0.976 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 0.55 % 0.55 % 4 +Short replace symbols with std::string find_first_of + replace_mean 324 ns 324 ns 4 +Short replace symbols with std::string find_first_of + replace_median 325 ns 325 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 4.96 ns 4.96 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 1.53 % 1.53 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 141 ns 141 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 139 ns 139 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 4.79 ns 4.79 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 3.41 % 3.41 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 198 ns 198 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 6.51 ns 6.51 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 3.29 % 3.29 % 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 186 ns 186 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 2.39 ns 2.39 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 1.28 % 1.28 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 126 ns 126 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 126 ns 126 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 1.64 ns 1.64 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 1.30 % 1.30 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 136 ns 136 ns 4 Short replace const symbols with string expressions and memorization of all search results_median 136 ns 136 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 3.34 ns 3.34 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 2.44 % 2.45 % 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 2.88 ns 2.88 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 2.12 % 2.12 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 173 ns 173 ns 4 -replace bb to ---- in std::string|64_median 174 ns 174 ns 4 -replace bb to ---- in std::string|64_stddev 4.58 ns 4.58 ns 4 -replace bb to ---- in std::string|64_cv 2.64 % 2.64 % 4 -replace bb to ---- in std::string|256_mean 844 ns 844 ns 4 -replace bb to ---- in std::string|256_median 845 ns 845 ns 4 -replace bb to ---- in std::string|256_stddev 21.6 ns 21.6 ns 4 -replace bb to ---- in std::string|256_cv 2.55 % 2.55 % 4 -replace bb to ---- in std::string|512_mean 1199 ns 1199 ns 4 -replace bb to ---- in std::string|512_median 1177 ns 1177 ns 4 -replace bb to ---- in std::string|512_stddev 60.1 ns 60.1 ns 4 -replace bb to ---- in std::string|512_cv 5.01 % 5.01 % 4 -replace bb to ---- in std::string|1024_mean 2462 ns 2462 ns 4 -replace bb to ---- in std::string|1024_median 2456 ns 2456 ns 4 -replace bb to ---- in std::string|1024_stddev 113 ns 113 ns 4 -replace bb to ---- in std::string|1024_cv 4.60 % 4.60 % 4 -replace bb to ---- in std::string|2048_mean 6298 ns 6298 ns 4 -replace bb to ---- in std::string|2048_median 6218 ns 6218 ns 4 -replace bb to ---- in std::string|2048_stddev 185 ns 185 ns 4 -replace bb to ---- in std::string|2048_cv 2.94 % 2.94 % 4 +replace bb to ---- in std::string|64_mean 180 ns 180 ns 4 +replace bb to ---- in std::string|64_median 181 ns 181 ns 4 +replace bb to ---- in std::string|64_stddev 5.27 ns 5.27 ns 4 +replace bb to ---- in std::string|64_cv 2.93 % 2.93 % 4 +replace bb to ---- in std::string|256_mean 842 ns 842 ns 4 +replace bb to ---- in std::string|256_median 844 ns 844 ns 4 +replace bb to ---- in std::string|256_stddev 12.7 ns 12.7 ns 4 +replace bb to ---- in std::string|256_cv 1.50 % 1.50 % 4 +replace bb to ---- in std::string|512_mean 1259 ns 1259 ns 4 +replace bb to ---- in std::string|512_median 1269 ns 1269 ns 4 +replace bb to ---- in std::string|512_stddev 30.9 ns 30.9 ns 4 +replace bb to ---- in std::string|512_cv 2.45 % 2.45 % 4 +replace bb to ---- in std::string|1024_mean 2422 ns 2422 ns 4 +replace bb to ---- in std::string|1024_median 2423 ns 2423 ns 4 +replace bb to ---- in std::string|1024_stddev 19.3 ns 19.3 ns 4 +replace bb to ---- in std::string|1024_cv 0.80 % 0.80 % 4 +replace bb to ---- in std::string|2048_mean 6347 ns 6347 ns 4 +replace bb to ---- in std::string|2048_median 6403 ns 6403 ns 4 +replace bb to ---- in std::string|2048_stddev 221 ns 221 ns 4 +replace bb to ---- in std::string|2048_cv 3.48 % 3.48 % 4 replace bb to ---- in lstringa<8>|64_mean 129 ns 129 ns 4 -replace bb to ---- in lstringa<8>|64_median 128 ns 128 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 5.20 ns 5.20 ns 4 -replace bb to ---- in lstringa<8>|64_cv 4.04 % 4.04 % 4 -replace bb to ---- in lstringa<8>|256_mean 446 ns 446 ns 4 +replace bb to ---- in lstringa<8>|64_median 129 ns 129 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 3.09 ns 3.09 ns 4 +replace bb to ---- in lstringa<8>|64_cv 2.39 % 2.39 % 4 +replace bb to ---- in lstringa<8>|256_mean 444 ns 444 ns 4 replace bb to ---- in lstringa<8>|256_median 444 ns 444 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 19.7 ns 19.7 ns 4 -replace bb to ---- in lstringa<8>|256_cv 4.41 % 4.41 % 4 -replace bb to ---- in lstringa<8>|512_mean 831 ns 831 ns 4 -replace bb to ---- in lstringa<8>|512_median 830 ns 830 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 18.6 ns 18.6 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.23 % 2.23 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1609 ns 1609 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1608 ns 1608 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 21.2 ns 21.2 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 1.32 % 1.32 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3058 ns 3058 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3039 ns 3039 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 51.4 ns 51.4 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 1.68 % 1.68 % 4 -replace bb to ---- by init stringa|64_mean 89.4 ns 89.4 ns 4 -replace bb to ---- by init stringa|64_median 89.4 ns 89.4 ns 4 -replace bb to ---- by init stringa|64_stddev 0.659 ns 0.659 ns 4 -replace bb to ---- by init stringa|64_cv 0.74 % 0.74 % 4 -replace bb to ---- by init stringa|256_mean 283 ns 283 ns 4 -replace bb to ---- by init stringa|256_median 284 ns 284 ns 4 -replace bb to ---- by init stringa|256_stddev 5.33 ns 5.33 ns 4 -replace bb to ---- by init stringa|256_cv 1.88 % 1.88 % 4 -replace bb to ---- by init stringa|512_mean 673 ns 673 ns 4 -replace bb to ---- by init stringa|512_median 673 ns 673 ns 4 -replace bb to ---- by init stringa|512_stddev 14.9 ns 14.9 ns 4 -replace bb to ---- by init stringa|512_cv 2.21 % 2.21 % 4 -replace bb to ---- by init stringa|1024_mean 1432 ns 1432 ns 4 -replace bb to ---- by init stringa|1024_median 1406 ns 1406 ns 4 -replace bb to ---- by init stringa|1024_stddev 112 ns 112 ns 4 -replace bb to ---- by init stringa|1024_cv 7.85 % 7.85 % 4 -replace bb to ---- by init stringa|2048_mean 2854 ns 2854 ns 4 -replace bb to ---- by init stringa|2048_median 2850 ns 2851 ns 4 -replace bb to ---- by init stringa|2048_stddev 26.3 ns 26.3 ns 4 -replace bb to ---- by init stringa|2048_cv 0.92 % 0.92 % 4 +replace bb to ---- in lstringa<8>|256_stddev 12.1 ns 12.1 ns 4 +replace bb to ---- in lstringa<8>|256_cv 2.73 % 2.73 % 4 +replace bb to ---- in lstringa<8>|512_mean 828 ns 828 ns 4 +replace bb to ---- in lstringa<8>|512_median 825 ns 825 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 23.9 ns 23.9 ns 4 +replace bb to ---- in lstringa<8>|512_cv 2.89 % 2.89 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1614 ns 1614 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1611 ns 1611 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 19.6 ns 19.6 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.21 % 1.21 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3127 ns 3127 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3109 ns 3109 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 54.0 ns 54.0 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 1.73 % 1.73 % 4 +replace bb to ---- by init stringa|64_mean 90.9 ns 90.9 ns 4 +replace bb to ---- by init stringa|64_median 91.5 ns 91.5 ns 4 +replace bb to ---- by init stringa|64_stddev 2.07 ns 2.07 ns 4 +replace bb to ---- by init stringa|64_cv 2.28 % 2.28 % 4 +replace bb to ---- by init stringa|256_mean 308 ns 308 ns 4 +replace bb to ---- by init stringa|256_median 309 ns 309 ns 4 +replace bb to ---- by init stringa|256_stddev 3.01 ns 3.01 ns 4 +replace bb to ---- by init stringa|256_cv 0.98 % 0.98 % 4 +replace bb to ---- by init stringa|512_mean 709 ns 709 ns 4 +replace bb to ---- by init stringa|512_median 709 ns 709 ns 4 +replace bb to ---- by init stringa|512_stddev 3.56 ns 3.56 ns 4 +replace bb to ---- by init stringa|512_cv 0.50 % 0.50 % 4 +replace bb to ---- by init stringa|1024_mean 1392 ns 1392 ns 4 +replace bb to ---- by init stringa|1024_median 1391 ns 1391 ns 4 +replace bb to ---- by init stringa|1024_stddev 5.76 ns 5.76 ns 4 +replace bb to ---- by init stringa|1024_cv 0.41 % 0.41 % 4 +replace bb to ---- by init stringa|2048_mean 2810 ns 2810 ns 4 +replace bb to ---- by init stringa|2048_median 2815 ns 2815 ns 4 +replace bb to ---- by init stringa|2048_stddev 36.4 ns 36.4 ns 4 +replace bb to ---- by init stringa|2048_cv 1.29 % 1.29 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 118 ns 118 ns 4 -replace bb to -- in std::string|64_median 118 ns 118 ns 4 -replace bb to -- in std::string|64_stddev 0.809 ns 0.809 ns 4 -replace bb to -- in std::string|64_cv 0.68 % 0.68 % 4 -replace bb to -- in std::string|256_mean 413 ns 413 ns 4 -replace bb to -- in std::string|256_median 414 ns 414 ns 4 -replace bb to -- in std::string|256_stddev 5.02 ns 5.02 ns 4 -replace bb to -- in std::string|256_cv 1.21 % 1.21 % 4 -replace bb to -- in std::string|512_mean 825 ns 825 ns 4 -replace bb to -- in std::string|512_median 817 ns 817 ns 4 -replace bb to -- in std::string|512_stddev 21.3 ns 21.3 ns 4 -replace bb to -- in std::string|512_cv 2.57 % 2.57 % 4 -replace bb to -- in std::string|1024_mean 1543 ns 1543 ns 4 -replace bb to -- in std::string|1024_median 1542 ns 1542 ns 4 -replace bb to -- in std::string|1024_stddev 13.5 ns 13.5 ns 4 -replace bb to -- in std::string|1024_cv 0.87 % 0.87 % 4 -replace bb to -- in std::string|2048_mean 3140 ns 3140 ns 4 -replace bb to -- in std::string|2048_median 3113 ns 3113 ns 4 -replace bb to -- in std::string|2048_stddev 98.1 ns 98.1 ns 4 -replace bb to -- in std::string|2048_cv 3.12 % 3.12 % 4 -replace bb to -- in lstringa<8>|64_mean 88.1 ns 88.1 ns 4 -replace bb to -- in lstringa<8>|64_median 88.0 ns 88.0 ns 4 -replace bb to -- in lstringa<8>|64_stddev 1.30 ns 1.30 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.48 % 1.48 % 4 -replace bb to -- in lstringa<8>|256_mean 282 ns 282 ns 4 -replace bb to -- in lstringa<8>|256_median 279 ns 279 ns 4 -replace bb to -- in lstringa<8>|256_stddev 8.81 ns 8.81 ns 4 -replace bb to -- in lstringa<8>|256_cv 3.12 % 3.12 % 4 -replace bb to -- in lstringa<8>|512_mean 526 ns 526 ns 4 -replace bb to -- in lstringa<8>|512_median 525 ns 525 ns 4 -replace bb to -- in lstringa<8>|512_stddev 7.04 ns 7.04 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.34 % 1.34 % 4 -replace bb to -- in lstringa<8>|1024_mean 1072 ns 1072 ns 4 -replace bb to -- in lstringa<8>|1024_median 1066 ns 1066 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 54.3 ns 54.3 ns 4 -replace bb to -- in lstringa<8>|1024_cv 5.07 % 5.07 % 4 -replace bb to -- in lstringa<8>|2048_mean 2023 ns 2023 ns 4 -replace bb to -- in lstringa<8>|2048_median 1990 ns 1990 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 69.4 ns 69.4 ns 4 -replace bb to -- in lstringa<8>|2048_cv 3.43 % 3.43 % 4 -replace bb to -- by init stringa|64_mean 75.3 ns 75.3 ns 4 -replace bb to -- by init stringa|64_median 75.2 ns 75.2 ns 4 -replace bb to -- by init stringa|64_stddev 0.454 ns 0.454 ns 4 -replace bb to -- by init stringa|64_cv 0.60 % 0.60 % 4 -replace bb to -- by init stringa|256_mean 233 ns 233 ns 4 -replace bb to -- by init stringa|256_median 232 ns 232 ns 4 -replace bb to -- by init stringa|256_stddev 7.50 ns 7.50 ns 4 -replace bb to -- by init stringa|256_cv 3.22 % 3.22 % 4 -replace bb to -- by init stringa|512_mean 428 ns 428 ns 4 -replace bb to -- by init stringa|512_median 426 ns 426 ns 4 -replace bb to -- by init stringa|512_stddev 6.17 ns 6.17 ns 4 -replace bb to -- by init stringa|512_cv 1.44 % 1.44 % 4 -replace bb to -- by init stringa|1024_mean 846 ns 846 ns 4 -replace bb to -- by init stringa|1024_median 847 ns 847 ns 4 -replace bb to -- by init stringa|1024_stddev 19.0 ns 19.0 ns 4 -replace bb to -- by init stringa|1024_cv 2.25 % 2.25 % 4 -replace bb to -- by init stringa|2048_mean 1654 ns 1654 ns 4 -replace bb to -- by init stringa|2048_median 1658 ns 1658 ns 4 -replace bb to -- by init stringa|2048_stddev 47.7 ns 47.7 ns 4 -replace bb to -- by init stringa|2048_cv 2.88 % 2.88 % 4 +replace bb to -- in std::string|64_mean 130 ns 130 ns 4 +replace bb to -- in std::string|64_median 129 ns 129 ns 4 +replace bb to -- in std::string|64_stddev 2.30 ns 2.30 ns 4 +replace bb to -- in std::string|64_cv 1.77 % 1.77 % 4 +replace bb to -- in std::string|256_mean 427 ns 427 ns 4 +replace bb to -- in std::string|256_median 429 ns 429 ns 4 +replace bb to -- in std::string|256_stddev 6.83 ns 6.83 ns 4 +replace bb to -- in std::string|256_cv 1.60 % 1.60 % 4 +replace bb to -- in std::string|512_mean 851 ns 851 ns 4 +replace bb to -- in std::string|512_median 849 ns 849 ns 4 +replace bb to -- in std::string|512_stddev 11.5 ns 11.5 ns 4 +replace bb to -- in std::string|512_cv 1.35 % 1.35 % 4 +replace bb to -- in std::string|1024_mean 1603 ns 1603 ns 4 +replace bb to -- in std::string|1024_median 1613 ns 1613 ns 4 +replace bb to -- in std::string|1024_stddev 35.0 ns 35.0 ns 4 +replace bb to -- in std::string|1024_cv 2.18 % 2.18 % 4 +replace bb to -- in std::string|2048_mean 3230 ns 3230 ns 4 +replace bb to -- in std::string|2048_median 3217 ns 3217 ns 4 +replace bb to -- in std::string|2048_stddev 41.6 ns 41.6 ns 4 +replace bb to -- in std::string|2048_cv 1.29 % 1.29 % 4 +replace bb to -- in lstringa<8>|64_mean 90.8 ns 90.8 ns 4 +replace bb to -- in lstringa<8>|64_median 91.5 ns 91.5 ns 4 +replace bb to -- in lstringa<8>|64_stddev 1.56 ns 1.56 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.72 % 1.72 % 4 +replace bb to -- in lstringa<8>|256_mean 294 ns 294 ns 4 +replace bb to -- in lstringa<8>|256_median 294 ns 294 ns 4 +replace bb to -- in lstringa<8>|256_stddev 5.26 ns 5.26 ns 4 +replace bb to -- in lstringa<8>|256_cv 1.79 % 1.79 % 4 +replace bb to -- in lstringa<8>|512_mean 551 ns 551 ns 4 +replace bb to -- in lstringa<8>|512_median 555 ns 555 ns 4 +replace bb to -- in lstringa<8>|512_stddev 9.79 ns 9.78 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.78 % 1.78 % 4 +replace bb to -- in lstringa<8>|1024_mean 1066 ns 1066 ns 4 +replace bb to -- in lstringa<8>|1024_median 1071 ns 1071 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 18.1 ns 18.1 ns 4 +replace bb to -- in lstringa<8>|1024_cv 1.70 % 1.70 % 4 +replace bb to -- in lstringa<8>|2048_mean 2242 ns 2242 ns 4 +replace bb to -- in lstringa<8>|2048_median 2197 ns 2197 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 132 ns 132 ns 4 +replace bb to -- in lstringa<8>|2048_cv 5.90 % 5.90 % 4 +replace bb to -- by init stringa|64_mean 83.0 ns 83.0 ns 4 +replace bb to -- by init stringa|64_median 81.6 ns 81.6 ns 4 +replace bb to -- by init stringa|64_stddev 4.12 ns 4.12 ns 4 +replace bb to -- by init stringa|64_cv 4.96 % 4.96 % 4 +replace bb to -- by init stringa|256_mean 237 ns 237 ns 4 +replace bb to -- by init stringa|256_median 236 ns 236 ns 4 +replace bb to -- by init stringa|256_stddev 4.04 ns 4.04 ns 4 +replace bb to -- by init stringa|256_cv 1.70 % 1.70 % 4 +replace bb to -- by init stringa|512_mean 435 ns 435 ns 4 +replace bb to -- by init stringa|512_median 435 ns 435 ns 4 +replace bb to -- by init stringa|512_stddev 5.95 ns 5.95 ns 4 +replace bb to -- by init stringa|512_cv 1.37 % 1.37 % 4 +replace bb to -- by init stringa|1024_mean 851 ns 851 ns 4 +replace bb to -- by init stringa|1024_median 846 ns 846 ns 4 +replace bb to -- by init stringa|1024_stddev 18.7 ns 18.7 ns 4 +replace bb to -- by init stringa|1024_cv 2.20 % 2.20 % 4 +replace bb to -- by init stringa|2048_mean 1658 ns 1658 ns 4 +replace bb to -- by init stringa|2048_median 1652 ns 1652 ns 4 +replace bb to -- by init stringa|2048_stddev 28.9 ns 28.9 ns 4 +replace bb to -- by init stringa|2048_cv 1.74 % 1.74 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3677557 ns 3677568 ns 4 -hashStrMapA emplace & find stringa;_median 3617202 ns 3617214 ns 4 -hashStrMapA emplace & find stringa;_stddev 132384 ns 132384 ns 4 -hashStrMapA emplace & find stringa;_cv 3.60 % 3.60 % 4 -std::unordered_map emplace & find std::string;_mean 3517210 ns 3517220 ns 4 -std::unordered_map emplace & find std::string;_median 3520155 ns 3520166 ns 4 -std::unordered_map emplace & find std::string;_stddev 38144 ns 38141 ns 4 -std::unordered_map emplace & find std::string;_cv 1.08 % 1.08 % 4 -hashStrMapA emplace & find ssa;_mean 3630665 ns 3630676 ns 4 -hashStrMapA emplace & find ssa;_median 3629915 ns 3629926 ns 4 -hashStrMapA emplace & find ssa;_stddev 15226 ns 15225 ns 4 -hashStrMapA emplace & find ssa;_cv 0.42 % 0.42 % 4 -std::unordered_map emplace & find std::string_view;_mean 4042057 ns 4042070 ns 4 -std::unordered_map emplace & find std::string_view;_median 4042055 ns 4042067 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 54785 ns 54789 ns 4 -std::unordered_map emplace & find std::string_view;_cv 1.36 % 1.36 % 4 +hashStrMapA emplace & find stringa;_mean 3780026 ns 3780035 ns 4 +hashStrMapA emplace & find stringa;_median 3764708 ns 3764717 ns 4 +hashStrMapA emplace & find stringa;_stddev 108428 ns 108427 ns 4 +hashStrMapA emplace & find stringa;_cv 2.87 % 2.87 % 4 +std::unordered_map emplace & find std::string;_mean 3706958 ns 3706967 ns 4 +std::unordered_map emplace & find std::string;_median 3712805 ns 3712816 ns 4 +std::unordered_map emplace & find std::string;_stddev 32417 ns 32419 ns 4 +std::unordered_map emplace & find std::string;_cv 0.87 % 0.87 % 4 +hashStrMapA emplace & find ssa;_mean 3815600 ns 3815610 ns 4 +hashStrMapA emplace & find ssa;_median 3818146 ns 3818155 ns 4 +hashStrMapA emplace & find ssa;_stddev 36526 ns 36523 ns 4 +hashStrMapA emplace & find ssa;_cv 0.96 % 0.96 % 4 +std::unordered_map emplace & find std::string_view;_mean 4134155 ns 4134170 ns 4 +std::unordered_map emplace & find std::string_view;_median 4133427 ns 4133445 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 54010 ns 54012 ns 4 +std::unordered_map emplace & find std::string_view;_cv 1.31 % 1.31 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 991 ns 991 ns 4 -Build func full name std::string;_median 992 ns 992 ns 4 -Build func full name std::string;_stddev 13.3 ns 13.3 ns 4 -Build func full name std::string;_cv 1.34 % 1.34 % 4 -Build func full name std::string 1;_mean 997 ns 997 ns 4 -Build func full name std::string 1;_median 999 ns 999 ns 4 -Build func full name std::string 1;_stddev 9.26 ns 9.26 ns 4 -Build func full name std::string 1;_cv 0.93 % 0.93 % 4 -Build func full name std::stream;_mean 2832 ns 2832 ns 4 -Build func full name std::stream;_median 2834 ns 2834 ns 4 -Build func full name std::stream;_stddev 50.3 ns 50.3 ns 4 -Build func full name std::stream;_cv 1.78 % 1.78 % 4 -Build func full name stringa;_mean 443 ns 443 ns 4 -Build func full name stringa;_median 444 ns 444 ns 4 -Build func full name stringa;_stddev 10.7 ns 10.7 ns 4 -Build func full name stringa;_cv 2.43 % 2.43 % 4 -Build func full name stringa 1;_mean 597 ns 597 ns 4 -Build func full name stringa 1;_median 595 ns 595 ns 4 -Build func full name stringa 1;_stddev 8.01 ns 8.01 ns 4 -Build func full name stringa 1;_cv 1.34 % 1.34 % 4 +Build func full name std::string;_mean 1021 ns 1021 ns 4 +Build func full name std::string;_median 1018 ns 1018 ns 4 +Build func full name std::string;_stddev 20.5 ns 20.5 ns 4 +Build func full name std::string;_cv 2.01 % 2.01 % 4 +Build func full name std::string 1;_mean 1021 ns 1021 ns 4 +Build func full name std::string 1;_median 1019 ns 1019 ns 4 +Build func full name std::string 1;_stddev 26.5 ns 26.5 ns 4 +Build func full name std::string 1;_cv 2.60 % 2.60 % 4 +Build func full name std::stream;_mean 2984 ns 2984 ns 4 +Build func full name std::stream;_median 2987 ns 2987 ns 4 +Build func full name std::stream;_stddev 37.7 ns 37.7 ns 4 +Build func full name std::stream;_cv 1.26 % 1.26 % 4 +Build func full name stringa;_mean 471 ns 471 ns 4 +Build func full name stringa;_median 470 ns 470 ns 4 +Build func full name stringa;_stddev 4.83 ns 4.83 ns 4 +Build func full name stringa;_cv 1.02 % 1.02 % 4 +Build func full name stringa 1;_mean 648 ns 648 ns 4 +Build func full name stringa 1;_median 651 ns 651 ns 4 +Build func full name stringa 1;_stddev 9.87 ns 9.87 ns 4 +Build func full name stringa 1;_cv 1.52 % 1.52 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 167 ns 167 ns 4 -To upper case std::wstring_median 167 ns 167 ns 4 -To upper case std::wstring_stddev 2.16 ns 2.16 ns 4 -To upper case std::wstring_cv 1.29 % 1.29 % 4 -To upper case lstringw<15>_mean 40.3 ns 40.3 ns 4 -To upper case lstringw<15>_median 39.8 ns 39.8 ns 4 -To upper case lstringw<15>_stddev 1.05 ns 1.05 ns 4 -To upper case lstringw<15>_cv 2.60 % 2.60 % 4 +To upper case std::wstring_mean 175 ns 175 ns 4 +To upper case std::wstring_median 177 ns 177 ns 4 +To upper case std::wstring_stddev 3.99 ns 3.99 ns 4 +To upper case std::wstring_cv 2.28 % 2.28 % 4 +To upper case lstringw<15>_mean 38.5 ns 38.5 ns 4 +To upper case lstringw<15>_median 38.5 ns 38.5 ns 4 +To upper case lstringw<15>_stddev 1.33 ns 1.33 ns 4 +To upper case lstringw<15>_cv 3.44 % 3.44 % 4 diff --git a/bench/results/002-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt b/bench/results/002-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt index b2e0547..2e86d5f 100644 --- a/bench/results/002-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt +++ b/bench/results/002-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler GNU 15.2.0 -2026-02-27T18:08:43+03:00 +2026-03-22T13:04:50+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,980 +10,980 @@ CPU Caches: L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.00, 0.00, 0.00 +Load Average: 0.06, 0.09, 0.08 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. -------------------------------------------------------------------------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 Concat email std::format_mean 160 ns 160 ns 4 -Concat email std::format_median 160 ns 160 ns 4 -Concat email std::format_stddev 2.26 ns 2.26 ns 4 -Concat email std::format_cv 1.41 % 1.41 % 4 -Concat email std::stringstream_mean 318 ns 318 ns 4 -Concat email std::stringstream_median 317 ns 317 ns 4 -Concat email std::stringstream_stddev 3.89 ns 3.88 ns 4 -Concat email std::stringstream_cv 1.22 % 1.22 % 4 +Concat email std::format_median 162 ns 162 ns 4 +Concat email std::format_stddev 4.85 ns 4.85 ns 4 +Concat email std::format_cv 3.03 % 3.03 % 4 +Concat email std::stringstream_mean 321 ns 321 ns 4 +Concat email std::stringstream_median 322 ns 322 ns 4 +Concat email std::stringstream_stddev 3.32 ns 3.32 ns 4 +Concat email std::stringstream_cv 1.04 % 1.03 % 4 Concat email stringzilla append_mean 108 ns 108 ns 4 -Concat email stringzilla append_median 107 ns 107 ns 4 -Concat email stringzilla append_stddev 4.44 ns 4.44 ns 4 -Concat email stringzilla append_cv 4.12 % 4.12 % 4 -Concat email stringzilla concat_mean 42.7 ns 42.7 ns 4 -Concat email stringzilla concat_median 42.8 ns 42.8 ns 4 -Concat email stringzilla concat_stddev 1.44 ns 1.44 ns 4 -Concat email stringzilla concat_cv 3.38 % 3.38 % 4 -Concat email std::string append_mean 77.9 ns 78.0 ns 4 -Concat email std::string append_median 78.0 ns 78.1 ns 4 -Concat email std::string append_stddev 1.48 ns 1.48 ns 4 -Concat email std::string append_cv 1.90 % 1.90 % 4 -Concat email std::string by strexpr_mean 33.6 ns 33.6 ns 4 -Concat email std::string by strexpr_median 33.6 ns 33.6 ns 4 -Concat email std::string by strexpr_stddev 0.759 ns 0.759 ns 4 -Concat email std::string by strexpr_cv 2.26 % 2.26 % 4 -Concat email stringa_mean 39.7 ns 39.7 ns 4 -Concat email stringa_median 39.7 ns 39.7 ns 4 -Concat email stringa_stddev 0.737 ns 0.737 ns 4 -Concat email stringa_cv 1.86 % 1.86 % 4 +Concat email stringzilla append_median 108 ns 108 ns 4 +Concat email stringzilla append_stddev 3.84 ns 3.85 ns 4 +Concat email stringzilla append_cv 3.57 % 3.57 % 4 +Concat email stringzilla concat_mean 42.8 ns 42.8 ns 4 +Concat email stringzilla concat_median 42.0 ns 42.0 ns 4 +Concat email stringzilla concat_stddev 1.96 ns 1.96 ns 4 +Concat email stringzilla concat_cv 4.57 % 4.57 % 4 +Concat email std::string append_mean 79.2 ns 79.2 ns 4 +Concat email std::string append_median 79.1 ns 79.1 ns 4 +Concat email std::string append_stddev 2.03 ns 2.03 ns 4 +Concat email std::string append_cv 2.57 % 2.57 % 4 +Concat email std::string by strexpr_mean 34.4 ns 34.4 ns 4 +Concat email std::string by strexpr_median 34.7 ns 34.7 ns 4 +Concat email std::string by strexpr_stddev 0.818 ns 0.818 ns 4 +Concat email std::string by strexpr_cv 2.38 % 2.38 % 4 +Concat email stringa_mean 40.7 ns 40.7 ns 4 +Concat email stringa_median 40.5 ns 40.5 ns 4 +Concat email stringa_stddev 0.971 ns 0.971 ns 4 +Concat email stringa_cv 2.38 % 2.38 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 207 ns 207 ns 4 -Concat std::string and number by std to std::string_median 207 ns 207 ns 4 -Concat std::string and number by std to std::string_stddev 1.29 ns 1.29 ns 4 -Concat std::string and number by std to std::string_cv 0.62 % 0.62 % 4 -Concat std::string and number by StrExpr to std::string_mean 101 ns 101 ns 4 -Concat std::string and number by StrExpr to std::string_median 98.3 ns 98.3 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 9.04 ns 9.04 ns 4 -Concat std::string and number by StrExpr to std::string_cv 8.95 % 8.95 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 68.1 ns 68.1 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 67.9 ns 67.9 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 0.725 ns 0.725 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 1.06 % 1.06 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 76.4 ns 76.4 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 77.1 ns 77.1 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 2.85 ns 2.84 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 3.73 % 3.72 % 4 +Concat std::string and number by std to std::string_mean 214 ns 214 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 4.91 ns 4.91 ns 4 +Concat std::string and number by std to std::string_cv 2.30 % 2.30 % 4 +Concat std::string and number by StrExpr to std::string_mean 102 ns 102 ns 4 +Concat std::string and number by StrExpr to std::string_median 101 ns 101 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 2.74 ns 2.74 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.69 % 2.69 % 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.4 ns 72.4 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 1.59 ns 1.59 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 2.21 % 2.21 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 77.7 ns 77.7 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 77.5 ns 77.5 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 2.73 ns 2.73 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 3.52 % 3.52 % 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 742 ns 742 ns 4 -Concat std::string and format hex number and literal to std::string_median 742 ns 742 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 16.5 ns 16.5 ns 4 -Concat std::string and format hex number and literal to std::string_cv 2.23 % 2.23 % 4 -std::format std::string and hex number by literal to std::string_mean 850 ns 850 ns 4 -std::format std::string and hex number by literal to std::string_median 852 ns 852 ns 4 -std::format std::string and hex number by literal to std::string_stddev 15.4 ns 15.4 ns 4 -std::format std::string and hex number by literal to std::string_cv 1.82 % 1.82 % 4 -Concat std::string and std::to_chars and string to std::string_mean 194 ns 194 ns 4 -Concat std::string and std::to_chars and string to std::string_median 195 ns 195 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 3.28 ns 3.28 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.69 % 1.69 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 121 ns 121 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 121 ns 121 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 0.924 ns 0.924 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 0.76 % 0.76 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 116 ns 116 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 116 ns 116 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.500 ns 0.500 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.43 % 0.43 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 121 ns 121 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 121 ns 121 ns 4 +Concat std::string and format hex number and literal to std::string_mean 728 ns 728 ns 4 +Concat std::string and format hex number and literal to std::string_median 732 ns 732 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 19.6 ns 19.6 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 893 ns 893 ns 4 +std::format std::string and hex number by literal to std::string_median 890 ns 890 ns 4 +std::format std::string and hex number by literal to std::string_stddev 22.3 ns 22.3 ns 4 +std::format std::string and hex number by literal to std::string_cv 2.49 % 2.49 % 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 199 ns 199 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 1.39 ns 1.39 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 0.70 % 0.70 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 125 ns 125 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 126 ns 126 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.84 ns 1.84 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 1.47 % 1.47 % 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 122 ns 122 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.10 ns 1.10 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.90 % 0.90 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 125 ns 125 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 125 ns 125 ns 4 Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.16 ns 2.16 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.78 % 1.78 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 165 ns 165 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 165 ns 165 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.30 ns 2.30 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.39 % 1.39 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 275 ns 275 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 6.30 ns 6.30 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.29 % 2.29 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.73 % 1.73 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 172 ns 172 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 171 ns 171 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.63 ns 4.63 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.69 % 2.69 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 280 ns 280 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 279 ns 279 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.80 ns 5.80 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.07 % 2.07 % 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 259 ns 259 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 261 ns 261 ns 4 "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 261 ns 261 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.08 ns 4.08 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.57 % 1.57 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 314 ns 314 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 312 ns 312 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 8.25 ns 8.25 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.63 % 2.63 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 571 ns 571 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 571 ns 571 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 8.09 ns 8.09 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.42 % 1.42 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 632 ns 632 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 634 ns 634 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 11.4 ns 11.4 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.80 % 1.80 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 747 ns 747 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 745 ns 745 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 13.1 ns 13.1 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.75 % 1.75 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1210 ns 1210 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1208 ns 1208 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 17.5 ns 17.5 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.44 % 1.44 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1241 ns 1241 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1225 ns 1225 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 31.2 ns 31.1 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.51 % 2.51 % 4 -std::format with std::formatted_size_mean 2117 ns 2117 ns 4 -std::format with std::formatted_size_median 2116 ns 2116 ns 4 -std::format with std::formatted_size_stddev 19.1 ns 19.1 ns 4 -std::format with std::formatted_size_cv 0.90 % 0.90 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 1954 ns 1954 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 1944 ns 1944 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 31.4 ns 31.4 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.61 % 1.61 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 4.51 ns 4.51 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.73 % 1.73 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 315 ns 315 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 316 ns 316 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 3.45 ns 3.45 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.09 % 1.09 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 593 ns 593 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 587 ns 587 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 13.1 ns 13.1 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.21 % 2.21 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 629 ns 629 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 631 ns 631 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 19.2 ns 19.2 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.06 % 3.06 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 788 ns 788 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 794 ns 794 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 12.1 ns 12.1 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.54 % 1.54 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1171 ns 1171 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1170 ns 1170 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 4.63 ns 4.63 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.40 % 0.40 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1176 ns 1176 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1174 ns 1174 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 12.9 ns 12.9 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 1.09 % 1.09 % 4 +std::format with std::formatted_size_mean 2267 ns 2267 ns 4 +std::format with std::formatted_size_median 2276 ns 2276 ns 4 +std::format with std::formatted_size_stddev 38.4 ns 38.4 ns 4 +std::format with std::formatted_size_cv 1.69 % 1.69 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2021 ns 2021 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2023 ns 2023 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 41.5 ns 41.5 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.05 % 2.05 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 45.3 ns 45.3 ns 4 -Concat std::string by std to std::string_median 45.0 ns 45.0 ns 4 -Concat std::string by std to std::string_stddev 0.762 ns 0.762 ns 4 -Concat std::string by std to std::string_cv 1.68 % 1.68 % 4 -Concat std::string by StrExpr to std::string_mean 29.9 ns 29.9 ns 4 -Concat std::string by StrExpr to std::string_median 29.9 ns 29.9 ns 4 -Concat std::string by StrExpr to std::string_stddev 0.750 ns 0.750 ns 4 -Concat std::string by StrExpr to std::string_cv 2.51 % 2.51 % 4 -Concat stringa by StrExpr to stringa_mean 26.7 ns 26.7 ns 4 -Concat stringa by StrExpr to stringa_median 26.7 ns 26.7 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.263 ns 0.263 ns 4 -Concat stringa by StrExpr to stringa_cv 0.99 % 0.99 % 4 +Concat std::string by std to std::string_mean 47.9 ns 47.9 ns 4 +Concat std::string by std to std::string_median 47.9 ns 47.9 ns 4 +Concat std::string by std to std::string_stddev 0.383 ns 0.383 ns 4 +Concat std::string by std to std::string_cv 0.80 % 0.80 % 4 +Concat std::string by StrExpr to std::string_mean 35.3 ns 35.3 ns 4 +Concat std::string by StrExpr to std::string_median 35.3 ns 35.3 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.618 ns 0.618 ns 4 +Concat std::string by StrExpr to std::string_cv 1.75 % 1.75 % 4 +Concat stringa by StrExpr to stringa_mean 27.4 ns 27.4 ns 4 +Concat stringa by StrExpr to stringa_median 27.4 ns 27.4 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.154 ns 0.153 ns 4 +Concat stringa by StrExpr to stringa_cv 0.56 % 0.56 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 116 ns 116 ns 4 -Find concat three std::string_median 116 ns 116 ns 4 -Find concat three std::string_stddev 2.29 ns 2.29 ns 4 -Find concat three std::string_cv 1.97 % 1.97 % 4 -Find concat three strexpr_mean 38.4 ns 38.4 ns 4 -Find concat three strexpr_median 38.4 ns 38.4 ns 4 -Find concat three strexpr_stddev 0.966 ns 0.966 ns 4 -Find concat three strexpr_cv 2.52 % 2.52 % 4 -Find concat three simstr_mean 14.4 ns 14.4 ns 4 -Find concat three simstr_median 14.4 ns 14.4 ns 4 -Find concat three simstr_stddev 0.445 ns 0.445 ns 4 -Find concat three simstr_cv 3.08 % 3.08 % 4 -Find concat three stringzilla string_mean 118 ns 118 ns 4 -Find concat three stringzilla string_median 117 ns 117 ns 4 -Find concat three stringzilla string_stddev 1.71 ns 1.71 ns 4 -Find concat three stringzilla string_cv 1.45 % 1.45 % 4 +Find concat three std::string_mean 119 ns 119 ns 4 +Find concat three std::string_median 118 ns 118 ns 4 +Find concat three std::string_stddev 1.87 ns 1.87 ns 4 +Find concat three std::string_cv 1.57 % 1.57 % 4 +Find concat three strexpr_mean 38.2 ns 38.2 ns 4 +Find concat three strexpr_median 38.2 ns 38.2 ns 4 +Find concat three strexpr_stddev 0.339 ns 0.339 ns 4 +Find concat three strexpr_cv 0.89 % 0.89 % 4 +Find concat three simstr_mean 15.6 ns 15.6 ns 4 +Find concat three simstr_median 15.6 ns 15.6 ns 4 +Find concat three simstr_stddev 0.214 ns 0.214 ns 4 +Find concat three simstr_cv 1.37 % 1.37 % 4 +Find concat three stringzilla string_mean 125 ns 125 ns 4 +Find concat three stringzilla string_median 125 ns 125 ns 4 +Find concat three stringzilla string_stddev 1.18 ns 1.18 ns 4 +Find concat three stringzilla string_cv 0.94 % 0.94 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 8.40 ns 8.40 ns 4 -BuildTypeNameStr 0/0_median 8.36 ns 8.36 ns 4 -BuildTypeNameStr 0/0_stddev 0.165 ns 0.165 ns 4 -BuildTypeNameStr 0/0_cv 1.97 % 1.97 % 4 -BuildTypeNameExp 0/0_mean 6.68 ns 6.68 ns 4 -BuildTypeNameExp 0/0_median 6.71 ns 6.71 ns 4 -BuildTypeNameExp 0/0_stddev 0.148 ns 0.148 ns 4 -BuildTypeNameExp 0/0_cv 2.22 % 2.22 % 4 -BuildTypeNameSim 0/0_mean 4.83 ns 4.83 ns 4 -BuildTypeNameSim 0/0_median 4.82 ns 4.82 ns 4 -BuildTypeNameSim 0/0_stddev 0.072 ns 0.072 ns 4 -BuildTypeNameSim 0/0_cv 1.49 % 1.49 % 4 -BuildTypeNameStr 10/10_mean 72.5 ns 72.5 ns 4 -BuildTypeNameStr 10/10_median 72.5 ns 72.5 ns 4 -BuildTypeNameStr 10/10_stddev 1.15 ns 1.15 ns 4 -BuildTypeNameStr 10/10_cv 1.58 % 1.58 % 4 -BuildTypeNameExp 10/10_mean 26.5 ns 26.5 ns 4 -BuildTypeNameExp 10/10_median 26.5 ns 26.5 ns 4 -BuildTypeNameExp 10/10_stddev 0.255 ns 0.255 ns 4 -BuildTypeNameExp 10/10_cv 0.96 % 0.96 % 4 -BuildTypeNameSim 10/10_mean 21.7 ns 21.7 ns 4 -BuildTypeNameSim 10/10_median 21.7 ns 21.7 ns 4 -BuildTypeNameSim 10/10_stddev 0.405 ns 0.406 ns 4 -BuildTypeNameSim 10/10_cv 1.87 % 1.87 % 4 +BuildTypeNameStr 0/0_mean 8.65 ns 8.65 ns 4 +BuildTypeNameStr 0/0_median 8.66 ns 8.66 ns 4 +BuildTypeNameStr 0/0_stddev 0.131 ns 0.131 ns 4 +BuildTypeNameStr 0/0_cv 1.51 % 1.51 % 4 +BuildTypeNameExp 0/0_mean 6.99 ns 6.99 ns 4 +BuildTypeNameExp 0/0_median 7.01 ns 7.01 ns 4 +BuildTypeNameExp 0/0_stddev 0.134 ns 0.134 ns 4 +BuildTypeNameExp 0/0_cv 1.92 % 1.92 % 4 +BuildTypeNameSim 0/0_mean 4.97 ns 4.97 ns 4 +BuildTypeNameSim 0/0_median 4.98 ns 4.98 ns 4 +BuildTypeNameSim 0/0_stddev 0.065 ns 0.065 ns 4 +BuildTypeNameSim 0/0_cv 1.31 % 1.31 % 4 +BuildTypeNameStr 10/10_mean 76.6 ns 76.6 ns 4 +BuildTypeNameStr 10/10_median 76.1 ns 76.1 ns 4 +BuildTypeNameStr 10/10_stddev 1.27 ns 1.27 ns 4 +BuildTypeNameStr 10/10_cv 1.65 % 1.65 % 4 +BuildTypeNameExp 10/10_mean 27.9 ns 27.9 ns 4 +BuildTypeNameExp 10/10_median 27.9 ns 27.9 ns 4 +BuildTypeNameExp 10/10_stddev 0.740 ns 0.740 ns 4 +BuildTypeNameExp 10/10_cv 2.66 % 2.66 % 4 +BuildTypeNameSim 10/10_mean 22.6 ns 22.6 ns 4 +BuildTypeNameSim 10/10_median 22.3 ns 22.3 ns 4 +BuildTypeNameSim 10/10_stddev 0.683 ns 0.683 ns 4 +BuildTypeNameSim 10/10_cv 3.02 % 3.02 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 219 ns 219 ns 4 -Concat with replace str_median 216 ns 216 ns 4 -Concat with replace str_stddev 7.44 ns 7.44 ns 4 -Concat with replace str_cv 3.40 % 3.40 % 4 -Concat with replace exp_mean 129 ns 129 ns 4 -Concat with replace exp_median 130 ns 130 ns 4 -Concat with replace exp_stddev 3.46 ns 3.45 ns 4 -Concat with replace exp_cv 2.67 % 2.67 % 4 +Concat with replace str_mean 236 ns 236 ns 4 +Concat with replace str_median 236 ns 236 ns 4 +Concat with replace str_stddev 4.01 ns 4.01 ns 4 +Concat with replace str_cv 1.70 % 1.70 % 4 +Concat with replace exp_mean 135 ns 135 ns 4 +Concat with replace exp_median 134 ns 134 ns 4 +Concat with replace exp_stddev 3.94 ns 3.94 ns 4 +Concat with replace exp_cv 2.92 % 2.92 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.09 ns 1.09 ns 4 -std::string e;_median 1.10 ns 1.10 ns 4 -std::string e;_stddev 0.022 ns 0.022 ns 4 -std::string e;_cv 1.97 % 1.97 % 4 -std::string_view e;_mean 0.740 ns 0.740 ns 4 -std::string_view e;_median 0.739 ns 0.739 ns 4 -std::string_view e;_stddev 0.014 ns 0.014 ns 4 -std::string_view e;_cv 1.84 % 1.84 % 4 -ssa e;_mean 0.181 ns 0.181 ns 4 -ssa e;_median 0.179 ns 0.179 ns 4 -ssa e;_stddev 0.004 ns 0.004 ns 4 -ssa e;_cv 2.31 % 2.31 % 4 -stringa e;_mean 0.737 ns 0.737 ns 4 -stringa e;_median 0.738 ns 0.738 ns 4 -stringa e;_stddev 0.007 ns 0.007 ns 4 -stringa e;_cv 0.91 % 0.91 % 4 -lstringa<20> e;_mean 1.10 ns 1.10 ns 4 -lstringa<20> e;_median 1.10 ns 1.10 ns 4 -lstringa<20> e;_stddev 0.005 ns 0.005 ns 4 -lstringa<20> e;_cv 0.48 % 0.48 % 4 -lstringa<40> e;_mean 1.10 ns 1.10 ns 4 -lstringa<40> e;_median 1.10 ns 1.10 ns 4 -lstringa<40> e;_stddev 0.010 ns 0.010 ns 4 -lstringa<40> e;_cv 0.95 % 0.95 % 4 +std::string e;_mean 1.13 ns 1.13 ns 4 +std::string e;_median 1.13 ns 1.13 ns 4 +std::string e;_stddev 0.012 ns 0.012 ns 4 +std::string e;_cv 1.09 % 1.09 % 4 +std::string_view e;_mean 0.754 ns 0.754 ns 4 +std::string_view e;_median 0.751 ns 0.751 ns 4 +std::string_view e;_stddev 0.013 ns 0.013 ns 4 +std::string_view e;_cv 1.68 % 1.68 % 4 +ssa e;_mean 0.187 ns 0.187 ns 4 +ssa e;_median 0.186 ns 0.186 ns 4 +ssa e;_stddev 0.002 ns 0.002 ns 4 +ssa e;_cv 1.20 % 1.20 % 4 +stringa e;_mean 0.753 ns 0.753 ns 4 +stringa e;_median 0.757 ns 0.757 ns 4 +stringa e;_stddev 0.011 ns 0.011 ns 4 +stringa e;_cv 1.52 % 1.52 % 4 +lstringa<20> e;_mean 1.14 ns 1.14 ns 4 +lstringa<20> e;_median 1.15 ns 1.15 ns 4 +lstringa<20> e;_stddev 0.016 ns 0.016 ns 4 +lstringa<20> e;_cv 1.44 % 1.44 % 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.016 ns 0.016 ns 4 +lstringa<40> e;_cv 1.39 % 1.39 % 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.82 ns 1.82 ns 4 -std::string e = "Test text";_stddev 0.035 ns 0.035 ns 4 -std::string e = "Test text";_cv 1.90 % 1.90 % 4 -std::string_view e = "Test text";_mean 0.730 ns 0.730 ns 4 -std::string_view e = "Test text";_median 0.731 ns 0.731 ns 4 +std::string e = "Test text";_mean 1.89 ns 1.89 ns 4 +std::string e = "Test text";_median 1.89 ns 1.89 ns 4 +std::string e = "Test text";_stddev 0.034 ns 0.034 ns 4 +std::string e = "Test text";_cv 1.80 % 1.80 % 4 +std::string_view e = "Test text";_mean 0.754 ns 0.754 ns 4 +std::string_view e = "Test text";_median 0.753 ns 0.753 ns 4 std::string_view e = "Test text";_stddev 0.007 ns 0.007 ns 4 -std::string_view e = "Test text";_cv 0.96 % 0.96 % 4 -ssa e = "Test text";_mean 0.729 ns 0.729 ns 4 -ssa e = "Test text";_median 0.730 ns 0.730 ns 4 -ssa e = "Test text";_stddev 0.009 ns 0.009 ns 4 -ssa e = "Test text";_cv 1.30 % 1.30 % 4 -stringa e = "Test text";_mean 1.10 ns 1.10 ns 4 -stringa e = "Test text";_median 1.11 ns 1.11 ns 4 +std::string_view e = "Test text";_cv 0.97 % 0.97 % 4 +ssa e = "Test text";_mean 0.757 ns 0.757 ns 4 +ssa e = "Test text";_median 0.761 ns 0.761 ns 4 +ssa e = "Test text";_stddev 0.011 ns 0.011 ns 4 +ssa e = "Test text";_cv 1.44 % 1.44 % 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.014 ns 0.014 ns 4 -stringa e = "Test text";_cv 1.23 % 1.23 % 4 -lstringa<20> e = "Test text";_mean 1.83 ns 1.83 ns 4 -lstringa<20> e = "Test text";_median 1.84 ns 1.84 ns 4 -lstringa<20> e = "Test text";_stddev 0.015 ns 0.015 ns 4 -lstringa<20> e = "Test text";_cv 0.82 % 0.82 % 4 -lstringa<40> e = "Test text";_mean 1.85 ns 1.85 ns 4 -lstringa<40> e = "Test text";_median 1.85 ns 1.85 ns 4 -lstringa<40> e = "Test text";_stddev 0.035 ns 0.035 ns 4 -lstringa<40> e = "Test text";_cv 1.90 % 1.90 % 4 +stringa e = "Test text";_cv 1.26 % 1.26 % 4 +lstringa<20> e = "Test text";_mean 1.92 ns 1.92 ns 4 +lstringa<20> e = "Test text";_median 1.89 ns 1.89 ns 4 +lstringa<20> e = "Test text";_stddev 0.080 ns 0.080 ns 4 +lstringa<20> e = "Test text";_cv 4.18 % 4.18 % 4 +lstringa<40> e = "Test text";_mean 1.90 ns 1.90 ns 4 +lstringa<40> e = "Test text";_median 1.90 ns 1.90 ns 4 +lstringa<40> e = "Test text";_stddev 0.021 ns 0.021 ns 4 +lstringa<40> e = "Test text";_cv 1.08 % 1.08 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 19.1 ns 19.1 ns 4 -std::string e = "123456789012345678901234567890";_median 19.0 ns 19.0 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.160 ns 0.160 ns 4 -std::string e = "123456789012345678901234567890";_cv 0.84 % 0.84 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.740 ns 0.740 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.740 ns 0.740 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.018 ns 0.018 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 2.38 % 2.38 % 4 -ssa e = "123456789012345678901234567890";_mean 0.746 ns 0.746 ns 4 -ssa e = "123456789012345678901234567890";_median 0.746 ns 0.746 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.005 ns 0.005 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.68 % 0.68 % 4 -stringa e = "123456789012345678901234567890";_mean 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890";_median 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.024 ns 0.024 ns 4 -stringa e = "123456789012345678901234567890";_cv 2.13 % 2.13 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 20.1 ns 20.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 20.1 ns 20.1 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.192 ns 0.192 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 0.96 % 0.96 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 1.82 ns 1.82 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 1.81 ns 1.81 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.034 ns 0.034 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.87 % 1.87 % 4 +std::string e = "123456789012345678901234567890";_mean 19.7 ns 19.7 ns 4 +std::string e = "123456789012345678901234567890";_median 19.8 ns 19.8 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.335 ns 0.335 ns 4 +std::string e = "123456789012345678901234567890";_cv 1.70 % 1.70 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.751 ns 0.751 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.752 ns 0.752 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.009 ns 0.009 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 1.19 % 1.19 % 4 +ssa e = "123456789012345678901234567890";_mean 0.761 ns 0.761 ns 4 +ssa e = "123456789012345678901234567890";_median 0.764 ns 0.764 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.014 ns 0.014 ns 4 +ssa e = "123456789012345678901234567890";_cv 1.89 % 1.89 % 4 +stringa e = "123456789012345678901234567890";_mean 1.13 ns 1.13 ns 4 +stringa e = "123456789012345678901234567890";_median 1.14 ns 1.14 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.015 ns 0.015 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.34 % 1.34 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 18.3 ns 18.3 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 18.3 ns 18.3 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.389 ns 0.389 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 2.12 % 2.12 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 1.91 ns 1.91 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 1.91 ns 1.91 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.011 ns 0.011 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 0.60 % 0.60 % 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.80 ns 4.80 ns 4 -std::string e = "Test text"; auto c{e};_median 4.79 ns 4.79 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.082 ns 0.082 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.70 % 1.70 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.366 ns 0.366 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.364 ns 0.364 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.67 % 1.67 % 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.372 ns 0.372 ns 4 +std::string e = "Test text"; auto c{e};_mean 5.03 ns 5.03 ns 4 +std::string e = "Test text"; auto c{e};_median 5.05 ns 5.05 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.100 ns 0.100 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.98 % 1.98 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.388 ns 0.388 ns 4 +std::string_view e = "Test text"; auto c{e};_median 0.389 ns 0.389 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.003 ns 0.003 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 0.81 % 0.81 % 4 +ssa e = "Test text"; auto c{e};_mean 0.388 ns 0.388 ns 4 +ssa e = "Test text"; auto c{e};_median 0.391 ns 0.391 ns 4 ssa e = "Test text"; auto c{e};_stddev 0.009 ns 0.009 ns 4 -ssa e = "Test text"; auto c{e};_cv 2.28 % 2.28 % 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.022 ns 0.022 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.99 % 1.99 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.44 ns 1.44 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.44 ns 1.44 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.015 ns 0.015 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.06 % 1.06 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.45 ns 1.45 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.44 ns 1.44 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.024 ns 0.024 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.69 % 1.69 % 4 +ssa e = "Test text"; auto c{e};_cv 2.21 % 2.21 % 4 +stringa e = "Test text"; auto c{e};_mean 1.13 ns 1.13 ns 4 +stringa e = "Test text"; auto c{e};_median 1.13 ns 1.13 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.017 ns 0.017 ns 4 +stringa e = "Test text"; auto c{e};_cv 1.53 % 1.53 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 1.15 ns 1.15 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.018 ns 0.018 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 1.60 % 1.60 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 1.15 ns 1.15 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.016 ns 0.016 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.38 % 1.38 % 4 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890"; auto c{e};_mean 22.5 ns 22.5 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 22.4 ns 22.4 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.410 ns 0.410 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.82 % 1.82 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.730 ns 0.730 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.730 ns 0.730 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.007 ns 0.007 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.91 % 0.91 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.733 ns 0.733 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.735 ns 0.735 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.012 ns 0.012 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.58 % 1.58 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 6.70 ns 6.70 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 6.68 ns 6.68 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.044 ns 0.044 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.66 % 0.66 % 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.3 ns 19.3 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.428 ns 0.428 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.20 % 2.20 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.07 ns 4.07 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.06 ns 4.06 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.039 ns 0.039 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 0.95 % 0.95 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 23.2 ns 23.2 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.477 ns 0.477 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.06 % 2.06 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.759 ns 0.759 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.760 ns 0.760 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.004 ns 0.004 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.54 % 0.54 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.758 ns 0.758 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.754 ns 0.754 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.017 ns 0.017 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.19 % 2.19 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 6.85 ns 6.85 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 6.85 ns 6.85 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.024 ns 0.024 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.36 % 0.36 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 17.7 ns 17.7 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 17.6 ns 17.6 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.244 ns 0.244 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.38 % 1.38 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.18 ns 4.18 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.16 ns 4.16 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.121 ns 0.121 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.90 % 2.90 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 84.9 ns 84.9 ns 4 -sz::string::find;_median 85.1 ns 85.1 ns 4 -sz::string::find;_stddev 0.593 ns 0.593 ns 4 -sz::string::find;_cv 0.70 % 0.70 % 4 -std::string::find;_mean 6.64 ns 6.64 ns 4 -std::string::find;_median 6.61 ns 6.61 ns 4 -std::string::find;_stddev 0.138 ns 0.138 ns 4 -std::string::find;_cv 2.08 % 2.08 % 4 -std::string_view::find;_mean 7.05 ns 7.05 ns 4 -std::string_view::find;_median 7.05 ns 7.05 ns 4 -std::string_view::find;_stddev 0.084 ns 0.084 ns 4 -std::string_view::find;_cv 1.20 % 1.20 % 4 -ssa::find;_mean 6.73 ns 6.73 ns 4 -ssa::find;_median 6.70 ns 6.70 ns 4 -ssa::find;_stddev 0.187 ns 0.187 ns 4 -ssa::find;_cv 2.78 % 2.78 % 4 -stringa::find;_mean 7.01 ns 7.01 ns 4 -stringa::find;_median 7.01 ns 7.01 ns 4 -stringa::find;_stddev 0.090 ns 0.090 ns 4 -stringa::find;_cv 1.29 % 1.29 % 4 -lstringa<20>::find;_mean 6.53 ns 6.53 ns 4 -lstringa<20>::find;_median 6.50 ns 6.50 ns 4 -lstringa<20>::find;_stddev 0.189 ns 0.189 ns 4 -lstringa<20>::find;_cv 2.89 % 2.89 % 4 -lstringa<40>::find;_mean 6.27 ns 6.27 ns 4 -lstringa<40>::find;_median 6.27 ns 6.27 ns 4 -lstringa<40>::find;_stddev 0.111 ns 0.111 ns 4 -lstringa<40>::find;_cv 1.77 % 1.77 % 4 +sz::string::find;_mean 87.9 ns 87.9 ns 4 +sz::string::find;_median 87.9 ns 87.9 ns 4 +sz::string::find;_stddev 1.17 ns 1.17 ns 4 +sz::string::find;_cv 1.33 % 1.33 % 4 +std::string::find;_mean 6.95 ns 6.95 ns 4 +std::string::find;_median 6.95 ns 6.95 ns 4 +std::string::find;_stddev 0.069 ns 0.069 ns 4 +std::string::find;_cv 0.99 % 0.99 % 4 +std::string_view::find;_mean 7.39 ns 7.39 ns 4 +std::string_view::find;_median 7.40 ns 7.40 ns 4 +std::string_view::find;_stddev 0.118 ns 0.118 ns 4 +std::string_view::find;_cv 1.59 % 1.59 % 4 +ssa::find;_mean 6.87 ns 6.87 ns 4 +ssa::find;_median 6.88 ns 6.88 ns 4 +ssa::find;_stddev 0.131 ns 0.131 ns 4 +ssa::find;_cv 1.90 % 1.90 % 4 +stringa::find;_mean 7.21 ns 7.21 ns 4 +stringa::find;_median 7.18 ns 7.18 ns 4 +stringa::find;_stddev 0.196 ns 0.196 ns 4 +stringa::find;_cv 2.72 % 2.72 % 4 +lstringa<20>::find;_mean 6.52 ns 6.52 ns 4 +lstringa<20>::find;_median 6.56 ns 6.56 ns 4 +lstringa<20>::find;_stddev 0.116 ns 0.116 ns 4 +lstringa<20>::find;_cv 1.78 % 1.78 % 4 +lstringa<40>::find;_mean 6.49 ns 6.49 ns 4 +lstringa<40>::find;_median 6.48 ns 6.48 ns 4 +lstringa<40>::find;_stddev 0.150 ns 0.150 ns 4 +lstringa<40>::find;_cv 2.31 % 2.31 % 4 ------- Copy not literal Str with N symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string copy{str_with_len_N};/15_mean 4.85 ns 4.85 ns 4 -std::string copy{str_with_len_N};/15_median 4.79 ns 4.79 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.138 ns 0.138 ns 4 -std::string copy{str_with_len_N};/15_cv 2.85 % 2.85 % 4 -std::string copy{str_with_len_N};/16_mean 27.2 ns 27.2 ns 4 -std::string copy{str_with_len_N};/16_median 27.3 ns 27.3 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.309 ns 0.309 ns 4 -std::string copy{str_with_len_N};/16_cv 1.14 % 1.14 % 4 -std::string copy{str_with_len_N};/23_mean 27.7 ns 27.7 ns 4 -std::string copy{str_with_len_N};/23_median 27.7 ns 27.7 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.207 ns 0.206 ns 4 -std::string copy{str_with_len_N};/23_cv 0.75 % 0.74 % 4 -std::string copy{str_with_len_N};/24_mean 21.2 ns 21.2 ns 4 -std::string copy{str_with_len_N};/24_median 21.3 ns 21.3 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.381 ns 0.381 ns 4 -std::string copy{str_with_len_N};/24_cv 1.80 % 1.80 % 4 -std::string copy{str_with_len_N};/32_mean 22.3 ns 22.3 ns 4 -std::string copy{str_with_len_N};/32_median 21.6 ns 21.6 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.91 ns 1.91 ns 4 -std::string copy{str_with_len_N};/32_cv 8.55 % 8.56 % 4 -std::string copy{str_with_len_N};/64_mean 23.2 ns 23.2 ns 4 -std::string copy{str_with_len_N};/64_median 23.3 ns 23.3 ns 4 -std::string copy{str_with_len_N};/64_stddev 0.311 ns 0.311 ns 4 -std::string copy{str_with_len_N};/64_cv 1.34 % 1.34 % 4 -std::string copy{str_with_len_N};/128_mean 28.4 ns 28.4 ns 4 -std::string copy{str_with_len_N};/128_median 28.3 ns 28.3 ns 4 -std::string copy{str_with_len_N};/128_stddev 0.673 ns 0.673 ns 4 -std::string copy{str_with_len_N};/128_cv 2.38 % 2.38 % 4 -std::string copy{str_with_len_N};/256_mean 25.2 ns 25.2 ns 4 -std::string copy{str_with_len_N};/256_median 25.3 ns 25.3 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.625 ns 0.625 ns 4 -std::string copy{str_with_len_N};/256_cv 2.48 % 2.48 % 4 -std::string copy{str_with_len_N};/512_mean 27.8 ns 27.8 ns 4 -std::string copy{str_with_len_N};/512_median 27.8 ns 27.8 ns 4 -std::string copy{str_with_len_N};/512_stddev 0.588 ns 0.588 ns 4 -std::string copy{str_with_len_N};/512_cv 2.11 % 2.11 % 4 -std::string copy{str_with_len_N};/1024_mean 35.5 ns 35.5 ns 4 -std::string copy{str_with_len_N};/1024_median 35.6 ns 35.6 ns 4 -std::string copy{str_with_len_N};/1024_stddev 0.811 ns 0.813 ns 4 -std::string copy{str_with_len_N};/1024_cv 2.29 % 2.29 % 4 -std::string copy{str_with_len_N};/2048_mean 118 ns 118 ns 4 -std::string copy{str_with_len_N};/2048_median 118 ns 118 ns 4 -std::string copy{str_with_len_N};/2048_stddev 3.91 ns 3.91 ns 4 -std::string copy{str_with_len_N};/2048_cv 3.32 % 3.32 % 4 -std::string copy{str_with_len_N};/4096_mean 154 ns 154 ns 4 -std::string copy{str_with_len_N};/4096_median 156 ns 156 ns 4 -std::string copy{str_with_len_N};/4096_stddev 7.92 ns 7.93 ns 4 -std::string copy{str_with_len_N};/4096_cv 5.16 % 5.16 % 4 -stringa copy{str_with_len_N};/15_mean 1.10 ns 1.10 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.011 ns 0.011 ns 4 -stringa copy{str_with_len_N};/15_cv 1.02 % 1.02 % 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.019 ns 0.019 ns 4 -stringa copy{str_with_len_N};/16_cv 1.69 % 1.70 % 4 -stringa copy{str_with_len_N};/23_mean 1.10 ns 1.10 ns 4 -stringa copy{str_with_len_N};/23_median 1.10 ns 1.10 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.012 ns 0.012 ns 4 -stringa copy{str_with_len_N};/23_cv 1.10 % 1.10 % 4 -stringa copy{str_with_len_N};/24_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/24_median 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.147 ns 0.147 ns 4 -stringa copy{str_with_len_N};/24_cv 0.91 % 0.91 % 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.153 ns 0.153 ns 4 -stringa copy{str_with_len_N};/32_cv 0.95 % 0.95 % 4 -stringa copy{str_with_len_N};/64_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/64_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.310 ns 0.311 ns 4 -stringa copy{str_with_len_N};/64_cv 1.92 % 1.92 % 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.124 ns 0.124 ns 4 -stringa copy{str_with_len_N};/128_cv 0.78 % 0.78 % 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.135 ns 0.134 ns 4 -stringa copy{str_with_len_N};/256_cv 0.84 % 0.84 % 4 -stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.095 ns 0.095 ns 4 -stringa copy{str_with_len_N};/512_cv 0.59 % 0.59 % 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.162 ns 0.162 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.01 % 1.01 % 4 -stringa copy{str_with_len_N};/2048_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/2048_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.057 ns 0.057 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.36 % 0.36 % 4 -stringa copy{str_with_len_N};/4096_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/4096_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.075 ns 0.076 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.47 % 0.47 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.47 ns 1.47 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.47 ns 1.47 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.012 ns 0.012 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 0.82 % 0.82 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.43 ns 4.43 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.43 ns 4.43 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.132 ns 0.132 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 2.97 % 2.97 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 4.43 ns 4.43 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 4.42 ns 4.42 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.037 ns 0.037 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 0.83 % 0.83 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 23.3 ns 23.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 23.3 ns 23.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.312 ns 0.312 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.34 % 1.34 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 24.0 ns 24.0 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.898 ns 0.898 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 3.74 % 3.74 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 25.3 ns 25.3 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 25.3 ns 25.3 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.481 ns 0.481 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 1.90 % 1.90 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 40.0 ns 40.0 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 40.1 ns 40.1 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.435 ns 0.435 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 1.09 % 1.09 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 27.0 ns 27.0 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 27.0 ns 27.0 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 0.703 ns 0.703 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.61 % 2.61 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 29.1 ns 29.1 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 29.2 ns 29.2 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 0.636 ns 0.636 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 2.18 % 2.18 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 97.4 ns 97.4 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 97.4 ns 97.4 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.31 ns 2.31 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 2.37 % 2.37 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 107 ns 107 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 106 ns 106 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 3.26 ns 3.26 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 3.05 % 3.05 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 121 ns 121 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 120 ns 120 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 2.91 ns 2.91 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 2.41 % 2.41 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 1.47 ns 1.47 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 1.46 ns 1.46 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.02 % 1.02 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 4.39 ns 4.39 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 4.38 ns 4.38 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.048 ns 0.048 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 1.09 % 1.09 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.40 ns 4.40 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 4.36 ns 4.36 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.127 ns 0.127 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 2.89 % 2.89 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 4.15 ns 4.15 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 4.18 ns 4.18 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.079 ns 0.079 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.89 % 1.89 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.19 ns 4.19 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.073 ns 0.073 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 1.75 % 1.75 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 5.94 ns 5.94 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 5.96 ns 5.96 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.085 ns 0.085 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.43 % 1.43 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 5.93 ns 5.93 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 5.95 ns 5.95 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.082 ns 0.082 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.39 % 1.39 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 7.87 ns 7.87 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 7.91 ns 7.91 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.151 ns 0.151 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 1.91 % 1.91 % 4 +std::string copy{str_with_len_N};/15_mean 5.01 ns 5.01 ns 4 +std::string copy{str_with_len_N};/15_median 5.01 ns 5.02 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.085 ns 0.085 ns 4 +std::string copy{str_with_len_N};/15_cv 1.70 % 1.70 % 4 +std::string copy{str_with_len_N};/16_mean 29.4 ns 29.4 ns 4 +std::string copy{str_with_len_N};/16_median 29.6 ns 29.6 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.16 ns 1.16 ns 4 +std::string copy{str_with_len_N};/16_cv 3.93 % 3.93 % 4 +std::string copy{str_with_len_N};/23_mean 28.9 ns 28.9 ns 4 +std::string copy{str_with_len_N};/23_median 28.8 ns 28.8 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.401 ns 0.401 ns 4 +std::string copy{str_with_len_N};/23_cv 1.39 % 1.39 % 4 +std::string copy{str_with_len_N};/24_mean 22.3 ns 22.3 ns 4 +std::string copy{str_with_len_N};/24_median 22.4 ns 22.4 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.245 ns 0.245 ns 4 +std::string copy{str_with_len_N};/24_cv 1.10 % 1.10 % 4 +std::string copy{str_with_len_N};/32_mean 21.5 ns 21.5 ns 4 +std::string copy{str_with_len_N};/32_median 21.5 ns 21.5 ns 4 +std::string copy{str_with_len_N};/32_stddev 0.170 ns 0.170 ns 4 +std::string copy{str_with_len_N};/32_cv 0.79 % 0.79 % 4 +std::string copy{str_with_len_N};/64_mean 24.6 ns 24.6 ns 4 +std::string copy{str_with_len_N};/64_median 24.6 ns 24.6 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.699 ns 0.699 ns 4 +std::string copy{str_with_len_N};/64_cv 2.85 % 2.85 % 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 24.4 ns 24.4 ns 4 +std::string copy{str_with_len_N};/128_stddev 0.806 ns 0.806 ns 4 +std::string copy{str_with_len_N};/128_cv 3.33 % 3.33 % 4 +std::string copy{str_with_len_N};/256_mean 25.7 ns 25.7 ns 4 +std::string copy{str_with_len_N};/256_median 25.8 ns 25.8 ns 4 +std::string copy{str_with_len_N};/256_stddev 0.425 ns 0.425 ns 4 +std::string copy{str_with_len_N};/256_cv 1.65 % 1.65 % 4 +std::string copy{str_with_len_N};/512_mean 28.5 ns 28.5 ns 4 +std::string copy{str_with_len_N};/512_median 28.4 ns 28.4 ns 4 +std::string copy{str_with_len_N};/512_stddev 0.749 ns 0.749 ns 4 +std::string copy{str_with_len_N};/512_cv 2.63 % 2.63 % 4 +std::string copy{str_with_len_N};/1024_mean 33.4 ns 33.4 ns 4 +std::string copy{str_with_len_N};/1024_median 33.5 ns 33.5 ns 4 +std::string copy{str_with_len_N};/1024_stddev 0.562 ns 0.562 ns 4 +std::string copy{str_with_len_N};/1024_cv 1.68 % 1.68 % 4 +std::string copy{str_with_len_N};/2048_mean 122 ns 122 ns 4 +std::string copy{str_with_len_N};/2048_median 122 ns 122 ns 4 +std::string copy{str_with_len_N};/2048_stddev 2.42 ns 2.42 ns 4 +std::string copy{str_with_len_N};/2048_cv 1.99 % 1.99 % 4 +std::string copy{str_with_len_N};/4096_mean 157 ns 157 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 7.01 ns 7.01 ns 4 +std::string copy{str_with_len_N};/4096_cv 4.47 % 4.47 % 4 +stringa copy{str_with_len_N};/15_mean 1.13 ns 1.13 ns 4 +stringa copy{str_with_len_N};/15_median 1.13 ns 1.13 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4 +stringa copy{str_with_len_N};/15_cv 1.32 % 1.32 % 4 +stringa copy{str_with_len_N};/16_mean 1.15 ns 1.15 ns 4 +stringa copy{str_with_len_N};/16_median 1.16 ns 1.16 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.020 ns 0.020 ns 4 +stringa copy{str_with_len_N};/16_cv 1.73 % 1.73 % 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.13 ns 1.13 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.93 % 1.93 % 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.124 ns 0.124 ns 4 +stringa copy{str_with_len_N};/24_cv 0.76 % 0.76 % 4 +stringa copy{str_with_len_N};/32_mean 16.4 ns 16.4 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.140 ns 0.140 ns 4 +stringa copy{str_with_len_N};/32_cv 0.85 % 0.85 % 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.159 ns 0.159 ns 4 +stringa copy{str_with_len_N};/64_cv 0.97 % 0.97 % 4 +stringa copy{str_with_len_N};/128_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/128_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.099 ns 0.099 ns 4 +stringa copy{str_with_len_N};/128_cv 0.60 % 0.60 % 4 +stringa copy{str_with_len_N};/256_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/256_median 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.095 ns 0.095 ns 4 +stringa copy{str_with_len_N};/256_cv 0.58 % 0.58 % 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.3 ns 16.3 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.048 ns 0.048 ns 4 +stringa copy{str_with_len_N};/512_cv 0.29 % 0.29 % 4 +stringa copy{str_with_len_N};/1024_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/1024_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.066 ns 0.066 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.40 % 0.40 % 4 +stringa copy{str_with_len_N};/2048_mean 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/2048_median 16.4 ns 16.4 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.039 ns 0.039 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.24 % 0.24 % 4 +stringa copy{str_with_len_N};/4096_mean 16.5 ns 16.5 ns 4 +stringa copy{str_with_len_N};/4096_median 16.5 ns 16.5 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.43 % 0.43 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 1.15 ns 1.15 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 1.16 ns 1.16 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.021 ns 0.021 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.83 % 1.83 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 4.89 ns 4.89 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 4.91 ns 4.91 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.063 ns 0.063 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.29 % 1.29 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 4.91 ns 4.91 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 4.89 ns 4.89 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.079 ns 0.079 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 1.60 % 1.60 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 22.4 ns 22.4 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 22.1 ns 22.1 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.925 ns 0.925 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 4.12 % 4.12 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 22.5 ns 22.5 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 22.4 ns 22.4 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.344 ns 0.344 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 24.3 ns 24.3 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 24.2 ns 24.2 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.482 ns 0.482 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.99 % 1.99 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 33.8 ns 33.9 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 33.9 ns 33.9 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.822 ns 0.822 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 2.43 % 2.43 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 25.9 ns 25.9 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 25.9 ns 25.9 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 0.442 ns 0.442 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 1.71 % 1.71 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 34.8 ns 34.8 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 34.9 ns 34.9 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 0.270 ns 0.270 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 0.78 % 0.78 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 99.7 ns 99.7 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 99.2 ns 99.2 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 2.75 ns 2.75 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 2.75 % 2.76 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 110 ns 110 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 111 ns 111 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 3.07 ns 3.07 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 2.78 % 2.78 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 129 ns 129 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 130 ns 130 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 2.98 ns 2.98 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 2.32 % 2.32 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 1.15 ns 1.15 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 1.15 ns 1.15 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.018 ns 0.018 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 1.55 % 1.55 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 4.22 ns 4.22 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 4.20 ns 4.20 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.108 ns 0.108 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 2.57 % 2.57 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 4.24 ns 4.24 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 4.23 ns 4.23 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.108 ns 0.108 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 2.55 % 2.55 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 4.26 ns 4.26 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 4.24 ns 4.24 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.075 ns 0.075 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 1.77 % 1.77 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 4.20 ns 4.20 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 4.17 ns 4.17 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.082 ns 0.082 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.95 % 1.95 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 5.67 ns 5.67 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 5.67 ns 5.67 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.074 ns 0.074 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 1.31 % 1.31 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 6.29 ns 6.29 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 6.30 ns 6.30 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.125 ns 0.125 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 1.98 % 1.98 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 7.98 ns 7.98 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 7.98 ns 7.98 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.053 ns 0.053 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 0.66 % 0.66 % 4 lstringa<512> copy{str_with_len_N};/512_mean 10.2 ns 10.2 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.237 ns 0.237 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 2.33 % 2.33 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 97.0 ns 97.0 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 96.5 ns 96.5 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 2.23 ns 2.23 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.30 % 2.30 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 105 ns 105 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 105 ns 105 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 1.13 ns 1.13 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.08 % 1.08 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 123 ns 123 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 124 ns 124 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 2.47 ns 2.47 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 2.02 % 2.02 % 4 +lstringa<512> copy{str_with_len_N};/512_median 10.2 ns 10.2 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.100 ns 0.100 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 0.98 % 0.98 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 96.5 ns 96.5 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 95.5 ns 95.5 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 3.21 ns 3.21 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 3.32 % 3.32 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 103 ns 103 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 103 ns 103 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 2.63 ns 2.63 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.55 % 2.55 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 126 ns 126 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 126 ns 126 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 5.68 ns 5.68 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 4.51 % 4.51 % 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.3 ns 26.3 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 26.3 ns 26.3 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.521 ns 0.520 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.98 % 1.98 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.5 ns 11.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.5 ns 11.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.163 ns 0.163 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.42 % 1.42 % 4 -stringa s = "123456789"; int res = s.to_int_mean 16.5 ns 16.5 ns 4 -stringa s = "123456789"; int res = s.to_int_median 16.5 ns 16.5 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.042 ns 0.042 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 0.26 % 0.26 % 4 -ssa s = "123456789"; int res = s.to_int_mean 7.41 ns 7.41 ns 4 -ssa s = "123456789"; int res = s.to_int_median 7.42 ns 7.42 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.196 ns 0.196 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 2.64 % 2.64 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 7.43 ns 7.43 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 7.47 ns 7.47 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.192 ns 0.192 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.59 % 2.59 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 27.9 ns 27.9 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.9 ns 27.9 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.402 ns 0.402 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.44 % 1.44 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.5 ns 12.5 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.3 ns 12.3 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.396 ns 0.396 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.17 % 3.17 % 4 +stringa s = "123456789"; int res = s.to_int_mean 16.8 ns 16.8 ns 4 +stringa s = "123456789"; int res = s.to_int_median 16.8 ns 16.8 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.196 ns 0.196 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.16 % 1.16 % 4 +ssa s = "123456789"; int res = s.to_int_mean 7.54 ns 7.54 ns 4 +ssa s = "123456789"; int res = s.to_int_median 7.55 ns 7.55 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.041 ns 0.041 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 0.55 % 0.55 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 8.43 ns 8.43 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 8.42 ns 8.42 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.141 ns 0.141 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.68 % 1.68 % 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.6 ns 23.6 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.5 ns 23.5 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.301 ns 0.301 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.28 % 1.28 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.89 ns 8.89 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.82 ns 8.82 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.274 ns 0.274 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.08 % 3.08 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 15.8 ns 15.8 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 15.8 ns 15.8 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.241 ns 0.241 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 1.52 % 1.52 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 6.35 ns 6.35 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 6.26 ns 6.26 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.262 ns 0.262 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 4.13 % 4.13 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 6.32 ns 6.32 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 6.31 ns 6.31 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.060 ns 0.060 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.95 % 0.95 % 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.9 ns 23.9 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.614 ns 0.614 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.58 % 2.58 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.15 ns 9.15 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.19 ns 9.19 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.181 ns 0.181 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.98 % 1.98 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 16.2 ns 16.2 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 16.3 ns 16.3 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.118 ns 0.118 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 0.73 % 0.73 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 6.48 ns 6.48 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 6.45 ns 6.45 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.151 ns 0.151 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 2.32 % 2.32 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 6.42 ns 6.42 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 6.43 ns 6.43 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.128 ns 0.128 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.99 % 1.99 % 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.5 ns 28.5 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.4 ns 28.4 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.859 ns 0.859 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 3.01 % 3.01 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 22.9 ns 22.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 23.0 ns 23.0 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.249 ns 0.249 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.09 % 1.09 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 10.7 ns 10.7 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 10.7 ns 10.7 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.132 ns 0.132 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.23 % 1.23 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 29.1 ns 29.1 ns 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.141 ns 0.141 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 0.49 % 0.49 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 23.8 ns 23.8 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 23.7 ns 23.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.203 ns 0.203 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.85 % 0.85 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 11.0 ns 11.0 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 11.1 ns 11.1 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.156 ns 0.156 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.41 % 1.41 % 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 63.5 ns 63.5 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 63.3 ns 63.3 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.16 ns 1.16 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.82 % 1.82 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 23.8 ns 23.8 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 23.8 ns 23.8 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.271 ns 0.271 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.14 % 1.14 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.2 ns 24.2 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 24.2 ns 24.2 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.288 ns 0.288 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.19 % 1.19 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 66.3 ns 66.3 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.2 ns 66.2 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.163 ns 0.163 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 0.25 % 0.25 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.4 ns 24.4 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 24.2 ns 24.2 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.303 ns 0.303 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.24 % 1.24 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.5 ns 24.5 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 24.5 ns 24.5 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.380 ns 0.380 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.55 % 1.55 % 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 1379 ns 1379 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1363 ns 1363 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 39.2 ns 39.2 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.84 % 2.84 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 1411 ns 1411 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 1412 ns 1412 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 35.0 ns 35.0 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.48 % 2.48 % 4 std::string str; ... str += "abbaabbaabbaabba";_mean 380 ns 380 ns 4 std::string str; ... str += "abbaabbaabbaabba";_median 380 ns 380 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 7.41 ns 7.41 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 1.95 % 1.95 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 360 ns 360 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 361 ns 361 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 3.64 ns 3.64 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.01 % 1.01 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 263 ns 263 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 265 ns 265 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 10.8 ns 10.8 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.13 % 4.13 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 219 ns 219 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 223 ns 223 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 10.6 ns 10.6 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 4.84 % 4.84 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 143 ns 143 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 141 ns 141 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 5.44 ns 5.44 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 3.79 % 3.79 % 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 9.10 ns 9.10 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.40 % 2.40 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 364 ns 364 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 365 ns 365 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 7.15 ns 7.14 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.96 % 1.96 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 271 ns 271 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 274 ns 274 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 11.8 ns 11.8 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.35 % 4.35 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 229 ns 229 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 233 ns 233 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 8.90 ns 8.90 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.89 % 3.89 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 144 ns 144 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 144 ns 144 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.68 ns 1.68 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.17 % 1.17 % 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 1348 ns 1348 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1357 ns 1357 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 23.8 ns 23.8 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.76 % 1.76 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1202 ns 1202 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1201 ns 1201 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.48 ns 6.48 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 0.54 % 0.54 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 456 ns 456 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 452 ns 452 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 15.0 ns 15.0 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.28 % 3.28 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 401 ns 401 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 407 ns 407 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.8 ns 18.8 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.70 % 4.70 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 310 ns 310 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 314 ns 314 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 23.4 ns 23.4 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 7.54 % 7.54 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 212 ns 212 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 212 ns 212 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.71 ns 5.71 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.69 % 2.69 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 1391 ns 1391 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1393 ns 1393 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 6.61 ns 6.60 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 0.48 % 0.47 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1161 ns 1161 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1163 ns 1163 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.5 ns 17.5 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.51 % 1.51 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 443 ns 443 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 443 ns 443 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.52 ns 6.52 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.47 % 1.47 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 368 ns 368 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 369 ns 369 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.5 ns 12.5 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.41 % 3.41 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 348 ns 348 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 354 ns 354 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.3 ns 17.3 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.98 % 4.98 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 214 ns 214 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 215 ns 215 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.03 ns 3.03 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.41 % 1.41 % 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 73026 ns 73026 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 72322 ns 72322 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2367 ns 2367 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 3.24 % 3.24 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 66199 ns 66199 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 66369 ns 66369 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1243 ns 1243 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.88 % 1.88 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22156 ns 22156 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22130 ns 22130 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 426 ns 426 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.92 % 1.92 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18805 ns 18805 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18789 ns 18789 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 349 ns 349 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.86 % 1.86 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18433 ns 18433 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18391 ns 18391 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 242 ns 242 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.31 % 1.31 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18781 ns 18781 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18847 ns 18847 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 216 ns 216 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.15 % 1.15 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 75407 ns 75407 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 76071 ns 76071 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1624 ns 1624 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.15 % 2.15 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 67303 ns 67303 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 67374 ns 67374 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 747 ns 747 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.11 % 1.11 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20392 ns 20392 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20416 ns 20416 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 93.8 ns 93.8 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.46 % 0.46 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17950 ns 17950 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18065 ns 18065 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 352 ns 352 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.96 % 1.96 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17908 ns 17908 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17973 ns 17972 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 436 ns 436 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.44 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17735 ns 17735 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17771 ns 17771 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 347 ns 347 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.95 % 1.95 % 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 1378 ns 1378 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1379 ns 1379 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 12.5 ns 12.5 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 0.90 % 0.90 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1285 ns 1285 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1282 ns 1282 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 34.3 ns 34.3 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 2.67 % 2.67 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 532 ns 532 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.38 ns 7.38 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.39 % 1.39 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 474 ns 474 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 477 ns 477 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 7.90 ns 7.90 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.67 % 1.67 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 379 ns 379 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 385 ns 385 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 17.3 ns 17.3 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 4.56 % 4.56 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 281 ns 281 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 281 ns 281 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 2.06 ns 2.06 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 0.73 % 0.73 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 1397 ns 1397 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 1392 ns 1392 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 41.3 ns 41.3 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 2.95 % 2.95 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 1344 ns 1344 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 1332 ns 1332 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 64.6 ns 64.6 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 4.81 % 4.81 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 547 ns 547 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 551 ns 551 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 9.05 ns 9.05 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.65 % 1.65 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 454 ns 454 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 457 ns 457 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 12.0 ns 12.0 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.64 % 2.64 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 422 ns 422 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 426 ns 426 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 25.1 ns 25.1 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 5.95 % 5.95 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 310 ns 310 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 311 ns 311 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.36 ns 6.36 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.05 % 2.05 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 2931 ns 2931 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 2920 ns 2920 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 72.4 ns 72.4 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 2.47 % 2.47 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 412 ns 412 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 410 ns 410 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 4.74 ns 4.74 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 1.15 % 1.15 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1435 ns 1435 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1433 ns 1433 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 18.7 ns 18.7 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.30 % 1.30 % 4 -std::string str = std::format("test = {} times", k);_mean 1165 ns 1165 ns 4 -std::string str = std::format("test = {} times", k);_median 1167 ns 1167 ns 4 -std::string str = std::format("test = {} times", k);_stddev 20.6 ns 20.6 ns 4 -std::string str = std::format("test = {} times", k);_cv 1.76 % 1.76 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1487 ns 1487 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1482 ns 1482 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 32.8 ns 32.8 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.21 % 2.21 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1005 ns 1005 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1014 ns 1014 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 22.7 ns 22.7 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 2.26 % 2.26 % 4 -lstringa<8> str = "test = " + k + " times";_mean 289 ns 289 ns 4 -lstringa<8> str = "test = " + k + " times";_median 292 ns 292 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 7.48 ns 7.48 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 2.58 % 2.58 % 4 -lstringa<32> str = "test = " + k + " times";_mean 132 ns 132 ns 4 -lstringa<32> str = "test = " + k + " times";_median 133 ns 133 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.16 ns 2.16 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.63 % 1.63 % 4 -stringa str = "test = " + k + " times";_mean 136 ns 136 ns 4 -stringa str = "test = " + k + " times";_median 136 ns 136 ns 4 -stringa str = "test = " + k + " times";_stddev 1.27 ns 1.27 ns 4 -stringa str = "test = " + k + " times";_cv 0.94 % 0.94 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 3033 ns 3033 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 3046 ns 3046 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 70.7 ns 70.7 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 2.33 % 2.33 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 427 ns 427 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 426 ns 426 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 5.62 ns 5.61 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 1.32 % 1.32 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1487 ns 1487 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1478 ns 1478 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 26.4 ns 26.4 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.78 % 1.78 % 4 +std::string str = std::format("test = {} times", k);_mean 1206 ns 1206 ns 4 +std::string str = std::format("test = {} times", k);_median 1196 ns 1196 ns 4 +std::string str = std::format("test = {} times", k);_stddev 34.6 ns 34.6 ns 4 +std::string str = std::format("test = {} times", k);_cv 2.87 % 2.87 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 1559 ns 1559 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 1553 ns 1553 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 41.0 ns 41.0 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 2.63 % 2.63 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1054 ns 1054 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1047 ns 1047 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 16.7 ns 16.7 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 1.58 % 1.58 % 4 +lstringa<8> str = "test = " + k + " times";_mean 290 ns 290 ns 4 +lstringa<8> str = "test = " + k + " times";_median 289 ns 289 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 3.95 ns 3.95 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.36 % 1.36 % 4 +lstringa<32> str = "test = " + k + " times";_mean 136 ns 136 ns 4 +lstringa<32> str = "test = " + k + " times";_median 136 ns 136 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 2.69 ns 2.69 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.98 % 1.98 % 4 +stringa str = "test = " + k + " times";_mean 137 ns 137 ns 4 +stringa str = "test = " + k + " times";_median 138 ns 138 ns 4 +stringa str = "test = " + k + " times";_stddev 2.86 ns 2.86 ns 4 +stringa str = "test = " + k + " times";_cv 2.09 % 2.09 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 272 ns 272 ns 4 -std::string::find + substr + std::strtol_median 273 ns 273 ns 4 -std::string::find + substr + std::strtol_stddev 3.65 ns 3.65 ns 4 -std::string::find + substr + std::strtol_cv 1.34 % 1.34 % 4 -ssa::splitter + ssa::as_int_mean 190 ns 190 ns 4 -ssa::splitter + ssa::as_int_median 190 ns 190 ns 4 -ssa::splitter + ssa::as_int_stddev 2.83 ns 2.83 ns 4 -ssa::splitter + ssa::as_int_cv 1.49 % 1.49 % 4 -ssa::splitf + functor_mean 194 ns 194 ns 4 -ssa::splitf + functor_median 194 ns 194 ns 4 -ssa::splitf + functor_stddev 3.53 ns 3.53 ns 4 -ssa::splitf + functor_cv 1.82 % 1.82 % 4 +std::string::find + substr + std::strtol_mean 275 ns 275 ns 4 +std::string::find + substr + std::strtol_median 276 ns 276 ns 4 +std::string::find + substr + std::strtol_stddev 7.55 ns 7.55 ns 4 +std::string::find + substr + std::strtol_cv 2.74 % 2.74 % 4 +ssa::splitter + ssa::as_int_mean 192 ns 192 ns 4 +ssa::splitter + ssa::as_int_median 192 ns 192 ns 4 +ssa::splitter + ssa::as_int_stddev 3.46 ns 3.46 ns 4 +ssa::splitter + ssa::as_int_cv 1.80 % 1.80 % 4 +ssa::splitf + functor_mean 196 ns 196 ns 4 +ssa::splitf + functor_median 196 ns 196 ns 4 +ssa::splitf + functor_stddev 0.580 ns 0.580 ns 4 +ssa::splitf + functor_cv 0.30 % 0.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 793 ns 793 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 793 ns 793 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 6.82 ns 6.82 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 0.86 % 0.86 % 4 -replace symbols with std::string find_first_of + replace_mean 2390 ns 2390 ns 4 -replace symbols with std::string find_first_of + replace_median 2403 ns 2403 ns 4 -replace symbols with std::string find_first_of + replace_stddev 47.1 ns 47.1 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.97 % 1.97 % 4 -replace symbols with std::string_view find_first_of + copy_mean 960 ns 960 ns 4 -replace symbols with std::string_view find_first_of + copy_median 949 ns 949 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 33.9 ns 33.9 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 3.53 % 3.53 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1320 ns 1320 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1310 ns 1310 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 34.2 ns 34.2 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 2.59 % 2.59 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1012 ns 1012 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1019 ns 1019 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 29.1 ns 29.1 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.88 % 2.88 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1057 ns 1057 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1057 ns 1057 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 22.6 ns 22.6 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 2.14 % 2.14 % 4 -replace const symbols with string expressions and memorization of all search results_mean 827 ns 827 ns 4 -replace const symbols with string expressions and memorization of all search results_median 826 ns 826 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 11.0 ns 11.0 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 1.33 % 1.33 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 822 ns 822 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 821 ns 821 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 19.8 ns 19.8 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 2.41 % 2.41 % 4 +replace symbols with std::string find_first_of + replace_mean 2428 ns 2428 ns 4 +replace symbols with std::string find_first_of + replace_median 2424 ns 2424 ns 4 +replace symbols with std::string find_first_of + replace_stddev 88.6 ns 88.6 ns 4 +replace symbols with std::string find_first_of + replace_cv 3.65 % 3.65 % 4 +replace symbols with std::string_view find_first_of + copy_mean 1065 ns 1065 ns 4 +replace symbols with std::string_view find_first_of + copy_median 1062 ns 1062 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 18.7 ns 18.7 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 1.76 % 1.76 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1372 ns 1372 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1363 ns 1363 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 28.6 ns 28.6 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 2.09 % 2.09 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1016 ns 1016 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1011 ns 1011 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 19.6 ns 19.6 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 1.93 % 1.93 % 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 35.5 ns 35.5 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 3.40 % 3.40 % 4 +replace const symbols with string expressions and memorization of all search results_mean 837 ns 837 ns 4 +replace const symbols with string expressions and memorization of all search results_median 842 ns 842 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 17.2 ns 17.2 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 2.06 % 2.06 % 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 157 ns 157 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 156 ns 156 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.01 ns 5.01 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.19 % 3.19 % 4 -Short replace symbols with std::string find_first_of + replace_mean 318 ns 318 ns 4 -Short replace symbols with std::string find_first_of + replace_median 315 ns 315 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 7.31 ns 7.31 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 2.30 % 2.30 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 150 ns 150 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 149 ns 149 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 1.90 ns 1.90 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 1.27 % 1.27 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 175 ns 175 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 175 ns 175 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 5.77 ns 5.77 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.29 % 3.29 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 178 ns 178 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 180 ns 180 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 5.60 ns 5.60 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 3.15 % 3.15 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 136 ns 136 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 136 ns 136 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 1.52 ns 1.52 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.12 % 1.12 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 129 ns 129 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 129 ns 129 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 2.52 ns 2.52 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.95 % 1.95 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 161 ns 161 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 161 ns 161 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 2.20 ns 2.20 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.36 % 1.36 % 4 +Short replace symbols with std::string find_first_of + replace_mean 329 ns 329 ns 4 +Short replace symbols with std::string find_first_of + replace_median 329 ns 329 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 8.06 ns 8.06 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 2.45 % 2.45 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 154 ns 154 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 153 ns 153 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 5.45 ns 5.45 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 3.55 % 3.55 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 180 ns 180 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 179 ns 179 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.51 ns 4.51 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 2.50 % 2.50 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 184 ns 184 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 184 ns 184 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 2.95 ns 2.95 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 1.61 % 1.61 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 139 ns 139 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 139 ns 139 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 1.27 ns 1.27 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 0.91 % 0.91 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 132 ns 132 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 132 ns 132 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 1.26 ns 1.26 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 0.95 % 0.95 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 replace bb to ---- in std::string|64_mean 154 ns 154 ns 4 replace bb to ---- in std::string|64_median 154 ns 154 ns 4 -replace bb to ---- in std::string|64_stddev 1.47 ns 1.47 ns 4 -replace bb to ---- in std::string|64_cv 0.95 % 0.95 % 4 -replace bb to ---- in std::string|256_mean 500 ns 500 ns 4 -replace bb to ---- in std::string|256_median 498 ns 498 ns 4 -replace bb to ---- in std::string|256_stddev 7.86 ns 7.86 ns 4 -replace bb to ---- in std::string|256_cv 1.57 % 1.57 % 4 -replace bb to ---- in std::string|512_mean 972 ns 972 ns 4 -replace bb to ---- in std::string|512_median 970 ns 970 ns 4 -replace bb to ---- in std::string|512_stddev 31.5 ns 31.5 ns 4 -replace bb to ---- in std::string|512_cv 3.24 % 3.24 % 4 -replace bb to ---- in std::string|1024_mean 2261 ns 2261 ns 4 -replace bb to ---- in std::string|1024_median 2164 ns 2164 ns 4 -replace bb to ---- in std::string|1024_stddev 248 ns 248 ns 4 -replace bb to ---- in std::string|1024_cv 10.94 % 10.94 % 4 -replace bb to ---- in std::string|2048_mean 5887 ns 5887 ns 4 -replace bb to ---- in std::string|2048_median 5770 ns 5770 ns 4 -replace bb to ---- in std::string|2048_stddev 378 ns 378 ns 4 -replace bb to ---- in std::string|2048_cv 6.41 % 6.41 % 4 -replace bb to ---- in lstringa<8>|64_mean 130 ns 130 ns 4 -replace bb to ---- in lstringa<8>|64_median 130 ns 130 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 2.07 ns 2.07 ns 4 -replace bb to ---- in lstringa<8>|64_cv 1.59 % 1.59 % 4 -replace bb to ---- in lstringa<8>|256_mean 494 ns 494 ns 4 -replace bb to ---- in lstringa<8>|256_median 498 ns 498 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 12.3 ns 12.3 ns 4 -replace bb to ---- in lstringa<8>|256_cv 2.49 % 2.49 % 4 -replace bb to ---- in lstringa<8>|512_mean 839 ns 839 ns 4 -replace bb to ---- in lstringa<8>|512_median 838 ns 838 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 22.4 ns 22.4 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.66 % 2.66 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1731 ns 1731 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1725 ns 1725 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 27.0 ns 27.0 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 1.56 % 1.56 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3350 ns 3350 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3354 ns 3354 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 101 ns 101 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 3.02 % 3.02 % 4 -replace bb to ---- by init stringa|64_mean 82.3 ns 82.3 ns 4 -replace bb to ---- by init stringa|64_median 82.2 ns 82.2 ns 4 -replace bb to ---- by init stringa|64_stddev 1.27 ns 1.27 ns 4 -replace bb to ---- by init stringa|64_cv 1.55 % 1.55 % 4 -replace bb to ---- by init stringa|256_mean 276 ns 276 ns 4 -replace bb to ---- by init stringa|256_median 277 ns 277 ns 4 -replace bb to ---- by init stringa|256_stddev 2.04 ns 2.04 ns 4 -replace bb to ---- by init stringa|256_cv 0.74 % 0.74 % 4 -replace bb to ---- by init stringa|512_mean 675 ns 675 ns 4 -replace bb to ---- by init stringa|512_median 675 ns 675 ns 4 -replace bb to ---- by init stringa|512_stddev 6.62 ns 6.62 ns 4 -replace bb to ---- by init stringa|512_cv 0.98 % 0.98 % 4 -replace bb to ---- by init stringa|1024_mean 1510 ns 1510 ns 4 -replace bb to ---- by init stringa|1024_median 1527 ns 1527 ns 4 -replace bb to ---- by init stringa|1024_stddev 45.2 ns 45.2 ns 4 -replace bb to ---- by init stringa|1024_cv 2.99 % 2.99 % 4 -replace bb to ---- by init stringa|2048_mean 3059 ns 3059 ns 4 -replace bb to ---- by init stringa|2048_median 3035 ns 3035 ns 4 -replace bb to ---- by init stringa|2048_stddev 58.4 ns 58.4 ns 4 -replace bb to ---- by init stringa|2048_cv 1.91 % 1.91 % 4 +replace bb to ---- in std::string|64_stddev 1.72 ns 1.72 ns 4 +replace bb to ---- in std::string|64_cv 1.11 % 1.11 % 4 +replace bb to ---- in std::string|256_mean 504 ns 504 ns 4 +replace bb to ---- in std::string|256_median 504 ns 504 ns 4 +replace bb to ---- in std::string|256_stddev 18.2 ns 18.2 ns 4 +replace bb to ---- in std::string|256_cv 3.62 % 3.62 % 4 +replace bb to ---- in std::string|512_mean 1000 ns 1000 ns 4 +replace bb to ---- in std::string|512_median 1002 ns 1002 ns 4 +replace bb to ---- in std::string|512_stddev 17.0 ns 17.0 ns 4 +replace bb to ---- in std::string|512_cv 1.70 % 1.70 % 4 +replace bb to ---- in std::string|1024_mean 2347 ns 2347 ns 4 +replace bb to ---- in std::string|1024_median 2324 ns 2324 ns 4 +replace bb to ---- in std::string|1024_stddev 166 ns 166 ns 4 +replace bb to ---- in std::string|1024_cv 7.05 % 7.05 % 4 +replace bb to ---- in std::string|2048_mean 5969 ns 5969 ns 4 +replace bb to ---- in std::string|2048_median 5919 ns 5919 ns 4 +replace bb to ---- in std::string|2048_stddev 266 ns 266 ns 4 +replace bb to ---- in std::string|2048_cv 4.46 % 4.46 % 4 +replace bb to ---- in lstringa<8>|64_mean 138 ns 138 ns 4 +replace bb to ---- in lstringa<8>|64_median 139 ns 139 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 3.50 ns 3.50 ns 4 +replace bb to ---- in lstringa<8>|64_cv 2.53 % 2.53 % 4 +replace bb to ---- in lstringa<8>|256_mean 444 ns 444 ns 4 +replace bb to ---- in lstringa<8>|256_median 447 ns 447 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 6.19 ns 6.19 ns 4 +replace bb to ---- in lstringa<8>|256_cv 1.39 % 1.39 % 4 +replace bb to ---- in lstringa<8>|512_mean 899 ns 899 ns 4 +replace bb to ---- in lstringa<8>|512_median 896 ns 896 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 19.6 ns 19.6 ns 4 +replace bb to ---- in lstringa<8>|512_cv 2.18 % 2.18 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1751 ns 1751 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1752 ns 1752 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 11.7 ns 11.7 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 0.67 % 0.67 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3301 ns 3301 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3294 ns 3294 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 81.9 ns 81.9 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 2.48 % 2.48 % 4 +replace bb to ---- by init stringa|64_mean 92.8 ns 92.8 ns 4 +replace bb to ---- by init stringa|64_median 92.6 ns 92.6 ns 4 +replace bb to ---- by init stringa|64_stddev 1.37 ns 1.37 ns 4 +replace bb to ---- by init stringa|64_cv 1.48 % 1.48 % 4 +replace bb to ---- by init stringa|256_mean 287 ns 288 ns 4 +replace bb to ---- by init stringa|256_median 287 ns 287 ns 4 +replace bb to ---- by init stringa|256_stddev 1.86 ns 1.86 ns 4 +replace bb to ---- by init stringa|256_cv 0.65 % 0.65 % 4 +replace bb to ---- by init stringa|512_mean 705 ns 705 ns 4 +replace bb to ---- by init stringa|512_median 702 ns 702 ns 4 +replace bb to ---- by init stringa|512_stddev 12.7 ns 12.7 ns 4 +replace bb to ---- by init stringa|512_cv 1.79 % 1.79 % 4 +replace bb to ---- by init stringa|1024_mean 1550 ns 1550 ns 4 +replace bb to ---- by init stringa|1024_median 1543 ns 1543 ns 4 +replace bb to ---- by init stringa|1024_stddev 19.4 ns 19.4 ns 4 +replace bb to ---- by init stringa|1024_cv 1.25 % 1.25 % 4 +replace bb to ---- by init stringa|2048_mean 3106 ns 3106 ns 4 +replace bb to ---- by init stringa|2048_median 3111 ns 3111 ns 4 +replace bb to ---- by init stringa|2048_stddev 20.5 ns 20.4 ns 4 +replace bb to ---- by init stringa|2048_cv 0.66 % 0.66 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 120 ns 120 ns 4 -replace bb to -- in std::string|64_median 120 ns 120 ns 4 -replace bb to -- in std::string|64_stddev 2.02 ns 2.02 ns 4 -replace bb to -- in std::string|64_cv 1.68 % 1.68 % 4 -replace bb to -- in std::string|256_mean 365 ns 365 ns 4 -replace bb to -- in std::string|256_median 365 ns 365 ns 4 -replace bb to -- in std::string|256_stddev 6.97 ns 6.97 ns 4 -replace bb to -- in std::string|256_cv 1.91 % 1.91 % 4 -replace bb to -- in std::string|512_mean 772 ns 772 ns 4 -replace bb to -- in std::string|512_median 769 ns 769 ns 4 -replace bb to -- in std::string|512_stddev 17.4 ns 17.4 ns 4 -replace bb to -- in std::string|512_cv 2.25 % 2.25 % 4 -replace bb to -- in std::string|1024_mean 1404 ns 1404 ns 4 -replace bb to -- in std::string|1024_median 1395 ns 1395 ns 4 -replace bb to -- in std::string|1024_stddev 22.2 ns 22.2 ns 4 -replace bb to -- in std::string|1024_cv 1.58 % 1.58 % 4 -replace bb to -- in std::string|2048_mean 2726 ns 2726 ns 4 -replace bb to -- in std::string|2048_median 2715 ns 2715 ns 4 -replace bb to -- in std::string|2048_stddev 39.6 ns 39.6 ns 4 -replace bb to -- in std::string|2048_cv 1.45 % 1.45 % 4 -replace bb to -- in lstringa<8>|64_mean 90.0 ns 90.0 ns 4 -replace bb to -- in lstringa<8>|64_median 89.9 ns 89.9 ns 4 -replace bb to -- in lstringa<8>|64_stddev 1.20 ns 1.20 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.34 % 1.34 % 4 -replace bb to -- in lstringa<8>|256_mean 295 ns 295 ns 4 -replace bb to -- in lstringa<8>|256_median 296 ns 296 ns 4 -replace bb to -- in lstringa<8>|256_stddev 1.96 ns 1.96 ns 4 -replace bb to -- in lstringa<8>|256_cv 0.67 % 0.67 % 4 -replace bb to -- in lstringa<8>|512_mean 540 ns 540 ns 4 -replace bb to -- in lstringa<8>|512_median 531 ns 531 ns 4 -replace bb to -- in lstringa<8>|512_stddev 20.9 ns 20.9 ns 4 -replace bb to -- in lstringa<8>|512_cv 3.88 % 3.88 % 4 -replace bb to -- in lstringa<8>|1024_mean 1086 ns 1086 ns 4 -replace bb to -- in lstringa<8>|1024_median 1079 ns 1079 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 49.9 ns 49.9 ns 4 -replace bb to -- in lstringa<8>|1024_cv 4.60 % 4.60 % 4 -replace bb to -- in lstringa<8>|2048_mean 2111 ns 2111 ns 4 -replace bb to -- in lstringa<8>|2048_median 2083 ns 2083 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 90.9 ns 90.9 ns 4 -replace bb to -- in lstringa<8>|2048_cv 4.30 % 4.30 % 4 -replace bb to -- by init stringa|64_mean 75.9 ns 75.9 ns 4 -replace bb to -- by init stringa|64_median 75.6 ns 75.6 ns 4 -replace bb to -- by init stringa|64_stddev 1.07 ns 1.07 ns 4 -replace bb to -- by init stringa|64_cv 1.40 % 1.40 % 4 -replace bb to -- by init stringa|256_mean 241 ns 241 ns 4 -replace bb to -- by init stringa|256_median 241 ns 241 ns 4 -replace bb to -- by init stringa|256_stddev 1.94 ns 1.94 ns 4 -replace bb to -- by init stringa|256_cv 0.80 % 0.80 % 4 -replace bb to -- by init stringa|512_mean 457 ns 457 ns 4 -replace bb to -- by init stringa|512_median 458 ns 458 ns 4 -replace bb to -- by init stringa|512_stddev 6.93 ns 6.93 ns 4 -replace bb to -- by init stringa|512_cv 1.52 % 1.52 % 4 -replace bb to -- by init stringa|1024_mean 920 ns 920 ns 4 -replace bb to -- by init stringa|1024_median 924 ns 924 ns 4 -replace bb to -- by init stringa|1024_stddev 31.5 ns 31.5 ns 4 -replace bb to -- by init stringa|1024_cv 3.42 % 3.42 % 4 -replace bb to -- by init stringa|2048_mean 1760 ns 1760 ns 4 -replace bb to -- by init stringa|2048_median 1757 ns 1757 ns 4 -replace bb to -- by init stringa|2048_stddev 18.7 ns 18.7 ns 4 -replace bb to -- by init stringa|2048_cv 1.06 % 1.06 % 4 +replace bb to -- in std::string|64_mean 131 ns 131 ns 4 +replace bb to -- in std::string|64_median 129 ns 129 ns 4 +replace bb to -- in std::string|64_stddev 4.51 ns 4.51 ns 4 +replace bb to -- in std::string|64_cv 3.45 % 3.45 % 4 +replace bb to -- in std::string|256_mean 381 ns 381 ns 4 +replace bb to -- in std::string|256_median 381 ns 381 ns 4 +replace bb to -- in std::string|256_stddev 5.71 ns 5.71 ns 4 +replace bb to -- in std::string|256_cv 1.50 % 1.50 % 4 +replace bb to -- in std::string|512_mean 743 ns 743 ns 4 +replace bb to -- in std::string|512_median 744 ns 744 ns 4 +replace bb to -- in std::string|512_stddev 6.19 ns 6.19 ns 4 +replace bb to -- in std::string|512_cv 0.83 % 0.83 % 4 +replace bb to -- in std::string|1024_mean 1483 ns 1483 ns 4 +replace bb to -- in std::string|1024_median 1477 ns 1477 ns 4 +replace bb to -- in std::string|1024_stddev 36.1 ns 36.1 ns 4 +replace bb to -- in std::string|1024_cv 2.43 % 2.43 % 4 +replace bb to -- in std::string|2048_mean 2798 ns 2798 ns 4 +replace bb to -- in std::string|2048_median 2793 ns 2793 ns 4 +replace bb to -- in std::string|2048_stddev 34.3 ns 34.2 ns 4 +replace bb to -- in std::string|2048_cv 1.23 % 1.22 % 4 +replace bb to -- in lstringa<8>|64_mean 91.5 ns 91.5 ns 4 +replace bb to -- in lstringa<8>|64_median 91.9 ns 91.9 ns 4 +replace bb to -- in lstringa<8>|64_stddev 2.11 ns 2.11 ns 4 +replace bb to -- in lstringa<8>|64_cv 2.30 % 2.30 % 4 +replace bb to -- in lstringa<8>|256_mean 302 ns 302 ns 4 +replace bb to -- in lstringa<8>|256_median 305 ns 305 ns 4 +replace bb to -- in lstringa<8>|256_stddev 5.90 ns 5.90 ns 4 +replace bb to -- in lstringa<8>|256_cv 1.95 % 1.95 % 4 +replace bb to -- in lstringa<8>|512_mean 539 ns 539 ns 4 +replace bb to -- in lstringa<8>|512_median 541 ns 541 ns 4 +replace bb to -- in lstringa<8>|512_stddev 7.25 ns 7.25 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.34 % 1.34 % 4 +replace bb to -- in lstringa<8>|1024_mean 1121 ns 1121 ns 4 +replace bb to -- in lstringa<8>|1024_median 1103 ns 1103 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 86.3 ns 86.3 ns 4 +replace bb to -- in lstringa<8>|1024_cv 7.70 % 7.70 % 4 +replace bb to -- in lstringa<8>|2048_mean 2174 ns 2174 ns 4 +replace bb to -- in lstringa<8>|2048_median 2126 ns 2126 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 136 ns 136 ns 4 +replace bb to -- in lstringa<8>|2048_cv 6.25 % 6.25 % 4 +replace bb to -- by init stringa|64_mean 112 ns 112 ns 4 +replace bb to -- by init stringa|64_median 112 ns 112 ns 4 +replace bb to -- by init stringa|64_stddev 1.35 ns 1.35 ns 4 +replace bb to -- by init stringa|64_cv 1.20 % 1.20 % 4 +replace bb to -- by init stringa|256_mean 262 ns 262 ns 4 +replace bb to -- by init stringa|256_median 262 ns 262 ns 4 +replace bb to -- by init stringa|256_stddev 3.25 ns 3.25 ns 4 +replace bb to -- by init stringa|256_cv 1.24 % 1.24 % 4 +replace bb to -- by init stringa|512_mean 479 ns 479 ns 4 +replace bb to -- by init stringa|512_median 478 ns 478 ns 4 +replace bb to -- by init stringa|512_stddev 6.02 ns 6.02 ns 4 +replace bb to -- by init stringa|512_cv 1.26 % 1.26 % 4 +replace bb to -- by init stringa|1024_mean 954 ns 954 ns 4 +replace bb to -- by init stringa|1024_median 953 ns 953 ns 4 +replace bb to -- by init stringa|1024_stddev 27.7 ns 27.7 ns 4 +replace bb to -- by init stringa|1024_cv 2.91 % 2.91 % 4 +replace bb to -- by init stringa|2048_mean 1809 ns 1809 ns 4 +replace bb to -- by init stringa|2048_median 1804 ns 1804 ns 4 +replace bb to -- by init stringa|2048_stddev 20.3 ns 20.3 ns 4 +replace bb to -- by init stringa|2048_cv 1.12 % 1.12 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3672616 ns 3672647 ns 4 -hashStrMapA emplace & find stringa;_median 3644400 ns 3644453 ns 4 -hashStrMapA emplace & find stringa;_stddev 77712 ns 77696 ns 4 -hashStrMapA emplace & find stringa;_cv 2.12 % 2.12 % 4 -std::unordered_map emplace & find std::string;_mean 3585692 ns 3585702 ns 4 -std::unordered_map emplace & find std::string;_median 3607558 ns 3607567 ns 4 -std::unordered_map emplace & find std::string;_stddev 80404 ns 80403 ns 4 -std::unordered_map emplace & find std::string;_cv 2.24 % 2.24 % 4 -hashStrMapA emplace & find ssa;_mean 3715466 ns 3715476 ns 4 -hashStrMapA emplace & find ssa;_median 3724805 ns 3724814 ns 4 -hashStrMapA emplace & find ssa;_stddev 29987 ns 29987 ns 4 -hashStrMapA emplace & find ssa;_cv 0.81 % 0.81 % 4 -std::unordered_map emplace & find std::string_view;_mean 3948260 ns 3948273 ns 4 -std::unordered_map emplace & find std::string_view;_median 3934504 ns 3934514 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 96130 ns 96129 ns 4 -std::unordered_map emplace & find std::string_view;_cv 2.43 % 2.43 % 4 +hashStrMapA emplace & find stringa;_mean 3843202 ns 3843218 ns 4 +hashStrMapA emplace & find stringa;_median 3876351 ns 3876368 ns 4 +hashStrMapA emplace & find stringa;_stddev 83132 ns 83131 ns 4 +hashStrMapA emplace & find stringa;_cv 2.16 % 2.16 % 4 +std::unordered_map emplace & find std::string;_mean 3689411 ns 3689422 ns 4 +std::unordered_map emplace & find std::string;_median 3701989 ns 3701997 ns 4 +std::unordered_map emplace & find std::string;_stddev 102615 ns 102613 ns 4 +std::unordered_map emplace & find std::string;_cv 2.78 % 2.78 % 4 +hashStrMapA emplace & find ssa;_mean 3848145 ns 3848147 ns 4 +hashStrMapA emplace & find ssa;_median 3860211 ns 3860203 ns 4 +hashStrMapA emplace & find ssa;_stddev 53550 ns 53545 ns 4 +hashStrMapA emplace & find ssa;_cv 1.39 % 1.39 % 4 +std::unordered_map emplace & find std::string_view;_mean 4076242 ns 4076215 ns 4 +std::unordered_map emplace & find std::string_view;_median 4075582 ns 4075516 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 57080 ns 57087 ns 4 +std::unordered_map emplace & find std::string_view;_cv 1.40 % 1.40 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 733 ns 733 ns 4 -Build func full name std::string;_median 725 ns 725 ns 4 -Build func full name std::string;_stddev 29.9 ns 29.9 ns 4 -Build func full name std::string;_cv 4.08 % 4.08 % 4 -Build func full name std::string 1;_mean 789 ns 789 ns 4 -Build func full name std::string 1;_median 791 ns 791 ns 4 -Build func full name std::string 1;_stddev 18.5 ns 18.5 ns 4 -Build func full name std::string 1;_cv 2.35 % 2.35 % 4 -Build func full name std::stream;_mean 2490 ns 2490 ns 4 -Build func full name std::stream;_median 2483 ns 2483 ns 4 -Build func full name std::stream;_stddev 47.0 ns 47.0 ns 4 -Build func full name std::stream;_cv 1.89 % 1.89 % 4 -Build func full name stringa;_mean 449 ns 449 ns 4 -Build func full name stringa;_median 449 ns 449 ns 4 -Build func full name stringa;_stddev 8.80 ns 8.80 ns 4 -Build func full name stringa;_cv 1.96 % 1.96 % 4 -Build func full name stringa 1;_mean 530 ns 530 ns 4 -Build func full name stringa 1;_median 526 ns 526 ns 4 -Build func full name stringa 1;_stddev 9.76 ns 9.76 ns 4 -Build func full name stringa 1;_cv 1.84 % 1.84 % 4 +Build func full name std::string;_mean 738 ns 738 ns 4 +Build func full name std::string;_median 745 ns 745 ns 4 +Build func full name std::string;_stddev 20.2 ns 20.2 ns 4 +Build func full name std::string;_cv 2.74 % 2.74 % 4 +Build func full name std::string 1;_mean 820 ns 820 ns 4 +Build func full name std::string 1;_median 819 ns 819 ns 4 +Build func full name std::string 1;_stddev 7.48 ns 7.48 ns 4 +Build func full name std::string 1;_cv 0.91 % 0.91 % 4 +Build func full name std::stream;_mean 2610 ns 2610 ns 4 +Build func full name std::stream;_median 2628 ns 2628 ns 4 +Build func full name std::stream;_stddev 45.5 ns 45.5 ns 4 +Build func full name std::stream;_cv 1.75 % 1.75 % 4 +Build func full name stringa;_mean 480 ns 480 ns 4 +Build func full name stringa;_median 479 ns 479 ns 4 +Build func full name stringa;_stddev 6.26 ns 6.26 ns 4 +Build func full name stringa;_cv 1.30 % 1.30 % 4 +Build func full name stringa 1;_mean 564 ns 564 ns 4 +Build func full name stringa 1;_median 563 ns 563 ns 4 +Build func full name stringa 1;_stddev 12.8 ns 12.8 ns 4 +Build func full name stringa 1;_cv 2.26 % 2.26 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 168 ns 168 ns 4 -To upper case std::wstring_median 162 ns 162 ns 4 -To upper case std::wstring_stddev 13.7 ns 13.7 ns 4 -To upper case std::wstring_cv 8.13 % 8.13 % 4 -To upper case lstringw<15>_mean 39.3 ns 39.3 ns 4 -To upper case lstringw<15>_median 39.3 ns 39.3 ns 4 -To upper case lstringw<15>_stddev 0.644 ns 0.644 ns 4 -To upper case lstringw<15>_cv 1.64 % 1.64 % 4 +To upper case std::wstring_mean 175 ns 175 ns 4 +To upper case std::wstring_median 174 ns 174 ns 4 +To upper case std::wstring_stddev 3.12 ns 3.12 ns 4 +To upper case std::wstring_cv 1.78 % 1.78 % 4 +To upper case lstringw<15>_mean 40.4 ns 40.4 ns 4 +To upper case lstringw<15>_median 40.3 ns 40.3 ns 4 +To upper case lstringw<15>_stddev 0.801 ns 0.801 ns 4 +To upper case lstringw<15>_cv 1.98 % 1.98 % 4 diff --git a/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt b/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt index da37637..6c12a7b 100644 --- a/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt +++ b/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler Clang 22.1.0 -2026-02-27T17:24:35+03:00 +2026-03-22T14:13:24+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,974 +14,974 @@ CPU Caches: Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 207 ns 206 ns 4 -Concat email std::format_median 207 ns 206 ns 4 -Concat email std::format_stddev 6.76 ns 5.85 ns 4 -Concat email std::format_cv 3.26 % 2.84 % 4 -Concat email std::stringstream_mean 808 ns 807 ns 4 -Concat email std::stringstream_median 813 ns 811 ns 4 -Concat email std::stringstream_stddev 18.2 ns 16.7 ns 4 -Concat email std::stringstream_cv 2.26 % 2.07 % 4 -Concat email stringzilla append_mean 260 ns 259 ns 4 -Concat email stringzilla append_median 260 ns 261 ns 4 -Concat email stringzilla append_stddev 1.27 ns 2.96 ns 4 -Concat email stringzilla append_cv 0.49 % 1.14 % 4 -Concat email stringzilla concat_mean 125 ns 125 ns 4 -Concat email stringzilla concat_median 125 ns 124 ns 4 -Concat email stringzilla concat_stddev 2.46 ns 2.67 ns 4 -Concat email stringzilla concat_cv 1.97 % 2.14 % 4 -Concat email std::string append_mean 182 ns 182 ns 4 -Concat email std::string append_median 180 ns 180 ns 4 -Concat email std::string append_stddev 5.48 ns 7.25 ns 4 -Concat email std::string append_cv 3.01 % 3.98 % 4 -Concat email std::string by strexpr_mean 106 ns 105 ns 4 -Concat email std::string by strexpr_median 106 ns 106 ns 4 -Concat email std::string by strexpr_stddev 1.71 ns 4.52 ns 4 -Concat email std::string by strexpr_cv 1.62 % 4.32 % 4 -Concat email stringa_mean 92.9 ns 92.6 ns 4 -Concat email stringa_median 93.1 ns 92.1 ns 4 -Concat email stringa_stddev 0.901 ns 1.05 ns 4 -Concat email stringa_cv 0.97 % 1.13 % 4 +Concat email std::format_mean 201 ns 198 ns 4 +Concat email std::format_median 202 ns 197 ns 4 +Concat email std::format_stddev 3.07 ns 4.34 ns 4 +Concat email std::format_cv 1.52 % 2.19 % 4 +Concat email std::stringstream_mean 830 ns 827 ns 4 +Concat email std::stringstream_median 834 ns 827 ns 4 +Concat email std::stringstream_stddev 18.5 ns 12.1 ns 4 +Concat email std::stringstream_cv 2.23 % 1.46 % 4 +Concat email stringzilla append_mean 273 ns 271 ns 4 +Concat email stringzilla append_median 274 ns 273 ns 4 +Concat email stringzilla append_stddev 3.38 ns 2.96 ns 4 +Concat email stringzilla append_cv 1.24 % 1.09 % 4 +Concat email stringzilla concat_mean 126 ns 127 ns 4 +Concat email stringzilla concat_median 127 ns 127 ns 4 +Concat email stringzilla concat_stddev 1.88 ns 1.61 ns 4 +Concat email stringzilla concat_cv 1.48 % 1.27 % 4 +Concat email std::string append_mean 187 ns 185 ns 4 +Concat email std::string append_median 187 ns 184 ns 4 +Concat email std::string append_stddev 2.11 ns 2.09 ns 4 +Concat email std::string append_cv 1.13 % 1.13 % 4 +Concat email std::string by strexpr_mean 104 ns 104 ns 4 +Concat email std::string by strexpr_median 103 ns 104 ns 4 +Concat email std::string by strexpr_stddev 1.83 ns 2.00 ns 4 +Concat email std::string by strexpr_cv 1.76 % 1.92 % 4 +Concat email stringa_mean 94.4 ns 94.2 ns 4 +Concat email stringa_median 94.9 ns 94.2 ns 4 +Concat email stringa_stddev 2.21 ns 1.71 ns 4 +Concat email stringa_cv 2.34 % 1.81 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 265 ns 265 ns 4 -Concat std::string and number by std to std::string_median 265 ns 267 ns 4 -Concat std::string and number by std to std::string_stddev 3.97 ns 2.96 ns 4 -Concat std::string and number by std to std::string_cv 1.50 % 1.12 % 4 -Concat std::string and number by StrExpr to std::string_mean 156 ns 155 ns 4 -Concat std::string and number by StrExpr to std::string_median 156 ns 155 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 3.66 ns 2.01 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.35 % 1.30 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 66.5 ns 66.6 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 66.5 ns 66.3 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 1.31 ns 1.34 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 1.97 % 2.01 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 74.2 ns 73.7 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 74.0 ns 73.2 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 1.43 ns 2.19 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 1.92 % 2.98 % 4 +Concat std::string and number by std to std::string_mean 268 ns 268 ns 4 +Concat std::string and number by std to std::string_median 267 ns 267 ns 4 +Concat std::string and number by std to std::string_stddev 7.57 ns 10.7 ns 4 +Concat std::string and number by std to std::string_cv 2.83 % 3.99 % 4 +Concat std::string and number by StrExpr to std::string_mean 160 ns 160 ns 4 +Concat std::string and number by StrExpr to std::string_median 160 ns 160 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 4.44 ns 4.39 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.78 % 2.75 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 68.7 ns 68.4 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 68.4 ns 68.4 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 1.17 ns 0.000 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 1.70 % 0.00 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 74.2 ns 74.3 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 74.1 ns 73.9 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 0.363 ns 0.698 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 0.49 % 0.94 % 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 701 ns 694 ns 4 -Concat std::string and format hex number and literal to std::string_median 697 ns 691 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 17.5 ns 23.8 ns 4 -Concat std::string and format hex number and literal to std::string_cv 2.50 % 3.43 % 4 -std::format std::string and hex number by literal to std::string_mean 1465 ns 1452 ns 4 -std::format std::string and hex number by literal to std::string_median 1472 ns 1444 ns 4 -std::format std::string and hex number by literal to std::string_stddev 29.4 ns 47.1 ns 4 -std::format std::string and hex number by literal to std::string_cv 2.01 % 3.24 % 4 -Concat std::string and std::to_chars and string to std::string_mean 182 ns 182 ns 4 -Concat std::string and std::to_chars and string to std::string_median 181 ns 182 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 4.01 ns 2.42 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 2.20 % 1.33 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 83.5 ns 83.2 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 83.7 ns 82.7 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.48 % 2.41 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 67.1 ns 67.0 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 66.8 ns 67.0 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.969 ns 1.14 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.44 % 1.70 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 75.9 ns 75.9 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 75.2 ns 75.0 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 2.03 ns 3.02 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.67 % 3.98 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 145 ns 144 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 146 ns 144 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 3.29 ns 3.62 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.27 % 2.51 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 292 ns 289 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 291 ns 288 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 4.85 ns 10.1 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.66 % 3.50 % 4 +Concat std::string and format hex number and literal to std::string_mean 725 ns 722 ns 4 +Concat std::string and format hex number and literal to std::string_median 727 ns 725 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 8.98 ns 6.98 ns 4 +Concat std::string and format hex number and literal to std::string_cv 1.24 % 0.97 % 4 +std::format std::string and hex number by literal to std::string_mean 1525 ns 1508 ns 4 +std::format std::string and hex number by literal to std::string_median 1525 ns 1517 ns 4 +std::format std::string and hex number by literal to std::string_stddev 29.4 ns 33.4 ns 4 +std::format std::string and hex number by literal to std::string_cv 1.93 % 2.21 % 4 +Concat std::string and std::to_chars and string to std::string_mean 188 ns 186 ns 4 +Concat std::string and std::to_chars and string to std::string_median 189 ns 186 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 3.60 ns 2.42 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.91 % 1.30 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 84.6 ns 84.1 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 85.1 ns 84.6 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.31 ns 1.67 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 1.55 % 1.98 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 71.4 ns 71.1 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 71.3 ns 70.6 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.52 ns 1.67 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 2.12 % 2.35 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 76.9 ns 76.3 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 77.0 ns 75.9 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 0.926 ns 1.67 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.20 % 2.19 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 149 ns 150 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 2.26 ns 3.01 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.51 % 2.01 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 287 ns 287 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 286 ns 285 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.37 ns 8.34 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.87 % 2.91 % 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 668 ns 663 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 669 ns 663 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 16.7 ns 14.2 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.49 % 2.15 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 753 ns 754 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 756 ns 759 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 12.9 ns 16.7 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.71 % 2.21 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1052 ns 1046 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1057 ns 1046 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 23.8 ns 24.2 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.26 % 2.31 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1408 ns 1413 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1408 ns 1413 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 38.4 ns 36.2 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.72 % 2.57 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1384 ns 1388 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1378 ns 1381 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 41.0 ns 47.7 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.96 % 3.43 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1574 ns 1569 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1580 ns 1569 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 29.3 ns 28.5 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.86 % 1.81 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1578 ns 1569 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1577 ns 1569 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 18.8 ns 28.5 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 1.19 % 1.81 % 4 -std::format with std::formatted_size_mean 2443 ns 2427 ns 4 -std::format with std::formatted_size_median 2451 ns 2427 ns 4 -std::format with std::formatted_size_stddev 35.4 ns 32.2 ns 4 -std::format with std::formatted_size_cv 1.45 % 1.33 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6589 ns 6557 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6613 ns 6627 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 164 ns 301 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.49 % 4.60 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 639 ns 635 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 637 ns 635 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 5.27 ns 18.0 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 0.83 % 2.84 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 750 ns 746 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 749 ns 753 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 11.7 ns 14.0 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.56 % 1.87 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1070 ns 1067 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1070 ns 1057 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 27.0 ns 29.6 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.52 % 2.77 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1433 ns 1437 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1440 ns 1451 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 38.0 ns 27.9 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.65 % 1.94 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1327 ns 1318 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1310 ns 1297 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 39.9 ns 52.8 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.01 % 4.01 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1568 ns 1569 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1565 ns 1569 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 20.6 ns 28.5 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.32 % 1.81 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1555 ns 1543 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1546 ns 1552 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 40.0 ns 33.4 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 2.57 % 2.16 % 4 +std::format with std::formatted_size_mean 2496 ns 2490 ns 4 +std::format with std::formatted_size_median 2488 ns 2490 ns 4 +std::format with std::formatted_size_stddev 31.6 ns 68.5 ns 4 +std::format with std::formatted_size_cv 1.27 % 2.75 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6707 ns 6731 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6709 ns 6766 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 106 ns 134 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.58 % 1.98 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 40.4 ns 40.4 ns 4 -Concat std::string by std to std::string_median 40.8 ns 40.6 ns 4 -Concat std::string by std to std::string_stddev 2.61 ns 2.31 ns 4 -Concat std::string by std to std::string_cv 6.47 % 5.71 % 4 -Concat std::string by StrExpr to std::string_mean 38.7 ns 38.5 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.678 ns 0.683 ns 4 -Concat std::string by StrExpr to std::string_cv 1.75 % 1.77 % 4 -Concat stringa by StrExpr to stringa_mean 29.3 ns 29.3 ns 4 -Concat stringa by StrExpr to stringa_median 29.2 ns 29.2 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.159 ns 0.331 ns 4 -Concat stringa by StrExpr to stringa_cv 0.54 % 1.13 % 4 +Concat std::string by std to std::string_mean 42.2 ns 42.2 ns 4 +Concat std::string by std to std::string_median 41.7 ns 42.2 ns 4 +Concat std::string by std to std::string_stddev 1.16 ns 1.17 ns 4 +Concat std::string by std to std::string_cv 2.76 % 2.78 % 4 +Concat std::string by StrExpr to std::string_mean 39.3 ns 39.5 ns 4 +Concat std::string by StrExpr to std::string_median 39.4 ns 39.2 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.441 ns 0.436 ns 4 +Concat std::string by StrExpr to std::string_cv 1.12 % 1.10 % 4 +Concat stringa by StrExpr to stringa_mean 30.6 ns 30.2 ns 4 +Concat stringa by StrExpr to stringa_median 30.5 ns 30.0 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.672 ns 0.349 ns 4 +Concat stringa by StrExpr to stringa_cv 2.20 % 1.16 % 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 205 ns 4 -Find concat three std::string_median 204 ns 205 ns 4 -Find concat three std::string_stddev 4.46 ns 5.64 ns 4 -Find concat three std::string_cv 2.18 % 2.75 % 4 -Find concat three strexpr_mean 114 ns 114 ns 4 -Find concat three strexpr_median 114 ns 113 ns 4 -Find concat three strexpr_stddev 2.63 ns 2.67 ns 4 -Find concat three strexpr_cv 2.30 % 2.35 % 4 -Find concat three simstr_mean 20.8 ns 20.8 ns 4 -Find concat three simstr_median 20.7 ns 20.5 ns 4 -Find concat three simstr_stddev 0.364 ns 0.488 ns 4 -Find concat three simstr_cv 1.75 % 2.35 % 4 -Find concat three stringzilla string_mean 211 ns 211 ns 4 -Find concat three stringzilla string_median 211 ns 211 ns 4 -Find concat three stringzilla string_stddev 2.88 ns 2.62 ns 4 -Find concat three stringzilla string_cv 1.37 % 1.24 % 4 +Find concat three std::string_mean 206 ns 204 ns 4 +Find concat three std::string_median 206 ns 204 ns 4 +Find concat three std::string_stddev 2.29 ns 5.24 ns 4 +Find concat three std::string_cv 1.11 % 2.57 % 4 +Find concat three strexpr_mean 113 ns 112 ns 4 +Find concat three strexpr_median 112 ns 113 ns 4 +Find concat three strexpr_stddev 3.29 ns 2.67 ns 4 +Find concat three strexpr_cv 2.92 % 2.38 % 4 +Find concat three simstr_mean 21.2 ns 21.2 ns 4 +Find concat three simstr_median 21.0 ns 21.1 ns 4 +Find concat three simstr_stddev 0.696 ns 0.774 ns 4 +Find concat three simstr_cv 3.29 % 3.65 % 4 +Find concat three stringzilla string_mean 215 ns 215 ns 4 +Find concat three stringzilla string_median 215 ns 215 ns 4 +Find concat three stringzilla string_stddev 1.86 ns 3.99 ns 4 +Find concat three stringzilla string_cv 0.86 % 1.86 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 8.21 ns 8.20 ns 4 -BuildTypeNameStr 0/0_median 8.13 ns 8.11 ns 4 -BuildTypeNameStr 0/0_stddev 0.326 ns 0.377 ns 4 -BuildTypeNameStr 0/0_cv 3.97 % 4.60 % 4 -BuildTypeNameExp 0/0_mean 7.48 ns 7.50 ns 4 -BuildTypeNameExp 0/0_median 7.45 ns 7.50 ns 4 -BuildTypeNameExp 0/0_stddev 0.100 ns 0.142 ns 4 -BuildTypeNameExp 0/0_cv 1.34 % 1.90 % 4 -BuildTypeNameSim 0/0_mean 7.46 ns 7.46 ns 4 -BuildTypeNameSim 0/0_median 7.46 ns 7.46 ns 4 -BuildTypeNameSim 0/0_stddev 0.124 ns 0.081 ns 4 -BuildTypeNameSim 0/0_cv 1.66 % 1.08 % 4 -BuildTypeNameStr 10/10_mean 69.3 ns 69.3 ns 4 -BuildTypeNameStr 10/10_median 69.4 ns 68.9 ns 4 -BuildTypeNameStr 10/10_stddev 3.05 ns 3.60 ns 4 -BuildTypeNameStr 10/10_cv 4.41 % 5.19 % 4 -BuildTypeNameExp 10/10_mean 32.2 ns 32.3 ns 4 -BuildTypeNameExp 10/10_median 31.9 ns 32.1 ns 4 -BuildTypeNameExp 10/10_stddev 0.787 ns 0.878 ns 4 -BuildTypeNameExp 10/10_cv 2.44 % 2.72 % 4 -BuildTypeNameSim 10/10_mean 25.9 ns 25.9 ns 4 -BuildTypeNameSim 10/10_median 26.0 ns 25.9 ns 4 -BuildTypeNameSim 10/10_stddev 0.813 ns 0.720 ns 4 -BuildTypeNameSim 10/10_cv 3.14 % 2.78 % 4 +BuildTypeNameStr 0/0_mean 8.34 ns 8.37 ns 4 +BuildTypeNameStr 0/0_median 8.34 ns 8.37 ns 4 +BuildTypeNameStr 0/0_stddev 0.055 ns 0.000 ns 4 +BuildTypeNameStr 0/0_cv 0.66 % 0.00 % 4 +BuildTypeNameExp 0/0_mean 7.67 ns 7.59 ns 4 +BuildTypeNameExp 0/0_median 7.68 ns 7.59 ns 4 +BuildTypeNameExp 0/0_stddev 0.232 ns 0.225 ns 4 +BuildTypeNameExp 0/0_cv 3.03 % 2.97 % 4 +BuildTypeNameSim 0/0_mean 7.90 ns 7.85 ns 4 +BuildTypeNameSim 0/0_median 7.83 ns 7.76 ns 4 +BuildTypeNameSim 0/0_stddev 0.149 ns 0.247 ns 4 +BuildTypeNameSim 0/0_cv 1.89 % 3.14 % 4 +BuildTypeNameStr 10/10_mean 79.5 ns 79.8 ns 4 +BuildTypeNameStr 10/10_median 79.5 ns 79.3 ns 4 +BuildTypeNameStr 10/10_stddev 2.19 ns 1.67 ns 4 +BuildTypeNameStr 10/10_cv 2.75 % 2.09 % 4 +BuildTypeNameExp 10/10_mean 33.1 ns 33.1 ns 4 +BuildTypeNameExp 10/10_median 32.9 ns 33.0 ns 4 +BuildTypeNameExp 10/10_stddev 0.775 ns 0.922 ns 4 +BuildTypeNameExp 10/10_cv 2.34 % 2.78 % 4 +BuildTypeNameSim 10/10_mean 25.2 ns 25.2 ns 4 +BuildTypeNameSim 10/10_median 25.2 ns 25.2 ns 4 +BuildTypeNameSim 10/10_stddev 0.364 ns 0.342 ns 4 +BuildTypeNameSim 10/10_cv 1.45 % 1.36 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 310 ns 307 ns 4 -Concat with replace str_median 310 ns 307 ns 4 -Concat with replace str_stddev 6.21 ns 5.70 ns 4 -Concat with replace str_cv 2.00 % 1.86 % 4 -Concat with replace exp_mean 213 ns 212 ns 4 -Concat with replace exp_median 211 ns 209 ns 4 -Concat with replace exp_stddev 5.45 ns 7.89 ns 4 -Concat with replace exp_cv 2.56 % 3.72 % 4 +Concat with replace str_mean 315 ns 312 ns 4 +Concat with replace str_median 314 ns 314 ns 4 +Concat with replace str_stddev 5.64 ns 3.49 ns 4 +Concat with replace str_cv 1.79 % 1.12 % 4 +Concat with replace exp_mean 220 ns 220 ns 4 +Concat with replace exp_median 219 ns 222 ns 4 +Concat with replace exp_stddev 6.89 ns 6.91 ns 4 +Concat with replace exp_cv 3.13 % 3.14 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.09 ns 1.09 ns 4 -std::string e;_median 1.09 ns 1.10 ns 4 -std::string e;_stddev 0.015 ns 0.012 ns 4 -std::string e;_cv 1.34 % 1.12 % 4 -std::string_view e;_mean 0.363 ns 0.363 ns 4 -std::string_view e;_median 0.362 ns 0.361 ns 4 -std::string_view e;_stddev 0.009 ns 0.010 ns 4 -std::string_view e;_cv 2.44 % 2.78 % 4 -ssa e;_mean 0.357 ns 0.357 ns 4 -ssa e;_median 0.357 ns 0.357 ns 4 -ssa e;_stddev 0.005 ns 0.005 ns 4 -ssa e;_cv 1.43 % 1.30 % 4 -stringa e;_mean 0.741 ns 0.741 ns 4 -stringa e;_median 0.743 ns 0.741 ns 4 -stringa e;_stddev 0.020 ns 0.023 ns 4 -stringa e;_cv 2.69 % 3.04 % 4 -lstringa<20> e;_mean 1.08 ns 1.08 ns 4 -lstringa<20> e;_median 1.08 ns 1.07 ns 4 -lstringa<20> e;_stddev 0.015 ns 0.027 ns 4 -lstringa<20> e;_cv 1.38 % 2.47 % 4 -lstringa<40> e;_mean 1.09 ns 1.09 ns 4 -lstringa<40> e;_median 1.09 ns 1.10 ns 4 -lstringa<40> e;_stddev 0.015 ns 0.024 ns 4 -lstringa<40> e;_cv 1.42 % 2.25 % 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.012 ns 0.012 ns 4 +std::string e;_cv 1.11 % 1.09 % 4 +std::string_view e;_mean 0.369 ns 0.369 ns 4 +std::string_view e;_median 0.369 ns 0.369 ns 4 +std::string_view e;_stddev 0.002 ns 0.000 ns 4 +std::string_view e;_cv 0.66 % 0.00 % 4 +ssa e;_mean 0.362 ns 0.359 ns 4 +ssa e;_median 0.363 ns 0.361 ns 4 +ssa e;_stddev 0.003 ns 0.004 ns 4 +ssa e;_cv 0.91 % 1.12 % 4 +stringa e;_mean 0.745 ns 0.746 ns 4 +stringa e;_median 0.744 ns 0.746 ns 4 +stringa e;_stddev 0.004 ns 0.008 ns 4 +stringa e;_cv 0.54 % 1.08 % 4 +lstringa<20> e;_mean 1.10 ns 1.09 ns 4 +lstringa<20> e;_median 1.10 ns 1.09 ns 4 +lstringa<20> e;_stddev 0.015 ns 0.023 ns 4 +lstringa<20> e;_cv 1.36 % 2.14 % 4 +lstringa<40> e;_mean 1.11 ns 1.10 ns 4 +lstringa<40> e;_median 1.11 ns 1.10 ns 4 +lstringa<40> e;_stddev 0.015 ns 0.016 ns 4 +lstringa<40> e;_cv 1.33 % 1.46 % 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.82 ns 1.82 ns 4 -std::string e = "Test text";_stddev 0.042 ns 0.040 ns 4 -std::string e = "Test text";_cv 2.29 % 2.19 % 4 -std::string_view e = "Test text";_mean 0.718 ns 0.719 ns 4 -std::string_view e = "Test text";_median 0.716 ns 0.715 ns 4 -std::string_view e = "Test text";_stddev 0.009 ns 0.009 ns 4 -std::string_view e = "Test text";_cv 1.28 % 1.21 % 4 -ssa e = "Test text";_mean 0.367 ns 0.367 ns 4 +std::string e = "Test text";_mean 1.84 ns 1.82 ns 4 +std::string e = "Test text";_median 1.85 ns 1.82 ns 4 +std::string e = "Test text";_stddev 0.023 ns 0.024 ns 4 +std::string e = "Test text";_cv 1.27 % 1.33 % 4 +std::string_view e = "Test text";_mean 0.741 ns 0.743 ns 4 +std::string_view e = "Test text";_median 0.741 ns 0.746 ns 4 +std::string_view e = "Test text";_stddev 0.009 ns 0.013 ns 4 +std::string_view e = "Test text";_cv 1.25 % 1.80 % 4 +ssa e = "Test text";_mean 0.369 ns 0.367 ns 4 ssa e = "Test text";_median 0.368 ns 0.369 ns 4 -ssa e = "Test text";_stddev 0.002 ns 0.004 ns 4 -ssa e = "Test text";_cv 0.54 % 1.09 % 4 -stringa e = "Test text";_mean 1.10 ns 1.09 ns 4 -stringa e = "Test text";_median 1.10 ns 1.09 ns 4 -stringa e = "Test text";_stddev 0.017 ns 0.032 ns 4 -stringa e = "Test text";_cv 1.59 % 2.90 % 4 -lstringa<20> e = "Test text";_mean 1.82 ns 1.83 ns 4 -lstringa<20> e = "Test text";_median 1.82 ns 1.84 ns 4 -lstringa<20> e = "Test text";_stddev 0.015 ns 0.019 ns 4 -lstringa<20> e = "Test text";_cv 0.82 % 1.05 % 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.017 ns 0.024 ns 4 -lstringa<40> e = "Test text";_cv 0.96 % 1.33 % 4 +ssa e = "Test text";_stddev 0.008 ns 0.004 ns 4 +ssa e = "Test text";_cv 2.15 % 1.09 % 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.011 ns 0.014 ns 4 +stringa e = "Test text";_cv 1.02 % 1.27 % 4 +lstringa<20> e = "Test text";_mean 1.84 ns 1.82 ns 4 +lstringa<20> e = "Test text";_median 1.85 ns 1.80 ns 4 +lstringa<20> e = "Test text";_stddev 0.028 ns 0.042 ns 4 +lstringa<20> e = "Test text";_cv 1.55 % 2.30 % 4 +lstringa<40> e = "Test text";_mean 1.85 ns 1.82 ns 4 +lstringa<40> e = "Test text";_median 1.83 ns 1.79 ns 4 +lstringa<40> e = "Test text";_stddev 0.063 ns 0.086 ns 4 +lstringa<40> e = "Test text";_cv 3.39 % 4.70 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 76.0 ns 75.4 ns 4 -std::string e = "123456789012345678901234567890";_median 76.2 ns 75.9 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.38 ns 1.67 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.82 % 2.21 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.734 ns 0.736 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.734 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.009 ns 0.013 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.26 % 1.82 % 4 -ssa e = "123456789012345678901234567890";_mean 0.362 ns 0.363 ns 4 -ssa e = "123456789012345678901234567890";_median 0.360 ns 0.361 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.009 ns 0.010 ns 4 -ssa e = "123456789012345678901234567890";_cv 2.43 % 2.78 % 4 -stringa e = "123456789012345678901234567890";_mean 1.09 ns 1.09 ns 4 -stringa e = "123456789012345678901234567890";_median 1.09 ns 1.09 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.017 ns 0.023 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.60 % 2.14 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 76.7 ns 76.3 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 76.5 ns 75.9 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.575 ns 1.67 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 0.75 % 2.19 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.50 ns 2.47 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.51 ns 2.49 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.036 ns 0.050 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.44 % 2.03 % 4 +std::string e = "123456789012345678901234567890";_mean 73.9 ns 73.7 ns 4 +std::string e = "123456789012345678901234567890";_median 74.4 ns 74.1 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.956 ns 1.67 ns 4 +std::string e = "123456789012345678901234567890";_cv 1.29 % 2.27 % 4 +std::string_view e = "123456789012345678901234567890";_mean 0.736 ns 0.736 ns 4 +std::string_view e = "123456789012345678901234567890";_median 0.735 ns 0.739 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.009 ns 0.007 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 1.22 % 0.95 % 4 +ssa e = "123456789012345678901234567890";_mean 0.369 ns 0.369 ns 4 +ssa e = "123456789012345678901234567890";_median 0.369 ns 0.369 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.004 ns 0.007 ns 4 +ssa e = "123456789012345678901234567890";_cv 1.03 % 1.77 % 4 +stringa e = "123456789012345678901234567890";_mean 1.11 ns 1.11 ns 4 +stringa e = "123456789012345678901234567890";_median 1.11 ns 1.11 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.010 ns 0.014 ns 4 +stringa e = "123456789012345678901234567890";_cv 0.93 % 1.27 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 73.1 ns 73.2 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 72.7 ns 73.2 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 1.20 ns 1.42 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.64 % 1.94 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 2.56 ns 2.55 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 2.56 ns 2.57 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.028 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 1.22 % 1.09 % 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 1.84 ns 1.82 ns 4 -std::string e = "Test text"; auto c{e};_median 1.84 ns 1.84 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.020 ns 0.043 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.07 % 2.38 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.368 ns 0.369 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.369 ns 0.369 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.003 ns 0.007 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 0.87 % 1.77 % 4 -ssa e = "Test text"; auto c{e};_mean 0.367 ns 0.367 ns 4 -ssa e = "Test text"; auto c{e};_median 0.368 ns 0.369 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.011 ns 0.010 ns 4 -ssa e = "Test text"; auto c{e};_cv 3.10 % 2.75 % 4 -stringa e = "Test text"; auto c{e};_mean 1.08 ns 1.08 ns 4 -stringa e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.017 ns 0.027 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.55 % 2.51 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.10 ns 1.09 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.10 ns 1.10 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.024 ns 0.031 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 2.20 % 2.81 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.10 ns 1.09 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.10 ns 1.09 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.017 ns 0.014 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.56 % 1.30 % 4 +std::string e = "Test text"; auto c{e};_mean 1.84 ns 1.83 ns 4 +std::string e = "Test text"; auto c{e};_median 1.84 ns 1.82 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.028 ns 0.040 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.53 % 2.19 % 4 +std::string_view e = "Test text"; auto c{e};_mean 0.373 ns 0.371 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.001 ns 0.008 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 0.38 % 2.07 % 4 +ssa e = "Test text"; auto c{e};_mean 0.380 ns 0.377 ns 4 +ssa e = "Test text"; auto c{e};_median 0.380 ns 0.377 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.006 ns 0.007 ns 4 +ssa e = "Test text"; auto c{e};_cv 1.71 % 1.74 % 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.011 ns 0.000 ns 4 +stringa e = "Test text"; auto c{e};_cv 0.99 % 0.00 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 1.12 ns 1.10 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 1.12 ns 1.10 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.026 ns 0.031 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 2.34 % 2.78 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 1.11 ns 1.11 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 1.11 ns 1.11 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.017 ns 0.032 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.49 % 2.84 % 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 74.9 ns 75.0 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 74.7 ns 75.0 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.923 ns 1.42 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.23 % 1.90 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.731 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.732 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.015 ns 0.014 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.02 % 1.94 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.365 ns 0.364 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.365 ns 0.364 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.008 ns 0.005 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.14 % 1.33 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.08 ns 1.08 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.07 ns 1.06 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.034 ns 0.046 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 3.14 % 4.28 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 75.1 ns 75.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 74.8 ns 75.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.992 ns 1.42 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.32 % 1.90 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.88 ns 4.88 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.88 ns 4.88 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.101 ns 0.161 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.08 % 3.30 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 78.0 ns 77.6 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 78.1 ns 77.6 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.07 ns 2.25 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.66 % 2.90 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.734 ns 0.732 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.736 ns 0.732 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.005 ns 0.008 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.70 % 1.10 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.377 ns 0.368 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.373 ns 0.366 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.004 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.90 % 1.18 % 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.12 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.012 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.82 % 1.09 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 72.6 ns 72.4 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 73.0 ns 72.4 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.07 ns 2.25 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.85 % 3.11 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 5.42 ns 5.43 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 5.44 ns 5.39 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.101 ns 0.150 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.87 % 2.76 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 95.3 ns 94.7 ns 4 -sz::string::find;_median 94.3 ns 95.2 ns 4 -sz::string::find;_stddev 3.64 ns 2.00 ns 4 -sz::string::find;_cv 3.82 % 2.12 % 4 -std::string::find;_mean 39.1 ns 39.1 ns 4 -std::string::find;_median 39.1 ns 38.9 ns 4 -std::string::find;_stddev 0.649 ns 0.801 ns 4 -std::string::find;_cv 1.66 % 2.05 % 4 -std::string_view::find;_mean 37.9 ns 38.1 ns 4 -std::string_view::find;_median 37.9 ns 38.1 ns 4 -std::string_view::find;_stddev 0.497 ns 0.463 ns 4 -std::string_view::find;_cv 1.31 % 1.22 % 4 -ssa::find;_mean 18.1 ns 18.1 ns 4 -ssa::find;_median 18.1 ns 18.0 ns 4 -ssa::find;_stddev 0.235 ns 0.209 ns 4 -ssa::find;_cv 1.29 % 1.16 % 4 -stringa::find;_mean 19.2 ns 19.3 ns 4 -stringa::find;_median 19.3 ns 19.3 ns 4 -stringa::find;_stddev 0.507 ns 0.585 ns 4 -stringa::find;_cv 2.64 % 3.04 % 4 -lstringa<20>::find;_mean 17.2 ns 17.2 ns 4 -lstringa<20>::find;_median 17.2 ns 17.1 ns 4 -lstringa<20>::find;_stddev 0.236 ns 0.367 ns 4 -lstringa<20>::find;_cv 1.37 % 2.14 % 4 -lstringa<40>::find;_mean 17.6 ns 17.7 ns 4 -lstringa<40>::find;_median 17.6 ns 17.6 ns 4 -lstringa<40>::find;_stddev 0.343 ns 0.334 ns 4 -lstringa<40>::find;_cv 1.94 % 1.89 % 4 +sz::string::find;_mean 94.8 ns 94.2 ns 4 +sz::string::find;_median 94.3 ns 94.2 ns 4 +sz::string::find;_stddev 1.19 ns 0.000 ns 4 +sz::string::find;_cv 1.26 % 0.00 % 4 +std::string::find;_mean 40.2 ns 40.1 ns 4 +std::string::find;_median 40.0 ns 40.4 ns 4 +std::string::find;_stddev 0.608 ns 0.868 ns 4 +std::string::find;_cv 1.51 % 2.16 % 4 +std::string_view::find;_mean 39.3 ns 39.2 ns 4 +std::string_view::find;_median 39.2 ns 39.0 ns 4 +std::string_view::find;_stddev 0.443 ns 0.453 ns 4 +std::string_view::find;_cv 1.13 % 1.16 % 4 +ssa::find;_mean 18.7 ns 18.7 ns 4 +ssa::find;_median 18.5 ns 18.6 ns 4 +ssa::find;_stddev 0.479 ns 0.401 ns 4 +ssa::find;_cv 2.57 % 2.14 % 4 +stringa::find;_mean 19.6 ns 19.5 ns 4 +stringa::find;_median 19.8 ns 19.5 ns 4 +stringa::find;_stddev 0.421 ns 0.524 ns 4 +stringa::find;_cv 2.15 % 2.69 % 4 +lstringa<20>::find;_mean 18.0 ns 17.9 ns 4 +lstringa<20>::find;_median 18.1 ns 18.0 ns 4 +lstringa<20>::find;_stddev 0.262 ns 0.209 ns 4 +lstringa<20>::find;_cv 1.45 % 1.17 % 4 +lstringa<40>::find;_mean 18.5 ns 18.5 ns 4 +lstringa<40>::find;_median 18.4 ns 18.6 ns 4 +lstringa<40>::find;_stddev 0.343 ns 0.227 ns 4 +lstringa<40>::find;_cv 1.85 % 1.23 % 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.90 ns 1.90 ns 4 -std::string copy{str_with_len_N};/15_median 1.87 ns 1.88 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.079 ns 0.073 ns 4 -std::string copy{str_with_len_N};/15_cv 4.15 % 3.87 % 4 -std::string copy{str_with_len_N};/16_mean 79.1 ns 79.3 ns 4 -std::string copy{str_with_len_N};/16_median 79.3 ns 79.3 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.74 ns 2.25 ns 4 -std::string copy{str_with_len_N};/16_cv 2.20 % 2.84 % 4 -std::string copy{str_with_len_N};/23_mean 77.6 ns 77.4 ns 4 -std::string copy{str_with_len_N};/23_median 77.3 ns 77.4 ns 4 -std::string copy{str_with_len_N};/23_stddev 1.68 ns 1.71 ns 4 -std::string copy{str_with_len_N};/23_cv 2.17 % 2.21 % 4 -std::string copy{str_with_len_N};/24_mean 78.3 ns 78.0 ns 4 -std::string copy{str_with_len_N};/24_median 78.4 ns 78.5 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.887 ns 0.872 ns 4 -std::string copy{str_with_len_N};/24_cv 1.13 % 1.12 % 4 -std::string copy{str_with_len_N};/32_mean 81.9 ns 82.0 ns 4 -std::string copy{str_with_len_N};/32_median 81.0 ns 81.1 ns 4 -std::string copy{str_with_len_N};/32_stddev 2.19 ns 2.47 ns 4 -std::string copy{str_with_len_N};/32_cv 2.68 % 3.01 % 4 -std::string copy{str_with_len_N};/64_mean 80.8 ns 80.6 ns 4 -std::string copy{str_with_len_N};/64_median 80.6 ns 79.5 ns 4 -std::string copy{str_with_len_N};/64_stddev 1.51 ns 2.09 ns 4 -std::string copy{str_with_len_N};/64_cv 1.86 % 2.60 % 4 -std::string copy{str_with_len_N};/128_mean 84.0 ns 83.3 ns 4 -std::string copy{str_with_len_N};/128_median 83.6 ns 83.7 ns 4 -std::string copy{str_with_len_N};/128_stddev 1.03 ns 0.872 ns 4 -std::string copy{str_with_len_N};/128_cv 1.22 % 1.05 % 4 -std::string copy{str_with_len_N};/256_mean 86.9 ns 87.2 ns 4 -std::string copy{str_with_len_N};/256_median 86.5 ns 87.2 ns 4 -std::string copy{str_with_len_N};/256_stddev 1.42 ns 1.42 ns 4 -std::string copy{str_with_len_N};/256_cv 1.64 % 1.63 % 4 -std::string copy{str_with_len_N};/512_mean 89.8 ns 88.9 ns 4 -std::string copy{str_with_len_N};/512_median 89.3 ns 87.9 ns 4 -std::string copy{str_with_len_N};/512_stddev 1.85 ns 2.09 ns 4 -std::string copy{str_with_len_N};/512_cv 2.06 % 2.35 % 4 -std::string copy{str_with_len_N};/1024_mean 97.2 ns 97.0 ns 4 -std::string copy{str_with_len_N};/1024_median 97.3 ns 97.7 ns 4 -std::string copy{str_with_len_N};/1024_stddev 2.69 ns 3.07 ns 4 -std::string copy{str_with_len_N};/1024_cv 2.77 % 3.17 % 4 -std::string copy{str_with_len_N};/2048_mean 126 ns 127 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 4.33 ns 5.34 ns 4 -std::string copy{str_with_len_N};/2048_cv 3.42 % 4.21 % 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 4.70 ns 3.42 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.61 % 1.90 % 4 -stringa copy{str_with_len_N};/15_mean 1.07 ns 1.07 ns 4 -stringa copy{str_with_len_N};/15_median 1.07 ns 1.07 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.007 ns 0.012 ns 4 -stringa copy{str_with_len_N};/15_cv 0.70 % 1.14 % 4 -stringa copy{str_with_len_N};/16_mean 1.08 ns 1.08 ns 4 +std::string copy{str_with_len_N};/15_mean 1.83 ns 1.82 ns 4 +std::string copy{str_with_len_N};/15_median 1.83 ns 1.84 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.018 ns 0.043 ns 4 +std::string copy{str_with_len_N};/15_cv 0.98 % 2.38 % 4 +std::string copy{str_with_len_N};/16_mean 78.7 ns 78.9 ns 4 +std::string copy{str_with_len_N};/16_median 78.9 ns 79.3 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.33 ns 1.67 ns 4 +std::string copy{str_with_len_N};/16_cv 1.69 % 2.12 % 4 +std::string copy{str_with_len_N};/23_mean 79.1 ns 78.5 ns 4 +std::string copy{str_with_len_N};/23_median 79.0 ns 78.5 ns 4 +std::string copy{str_with_len_N};/23_stddev 0.895 ns 1.42 ns 4 +std::string copy{str_with_len_N};/23_cv 1.13 % 1.81 % 4 +std::string copy{str_with_len_N};/24_mean 80.3 ns 79.8 ns 4 +std::string copy{str_with_len_N};/24_median 80.4 ns 79.3 ns 4 +std::string copy{str_with_len_N};/24_stddev 1.94 ns 1.67 ns 4 +std::string copy{str_with_len_N};/24_cv 2.41 % 2.09 % 4 +std::string copy{str_with_len_N};/32_mean 79.6 ns 79.3 ns 4 +std::string copy{str_with_len_N};/32_median 78.3 ns 78.5 ns 4 +std::string copy{str_with_len_N};/32_stddev 3.75 ns 3.02 ns 4 +std::string copy{str_with_len_N};/32_cv 4.71 % 3.81 % 4 +std::string copy{str_with_len_N};/64_mean 80.7 ns 81.1 ns 4 +std::string copy{str_with_len_N};/64_median 80.9 ns 81.1 ns 4 +std::string copy{str_with_len_N};/64_stddev 3.49 ns 3.02 ns 4 +std::string copy{str_with_len_N};/64_cv 4.32 % 3.72 % 4 +std::string copy{str_with_len_N};/128_mean 84.2 ns 84.1 ns 4 +std::string copy{str_with_len_N};/128_median 84.6 ns 84.6 ns 4 +std::string copy{str_with_len_N};/128_stddev 2.47 ns 1.67 ns 4 +std::string copy{str_with_len_N};/128_cv 2.93 % 1.98 % 4 +std::string copy{str_with_len_N};/256_mean 87.3 ns 86.8 ns 4 +std::string copy{str_with_len_N};/256_median 87.7 ns 86.8 ns 4 +std::string copy{str_with_len_N};/256_stddev 1.06 ns 1.21 ns 4 +std::string copy{str_with_len_N};/256_cv 1.21 % 1.39 % 4 +std::string copy{str_with_len_N};/512_mean 87.3 ns 87.6 ns 4 +std::string copy{str_with_len_N};/512_median 86.7 ns 87.2 ns 4 +std::string copy{str_with_len_N};/512_stddev 2.31 ns 2.19 ns 4 +std::string copy{str_with_len_N};/512_cv 2.65 % 2.50 % 4 +std::string copy{str_with_len_N};/1024_mean 97.6 ns 97.3 ns 4 +std::string copy{str_with_len_N};/1024_median 97.9 ns 97.3 ns 4 +std::string copy{str_with_len_N};/1024_stddev 3.35 ns 2.70 ns 4 +std::string copy{str_with_len_N};/1024_cv 3.43 % 2.78 % 4 +std::string copy{str_with_len_N};/2048_mean 132 ns 133 ns 4 +std::string copy{str_with_len_N};/2048_median 132 ns 133 ns 4 +std::string copy{str_with_len_N};/2048_stddev 1.34 ns 1.61 ns 4 +std::string copy{str_with_len_N};/2048_cv 1.01 % 1.22 % 4 +std::string copy{str_with_len_N};/4096_mean 180 ns 179 ns 4 +std::string copy{str_with_len_N};/4096_median 180 ns 180 ns 4 +std::string copy{str_with_len_N};/4096_stddev 1.41 ns 1.92 ns 4 +std::string copy{str_with_len_N};/4096_cv 0.78 % 1.07 % 4 +stringa copy{str_with_len_N};/15_mean 1.09 ns 1.09 ns 4 +stringa copy{str_with_len_N};/15_median 1.09 ns 1.09 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.024 ns 0.032 ns 4 +stringa copy{str_with_len_N};/15_cv 2.20 % 2.90 % 4 +stringa copy{str_with_len_N};/16_mean 1.08 ns 1.09 ns 4 stringa copy{str_with_len_N};/16_median 1.08 ns 1.09 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.013 ns 0.010 ns 4 -stringa copy{str_with_len_N};/16_cv 1.20 % 0.97 % 4 -stringa copy{str_with_len_N};/23_mean 1.08 ns 1.07 ns 4 -stringa copy{str_with_len_N};/23_median 1.08 ns 1.07 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.009 ns 0.000 ns 4 -stringa copy{str_with_len_N};/23_cv 0.87 % 0.00 % 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.084 ns 0.174 ns 4 -stringa copy{str_with_len_N};/24_cv 0.53 % 1.10 % 4 -stringa copy{str_with_len_N};/32_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/32_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.136 ns 0.201 ns 4 -stringa copy{str_with_len_N};/32_cv 0.85 % 1.27 % 4 -stringa copy{str_with_len_N};/64_mean 15.8 ns 15.8 ns 4 -stringa copy{str_with_len_N};/64_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.115 ns 0.174 ns 4 -stringa copy{str_with_len_N};/64_cv 0.73 % 1.10 % 4 -stringa copy{str_with_len_N};/128_mean 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/128_median 15.7 ns 15.7 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.083 ns 0.285 ns 4 -stringa copy{str_with_len_N};/128_cv 0.53 % 1.81 % 4 -stringa copy{str_with_len_N};/256_mean 15.8 ns 15.8 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.100 ns 0.192 ns 4 -stringa copy{str_with_len_N};/256_cv 0.63 % 1.21 % 4 -stringa copy{str_with_len_N};/512_mean 15.8 ns 15.8 ns 4 -stringa copy{str_with_len_N};/512_median 15.8 ns 15.9 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.129 ns 0.367 ns 4 -stringa copy{str_with_len_N};/512_cv 0.81 % 2.32 % 4 -stringa copy{str_with_len_N};/1024_mean 15.8 ns 15.7 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.096 ns 0.285 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.61 % 1.81 % 4 -stringa copy{str_with_len_N};/2048_mean 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/2048_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.058 ns 0.000 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.37 % 0.00 % 4 -stringa copy{str_with_len_N};/4096_mean 15.8 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.027 ns 0.174 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.17 % 1.10 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.10 ns 1.09 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.10 ns 1.09 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.028 ns 0.051 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.55 % 4.68 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.79 ns 4.79 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.82 ns 4.81 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.118 ns 0.132 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 2.47 % 2.75 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 4.81 ns 4.81 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 4.82 ns 4.81 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.085 ns 0.140 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 1.76 % 2.90 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 77.2 ns 77.2 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 76.7 ns 76.7 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 3.18 ns 3.87 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 4.12 % 5.01 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 80.7 ns 80.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 80.1 ns 80.2 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 1.76 ns 0.872 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 2.18 % 1.08 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 77.3 ns 76.3 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 77.2 ns 76.7 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.776 ns 0.872 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 1.00 % 1.14 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 83.4 ns 83.7 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 82.7 ns 82.8 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 1.79 ns 2.47 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 2.15 % 2.95 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 86.6 ns 85.3 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 86.7 ns 84.8 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 1.51 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 1.74 % 2.35 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 88.1 ns 87.9 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 88.9 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 2.31 ns 2.96 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 2.63 % 3.37 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 94.7 ns 94.7 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 94.3 ns 94.2 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.92 ns 4.64 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 3.09 % 4.90 % 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 124 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 3.98 ns 3.95 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 3.16 % 3.14 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 191 ns 190 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 190 ns 188 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 3.82 ns 4.19 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 2.00 % 2.20 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 1.10 ns 1.10 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 1.11 ns 1.10 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.018 ns 0.028 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.60 % 2.57 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 5.36 ns 5.34 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 5.26 ns 5.30 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.324 ns 0.309 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 6.05 % 5.80 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 5.23 ns 5.23 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 5.21 ns 5.23 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.130 ns 0.081 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 2.49 % 1.54 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 5.19 ns 5.20 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 5.20 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.224 ns 0.309 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 4.30 % 5.95 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 8.30 ns 8.33 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 8.25 ns 8.28 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.221 ns 0.167 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 2.67 % 2.01 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 8.01 ns 7.98 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 8.02 ns 7.93 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.090 ns 0.167 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.12 % 2.09 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 8.45 ns 8.46 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 8.46 ns 8.46 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.153 ns 0.225 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.82 % 2.66 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 9.56 ns 9.57 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 9.59 ns 9.63 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.221 ns 0.263 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.31 % 2.75 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 11.0 ns 10.9 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 11.0 ns 10.9 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.125 ns 0.234 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.14 % 2.14 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 98.2 ns 98.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 96.9 ns 97.3 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 3.12 ns 2.96 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 3.18 % 3.01 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 132 ns 132 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 132 ns 131 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 0.762 ns 1.40 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 0.58 % 1.06 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 185 ns 184 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 185 ns 184 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 1.16 ns 0.000 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 0.63 % 0.00 % 4 +stringa copy{str_with_len_N};/16_stddev 0.016 ns 0.014 ns 4 +stringa copy{str_with_len_N};/16_cv 1.48 % 1.30 % 4 +stringa copy{str_with_len_N};/23_mean 1.09 ns 1.09 ns 4 +stringa copy{str_with_len_N};/23_median 1.09 ns 1.10 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.005 ns 0.012 ns 4 +stringa copy{str_with_len_N};/23_cv 0.49 % 1.12 % 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.102 ns 0.000 ns 4 +stringa copy{str_with_len_N};/24_cv 0.63 % 0.00 % 4 +stringa copy{str_with_len_N};/32_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/32_median 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.076 ns 0.000 ns 4 +stringa copy{str_with_len_N};/32_cv 0.47 % 0.00 % 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.0 ns 16.0 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.056 ns 0.000 ns 4 +stringa copy{str_with_len_N};/64_cv 0.35 % 0.00 % 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.079 ns 0.000 ns 4 +stringa copy{str_with_len_N};/128_cv 0.49 % 0.00 % 4 +stringa copy{str_with_len_N};/256_mean 16.1 ns 16.0 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.125 ns 0.174 ns 4 +stringa copy{str_with_len_N};/256_cv 0.78 % 1.09 % 4 +stringa copy{str_with_len_N};/512_mean 16.0 ns 16.0 ns 4 +stringa copy{str_with_len_N};/512_median 16.0 ns 16.0 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.073 ns 0.174 ns 4 +stringa copy{str_with_len_N};/512_cv 0.46 % 1.09 % 4 +stringa copy{str_with_len_N};/1024_mean 16.1 ns 16.0 ns 4 +stringa copy{str_with_len_N};/1024_median 16.1 ns 15.9 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.121 ns 0.367 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.75 % 2.29 % 4 +stringa copy{str_with_len_N};/2048_mean 16.0 ns 16.0 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.042 ns 0.174 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.27 % 1.09 % 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.1 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.112 ns 0.192 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.70 % 1.20 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 1.12 ns 1.10 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 1.11 ns 1.10 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.011 ns 0.031 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.01 % 2.78 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 4.56 ns 4.54 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 4.54 ns 4.49 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.102 ns 0.098 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 2.25 % 2.15 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 4.49 ns 4.50 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 4.48 ns 4.50 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.027 ns 0.058 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 0.61 % 1.30 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 76.6 ns 76.3 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 76.7 ns 75.9 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 2.12 ns 1.67 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 2.77 % 2.19 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 77.3 ns 77.2 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 77.0 ns 76.7 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 3.05 ns 2.62 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 3.95 % 3.39 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 79.3 ns 79.2 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 79.5 ns 79.5 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 4.31 ns 3.67 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 5.44 % 4.63 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 82.6 ns 82.8 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 82.3 ns 82.0 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 1.87 ns 1.74 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 2.26 % 2.11 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 83.7 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 83.7 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 1.07 ns 0.000 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 1.28 % 0.00 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 88.5 ns 88.4 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 87.5 ns 86.8 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 3.22 ns 3.96 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 3.63 % 4.48 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 93.9 ns 94.2 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 94.1 ns 94.2 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 3.71 ns 3.82 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 3.95 % 4.06 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 125 ns 126 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 126 ns 126 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 4.07 ns 3.22 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 3.25 % 2.57 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 190 ns 189 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 188 ns 188 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 5.83 ns 4.34 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 3.08 % 2.29 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 1.14 ns 1.14 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 1.12 ns 1.13 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.043 ns 0.039 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 3.72 % 3.45 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 6.12 ns 6.09 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 6.32 ns 6.25 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.549 ns 0.556 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 8.97 % 9.13 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 5.29 ns 5.27 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 5.29 ns 5.30 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.012 ns 0.070 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 0.22 % 1.32 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 5.27 ns 5.27 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 5.23 ns 5.23 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.121 ns 0.150 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 2.30 % 2.84 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 8.14 ns 8.15 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 8.13 ns 8.20 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.077 ns 0.087 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 0.94 % 1.07 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 8.48 ns 8.41 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 8.44 ns 8.37 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.164 ns 0.219 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 1.93 % 2.61 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 8.58 ns 8.59 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 8.58 ns 8.63 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.127 ns 0.167 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 1.48 % 1.94 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 9.69 ns 9.68 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 9.67 ns 9.63 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.143 ns 0.105 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 1.48 % 1.08 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 11.4 ns 11.3 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 11.3 ns 11.2 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.178 ns 0.307 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.57 % 2.72 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 98.3 ns 97.0 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 99.6 ns 98.9 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 3.01 ns 4.62 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 3.06 % 4.76 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 130 ns 130 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 130 ns 130 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 3.75 ns 3.60 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.88 % 2.78 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 188 ns 188 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 3.59 ns 4.83 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 1.91 % 2.58 % 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 30.7 ns 30.7 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 30.7 ns 30.7 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.414 ns 0.570 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.35 % 1.86 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.5 ns 12.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.5 ns 12.5 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.031 ns 0.122 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.25 % 0.98 % 4 -stringa s = "123456789"; int res = s.to_int_mean 13.8 ns 13.7 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.4 ns 31.3 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.520 ns 0.634 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.65 % 2.03 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.6 ns 12.6 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.6 ns 12.6 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.135 ns 0.228 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.07 % 1.81 % 4 +stringa s = "123456789"; int res = s.to_int_mean 13.7 ns 13.6 ns 4 stringa s = "123456789"; int res = s.to_int_median 13.7 ns 13.7 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.382 ns 0.301 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 2.77 % 2.19 % 4 -ssa s = "123456789"; int res = s.to_int_mean 9.19 ns 9.21 ns 4 -ssa s = "123456789"; int res = s.to_int_median 9.17 ns 9.21 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.101 ns 0.171 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.09 % 1.86 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 13.6 ns 13.6 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 13.6 ns 13.7 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.319 ns 0.301 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.35 % 2.21 % 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.166 ns 0.301 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 1.21 % 2.21 % 4 +ssa s = "123456789"; int res = s.to_int_mean 9.40 ns 9.42 ns 4 +ssa s = "123456789"; int res = s.to_int_median 9.34 ns 9.31 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.179 ns 0.296 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 1.91 % 3.14 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 13.4 ns 13.3 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 13.4 ns 13.3 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.251 ns 0.405 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.88 % 3.04 % 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.0 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 33.6 ns 33.2 ns 4 std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 33.5 ns 33.0 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.269 ns 0.626 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 0.81 % 1.90 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.02 ns 8.00 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.03 ns 8.06 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.148 ns 0.200 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.84 % 2.50 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 12.7 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.348 ns 0.419 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 2.73 % 3.28 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 7.26 ns 7.17 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 7.28 ns 7.11 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.085 ns 0.105 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 1.18 % 1.46 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 12.5 ns 12.5 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 12.5 ns 12.4 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.147 ns 0.267 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.17 % 2.14 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.374 ns 0.965 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.11 % 2.91 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.50 ns 8.46 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.49 ns 8.46 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.106 ns 0.101 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.24 % 1.19 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 13.7 ns 13.5 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 13.7 ns 13.5 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.213 ns 0.000 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.56 % 0.00 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 7.50 ns 7.46 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 7.53 ns 7.41 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.081 ns 0.167 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.08 % 2.24 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 12.6 ns 12.6 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 12.4 ns 12.6 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.460 ns 0.351 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 3.64 % 2.78 % 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.9 ns 44.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 43.9 ns 44.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.483 ns 0.524 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.10 % 1.19 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 18.1 ns 18.0 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 18.0 ns 18.0 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.429 ns 0.313 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 2.37 % 1.74 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.5 ns 13.4 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.4 ns 13.3 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.241 ns 0.301 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.79 % 2.24 % 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.8 ns 43.5 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.865 ns 0.826 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.98 % 1.90 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 17.3 ns 17.1 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 17.1 ns 17.1 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.318 ns 0.222 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.84 % 1.30 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 12.9 ns 12.9 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 12.9 ns 13.0 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.107 ns 0.267 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 0.82 % 2.07 % 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 97.1 ns 97.3 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 96.8 ns 97.3 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 2.95 ns 2.70 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 3.04 % 2.78 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 61.6 ns 61.7 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 61.7 ns 62.1 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.45 ns 2.88 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.99 % 4.66 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.6 ns 36.3 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 36.5 ns 36.1 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.533 ns 0.401 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.46 % 1.10 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 100 ns 99.9 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 100 ns 100 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.37 ns 1.05 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.37 % 1.05 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 58.7 ns 58.6 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 58.7 ns 58.6 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.055 ns 0.000 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.09 % 0.00 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.7 ns 36.6 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 36.7 ns 36.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.255 ns 0.419 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 0.69 % 1.14 % 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 4646 ns 4630 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 4649 ns 4604 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 66.3 ns 52.3 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.43 % 1.13 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1060 ns 1062 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1074 ns 1062 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 32.9 ns 31.5 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 3.10 % 2.97 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 777 ns 780 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 776 ns 785 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 13.7 ns 8.72 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.76 % 1.12 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 399 ns 397 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 397 ns 394 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 16.2 ns 15.5 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 4.05 % 3.90 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 269 ns 268 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 270 ns 270 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 3.19 ns 5.68 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.19 % 2.12 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 157 ns 156 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 157 ns 157 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.18 ns 1.74 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.75 % 1.12 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5118 ns 5082 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 5015 ns 5028 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 256 ns 234 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 5.00 % 4.60 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 1073 ns 1074 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 1074 ns 1074 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 30.6 ns 28.2 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.85 % 2.62 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 767 ns 754 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 768 ns 759 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 10.1 ns 16.7 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.32 % 2.21 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 390 ns 390 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 386 ns 384 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 10.5 ns 13.1 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.70 % 3.35 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 239 ns 238 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 240 ns 238 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 1.20 ns 3.02 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.50 % 1.27 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 158 ns 159 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 158 ns 159 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.918 ns 2.01 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.58 % 1.27 % 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 4596 ns 4602 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4570 ns 4602 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 126 ns 131 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.74 % 2.84 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3781 ns 3767 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3771 ns 3767 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 80.8 ns 96.7 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.14 % 2.57 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 726 ns 729 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 723 ns 725 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 20.1 ns 20.9 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.77 % 2.87 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 465 ns 466 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 462 ns 460 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.56 ns 10.5 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.05 % 2.25 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 289 ns 288 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 288 ns 285 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.80 ns 6.63 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.66 % 2.30 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 217 ns 217 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 217 ns 217 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.56 ns 6.30 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.10 % 2.90 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 4657 ns 4627 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4626 ns 4602 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 87.2 ns 96.8 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 1.87 % 2.09 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3774 ns 3767 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3760 ns 3767 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 66.6 ns 68.3 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.76 % 1.81 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 716 ns 718 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 721 ns 718 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.4 ns 18.0 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.57 % 2.51 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 442 ns 443 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 442 ns 443 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.25 ns 7.69 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.96 % 1.74 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 303 ns 300 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 304 ns 302 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.86 ns 6.34 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.61 % 2.12 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 188 ns 186 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 189 ns 186 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.25 ns 5.40 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.26 % 2.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 215409 ns 214471 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 214994 ns 214471 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4258 ns 0.000 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.98 % 0.00 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 193253 ns 193586 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 193909 ns 194632 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3037 ns 4007 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.57 % 2.07 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 18926 ns 18834 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 18884 ns 18834 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 367 ns 483 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.94 % 2.57 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17170 ns 17177 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17071 ns 17090 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 338 ns 174 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.97 % 1.02 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 15955 ns 15956 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 15953 ns 16044 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 244 ns 439 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.53 % 2.75 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17528 ns 17526 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17629 ns 17613 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 297 ns 334 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.69 % 1.91 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 221584 ns 220947 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 221856 ns 222168 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 3088 ns 4675 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.39 % 2.12 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 183793 ns 181029 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 182410 ns 182075 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4717 ns 4007 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.57 % 2.21 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19687 ns 19671 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19753 ns 19671 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 462 ns 483 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.35 % 2.46 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16880 ns 16915 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16897 ns 17090 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 194 ns 349 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.15 % 2.06 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 17061 ns 17073 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 17073 ns 17073 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 272 ns 222 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.60 % 1.30 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16444 ns 16401 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16332 ns 16305 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 295 ns 367 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.80 % 2.24 % 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 4397 ns 4402 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 4387 ns 4426 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 63.4 ns 47.1 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 1.44 % 1.07 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 3970 ns 3955 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 3998 ns 3955 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 77.0 ns 76.9 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 1.94 % 1.94 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 812 ns 811 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 810 ns 811 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 9.21 ns 10.1 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.13 % 1.24 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 514 ns 512 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 515 ns 508 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 8.08 ns 15.0 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.57 % 2.92 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 383 ns 383 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 381 ns 381 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 7.08 ns 14.3 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.85 % 3.73 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 286 ns 286 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 286 ns 286 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 2.06 ns 3.62 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 0.72 % 1.27 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 4403 ns 4402 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 4390 ns 4426 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 43.3 ns 47.1 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 0.98 % 1.07 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 3893 ns 3870 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 3890 ns 3891 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 44.1 ns 76.8 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.13 % 1.98 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 794 ns 789 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 793 ns 793 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 19.0 ns 16.7 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.40 % 2.12 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 527 ns 527 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 528 ns 523 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 7.44 ns 15.0 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.41 % 2.84 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 381 ns 379 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 378 ns 377 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.74 ns 12.6 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.30 % 3.31 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 297 ns 292 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 299 ns 292 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 7.42 ns 0.000 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.50 % 0.00 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 10543 ns 10463 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 10536 ns 10463 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 55.5 ns 360 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 0.53 % 3.44 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1088 ns 1086 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1088 ns 1086 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 19.9 ns 31.5 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 1.83 % 2.90 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2743 ns 2731 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2727 ns 2731 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 42.0 ns 36.2 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.53 % 1.33 % 4 -std::string str = std::format("test = {} times", k);_mean 1919 ns 1915 ns 4 -std::string str = std::format("test = {} times", k);_median 1915 ns 1925 ns 4 -std::string str = std::format("test = {} times", k);_stddev 13.0 ns 20.9 ns 4 -std::string str = std::format("test = {} times", k);_cv 0.68 % 1.09 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1972 ns 1961 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1964 ns 1950 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 50.1 ns 57.1 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.54 % 2.91 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 993 ns 995 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 994 ns 1001 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 12.2 ns 12.2 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.23 % 1.23 % 4 -lstringa<8> str = "test = " + k + " times";_mean 810 ns 813 ns 4 -lstringa<8> str = "test = " + k + " times";_median 814 ns 816 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 21.7 ns 13.4 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 2.67 % 1.64 % 4 -lstringa<32> str = "test = " + k + " times";_mean 129 ns 129 ns 4 -lstringa<32> str = "test = " + k + " times";_median 128 ns 128 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.44 ns 1.40 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.89 % 1.08 % 4 -stringa str = "test = " + k + " times";_mean 118 ns 118 ns 4 -stringa str = "test = " + k + " times";_median 118 ns 117 ns 4 -stringa str = "test = " + k + " times";_stddev 3.30 ns 3.51 ns 4 -stringa str = "test = " + k + " times";_cv 2.80 % 2.98 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 10833 ns 10742 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 10807 ns 10742 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 90.0 ns 199 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 0.83 % 1.86 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1053 ns 1052 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1055 ns 1057 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 7.82 ns 20.0 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 0.74 % 1.91 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2810 ns 2794 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2794 ns 2794 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 67.1 ns 36.2 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.39 % 1.30 % 4 +std::string str = std::format("test = {} times", k);_mean 1904 ns 1893 ns 4 +std::string str = std::format("test = {} times", k);_median 1911 ns 1882 ns 4 +std::string str = std::format("test = {} times", k);_stddev 32.1 ns 43.4 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.68 % 2.29 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 2003 ns 1995 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 1998 ns 1995 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 50.7 ns 52.4 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 2.53 % 2.62 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 962 ns 952 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 962 ns 952 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 12.7 ns 19.9 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 1.32 % 2.09 % 4 +lstringa<8> str = "test = " + k + " times";_mean 807 ns 809 ns 4 +lstringa<8> str = "test = " + k + " times";_median 806 ns 809 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 8.18 ns 11.4 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.01 % 1.41 % 4 +lstringa<32> str = "test = " + k + " times";_mean 134 ns 133 ns 4 +lstringa<32> str = "test = " + k + " times";_median 134 ns 133 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 1.83 ns 2.67 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 1.37 % 2.01 % 4 +stringa str = "test = " + k + " times";_mean 126 ns 124 ns 4 +stringa str = "test = " + k + " times";_median 126 ns 124 ns 4 +stringa str = "test = " + k + " times";_stddev 0.706 ns 1.61 ns 4 +stringa str = "test = " + k + " times";_cv 0.56 % 1.30 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 547 ns 547 ns 4 -std::string::find + substr + std::strtol_median 547 ns 547 ns 4 -std::string::find + substr + std::strtol_stddev 13.8 ns 18.0 ns 4 -std::string::find + substr + std::strtol_cv 2.52 % 3.30 % 4 -ssa::splitter + ssa::as_int_mean 167 ns 167 ns 4 -ssa::splitter + ssa::as_int_median 167 ns 167 ns 4 -ssa::splitter + ssa::as_int_stddev 2.01 ns 2.22 ns 4 -ssa::splitter + ssa::as_int_cv 1.21 % 1.33 % 4 -ssa::splitf + functor_mean 194 ns 193 ns 4 -ssa::splitf + functor_median 192 ns 190 ns 4 -ssa::splitf + functor_stddev 7.02 ns 8.68 ns 4 -ssa::splitf + functor_cv 3.62 % 4.51 % 4 +std::string::find + substr + std::strtol_mean 558 ns 559 ns 4 +std::string::find + substr + std::strtol_median 559 ns 562 ns 4 +std::string::find + substr + std::strtol_stddev 10.3 ns 7.81 ns 4 +std::string::find + substr + std::strtol_cv 1.85 % 1.40 % 4 +ssa::splitter + ssa::as_int_mean 176 ns 176 ns 4 +ssa::splitter + ssa::as_int_median 176 ns 176 ns 4 +ssa::splitter + ssa::as_int_stddev 4.18 ns 5.75 ns 4 +ssa::splitter + ssa::as_int_cv 2.37 % 3.28 % 4 +ssa::splitf + functor_mean 192 ns 192 ns 4 +ssa::splitf + functor_median 190 ns 190 ns 4 +ssa::splitf + functor_stddev 4.66 ns 5.71 ns 4 +ssa::splitf + functor_cv 2.43 % 2.98 % 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 1076 ns 1078 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1075 ns 1078 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 10.6 ns 12.1 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 0.99 % 1.12 % 4 -replace symbols with std::string find_first_of + replace_mean 1899 ns 1904 ns 4 -replace symbols with std::string find_first_of + replace_median 1906 ns 1904 ns 4 -replace symbols with std::string find_first_of + replace_stddev 21.8 ns 52.4 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.15 % 2.75 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2272 ns 2263 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2282 ns 2276 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 59.0 ns 50.1 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 2.60 % 2.21 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1591 ns 1593 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1581 ns 1585 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 22.4 ns 30.1 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 1.41 % 1.89 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1349 ns 1334 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1349 ns 1334 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 12.6 ns 18.1 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 0.93 % 1.36 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1129 ns 1130 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1128 ns 1130 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 14.7 ns 17.1 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.30 % 1.51 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1182 ns 1179 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1177 ns 1172 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 34.1 ns 35.1 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 2.88 % 2.98 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 1124 ns 1117 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 1116 ns 1099 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 24.4 ns 36.6 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 2.17 % 3.28 % 4 +replace symbols with std::string find_first_of + replace_mean 1940 ns 1938 ns 4 +replace symbols with std::string find_first_of + replace_median 1929 ns 1927 ns 4 +replace symbols with std::string find_first_of + replace_stddev 28.9 ns 43.4 ns 4 +replace symbols with std::string find_first_of + replace_cv 1.49 % 2.24 % 4 +replace symbols with std::string_view find_first_of + copy_mean 2359 ns 2356 ns 4 +replace symbols with std::string_view find_first_of + copy_median 2360 ns 2344 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 29.6 ns 24.4 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 1.25 % 1.04 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1654 ns 1650 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1660 ns 1669 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 40.9 ns 54.3 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 2.47 % 3.29 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1483 ns 1483 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1482 ns 1491 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 14.5 ns 30.1 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 0.98 % 2.03 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1122 ns 1117 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1119 ns 1123 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 16.8 ns 12.2 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 1.50 % 1.09 % 4 +replace const symbols with string expressions and memorization of all search results_mean 1170 ns 1165 ns 4 +replace const symbols with string expressions and memorization of all search results_median 1174 ns 1158 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 18.2 ns 26.7 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 1.56 % 2.29 % 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 299 ns 298 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 296 ns 293 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 9.56 ns 10.5 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.19 % 3.51 % 4 -Short replace symbols with std::string find_first_of + replace_mean 346 ns 345 ns 4 -Short replace symbols with std::string find_first_of + replace_median 345 ns 345 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 7.12 ns 6.26 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 2.06 % 1.81 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 296 ns 293 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 296 ns 292 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 8.87 ns 9.94 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 2.99 % 3.39 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 266 ns 265 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 267 ns 264 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.44 ns 3.14 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 1.30 % 1.18 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 357 ns 353 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 358 ns 353 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 4.99 ns 6.55 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 1.40 % 1.86 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 198 ns 195 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 198 ns 193 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 1.16 ns 4.19 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 0.58 % 2.15 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 297 ns 295 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 298 ns 295 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 4.57 ns 0.000 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.54 % 0.00 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 308 ns 305 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 305 ns 303 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.23 ns 11.9 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.02 % 3.90 % 4 +Short replace symbols with std::string find_first_of + replace_mean 364 ns 363 ns 4 +Short replace symbols with std::string find_first_of + replace_median 366 ns 364 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 9.78 ns 7.35 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 2.68 % 2.03 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 305 ns 305 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 306 ns 305 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 6.50 ns 7.65 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 2.13 % 2.51 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 269 ns 264 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 268 ns 264 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 4.83 ns 5.13 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 1.80 % 1.94 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 366 ns 365 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 367 ns 365 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 2.14 ns 4.63 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 0.58 % 1.27 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 202 ns 202 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 202 ns 202 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 2.65 ns 5.85 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 1.31 % 2.90 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 293 ns 292 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 293 ns 292 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 7.11 ns 5.41 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 2.43 % 1.86 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 221 ns 219 ns 4 -replace bb to ---- in std::string|64_median 218 ns 215 ns 4 -replace bb to ---- in std::string|64_stddev 11.9 ns 8.58 ns 4 -replace bb to ---- in std::string|64_cv 5.40 % 3.92 % 4 -replace bb to ---- in std::string|256_mean 737 ns 737 ns 4 -replace bb to ---- in std::string|256_median 742 ns 741 ns 4 -replace bb to ---- in std::string|256_stddev 20.8 ns 29.8 ns 4 -replace bb to ---- in std::string|256_cv 2.82 % 4.04 % 4 -replace bb to ---- in std::string|512_mean 1364 ns 1367 ns 4 -replace bb to ---- in std::string|512_median 1366 ns 1367 ns 4 -replace bb to ---- in std::string|512_stddev 15.8 ns 22.8 ns 4 -replace bb to ---- in std::string|512_cv 1.16 % 1.67 % 4 -replace bb to ---- in std::string|1024_mean 3034 ns 3017 ns 4 -replace bb to ---- in std::string|1024_median 3030 ns 2999 ns 4 -replace bb to ---- in std::string|1024_stddev 53.9 ns 34.9 ns 4 -replace bb to ---- in std::string|1024_cv 1.78 % 1.16 % 4 -replace bb to ---- in std::string|2048_mean 7577 ns 7542 ns 4 -replace bb to ---- in std::string|2048_median 7592 ns 7586 ns 4 -replace bb to ---- in std::string|2048_stddev 67.9 ns 167 ns 4 -replace bb to ---- in std::string|2048_cv 0.90 % 2.21 % 4 -replace bb to ---- in lstringa<8>|64_mean 214 ns 214 ns 4 +replace bb to ---- in std::string|64_mean 223 ns 221 ns 4 +replace bb to ---- in std::string|64_median 223 ns 222 ns 4 +replace bb to ---- in std::string|64_stddev 4.11 ns 4.67 ns 4 +replace bb to ---- in std::string|64_cv 1.84 % 2.12 % 4 +replace bb to ---- in std::string|256_mean 727 ns 729 ns 4 +replace bb to ---- in std::string|256_median 720 ns 718 ns 4 +replace bb to ---- in std::string|256_stddev 20.3 ns 26.4 ns 4 +replace bb to ---- in std::string|256_cv 2.79 % 3.62 % 4 +replace bb to ---- in std::string|512_mean 1418 ns 1413 ns 4 +replace bb to ---- in std::string|512_median 1416 ns 1413 ns 4 +replace bb to ---- in std::string|512_stddev 37.9 ns 45.0 ns 4 +replace bb to ---- in std::string|512_cv 2.67 % 3.19 % 4 +replace bb to ---- in std::string|1024_mean 3058 ns 3058 ns 4 +replace bb to ---- in std::string|1024_median 3054 ns 3076 ns 4 +replace bb to ---- in std::string|1024_stddev 45.8 ns 36.6 ns 4 +replace bb to ---- in std::string|1024_cv 1.50 % 1.20 % 4 +replace bb to ---- in std::string|2048_mean 8038 ns 7847 ns 4 +replace bb to ---- in std::string|2048_median 8026 ns 7847 ns 4 +replace bb to ---- in std::string|2048_stddev 49.4 ns 318 ns 4 +replace bb to ---- in std::string|2048_cv 0.61 % 4.06 % 4 +replace bb to ---- in lstringa<8>|64_mean 216 ns 216 ns 4 replace bb to ---- in lstringa<8>|64_median 215 ns 215 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 5.74 ns 4.34 ns 4 -replace bb to ---- in lstringa<8>|64_cv 2.68 % 2.03 % 4 -replace bb to ---- in lstringa<8>|256_mean 601 ns 596 ns 4 -replace bb to ---- in lstringa<8>|256_median 603 ns 600 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 14.9 ns 20.9 ns 4 -replace bb to ---- in lstringa<8>|256_cv 2.47 % 3.51 % 4 -replace bb to ---- in lstringa<8>|512_mean 1009 ns 1010 ns 4 -replace bb to ---- in lstringa<8>|512_median 1006 ns 1015 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 13.8 ns 20.0 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.36 % 1.98 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1851 ns 1852 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1850 ns 1862 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 45.2 ns 40.1 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 2.44 % 2.16 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3468 ns 3479 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3468 ns 3479 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 104 ns 94.6 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 2.99 % 2.72 % 4 -replace bb to ---- by init stringa|64_mean 161 ns 161 ns 4 -replace bb to ---- by init stringa|64_median 160 ns 159 ns 4 -replace bb to ---- by init stringa|64_stddev 6.17 ns 8.29 ns 4 -replace bb to ---- by init stringa|64_cv 3.83 % 5.14 % 4 -replace bb to ---- by init stringa|256_mean 362 ns 361 ns 4 -replace bb to ---- by init stringa|256_median 364 ns 361 ns 4 -replace bb to ---- by init stringa|256_stddev 5.11 ns 6.55 ns 4 -replace bb to ---- by init stringa|256_cv 1.41 % 1.81 % 4 -replace bb to ---- by init stringa|512_mean 773 ns 771 ns 4 -replace bb to ---- by init stringa|512_median 774 ns 767 ns 4 -replace bb to ---- by init stringa|512_stddev 9.38 ns 6.98 ns 4 -replace bb to ---- by init stringa|512_cv 1.21 % 0.90 % 4 -replace bb to ---- by init stringa|1024_mean 1575 ns 1578 ns 4 -replace bb to ---- by init stringa|1024_median 1573 ns 1569 ns 4 -replace bb to ---- by init stringa|1024_stddev 21.7 ns 17.4 ns 4 -replace bb to ---- by init stringa|1024_cv 1.38 % 1.10 % 4 -replace bb to ---- by init stringa|2048_mean 2876 ns 2888 ns 4 -replace bb to ---- by init stringa|2048_median 2853 ns 2856 ns 4 -replace bb to ---- by init stringa|2048_stddev 70.3 ns 88.8 ns 4 -replace bb to ---- by init stringa|2048_cv 2.44 % 3.07 % 4 +replace bb to ---- in lstringa<8>|64_stddev 2.62 ns 2.44 ns 4 +replace bb to ---- in lstringa<8>|64_cv 1.22 % 1.13 % 4 +replace bb to ---- in lstringa<8>|256_mean 606 ns 607 ns 4 +replace bb to ---- in lstringa<8>|256_median 602 ns 600 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 13.8 ns 14.0 ns 4 +replace bb to ---- in lstringa<8>|256_cv 2.27 % 2.30 % 4 +replace bb to ---- in lstringa<8>|512_mean 1002 ns 1004 ns 4 +replace bb to ---- in lstringa<8>|512_median 996 ns 994 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 22.0 ns 29.6 ns 4 +replace bb to ---- in lstringa<8>|512_cv 2.20 % 2.95 % 4 +replace bb to ---- in lstringa<8>|1024_mean 1848 ns 1842 ns 4 +replace bb to ---- in lstringa<8>|1024_median 1847 ns 1842 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 26.3 ns 31.3 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.42 % 1.70 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3556 ns 3530 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3581 ns 3568 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 76.1 ns 109 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 2.14 % 3.07 % 4 +replace bb to ---- by init stringa|64_mean 165 ns 165 ns 4 +replace bb to ---- by init stringa|64_median 165 ns 165 ns 4 +replace bb to ---- by init stringa|64_stddev 3.13 ns 3.13 ns 4 +replace bb to ---- by init stringa|64_cv 1.90 % 1.90 % 4 +replace bb to ---- by init stringa|256_mean 366 ns 367 ns 4 +replace bb to ---- by init stringa|256_median 363 ns 369 ns 4 +replace bb to ---- by init stringa|256_stddev 7.03 ns 4.01 ns 4 +replace bb to ---- by init stringa|256_cv 1.92 % 1.09 % 4 +replace bb to ---- by init stringa|512_mean 793 ns 793 ns 4 +replace bb to ---- by init stringa|512_median 799 ns 802 ns 4 +replace bb to ---- by init stringa|512_stddev 15.0 ns 17.4 ns 4 +replace bb to ---- by init stringa|512_cv 1.89 % 2.20 % 4 +replace bb to ---- by init stringa|1024_mean 1626 ns 1621 ns 4 +replace bb to ---- by init stringa|1024_median 1632 ns 1611 ns 4 +replace bb to ---- by init stringa|1024_stddev 14.6 ns 19.2 ns 4 +replace bb to ---- by init stringa|1024_cv 0.90 % 1.18 % 4 +replace bb to ---- by init stringa|2048_mean 3047 ns 3032 ns 4 +replace bb to ---- by init stringa|2048_median 3055 ns 3048 ns 4 +replace bb to ---- by init stringa|2048_stddev 22.3 ns 33.1 ns 4 +replace bb to ---- by init stringa|2048_cv 0.73 % 1.09 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 178 ns 177 ns 4 -replace bb to -- in std::string|64_median 178 ns 176 ns 4 -replace bb to -- in std::string|64_stddev 2.85 ns 4.83 ns 4 -replace bb to -- in std::string|64_cv 1.60 % 2.72 % 4 -replace bb to -- in std::string|256_mean 459 ns 458 ns 4 -replace bb to -- in std::string|256_median 457 ns 450 ns 4 -replace bb to -- in std::string|256_stddev 9.17 ns 15.7 ns 4 -replace bb to -- in std::string|256_cv 2.00 % 3.43 % 4 -replace bb to -- in std::string|512_mean 828 ns 827 ns 4 -replace bb to -- in std::string|512_median 832 ns 827 ns 4 -replace bb to -- in std::string|512_stddev 10.1 ns 12.1 ns 4 -replace bb to -- in std::string|512_cv 1.22 % 1.46 % 4 -replace bb to -- in std::string|1024_mean 1549 ns 1552 ns 4 -replace bb to -- in std::string|1024_median 1554 ns 1569 ns 4 -replace bb to -- in std::string|1024_stddev 17.3 ns 34.9 ns 4 -replace bb to -- in std::string|1024_cv 1.12 % 2.25 % 4 -replace bb to -- in std::string|2048_mean 3072 ns 3069 ns 4 -replace bb to -- in std::string|2048_median 3084 ns 3069 ns 4 -replace bb to -- in std::string|2048_stddev 48.2 ns 57.0 ns 4 -replace bb to -- in std::string|2048_cv 1.57 % 1.86 % 4 -replace bb to -- in lstringa<8>|64_mean 173 ns 173 ns 4 -replace bb to -- in lstringa<8>|64_median 174 ns 173 ns 4 -replace bb to -- in lstringa<8>|64_stddev 2.15 ns 3.13 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.24 % 1.81 % 4 -replace bb to -- in lstringa<8>|256_mean 426 ns 424 ns 4 -replace bb to -- in lstringa<8>|256_median 425 ns 419 ns 4 -replace bb to -- in lstringa<8>|256_stddev 9.60 ns 13.3 ns 4 -replace bb to -- in lstringa<8>|256_cv 2.25 % 3.14 % 4 -replace bb to -- in lstringa<8>|512_mean 727 ns 724 ns 4 -replace bb to -- in lstringa<8>|512_median 727 ns 724 ns 4 -replace bb to -- in lstringa<8>|512_stddev 7.87 ns 10.1 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.08 % 1.39 % 4 -replace bb to -- in lstringa<8>|1024_mean 1381 ns 1381 ns 4 -replace bb to -- in lstringa<8>|1024_median 1380 ns 1365 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 41.9 ns 44.4 ns 4 -replace bb to -- in lstringa<8>|1024_cv 3.03 % 3.21 % 4 -replace bb to -- in lstringa<8>|2048_mean 2653 ns 2653 ns 4 -replace bb to -- in lstringa<8>|2048_median 2660 ns 2668 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 43.5 ns 29.6 ns 4 -replace bb to -- in lstringa<8>|2048_cv 1.64 % 1.12 % 4 -replace bb to -- by init stringa|64_mean 150 ns 150 ns 4 -replace bb to -- by init stringa|64_median 148 ns 148 ns 4 -replace bb to -- by init stringa|64_stddev 5.97 ns 6.96 ns 4 -replace bb to -- by init stringa|64_cv 3.98 % 4.64 % 4 -replace bb to -- by init stringa|256_mean 329 ns 330 ns 4 -replace bb to -- by init stringa|256_median 330 ns 331 ns 4 -replace bb to -- by init stringa|256_stddev 7.14 ns 6.68 ns 4 -replace bb to -- by init stringa|256_cv 2.17 % 2.03 % 4 -replace bb to -- by init stringa|512_mean 519 ns 516 ns 4 -replace bb to -- by init stringa|512_median 519 ns 516 ns 4 -replace bb to -- by init stringa|512_stddev 6.45 ns 0.000 ns 4 -replace bb to -- by init stringa|512_cv 1.24 % 0.00 % 4 -replace bb to -- by init stringa|1024_mean 987 ns 984 ns 4 -replace bb to -- by init stringa|1024_median 987 ns 984 ns 4 -replace bb to -- by init stringa|1024_stddev 11.6 ns 17.1 ns 4 -replace bb to -- by init stringa|1024_cv 1.17 % 1.74 % 4 -replace bb to -- by init stringa|2048_mean 1744 ns 1737 ns 4 -replace bb to -- by init stringa|2048_median 1749 ns 1737 ns 4 -replace bb to -- by init stringa|2048_stddev 45.7 ns 54.0 ns 4 -replace bb to -- by init stringa|2048_cv 2.62 % 3.11 % 4 +replace bb to -- in std::string|64_mean 187 ns 186 ns 4 +replace bb to -- in std::string|64_median 188 ns 186 ns 4 +replace bb to -- in std::string|64_stddev 2.48 ns 4.95 ns 4 +replace bb to -- in std::string|64_cv 1.33 % 2.66 % 4 +replace bb to -- in std::string|256_mean 469 ns 470 ns 4 +replace bb to -- in std::string|256_median 471 ns 476 ns 4 +replace bb to -- in std::string|256_stddev 8.19 ns 10.8 ns 4 +replace bb to -- in std::string|256_cv 1.74 % 2.30 % 4 +replace bb to -- in std::string|512_mean 837 ns 837 ns 4 +replace bb to -- in std::string|512_median 835 ns 837 ns 4 +replace bb to -- in std::string|512_stddev 14.4 ns 24.2 ns 4 +replace bb to -- in std::string|512_cv 1.73 % 2.89 % 4 +replace bb to -- in std::string|1024_mean 1612 ns 1596 ns 4 +replace bb to -- in std::string|1024_median 1608 ns 1604 ns 4 +replace bb to -- in std::string|1024_stddev 24.9 ns 17.4 ns 4 +replace bb to -- in std::string|1024_cv 1.55 % 1.09 % 4 +replace bb to -- in std::string|2048_mean 3131 ns 3122 ns 4 +replace bb to -- in std::string|2048_median 3146 ns 3104 ns 4 +replace bb to -- in std::string|2048_stddev 47.3 ns 66.8 ns 4 +replace bb to -- in std::string|2048_cv 1.51 % 2.14 % 4 +replace bb to -- in lstringa<8>|64_mean 175 ns 176 ns 4 +replace bb to -- in lstringa<8>|64_median 176 ns 176 ns 4 +replace bb to -- in lstringa<8>|64_stddev 2.70 ns 4.83 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.54 % 2.75 % 4 +replace bb to -- in lstringa<8>|256_mean 427 ns 426 ns 4 +replace bb to -- in lstringa<8>|256_median 425 ns 424 ns 4 +replace bb to -- in lstringa<8>|256_stddev 8.29 ns 11.8 ns 4 +replace bb to -- in lstringa<8>|256_cv 1.94 % 2.78 % 4 +replace bb to -- in lstringa<8>|512_mean 723 ns 724 ns 4 +replace bb to -- in lstringa<8>|512_median 723 ns 724 ns 4 +replace bb to -- in lstringa<8>|512_stddev 1.22 ns 10.1 ns 4 +replace bb to -- in lstringa<8>|512_cv 0.17 % 1.39 % 4 +replace bb to -- in lstringa<8>|1024_mean 1373 ns 1365 ns 4 +replace bb to -- in lstringa<8>|1024_median 1373 ns 1365 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 36.7 ns 18.1 ns 4 +replace bb to -- in lstringa<8>|1024_cv 2.68 % 1.33 % 4 +replace bb to -- in lstringa<8>|2048_mean 2685 ns 2683 ns 4 +replace bb to -- in lstringa<8>|2048_median 2675 ns 2668 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 29.6 ns 29.6 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.10 % 1.10 % 4 +replace bb to -- by init stringa|64_mean 153 ns 152 ns 4 +replace bb to -- by init stringa|64_median 153 ns 152 ns 4 +replace bb to -- by init stringa|64_stddev 2.02 ns 2.01 ns 4 +replace bb to -- by init stringa|64_cv 1.32 % 1.33 % 4 +replace bb to -- by init stringa|256_mean 322 ns 322 ns 4 +replace bb to -- by init stringa|256_median 319 ns 319 ns 4 +replace bb to -- by init stringa|256_stddev 9.25 ns 10.4 ns 4 +replace bb to -- by init stringa|256_cv 2.87 % 3.21 % 4 +replace bb to -- by init stringa|512_mean 520 ns 516 ns 4 +replace bb to -- by init stringa|512_median 514 ns 509 ns 4 +replace bb to -- by init stringa|512_stddev 18.8 ns 19.7 ns 4 +replace bb to -- by init stringa|512_cv 3.61 % 3.82 % 4 +replace bb to -- by init stringa|1024_mean 954 ns 952 ns 4 +replace bb to -- by init stringa|1024_median 951 ns 952 ns 4 +replace bb to -- by init stringa|1024_stddev 20.0 ns 27.0 ns 4 +replace bb to -- by init stringa|1024_cv 2.10 % 2.84 % 4 +replace bb to -- by init stringa|2048_mean 1806 ns 1800 ns 4 +replace bb to -- by init stringa|2048_median 1801 ns 1800 ns 4 +replace bb to -- by init stringa|2048_stddev 32.2 ns 48.3 ns 4 +replace bb to -- by init stringa|2048_cv 1.78 % 2.69 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3865656 ns 3862605 ns 4 -hashStrMapA emplace & find stringa;_median 3844590 ns 3884427 ns 4 -hashStrMapA emplace & find stringa;_stddev 91432 ns 83574 ns 4 -hashStrMapA emplace & find stringa;_cv 2.37 % 2.16 % 4 -std::unordered_map emplace & find std::string;_mean 5706555 ns 5719866 ns 4 -std::unordered_map emplace & find std::string;_median 5754316 ns 5719866 ns 4 -std::unordered_map emplace & find std::string;_stddev 108059 ns 113909 ns 4 -std::unordered_map emplace & find std::string;_cv 1.89 % 1.99 % 4 -hashStrMapA emplace & find ssa;_mean 3462807 ns 3446691 ns 4 -hashStrMapA emplace & find ssa;_median 3457596 ns 3446691 ns 4 -hashStrMapA emplace & find ssa;_stddev 46532 ns 0.000 ns 4 -hashStrMapA emplace & find ssa;_cv 1.34 % 0.00 % 4 -std::unordered_map emplace & find std::string_view;_mean 6453507 ns 6417411 ns 4 -std::unordered_map emplace & find std::string_view;_median 6493058 ns 6417411 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 127809 ns 113909 ns 4 -std::unordered_map emplace & find std::string_view;_cv 1.98 % 1.77 % 4 +hashStrMapA emplace & find stringa;_mean 4069702 ns 4080831 ns 4 +hashStrMapA emplace & find stringa;_median 4065785 ns 4102654 ns 4 +hashStrMapA emplace & find stringa;_stddev 27677 ns 43645 ns 4 +hashStrMapA emplace & find stringa;_cv 0.68 % 1.07 % 4 +std::unordered_map emplace & find std::string;_mean 5913523 ns 5824498 ns 4 +std::unordered_map emplace & find std::string;_median 5907914 ns 5859375 ns 4 +std::unordered_map emplace & find std::string;_stddev 277139 ns 309341 ns 4 +std::unordered_map emplace & find std::string;_cv 4.69 % 5.31 % 4 +hashStrMapA emplace & find ssa;_mean 3619495 ns 3545673 ns 4 +hashStrMapA emplace & find ssa;_median 3562421 ns 3565705 ns 4 +hashStrMapA emplace & find ssa;_stddev 164099 ns 76717 ns 4 +hashStrMapA emplace & find ssa;_cv 4.53 % 2.16 % 4 +std::unordered_map emplace & find std::string_view;_mean 6497268 ns 6522042 ns 4 +std::unordered_map emplace & find std::string_view;_median 6500552 ns 6556920 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 44944 ns 69754 ns 4 +std::unordered_map emplace & find std::string_view;_cv 0.69 % 1.07 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1543 ns 1538 ns 4 -Build func full name std::string;_median 1534 ns 1522 ns 4 -Build func full name std::string;_stddev 29.0 ns 44.4 ns 4 -Build func full name std::string;_cv 1.88 % 2.89 % 4 -Build func full name std::string 1;_mean 1527 ns 1522 ns 4 -Build func full name std::string 1;_median 1509 ns 1522 ns 4 -Build func full name std::string 1;_stddev 47.8 ns 40.5 ns 4 -Build func full name std::string 1;_cv 3.13 % 2.66 % 4 -Build func full name std::stream;_mean 8122 ns 8022 ns 4 -Build func full name std::stream;_median 8140 ns 8109 ns 4 -Build func full name std::stream;_stddev 205 ns 247 ns 4 -Build func full name std::stream;_cv 2.53 % 3.07 % 4 -Build func full name stringa;_mean 765 ns 764 ns 4 -Build func full name stringa;_median 770 ns 774 ns 4 -Build func full name stringa;_stddev 23.5 ns 26.4 ns 4 -Build func full name stringa;_cv 3.07 % 3.46 % 4 -Build func full name stringa 1;_mean 852 ns 848 ns 4 -Build func full name stringa 1;_median 855 ns 858 ns 4 -Build func full name stringa 1;_stddev 17.0 ns 20.9 ns 4 -Build func full name stringa 1;_cv 2.00 % 2.47 % 4 +Build func full name std::string;_mean 1507 ns 1507 ns 4 +Build func full name std::string;_median 1518 ns 1507 ns 4 +Build func full name std::string;_stddev 28.8 ns 25.6 ns 4 +Build func full name std::string;_cv 1.91 % 1.70 % 4 +Build func full name std::string 1;_mean 1515 ns 1507 ns 4 +Build func full name std::string 1;_median 1512 ns 1507 ns 4 +Build func full name std::string 1;_stddev 14.5 ns 25.6 ns 4 +Build func full name std::string 1;_cv 0.96 % 1.70 % 4 +Build func full name std::stream;_mean 8296 ns 8327 ns 4 +Build func full name std::stream;_median 8331 ns 8371 ns 4 +Build func full name std::stream;_stddev 233 ns 262 ns 4 +Build func full name std::stream;_cv 2.80 % 3.14 % 4 +Build func full name stringa;_mean 749 ns 750 ns 4 +Build func full name stringa;_median 748 ns 750 ns 4 +Build func full name stringa;_stddev 12.4 ns 14.2 ns 4 +Build func full name stringa;_cv 1.65 % 1.90 % 4 +Build func full name stringa 1;_mean 878 ns 853 ns 4 +Build func full name stringa 1;_median 865 ns 858 ns 4 +Build func full name stringa 1;_stddev 30.2 ns 10.5 ns 4 +Build func full name stringa 1;_cv 3.44 % 1.23 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 1405 ns 1397 ns 4 -To upper case std::wstring_median 1405 ns 1397 ns 4 -To upper case std::wstring_stddev 21.5 ns 18.1 ns 4 -To upper case std::wstring_cv 1.53 % 1.30 % 4 -To upper case lstringw<15>_mean 36.2 ns 36.1 ns 4 -To upper case lstringw<15>_median 36.1 ns 36.1 ns 4 -To upper case lstringw<15>_stddev 0.564 ns 0.626 ns 4 -To upper case lstringw<15>_cv 1.56 % 1.74 % 4 +To upper case std::wstring_mean 1457 ns 1460 ns 4 +To upper case std::wstring_median 1455 ns 1460 ns 4 +To upper case std::wstring_stddev 16.8 ns 18.1 ns 4 +To upper case std::wstring_cv 1.16 % 1.24 % 4 +To upper case lstringw<15>_mean 41.0 ns 41.0 ns 4 +To upper case lstringw<15>_median 41.0 ns 41.0 ns 4 +To upper case lstringw<15>_stddev 0.393 ns 0.544 ns 4 +To upper case lstringw<15>_cv 0.96 % 1.33 % 4 diff --git a/bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt b/bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt index 3f9e545..c75df0e 100644 --- a/bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt +++ b/bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler MSVC 19.44.35213.0 -2026-02-27T17:41:31+03:00 +2026-03-22T13:57:22+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,974 +14,974 @@ CPU Caches: Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 252 ns 253 ns 4 -Concat email std::format_median 252 ns 251 ns 4 -Concat email std::format_stddev 1.36 ns 2.79 ns 4 -Concat email std::format_cv 0.54 % 1.10 % 4 -Concat email std::stringstream_mean 909 ns 905 ns 4 -Concat email std::stringstream_median 906 ns 910 ns 4 -Concat email std::stringstream_stddev 30.3 ns 35.7 ns 4 -Concat email std::stringstream_cv 3.34 % 3.95 % 4 -Concat email stringzilla append_mean 272 ns 265 ns 4 -Concat email stringzilla append_median 268 ns 267 ns 4 -Concat email stringzilla append_stddev 15.4 ns 7.46 ns 4 -Concat email stringzilla append_cv 5.66 % 2.81 % 4 -Concat email stringzilla concat_mean 127 ns 126 ns 4 -Concat email stringzilla concat_median 127 ns 126 ns 4 -Concat email stringzilla concat_stddev 0.463 ns 1.40 ns 4 -Concat email stringzilla concat_cv 0.37 % 1.10 % 4 -Concat email std::string append_mean 196 ns 196 ns 4 -Concat email std::string append_median 197 ns 197 ns 4 -Concat email std::string append_stddev 5.34 ns 4.34 ns 4 -Concat email std::string append_cv 2.72 % 2.21 % 4 -Concat email std::string by strexpr_mean 111 ns 110 ns 4 -Concat email std::string by strexpr_median 110 ns 110 ns 4 -Concat email std::string by strexpr_stddev 5.82 ns 5.03 ns 4 -Concat email std::string by strexpr_cv 5.23 % 4.56 % 4 -Concat email stringa_mean 101 ns 100 ns 4 -Concat email stringa_median 101 ns 100 ns 4 -Concat email stringa_stddev 1.95 ns 3.42 ns 4 -Concat email stringa_cv 1.93 % 3.40 % 4 +Concat email std::format_mean 256 ns 255 ns 4 +Concat email std::format_median 256 ns 257 ns 4 +Concat email std::format_stddev 5.69 ns 2.79 ns 4 +Concat email std::format_cv 2.22 % 1.09 % 4 +Concat email std::stringstream_mean 940 ns 942 ns 4 +Concat email std::stringstream_median 934 ns 942 ns 4 +Concat email std::stringstream_stddev 17.4 ns 14.2 ns 4 +Concat email std::stringstream_cv 1.85 % 1.51 % 4 +Concat email stringzilla append_mean 287 ns 286 ns 4 +Concat email stringzilla append_median 286 ns 289 ns 4 +Concat email stringzilla append_stddev 22.9 ns 21.4 ns 4 +Concat email stringzilla append_cv 7.97 % 7.51 % 4 +Concat email stringzilla concat_mean 134 ns 135 ns 4 +Concat email stringzilla concat_median 134 ns 135 ns 4 +Concat email stringzilla concat_stddev 5.29 ns 5.75 ns 4 +Concat email stringzilla concat_cv 3.94 % 4.27 % 4 +Concat email std::string append_mean 200 ns 201 ns 4 +Concat email std::string append_median 201 ns 202 ns 4 +Concat email std::string append_stddev 4.82 ns 4.34 ns 4 +Concat email std::string append_cv 2.41 % 2.16 % 4 +Concat email std::string by strexpr_mean 113 ns 114 ns 4 +Concat email std::string by strexpr_median 114 ns 114 ns 4 +Concat email std::string by strexpr_stddev 3.52 ns 3.57 ns 4 +Concat email std::string by strexpr_cv 3.10 % 3.15 % 4 +Concat email stringa_mean 106 ns 106 ns 4 +Concat email stringa_median 102 ns 103 ns 4 +Concat email stringa_stddev 8.27 ns 6.28 ns 4 +Concat email stringa_cv 7.77 % 5.94 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 331 ns 330 ns 4 -Concat std::string and number by std to std::string_median 329 ns 331 ns 4 -Concat std::string and number by std to std::string_stddev 6.82 ns 6.68 ns 4 -Concat std::string and number by std to std::string_cv 2.06 % 2.03 % 4 -Concat std::string and number by StrExpr to std::string_mean 211 ns 211 ns 4 -Concat std::string and number by StrExpr to std::string_median 211 ns 211 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 6.14 ns 5.85 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.91 % 2.78 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 102 ns 102 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 103 ns 101 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 2.24 ns 2.34 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 2.19 % 2.29 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 113 ns 113 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 113 ns 114 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 2.08 ns 2.79 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 1.84 % 2.47 % 4 +Concat std::string and number by std to std::string_mean 333 ns 333 ns 4 +Concat std::string and number by std to std::string_median 333 ns 333 ns 4 +Concat std::string and number by std to std::string_stddev 3.36 ns 4.23 ns 4 +Concat std::string and number by std to std::string_cv 1.01 % 1.27 % 4 +Concat std::string and number by StrExpr to std::string_mean 219 ns 217 ns 4 +Concat std::string and number by StrExpr to std::string_median 220 ns 213 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 3.90 ns 6.80 ns 4 +Concat std::string and number by StrExpr to std::string_cv 1.78 % 3.14 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 109 ns 109 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 109 ns 109 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 2.59 ns 2.34 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 2.37 % 2.14 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 121 ns 121 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 122 ns 121 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 1.61 ns 2.34 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 1.33 % 1.92 % 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 1043 ns 1044 ns 4 -Concat std::string and format hex number and literal to std::string_median 1044 ns 1038 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 33.7 ns 23.4 ns 4 -Concat std::string and format hex number and literal to std::string_cv 3.23 % 2.24 % 4 -std::format std::string and hex number by literal to std::string_mean 1834 ns 1822 ns 4 -std::format std::string and hex number by literal to std::string_median 1850 ns 1822 ns 4 -std::format std::string and hex number by literal to std::string_stddev 44.0 ns 49.5 ns 4 -std::format std::string and hex number by literal to std::string_cv 2.40 % 2.72 % 4 -Concat std::string and std::to_chars and string to std::string_mean 254 ns 253 ns 4 -Concat std::string and std::to_chars and string to std::string_median 254 ns 254 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 2.18 ns 5.34 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 0.86 % 2.12 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 119 ns 119 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 118 ns 118 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 4.26 ns 4.17 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 3.59 % 3.50 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 101 ns 100 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 101 ns 100 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.00 ns 1.71 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.99 % 1.70 % 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 2.77 ns 3.14 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.63 % 2.99 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 171 ns 172 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 172 ns 173 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 3.96 ns 3.34 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.31 % 1.94 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 359 ns 359 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 359 ns 357 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 6.64 ns 7.68 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.85 % 2.14 % 4 +Concat std::string and format hex number and literal to std::string_mean 1030 ns 1031 ns 4 +Concat std::string and format hex number and literal to std::string_median 1029 ns 1025 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 9.52 ns 10.5 ns 4 +Concat std::string and format hex number and literal to std::string_cv 0.92 % 1.02 % 4 +std::format std::string and hex number by literal to std::string_mean 1872 ns 1862 ns 4 +std::format std::string and hex number by literal to std::string_median 1870 ns 1862 ns 4 +std::format std::string and hex number by literal to std::string_stddev 44.1 ns 54.0 ns 4 +std::format std::string and hex number by literal to std::string_cv 2.35 % 2.90 % 4 +Concat std::string and std::to_chars and string to std::string_mean 252 ns 253 ns 4 +Concat std::string and std::to_chars and string to std::string_median 252 ns 251 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 2.77 ns 2.79 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.10 % 1.10 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 115 ns 115 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 115 ns 116 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 3.10 ns 3.45 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 2.71 % 3.01 % 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 102 ns 103 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.17 ns 2.09 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 2.14 % 2.06 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 108 ns 107 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 108 ns 107 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.81 ns 1.99 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.68 % 1.86 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 173 ns 172 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 171 ns 171 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 4.43 ns 2.44 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 2.57 % 1.42 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 361 ns 361 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 362 ns 361 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.97 ns 6.55 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.66 % 1.81 % 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 694 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 691 ns 691 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 13.5 ns 13.4 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.94 % 1.92 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 828 ns 827 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 824 ns 827 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 27.7 ns 27.0 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 3.35 % 3.27 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1166 ns 1160 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1162 ns 1160 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 27.7 ns 31.5 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.37 % 2.72 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1577 ns 1578 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1578 ns 1587 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 44.1 ns 59.6 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.80 % 3.77 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1440 ns 1444 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1447 ns 1444 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 23.1 ns 25.6 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.60 % 1.77 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1921 ns 1925 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1912 ns 1925 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 27.2 ns 34.2 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.42 % 1.77 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1914 ns 1918 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1921 ns 1918 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 35.2 ns 31.3 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 1.84 % 1.63 % 4 -std::format with std::formatted_size_mean 2861 ns 2849 ns 4 -std::format with std::formatted_size_median 2851 ns 2816 ns 4 -std::format with std::formatted_size_stddev 84.3 ns 93.7 ns 4 -std::format with std::formatted_size_cv 2.95 % 3.29 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6947 ns 6941 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6957 ns 6975 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 146 ns 209 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.10 % 3.02 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 702 ns 702 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 704 ns 706 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 15.7 ns 16.7 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.23 % 2.38 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 810 ns 802 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 808 ns 802 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 12.5 ns 14.2 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.55 % 1.77 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1144 ns 1144 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1148 ns 1144 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 12.7 ns 22.8 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.11 % 1.99 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1583 ns 1569 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1577 ns 1569 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 19.1 ns 28.5 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 1.21 % 1.81 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1596 ns 1587 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1597 ns 1587 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 35.4 ns 45.0 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.22 % 2.84 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1946 ns 1916 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 1941 ns 1904 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 30.6 ns 22.7 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.57 % 1.18 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 1990 ns 1978 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 1972 ns 1967 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 63.3 ns 62.8 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 3.18 % 3.17 % 4 +std::format with std::formatted_size_mean 2922 ns 2932 ns 4 +std::format with std::formatted_size_median 2925 ns 2916 ns 4 +std::format with std::formatted_size_stddev 31.5 ns 33.1 ns 4 +std::format with std::formatted_size_cv 1.08 % 1.13 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7026 ns 6975 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 7003 ns 6975 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 173 ns 142 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.46 % 2.04 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 55.1 ns 55.1 ns 4 -Concat std::string by std to std::string_median 55.3 ns 55.5 ns 4 -Concat std::string by std to std::string_stddev 1.35 ns 1.50 ns 4 -Concat std::string by std to std::string_cv 2.45 % 2.72 % 4 -Concat std::string by StrExpr to std::string_mean 80.2 ns 80.2 ns 4 -Concat std::string by StrExpr to std::string_median 80.1 ns 80.2 ns 4 -Concat std::string by StrExpr to std::string_stddev 2.30 ns 2.85 ns 4 -Concat std::string by StrExpr to std::string_cv 2.87 % 3.55 % 4 -Concat stringa by StrExpr to stringa_mean 52.4 ns 52.3 ns 4 -Concat stringa by StrExpr to stringa_median 52.2 ns 52.3 ns 4 -Concat stringa by StrExpr to stringa_stddev 1.77 ns 0.902 ns 4 -Concat stringa by StrExpr to stringa_cv 3.37 % 1.72 % 4 +Concat std::string by std to std::string_mean 55.5 ns 55.2 ns 4 +Concat std::string by std to std::string_median 55.4 ns 54.9 ns 4 +Concat std::string by std to std::string_stddev 1.50 ns 1.16 ns 4 +Concat std::string by std to std::string_cv 2.71 % 2.09 % 4 +Concat std::string by StrExpr to std::string_mean 77.4 ns 77.6 ns 4 +Concat std::string by StrExpr to std::string_median 77.4 ns 77.6 ns 4 +Concat std::string by StrExpr to std::string_stddev 0.605 ns 1.01 ns 4 +Concat std::string by StrExpr to std::string_cv 0.78 % 1.30 % 4 +Concat stringa by StrExpr to stringa_mean 52.2 ns 51.6 ns 4 +Concat stringa by StrExpr to stringa_median 52.4 ns 51.6 ns 4 +Concat stringa by StrExpr to stringa_stddev 0.927 ns 1.28 ns 4 +Concat stringa by StrExpr to stringa_cv 1.77 % 2.47 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 223 ns 224 ns 4 -Find concat three std::string_median 222 ns 224 ns 4 -Find concat three std::string_stddev 3.78 ns 2.62 ns 4 -Find concat three std::string_cv 1.69 % 1.17 % 4 -Find concat three strexpr_mean 124 ns 124 ns 4 -Find concat three strexpr_median 124 ns 124 ns 4 -Find concat three strexpr_stddev 2.70 ns 3.60 ns 4 -Find concat three strexpr_cv 2.18 % 2.90 % 4 -Find concat three simstr_mean 28.2 ns 28.2 ns 4 -Find concat three simstr_median 28.4 ns 28.2 ns 4 -Find concat three simstr_stddev 0.824 ns 0.765 ns 4 -Find concat three simstr_cv 2.93 % 2.72 % 4 -Find concat three stringzilla string_mean 221 ns 221 ns 4 -Find concat three stringzilla string_median 220 ns 220 ns 4 -Find concat three stringzilla string_stddev 3.60 ns 2.44 ns 4 -Find concat three stringzilla string_cv 1.63 % 1.10 % 4 +Find concat three std::string_mean 230 ns 229 ns 4 +Find concat three std::string_median 229 ns 228 ns 4 +Find concat three std::string_stddev 3.20 ns 5.01 ns 4 +Find concat three std::string_cv 1.39 % 2.19 % 4 +Find concat three strexpr_mean 138 ns 134 ns 4 +Find concat three strexpr_median 127 ns 127 ns 4 +Find concat three strexpr_stddev 22.1 ns 15.2 ns 4 +Find concat three strexpr_cv 16.06 % 11.36 % 4 +Find concat three simstr_mean 28.3 ns 28.2 ns 4 +Find concat three simstr_median 28.3 ns 28.2 ns 4 +Find concat three simstr_stddev 0.625 ns 0.342 ns 4 +Find concat three simstr_cv 2.21 % 1.22 % 4 +Find concat three stringzilla string_mean 232 ns 231 ns 4 +Find concat three stringzilla string_median 231 ns 229 ns 4 +Find concat three stringzilla string_stddev 4.72 ns 2.44 ns 4 +Find concat three stringzilla string_cv 2.03 % 1.06 % 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.6 ns 17.6 ns 4 -BuildTypeNameStr 0/0_stddev 0.266 ns 0.209 ns 4 -BuildTypeNameStr 0/0_cv 1.52 % 1.20 % 4 -BuildTypeNameExp 0/0_mean 14.1 ns 14.1 ns 4 -BuildTypeNameExp 0/0_median 14.0 ns 14.1 ns 4 -BuildTypeNameExp 0/0_stddev 0.274 ns 0.256 ns 4 -BuildTypeNameExp 0/0_cv 1.94 % 1.81 % 4 -BuildTypeNameSim 0/0_mean 16.3 ns 16.3 ns 4 -BuildTypeNameSim 0/0_median 16.2 ns 16.2 ns 4 -BuildTypeNameSim 0/0_stddev 0.297 ns 0.334 ns 4 -BuildTypeNameSim 0/0_cv 1.82 % 2.05 % 4 -BuildTypeNameStr 10/10_mean 83.6 ns 83.7 ns 4 -BuildTypeNameStr 10/10_median 83.2 ns 83.7 ns 4 -BuildTypeNameStr 10/10_stddev 3.14 ns 2.85 ns 4 -BuildTypeNameStr 10/10_cv 3.76 % 3.40 % 4 -BuildTypeNameExp 10/10_mean 38.1 ns 37.9 ns 4 -BuildTypeNameExp 10/10_median 38.1 ns 37.9 ns 4 -BuildTypeNameExp 10/10_stddev 0.928 ns 0.503 ns 4 -BuildTypeNameExp 10/10_cv 2.44 % 1.33 % 4 -BuildTypeNameSim 10/10_mean 38.4 ns 38.5 ns 4 -BuildTypeNameSim 10/10_median 38.3 ns 38.5 ns 4 -BuildTypeNameSim 10/10_stddev 0.524 ns 0.683 ns 4 -BuildTypeNameSim 10/10_cv 1.37 % 1.77 % 4 +BuildTypeNameStr 0/0_mean 17.8 ns 17.8 ns 4 +BuildTypeNameStr 0/0_median 17.9 ns 18.0 ns 4 +BuildTypeNameStr 0/0_stddev 0.258 ns 0.419 ns 4 +BuildTypeNameStr 0/0_cv 1.45 % 2.35 % 4 +BuildTypeNameExp 0/0_mean 14.4 ns 14.4 ns 4 +BuildTypeNameExp 0/0_median 14.4 ns 14.4 ns 4 +BuildTypeNameExp 0/0_stddev 0.177 ns 0.256 ns 4 +BuildTypeNameExp 0/0_cv 1.23 % 1.77 % 4 +BuildTypeNameSim 0/0_mean 15.4 ns 15.3 ns 4 +BuildTypeNameSim 0/0_median 15.3 ns 15.2 ns 4 +BuildTypeNameSim 0/0_stddev 0.562 ns 0.596 ns 4 +BuildTypeNameSim 0/0_cv 3.66 % 3.90 % 4 +BuildTypeNameStr 10/10_mean 80.1 ns 80.0 ns 4 +BuildTypeNameStr 10/10_median 79.7 ns 80.6 ns 4 +BuildTypeNameStr 10/10_stddev 1.34 ns 2.00 ns 4 +BuildTypeNameStr 10/10_cv 1.67 % 2.50 % 4 +BuildTypeNameExp 10/10_mean 39.4 ns 39.6 ns 4 +BuildTypeNameExp 10/10_median 39.3 ns 39.3 ns 4 +BuildTypeNameExp 10/10_stddev 0.579 ns 0.419 ns 4 +BuildTypeNameExp 10/10_cv 1.47 % 1.06 % 4 +BuildTypeNameSim 10/10_mean 38.8 ns 38.6 ns 4 +BuildTypeNameSim 10/10_median 38.9 ns 38.4 ns 4 +BuildTypeNameSim 10/10_stddev 0.643 ns 0.436 ns 4 +BuildTypeNameSim 10/10_cv 1.66 % 1.13 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 360 ns 359 ns 4 -Concat with replace str_median 359 ns 359 ns 4 -Concat with replace str_stddev 7.97 ns 8.46 ns 4 -Concat with replace str_cv 2.21 % 2.36 % 4 -Concat with replace exp_mean 219 ns 216 ns 4 -Concat with replace exp_median 220 ns 217 ns 4 -Concat with replace exp_stddev 4.19 ns 4.67 ns 4 -Concat with replace exp_cv 1.91 % 2.16 % 4 +Concat with replace str_mean 352 ns 351 ns 4 +Concat with replace str_median 353 ns 353 ns 4 +Concat with replace str_stddev 8.02 ns 10.1 ns 4 +Concat with replace str_cv 2.28 % 2.88 % 4 +Concat with replace exp_mean 222 ns 222 ns 4 +Concat with replace exp_median 222 ns 222 ns 4 +Concat with replace exp_stddev 3.00 ns 3.02 ns 4 +Concat with replace exp_cv 1.35 % 1.36 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 2.52 ns 2.52 ns 4 -std::string e;_median 2.52 ns 2.52 ns 4 -std::string e;_stddev 0.027 ns 0.034 ns 4 -std::string e;_cv 1.07 % 1.36 % 4 -std::string_view e;_mean 1.82 ns 1.80 ns 4 -std::string_view e;_median 1.81 ns 1.78 ns 4 -std::string_view e;_stddev 0.049 ns 0.054 ns 4 -std::string_view e;_cv 2.69 % 3.01 % 4 -ssa e;_mean 1.81 ns 1.81 ns 4 -ssa e;_median 1.80 ns 1.80 ns 4 -ssa e;_stddev 0.016 ns 0.019 ns 4 -ssa e;_cv 0.91 % 1.06 % 4 -stringa e;_mean 2.22 ns 2.21 ns 4 -stringa e;_median 2.20 ns 2.20 ns 4 -stringa e;_stddev 0.044 ns 0.066 ns 4 -stringa e;_cv 1.98 % 2.98 % 4 -lstringa<20> e;_mean 2.54 ns 2.54 ns 4 -lstringa<20> e;_median 2.53 ns 2.54 ns 4 -lstringa<20> e;_stddev 0.044 ns 0.072 ns 4 -lstringa<20> e;_cv 1.74 % 2.84 % 4 -lstringa<40> e;_mean 2.56 ns 2.55 ns 4 -lstringa<40> e;_median 2.54 ns 2.55 ns 4 -lstringa<40> e;_stddev 0.066 ns 0.048 ns 4 -lstringa<40> e;_cv 2.59 % 1.90 % 4 +std::string e;_mean 2.58 ns 2.58 ns 4 +std::string e;_median 2.58 ns 2.57 ns 4 +std::string e;_stddev 0.033 ns 0.028 ns 4 +std::string e;_cv 1.28 % 1.08 % 4 +std::string_view e;_mean 1.84 ns 1.84 ns 4 +std::string_view e;_median 1.85 ns 1.84 ns 4 +std::string_view e;_stddev 0.022 ns 0.034 ns 4 +std::string_view e;_cv 1.20 % 1.86 % 4 +ssa e;_mean 1.86 ns 1.84 ns 4 +ssa e;_median 1.86 ns 1.84 ns 4 +ssa e;_stddev 0.010 ns 0.034 ns 4 +ssa e;_cv 0.53 % 1.86 % 4 +stringa e;_mean 2.22 ns 2.22 ns 4 +stringa e;_median 2.22 ns 2.22 ns 4 +stringa e;_stddev 0.020 ns 0.000 ns 4 +stringa e;_cv 0.92 % 0.00 % 4 +lstringa<20> e;_mean 2.55 ns 2.55 ns 4 +lstringa<20> e;_median 2.55 ns 2.55 ns 4 +lstringa<20> e;_stddev 0.035 ns 0.048 ns 4 +lstringa<20> e;_cv 1.39 % 1.90 % 4 +lstringa<40> e;_mean 2.57 ns 2.55 ns 4 +lstringa<40> e;_median 2.57 ns 2.57 ns 4 +lstringa<40> e;_stddev 0.038 ns 0.028 ns 4 +lstringa<40> e;_cv 1.48 % 1.09 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 2.58 ns 2.58 ns 4 -std::string e = "Test text";_median 2.59 ns 2.58 ns 4 -std::string e = "Test text";_stddev 0.059 ns 0.077 ns 4 -std::string e = "Test text";_cv 2.28 % 2.97 % 4 -std::string_view e = "Test text";_mean 1.83 ns 1.82 ns 4 +std::string e = "Test text";_mean 2.57 ns 2.57 ns 4 +std::string e = "Test text";_median 2.57 ns 2.57 ns 4 +std::string e = "Test text";_stddev 0.053 ns 0.046 ns 4 +std::string e = "Test text";_cv 2.07 % 1.77 % 4 +std::string_view e = "Test text";_mean 1.84 ns 1.84 ns 4 std::string_view e = "Test text";_median 1.84 ns 1.84 ns 4 -std::string_view e = "Test text";_stddev 0.032 ns 0.042 ns 4 -std::string_view e = "Test text";_cv 1.76 % 2.30 % 4 -ssa e = "Test text";_mean 1.82 ns 1.81 ns 4 -ssa e = "Test text";_median 1.83 ns 1.82 ns 4 -ssa e = "Test text";_stddev 0.007 ns 0.037 ns 4 -ssa e = "Test text";_cv 0.41 % 2.03 % 4 -stringa e = "Test text";_mean 2.55 ns 2.55 ns 4 -stringa e = "Test text";_median 2.54 ns 2.57 ns 4 -stringa e = "Test text";_stddev 0.025 ns 0.028 ns 4 -stringa e = "Test text";_cv 1.00 % 1.09 % 4 -lstringa<20> e = "Test text";_mean 2.53 ns 2.53 ns 4 -lstringa<20> e = "Test text";_median 2.53 ns 2.55 ns 4 -lstringa<20> e = "Test text";_stddev 0.041 ns 0.030 ns 4 -lstringa<20> e = "Test text";_cv 1.64 % 1.17 % 4 -lstringa<40> e = "Test text";_mean 2.55 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.047 ns 0.053 ns 4 -lstringa<40> e = "Test text";_cv 1.85 % 2.09 % 4 +std::string_view e = "Test text";_stddev 0.022 ns 0.034 ns 4 +std::string_view e = "Test text";_cv 1.22 % 1.86 % 4 +ssa e = "Test text";_mean 1.84 ns 1.84 ns 4 +ssa e = "Test text";_median 1.84 ns 1.84 ns 4 +ssa e = "Test text";_stddev 0.010 ns 0.000 ns 4 +ssa e = "Test text";_cv 0.55 % 0.00 % 4 +stringa e = "Test text";_mean 2.57 ns 2.55 ns 4 +stringa e = "Test text";_median 2.57 ns 2.55 ns 4 +stringa e = "Test text";_stddev 0.026 ns 0.048 ns 4 +stringa e = "Test text";_cv 1.01 % 1.90 % 4 +lstringa<20> e = "Test text";_mean 2.60 ns 2.61 ns 4 +lstringa<20> e = "Test text";_median 2.59 ns 2.62 ns 4 +lstringa<20> e = "Test text";_stddev 0.045 ns 0.028 ns 4 +lstringa<20> e = "Test text";_cv 1.73 % 1.07 % 4 +lstringa<40> e = "Test text";_mean 2.58 ns 2.55 ns 4 +lstringa<40> e = "Test text";_median 2.60 ns 2.55 ns 4 +lstringa<40> e = "Test text";_stddev 0.034 ns 0.048 ns 4 +lstringa<40> e = "Test text";_cv 1.33 % 1.90 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 78.9 ns 78.9 ns 4 -std::string e = "123456789012345678901234567890";_median 77.0 ns 76.7 ns 4 -std::string e = "123456789012345678901234567890";_stddev 4.84 ns 5.58 ns 4 -std::string e = "123456789012345678901234567890";_cv 6.14 % 7.08 % 4 -std::string_view e = "123456789012345678901234567890";_mean 1.84 ns 1.84 ns 4 -std::string_view e = "123456789012345678901234567890";_median 1.85 ns 1.84 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.051 ns 0.044 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 2.78 % 2.41 % 4 -ssa e = "123456789012345678901234567890";_mean 1.85 ns 1.85 ns 4 -ssa e = "123456789012345678901234567890";_median 1.84 ns 1.84 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.048 ns 0.019 ns 4 -ssa e = "123456789012345678901234567890";_cv 2.61 % 1.04 % 4 -stringa e = "123456789012345678901234567890";_mean 2.87 ns 2.87 ns 4 -stringa e = "123456789012345678901234567890";_median 2.86 ns 2.86 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.031 ns 0.060 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.09 % 2.09 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 76.9 ns 76.7 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 76.5 ns 75.9 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 2.03 ns 2.47 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 2.65 % 3.21 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 3.27 ns 3.26 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 3.27 ns 3.24 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.031 ns 0.067 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 0.94 % 2.05 % 4 +std::string e = "123456789012345678901234567890";_mean 79.3 ns 79.3 ns 4 +std::string e = "123456789012345678901234567890";_median 78.4 ns 78.5 ns 4 +std::string e = "123456789012345678901234567890";_stddev 2.83 ns 3.02 ns 4 +std::string e = "123456789012345678901234567890";_cv 3.57 % 3.81 % 4 +std::string_view e = "123456789012345678901234567890";_mean 1.86 ns 1.85 ns 4 +std::string_view e = "123456789012345678901234567890";_median 1.86 ns 1.84 ns 4 +std::string_view e = "123456789012345678901234567890";_stddev 0.015 ns 0.021 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 0.80 % 1.13 % 4 +ssa e = "123456789012345678901234567890";_mean 1.86 ns 1.85 ns 4 +ssa e = "123456789012345678901234567890";_median 1.83 ns 1.84 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.065 ns 0.086 ns 4 +ssa e = "123456789012345678901234567890";_cv 3.49 % 4.66 % 4 +stringa e = "123456789012345678901234567890";_mean 2.24 ns 2.22 ns 4 +stringa e = "123456789012345678901234567890";_median 2.24 ns 2.20 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.026 ns 0.049 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.18 % 2.20 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 72.7 ns 72.8 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 73.0 ns 73.2 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.990 ns 0.872 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.36 % 1.20 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 3.32 ns 3.33 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 3.31 ns 3.30 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.085 ns 0.073 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 2.56 % 2.20 % 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.99 ns 6.00 ns 4 -std::string e = "Test text"; auto c{e};_median 5.96 ns 6.00 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.113 ns 0.114 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.88 % 1.90 % 4 -std::string_view e = "Test text"; auto c{e};_mean 3.47 ns 3.47 ns 4 -std::string_view e = "Test text"; auto c{e};_median 3.47 ns 3.49 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.037 ns 0.073 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 1.07 % 2.12 % 4 -ssa e = "Test text"; auto c{e};_mean 3.46 ns 3.45 ns 4 -ssa e = "Test text"; auto c{e};_median 3.46 ns 3.45 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.022 ns 0.063 ns 4 -ssa e = "Test text"; auto c{e};_cv 0.64 % 1.81 % 4 -stringa e = "Test text"; auto c{e};_mean 4.00 ns 3.99 ns 4 -stringa e = "Test text"; auto c{e};_median 4.00 ns 3.99 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.060 ns 0.074 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.50 % 1.86 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.77 ns 4.78 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.80 ns 4.81 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.073 ns 0.134 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.54 % 2.80 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 4.89 ns 4.87 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 4.86 ns 4.87 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.057 ns 0.000 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.16 % 0.00 % 4 +std::string e = "Test text"; auto c{e};_mean 5.40 ns 5.41 ns 4 +std::string e = "Test text"; auto c{e};_median 5.39 ns 5.44 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.067 ns 0.070 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.24 % 1.29 % 4 +std::string_view e = "Test text"; auto c{e};_mean 2.95 ns 2.90 ns 4 +std::string_view e = "Test text"; auto c{e};_median 2.96 ns 2.92 ns 4 +std::string_view e = "Test text"; auto c{e};_stddev 0.021 ns 0.083 ns 4 +std::string_view e = "Test text"; auto c{e};_cv 0.72 % 2.88 % 4 +ssa e = "Test text"; auto c{e};_mean 2.95 ns 2.95 ns 4 +ssa e = "Test text"; auto c{e};_median 2.95 ns 2.92 ns 4 +ssa e = "Test text"; auto c{e};_stddev 0.058 ns 0.066 ns 4 +ssa e = "Test text"; auto c{e};_cv 1.98 % 2.25 % 4 +stringa e = "Test text"; auto c{e};_mean 4.12 ns 4.10 ns 4 +stringa e = "Test text"; auto c{e};_median 4.11 ns 4.08 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.046 ns 0.045 ns 4 +stringa e = "Test text"; auto c{e};_cv 1.12 % 1.10 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 4.78 ns 4.74 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 4.76 ns 4.74 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.071 ns 0.114 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 1.48 % 2.40 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 5.49 ns 5.48 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 5.49 ns 5.44 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.036 ns 0.070 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 0.66 % 1.27 % 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 74.9 ns 74.3 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 74.9 ns 74.3 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.57 ns 2.70 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.10 % 3.64 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.043 ns 0.054 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.33 % 2.97 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.81 ns 1.81 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 1.81 ns 1.82 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.016 ns 0.040 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.89 % 2.21 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.90 ns 2.90 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 2.90 ns 2.92 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.031 ns 0.033 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.07 % 1.14 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 81.1 ns 81.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 81.3 ns 82.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.09 ns 2.19 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.57 % 2.69 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.73 ns 7.72 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.74 ns 7.76 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.176 ns 0.167 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.28 % 2.16 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 78.8 ns 78.5 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 78.5 ns 78.5 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.38 ns 3.18 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.03 % 4.06 % 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.50 ns 1.49 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.50 ns 1.49 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.015 ns 0.018 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.99 % 1.22 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.47 ns 1.47 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 1.46 ns 1.46 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.030 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.30 % 2.05 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.98 ns 2.97 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 3.00 ns 2.95 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.039 ns 0.031 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.31 % 1.06 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 82.9 ns 82.4 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 83.1 ns 82.8 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.866 ns 1.67 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.04 % 2.03 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.41 ns 7.39 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.38 ns 7.39 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.131 ns 0.114 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.77 % 1.54 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 115 ns 115 ns 4 -sz::string::find;_median 115 ns 115 ns 4 -sz::string::find;_stddev 1.15 ns 0.000 ns 4 -sz::string::find;_cv 1.00 % 0.00 % 4 -std::string::find;_mean 40.5 ns 40.4 ns 4 -std::string::find;_median 40.5 ns 40.4 ns 4 -std::string::find;_stddev 0.932 ns 1.17 ns 4 -std::string::find;_cv 2.30 % 2.90 % 4 -std::string_view::find;_mean 39.5 ns 39.5 ns 4 -std::string_view::find;_median 39.7 ns 39.7 ns 4 -std::string_view::find;_stddev 0.877 ns 0.835 ns 4 -std::string_view::find;_cv 2.22 % 2.12 % 4 -ssa::find;_mean 22.0 ns 22.0 ns 4 -ssa::find;_median 22.0 ns 22.0 ns 4 -ssa::find;_stddev 0.276 ns 0.000 ns 4 -ssa::find;_cv 1.25 % 0.00 % 4 -stringa::find;_mean 29.9 ns 29.8 ns 4 -stringa::find;_median 29.9 ns 29.6 ns 4 -stringa::find;_stddev 0.624 ns 0.746 ns 4 -stringa::find;_cv 2.09 % 2.50 % 4 -lstringa<20>::find;_mean 21.9 ns 21.9 ns 4 -lstringa<20>::find;_median 21.8 ns 21.7 ns 4 -lstringa<20>::find;_stddev 0.723 ns 1.01 ns 4 -lstringa<20>::find;_cv 3.31 % 4.61 % 4 -lstringa<40>::find;_mean 22.9 ns 22.8 ns 4 -lstringa<40>::find;_median 22.7 ns 22.5 ns 4 -lstringa<40>::find;_stddev 1.06 ns 0.906 ns 4 -lstringa<40>::find;_cv 4.63 % 3.98 % 4 +sz::string::find;_mean 117 ns 117 ns 4 +sz::string::find;_median 117 ns 117 ns 4 +sz::string::find;_stddev 0.763 ns 1.99 ns 4 +sz::string::find;_cv 0.65 % 1.70 % 4 +std::string::find;_mean 40.3 ns 40.1 ns 4 +std::string::find;_median 40.2 ns 39.9 ns 4 +std::string::find;_stddev 0.623 ns 0.453 ns 4 +std::string::find;_cv 1.54 % 1.13 % 4 +std::string_view::find;_mean 39.8 ns 39.5 ns 4 +std::string_view::find;_median 39.8 ns 39.7 ns 4 +std::string_view::find;_stddev 0.318 ns 0.835 ns 4 +std::string_view::find;_cv 0.80 % 2.12 % 4 +ssa::find;_mean 21.9 ns 21.9 ns 4 +ssa::find;_median 21.9 ns 22.0 ns 4 +ssa::find;_stddev 0.213 ns 0.244 ns 4 +ssa::find;_cv 0.97 % 1.12 % 4 +stringa::find;_mean 29.4 ns 29.0 ns 4 +stringa::find;_median 29.5 ns 29.5 ns 4 +stringa::find;_stddev 0.245 ns 1.25 ns 4 +stringa::find;_cv 0.83 % 4.33 % 4 +lstringa<20>::find;_mean 24.4 ns 23.9 ns 4 +lstringa<20>::find;_median 23.4 ns 22.5 ns 4 +lstringa<20>::find;_stddev 3.47 ns 3.63 ns 4 +lstringa<20>::find;_cv 14.22 % 15.18 % 4 +lstringa<40>::find;_mean 23.1 ns 23.0 ns 4 +lstringa<40>::find;_median 23.0 ns 22.8 ns 4 +lstringa<40>::find;_stddev 0.931 ns 0.740 ns 4 +lstringa<40>::find;_cv 4.04 % 3.21 % 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.09 ns 5.12 ns 4 -std::string copy{str_with_len_N};/15_median 5.09 ns 5.16 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.068 ns 0.078 ns 4 -std::string copy{str_with_len_N};/15_cv 1.34 % 1.53 % 4 -std::string copy{str_with_len_N};/16_mean 82.6 ns 82.8 ns 4 +std::string copy{str_with_len_N};/15_mean 5.18 ns 5.20 ns 4 +std::string copy{str_with_len_N};/15_median 5.13 ns 5.16 ns 4 +std::string copy{str_with_len_N};/15_stddev 0.143 ns 0.078 ns 4 +std::string copy{str_with_len_N};/15_cv 2.76 % 1.50 % 4 +std::string copy{str_with_len_N};/16_mean 83.5 ns 83.7 ns 4 std::string copy{str_with_len_N};/16_median 83.4 ns 83.7 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.79 ns 1.74 ns 4 -std::string copy{str_with_len_N};/16_cv 2.16 % 2.11 % 4 -std::string copy{str_with_len_N};/23_mean 83.1 ns 82.7 ns 4 -std::string copy{str_with_len_N};/23_median 82.8 ns 82.7 ns 4 -std::string copy{str_with_len_N};/23_stddev 1.49 ns 1.21 ns 4 -std::string copy{str_with_len_N};/23_cv 1.79 % 1.46 % 4 -std::string copy{str_with_len_N};/24_mean 83.0 ns 83.3 ns 4 -std::string copy{str_with_len_N};/24_median 83.6 ns 83.7 ns 4 -std::string copy{str_with_len_N};/24_stddev 2.70 ns 2.62 ns 4 -std::string copy{str_with_len_N};/24_cv 3.25 % 3.14 % 4 -std::string copy{str_with_len_N};/32_mean 85.5 ns 85.3 ns 4 -std::string copy{str_with_len_N};/32_median 85.2 ns 84.8 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.52 ns 2.00 ns 4 -std::string copy{str_with_len_N};/32_cv 1.78 % 2.35 % 4 -std::string copy{str_with_len_N};/64_mean 90.0 ns 89.8 ns 4 -std::string copy{str_with_len_N};/64_median 90.2 ns 89.8 ns 4 -std::string copy{str_with_len_N};/64_stddev 5.56 ns 5.42 ns 4 -std::string copy{str_with_len_N};/64_cv 6.18 % 6.04 % 4 -std::string copy{str_with_len_N};/128_mean 89.5 ns 89.5 ns 4 -std::string copy{str_with_len_N};/128_median 89.1 ns 88.9 ns 4 -std::string copy{str_with_len_N};/128_stddev 2.50 ns 3.57 ns 4 -std::string copy{str_with_len_N};/128_cv 2.79 % 3.99 % 4 -std::string copy{str_with_len_N};/256_mean 91.4 ns 91.0 ns 4 -std::string copy{str_with_len_N};/256_median 90.8 ns 91.0 ns 4 -std::string copy{str_with_len_N};/256_stddev 1.35 ns 1.21 ns 4 -std::string copy{str_with_len_N};/256_cv 1.47 % 1.33 % 4 -std::string copy{str_with_len_N};/512_mean 93.4 ns 93.1 ns 4 -std::string copy{str_with_len_N};/512_median 93.0 ns 93.1 ns 4 -std::string copy{str_with_len_N};/512_stddev 3.23 ns 4.36 ns 4 -std::string copy{str_with_len_N};/512_cv 3.46 % 4.68 % 4 -std::string copy{str_with_len_N};/1024_mean 98.8 ns 98.9 ns 4 -std::string copy{str_with_len_N};/1024_median 98.7 ns 98.9 ns 4 -std::string copy{str_with_len_N};/1024_stddev 2.39 ns 3.15 ns 4 -std::string copy{str_with_len_N};/1024_cv 2.42 % 3.19 % 4 +std::string copy{str_with_len_N};/16_stddev 1.76 ns 2.01 ns 4 +std::string copy{str_with_len_N};/16_cv 2.11 % 2.41 % 4 +std::string copy{str_with_len_N};/23_mean 82.0 ns 82.0 ns 4 +std::string copy{str_with_len_N};/23_median 81.8 ns 82.0 ns 4 +std::string copy{str_with_len_N};/23_stddev 1.56 ns 2.01 ns 4 +std::string copy{str_with_len_N};/23_cv 1.90 % 2.46 % 4 +std::string copy{str_with_len_N};/24_mean 83.5 ns 83.7 ns 4 +std::string copy{str_with_len_N};/24_median 83.4 ns 83.7 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.829 ns 1.42 ns 4 +std::string copy{str_with_len_N};/24_cv 0.99 % 1.70 % 4 +std::string copy{str_with_len_N};/32_mean 89.4 ns 88.5 ns 4 +std::string copy{str_with_len_N};/32_median 89.9 ns 88.1 ns 4 +std::string copy{str_with_len_N};/32_stddev 1.35 ns 1.67 ns 4 +std::string copy{str_with_len_N};/32_cv 1.50 % 1.89 % 4 +std::string copy{str_with_len_N};/64_mean 90.6 ns 90.5 ns 4 +std::string copy{str_with_len_N};/64_median 86.7 ns 86.8 ns 4 +std::string copy{str_with_len_N};/64_stddev 9.13 ns 9.57 ns 4 +std::string copy{str_with_len_N};/64_cv 10.07 % 10.57 % 4 +std::string copy{str_with_len_N};/128_mean 90.0 ns 90.0 ns 4 +std::string copy{str_with_len_N};/128_median 89.9 ns 90.0 ns 4 +std::string copy{str_with_len_N};/128_stddev 0.893 ns 1.71 ns 4 +std::string copy{str_with_len_N};/128_cv 0.99 % 1.90 % 4 +std::string copy{str_with_len_N};/256_mean 91.8 ns 92.0 ns 4 +std::string copy{str_with_len_N};/256_median 91.7 ns 91.6 ns 4 +std::string copy{str_with_len_N};/256_stddev 3.06 ns 3.60 ns 4 +std::string copy{str_with_len_N};/256_cv 3.34 % 3.91 % 4 +std::string copy{str_with_len_N};/512_mean 96.2 ns 95.7 ns 4 +std::string copy{str_with_len_N};/512_median 95.8 ns 96.3 ns 4 +std::string copy{str_with_len_N};/512_stddev 1.01 ns 1.05 ns 4 +std::string copy{str_with_len_N};/512_cv 1.05 % 1.09 % 4 +std::string copy{str_with_len_N};/1024_mean 102 ns 102 ns 4 +std::string copy{str_with_len_N};/1024_median 102 ns 103 ns 4 +std::string copy{str_with_len_N};/1024_stddev 5.76 ns 5.50 ns 4 +std::string copy{str_with_len_N};/1024_cv 5.65 % 5.39 % 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 131 ns 4 -std::string copy{str_with_len_N};/2048_stddev 5.42 ns 6.19 ns 4 -std::string copy{str_with_len_N};/2048_cv 4.11 % 4.69 % 4 -std::string copy{str_with_len_N};/4096_mean 181 ns 180 ns 4 -std::string copy{str_with_len_N};/4096_median 180 ns 180 ns 4 -std::string copy{str_with_len_N};/4096_stddev 3.61 ns 4.43 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.00 % 2.46 % 4 -stringa copy{str_with_len_N};/15_mean 4.03 ns 4.01 ns 4 -stringa copy{str_with_len_N};/15_median 4.03 ns 4.01 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.045 ns 0.071 ns 4 -stringa copy{str_with_len_N};/15_cv 1.11 % 1.77 % 4 +std::string copy{str_with_len_N};/2048_median 132 ns 131 ns 4 +std::string copy{str_with_len_N};/2048_stddev 2.82 ns 4.19 ns 4 +std::string copy{str_with_len_N};/2048_cv 2.13 % 3.17 % 4 +std::string copy{str_with_len_N};/4096_mean 184 ns 182 ns 4 +std::string copy{str_with_len_N};/4096_median 182 ns 182 ns 4 +std::string copy{str_with_len_N};/4096_stddev 4.95 ns 4.95 ns 4 +std::string copy{str_with_len_N};/4096_cv 2.69 % 2.72 % 4 +stringa copy{str_with_len_N};/15_mean 4.04 ns 4.01 ns 4 +stringa copy{str_with_len_N};/15_median 4.05 ns 4.01 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.033 ns 0.071 ns 4 +stringa copy{str_with_len_N};/15_cv 0.83 % 1.77 % 4 stringa copy{str_with_len_N};/16_mean 4.07 ns 4.08 ns 4 -stringa copy{str_with_len_N};/16_median 4.10 ns 4.10 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.095 ns 0.110 ns 4 -stringa copy{str_with_len_N};/16_cv 2.34 % 2.69 % 4 -stringa copy{str_with_len_N};/23_mean 3.99 ns 3.99 ns 4 -stringa copy{str_with_len_N};/23_median 4.00 ns 3.97 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.069 ns 0.083 ns 4 -stringa copy{str_with_len_N};/23_cv 1.74 % 2.09 % 4 -stringa copy{str_with_len_N};/24_mean 18.4 ns 18.4 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.076 ns 0.342 ns 4 -stringa copy{str_with_len_N};/24_cv 0.41 % 1.86 % 4 -stringa copy{str_with_len_N};/32_mean 18.4 ns 18.4 ns 4 +stringa copy{str_with_len_N};/16_median 4.08 ns 4.05 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.086 ns 0.083 ns 4 +stringa copy{str_with_len_N};/16_cv 2.11 % 2.05 % 4 +stringa copy{str_with_len_N};/23_mean 4.09 ns 4.08 ns 4 +stringa copy{str_with_len_N};/23_median 4.09 ns 4.08 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.073 ns 0.074 ns 4 +stringa copy{str_with_len_N};/23_cv 1.79 % 1.81 % 4 +stringa copy{str_with_len_N};/24_mean 18.8 ns 18.6 ns 4 +stringa copy{str_with_len_N};/24_median 18.8 ns 18.8 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.284 ns 0.384 ns 4 +stringa copy{str_with_len_N};/24_cv 1.51 % 2.06 % 4 +stringa copy{str_with_len_N};/32_mean 18.6 ns 18.5 ns 4 stringa copy{str_with_len_N};/32_median 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.151 ns 0.342 ns 4 -stringa copy{str_with_len_N};/32_cv 0.82 % 1.86 % 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.116 ns 0.000 ns 4 -stringa copy{str_with_len_N};/64_cv 0.63 % 0.00 % 4 -stringa copy{str_with_len_N};/128_mean 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/128_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.138 ns 0.342 ns 4 -stringa copy{str_with_len_N};/128_cv 0.75 % 1.86 % 4 -stringa copy{str_with_len_N};/256_mean 18.7 ns 18.6 ns 4 -stringa copy{str_with_len_N};/256_median 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.642 ns 0.801 ns 4 -stringa copy{str_with_len_N};/256_cv 3.44 % 4.30 % 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.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.171 ns 0.000 ns 4 -stringa copy{str_with_len_N};/512_cv 0.92 % 0.00 % 4 -stringa copy{str_with_len_N};/1024_mean 18.5 ns 18.4 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.213 ns 0.000 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.15 % 0.00 % 4 -stringa copy{str_with_len_N};/2048_mean 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/2048_median 18.4 ns 18.4 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.059 ns 0.000 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.32 % 0.00 % 4 -stringa copy{str_with_len_N};/4096_mean 18.4 ns 18.3 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.199 ns 0.209 ns 4 -stringa copy{str_with_len_N};/4096_cv 1.09 % 1.14 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.55 ns 4.54 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.55 ns 4.54 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.015 ns 0.056 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 0.33 % 1.24 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 9.64 ns 9.68 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 9.68 ns 9.73 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.232 ns 0.200 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 2.40 % 2.07 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 9.66 ns 9.63 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 9.67 ns 9.63 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.180 ns 0.171 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 1.86 % 1.77 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 82.0 ns 81.5 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 82.2 ns 81.1 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.687 ns 1.67 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 0.84 % 2.05 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 83.4 ns 83.2 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 83.1 ns 82.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 2.04 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 2.45 % 2.41 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 84.9 ns 84.8 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 83.4 ns 83.7 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 3.20 ns 3.62 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 3.77 % 4.28 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 88.6 ns 88.4 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 88.8 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 3.20 ns 3.57 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 3.61 % 4.04 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 88.4 ns 88.4 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 88.4 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 2.47 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.80 % 2.27 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 91.7 ns 91.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 91.8 ns 91.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 1.34 ns 1.21 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 1.46 % 1.33 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 95.5 ns 95.8 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 96.1 ns 96.4 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.53 ns 2.34 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 2.65 % 2.44 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 126 ns 126 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 126 ns 126 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 2.55 ns 2.28 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 2.02 % 1.81 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 186 ns 185 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 186 ns 186 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 1.25 ns 4.01 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 0.67 % 2.16 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 4.41 ns 4.39 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 4.42 ns 4.39 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.042 ns 0.080 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 0.94 % 1.81 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 9.30 ns 9.26 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 9.36 ns 9.21 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.161 ns 0.105 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 1.73 % 1.13 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 9.29 ns 9.21 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 9.34 ns 9.21 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.178 ns 0.171 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 1.92 % 1.86 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 9.52 ns 9.52 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 9.37 ns 9.31 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.423 ns 0.498 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 4.44 % 5.23 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 12.3 ns 12.3 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 12.2 ns 12.1 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.336 ns 0.395 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 2.74 % 3.21 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 12.0 ns 12.0 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 12.0 ns 12.1 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.235 ns 0.234 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.95 % 1.94 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 13.0 ns 12.9 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.266 ns 0.209 ns 4 +stringa copy{str_with_len_N};/32_cv 1.43 % 1.13 % 4 +stringa copy{str_with_len_N};/64_mean 18.6 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.088 ns 0.342 ns 4 +stringa copy{str_with_len_N};/64_cv 0.47 % 1.86 % 4 +stringa copy{str_with_len_N};/128_mean 18.6 ns 18.6 ns 4 +stringa copy{str_with_len_N};/128_median 18.6 ns 18.6 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.111 ns 0.242 ns 4 +stringa copy{str_with_len_N};/128_cv 0.60 % 1.30 % 4 +stringa copy{str_with_len_N};/256_mean 18.7 ns 18.4 ns 4 +stringa copy{str_with_len_N};/256_median 18.7 ns 18.4 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.154 ns 0.342 ns 4 +stringa copy{str_with_len_N};/256_cv 0.82 % 1.86 % 4 +stringa copy{str_with_len_N};/512_mean 19.1 ns 18.9 ns 4 +stringa copy{str_with_len_N};/512_median 18.7 ns 18.8 ns 4 +stringa copy{str_with_len_N};/512_stddev 0.790 ns 0.527 ns 4 +stringa copy{str_with_len_N};/512_cv 4.14 % 2.78 % 4 +stringa copy{str_with_len_N};/1024_mean 18.7 ns 18.5 ns 4 +stringa copy{str_with_len_N};/1024_median 18.7 ns 18.4 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.105 ns 0.209 ns 4 +stringa copy{str_with_len_N};/1024_cv 0.56 % 1.13 % 4 +stringa copy{str_with_len_N};/2048_mean 18.7 ns 18.6 ns 4 +stringa copy{str_with_len_N};/2048_median 18.7 ns 18.6 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.170 ns 0.242 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.91 % 1.30 % 4 +stringa copy{str_with_len_N};/4096_mean 18.7 ns 18.7 ns 4 +stringa copy{str_with_len_N};/4096_median 18.7 ns 18.8 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.084 ns 0.192 ns 4 +stringa copy{str_with_len_N};/4096_cv 0.45 % 1.03 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 4.06 ns 4.06 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 4.05 ns 4.04 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.063 ns 0.087 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.55 % 2.14 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 8.48 ns 8.46 ns 4 +lstringa<16> copy{str_with_len_N};/16_median 8.49 ns 8.46 ns 4 +lstringa<16> copy{str_with_len_N};/16_stddev 0.137 ns 0.101 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 1.61 % 1.19 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 8.54 ns 8.50 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 8.56 ns 8.54 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.063 ns 0.087 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 0.73 % 1.03 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 81.2 ns 81.1 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 80.9 ns 81.1 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 2.04 ns 2.25 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 2.51 % 2.78 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 84.1 ns 84.1 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 84.2 ns 83.7 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.339 ns 0.872 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 0.40 % 1.04 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 82.4 ns 82.1 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 82.3 ns 81.6 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 1.06 ns 1.05 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 1.29 % 1.27 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 85.6 ns 85.4 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 85.4 ns 85.4 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 1.42 ns 1.42 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 1.66 % 1.67 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 87.1 ns 86.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 87.3 ns 85.8 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 1.57 ns 2.09 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 1.80 % 2.41 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 90.7 ns 90.0 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 91.2 ns 90.0 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 1.60 ns 1.71 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 1.77 % 1.90 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 101 ns 101 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 100 ns 100 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 5.75 ns 6.21 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 5.68 % 6.14 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 135 ns 133 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 136 ns 133 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 5.54 ns 3.60 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 4.11 % 2.72 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 196 ns 195 ns 4 +lstringa<16> copy{str_with_len_N};/4096_median 196 ns 195 ns 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 2.72 ns 2.42 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 1.39 % 1.24 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 4.46 ns 4.45 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 4.47 ns 4.45 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.048 ns 0.083 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 1.08 % 1.86 % 4 +lstringa<512> copy{str_with_len_N};/16_mean 8.96 ns 8.89 ns 4 +lstringa<512> copy{str_with_len_N};/16_median 9.02 ns 8.89 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.201 ns 0.121 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 2.24 % 1.36 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 8.92 ns 8.89 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 8.89 ns 8.89 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.096 ns 0.121 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 1.08 % 1.36 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 9.07 ns 9.00 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 9.14 ns 9.00 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.274 ns 0.342 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 3.02 % 3.80 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 12.6 ns 12.6 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 12.6 ns 12.7 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.121 ns 0.267 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 0.96 % 2.12 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 12.5 ns 12.6 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 12.5 ns 12.6 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.075 ns 0.000 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 0.60 % 0.00 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 12.9 ns 12.9 ns 4 lstringa<512> copy{str_with_len_N};/128_median 12.9 ns 12.8 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.377 ns 0.419 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 2.91 % 3.24 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 13.8 ns 13.8 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 13.8 ns 13.8 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.353 ns 0.362 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.57 % 2.62 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 15.3 ns 15.3 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 15.3 ns 15.3 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.105 ns 0.174 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 0.69 % 1.14 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 95.2 ns 95.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 95.1 ns 95.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 2.03 ns 2.70 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.13 % 2.84 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 129 ns 128 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 129 ns 128 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 3.04 ns 2.28 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 2.37 % 1.77 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 195 ns 194 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 194 ns 193 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 7.18 ns 8.34 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 3.69 % 4.30 % 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.117 ns 0.140 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 0.91 % 1.08 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 14.0 ns 14.0 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 14.0 ns 14.0 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.180 ns 0.140 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 1.28 % 1.00 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 15.7 ns 15.6 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 15.6 ns 15.3 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.330 ns 0.575 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 2.10 % 3.68 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 95.0 ns 95.2 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 94.7 ns 95.2 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 1.84 ns 2.70 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 1.93 % 2.84 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 128 ns 127 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 128 ns 127 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 3.74 ns 4.83 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.93 % 3.81 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 193 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 1.56 ns 2.09 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 0.81 % 1.08 % 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 34.4 ns 34.3 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 35.0 ns 34.9 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.74 ns 2.02 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 5.07 % 5.88 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.6 ns 12.6 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.8 ns 12.7 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.558 ns 0.603 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 4.44 % 4.80 % 4 -stringa s = "123456789"; int res = s.to_int_mean 17.7 ns 17.6 ns 4 -stringa s = "123456789"; int res = s.to_int_median 17.7 ns 17.6 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.527 ns 0.443 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 2.98 % 2.51 % 4 -ssa s = "123456789"; int res = s.to_int_mean 16.3 ns 16.3 ns 4 -ssa s = "123456789"; int res = s.to_int_median 16.2 ns 16.4 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.778 ns 0.773 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 4.77 % 4.74 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 14.8 ns 14.8 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 14.8 ns 14.8 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.247 ns 0.495 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 1.68 % 3.35 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.9 ns 31.9 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.9 ns 31.7 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.552 ns 0.668 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.73 % 2.09 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.8 ns 11.8 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.8 ns 11.7 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.239 ns 0.140 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.02 % 1.18 % 4 +stringa s = "123456789"; int res = s.to_int_mean 16.8 ns 16.7 ns 4 +stringa s = "123456789"; int res = s.to_int_median 16.8 ns 16.7 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.164 ns 0.222 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 0.98 % 1.33 % 4 +ssa s = "123456789"; int res = s.to_int_mean 15.6 ns 15.5 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.378 ns 0.201 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 2.43 % 1.30 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 14.8 ns 14.6 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 14.8 ns 14.6 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.360 ns 0.174 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 2.43 % 1.20 % 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 34.5 ns 34.6 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 34.7 ns 34.4 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.888 ns 0.922 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.57 % 2.66 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.74 ns 8.76 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.68 ns 8.72 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.177 ns 0.087 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.02 % 1.00 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 14.2 ns 14.2 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 14.1 ns 14.2 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.191 ns 0.228 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 1.35 % 1.60 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 13.1 ns 13.1 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 13.1 ns 13.1 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.084 ns 0.000 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 0.64 % 0.00 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 12.5 ns 12.5 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 12.4 ns 12.3 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.430 ns 0.462 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 3.43 % 3.69 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 35.5 ns 35.5 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 35.4 ns 35.7 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.552 ns 0.768 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.55 % 2.16 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.96 ns 9.00 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.95 ns 9.00 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.173 ns 0.242 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.93 % 2.69 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 14.5 ns 14.5 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 14.5 ns 14.6 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.173 ns 0.301 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.20 % 2.07 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 13.3 ns 13.3 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 13.4 ns 13.3 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.191 ns 0.267 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.43 % 2.01 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 12.7 ns 12.6 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 12.6 ns 12.6 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.165 ns 0.140 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.30 % 1.10 % 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.5 ns 45.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.8 ns 45.5 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.25 ns 1.01 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.76 % 2.25 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 22.0 ns 21.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 21.9 ns 22.0 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.240 ns 0.244 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.09 % 1.12 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 18.7 ns 18.6 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 18.7 ns 18.6 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.123 ns 0.242 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 0.66 % 1.30 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 45.6 ns 45.3 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 45.6 ns 45.5 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.831 ns 1.00 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.82 % 2.21 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 22.4 ns 22.2 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 22.4 ns 22.2 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.187 ns 0.302 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.84 % 1.36 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 19.1 ns 19.1 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 19.1 ns 19.3 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.164 ns 0.209 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 0.86 % 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 99.9 ns 99.4 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 100 ns 99.4 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.755 ns 1.21 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 0.76 % 1.22 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 85.0 ns 85.0 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 85.2 ns 85.4 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.06 ns 2.62 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.25 % 3.08 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 37.0 ns 36.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 37.2 ns 36.9 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.515 ns 0.655 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.39 % 1.77 % 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 103 ns 103 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.220 ns 0.000 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 0.21 % 0.00 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 82.7 ns 82.0 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 83.0 ns 82.0 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.72 ns 2.01 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 2.08 % 2.46 % 4 +ssa s = "1234.567e10"; double res = *s.to_double()_mean 37.7 ns 37.8 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 37.7 ns 37.6 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.248 ns 0.384 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 0.66 % 1.02 % 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 5668 ns 5685 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 5689 ns 5720 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 158 ns 209 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.79 % 3.68 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1286 ns 1290 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1286 ns 1283 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 29.6 ns 41.9 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 2.30 % 3.24 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 929 ns 926 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 923 ns 921 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 14.9 ns 10.5 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.60 % 1.13 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 539 ns 537 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 538 ns 537 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 12.8 ns 18.0 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.37 % 3.35 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 350 ns 349 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 350 ns 353 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 8.11 ns 7.67 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.31 % 2.20 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 227 ns 226 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 227 ns 225 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.56 ns 2.62 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.69 % 1.16 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 5722 ns 5685 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 5712 ns 5650 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 62.9 ns 134 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.10 % 2.35 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 1306 ns 1295 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 1306 ns 1303 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 20.8 ns 30.1 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 1.60 % 2.32 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 914 ns 905 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 917 ns 910 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 13.5 ns 20.0 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.48 % 2.21 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 542 ns 539 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 537 ns 539 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 12.9 ns 9.02 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.38 % 1.67 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 364 ns 361 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 366 ns 361 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 6.93 ns 6.26 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 1.90 % 1.74 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 230 ns 229 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 231 ns 229 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 5.37 ns 3.99 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.34 % 1.74 % 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 5590 ns 5586 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5588 ns 5547 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 49.6 ns 150 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 0.89 % 2.68 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3966 ns 3951 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3937 ns 3971 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 146 ns 165 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.68 % 4.19 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 829 ns 824 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 828 ns 828 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 16.4 ns 16.7 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.98 % 2.03 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 5665 ns 5580 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5665 ns 5580 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 178 ns 255 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.15 % 4.56 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3902 ns 3902 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3908 ns 3880 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 74.9 ns 83.5 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.92 % 2.14 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 822 ns 820 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 822 ns 820 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 13.8 ns 20.1 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.68 % 2.46 % 4 lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 535 ns 535 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 540 ns 539 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.6 ns 15.0 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.73 % 2.80 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 377 ns 375 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 377 ns 377 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 9.05 ns 12.0 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.40 % 3.21 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 281 ns 278 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 281 ns 275 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.89 ns 9.37 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.46 % 3.37 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 535 ns 531 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 10.9 ns 7.81 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.03 % 1.46 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 377 ns 377 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 376 ns 377 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 5.35 ns 6.83 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.42 % 1.81 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 286 ns 285 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 285 ns 285 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.20 ns 5.41 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.12 % 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 287657 ns 287595 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 289098 ns 287595 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4494 ns 3424 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.56 % 1.19 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 196942 ns 196725 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 197261 ns 196725 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3705 ns 3418 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.88 % 1.74 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 26361 ns 26367 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 26402 ns 26507 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 432 ns 534 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.64 % 2.03 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23270 ns 23071 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23114 ns 22949 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 567 ns 614 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.44 % 2.66 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21890 ns 21763 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21824 ns 21536 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 503 ns 641 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.30 % 2.95 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22257 ns 22217 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22271 ns 22217 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 384 ns 282 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.73 % 1.27 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 295560 ns 295048 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 291197 ns 288771 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 13899 ns 17000 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 4.70 % 5.76 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 199734 ns 194972 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 200341 ns 194972 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4028 ns 3702 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.02 % 1.90 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 25221 ns 25251 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 25305 ns 25391 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 392 ns 534 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.55 % 2.12 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23191 ns 23123 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23387 ns 23350 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 674 ns 641 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.90 % 2.77 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21887 ns 21711 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21799 ns 21711 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 298 ns 302 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.36 % 1.39 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22577 ns 22496 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22602 ns 22496 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 279 ns 0.000 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.24 % 0.00 % 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 5535 ns 5511 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 5520 ns 5441 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 187 ns 267 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 3.38 % 4.85 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 4014 ns 4018 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 4004 ns 4018 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 64.9 ns 68.3 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 1.62 % 1.70 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 924 ns 909 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 924 ns 916 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 34.1 ns 23.4 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.69 % 2.57 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 607 ns 609 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 607 ns 609 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 1.96 ns 0.000 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 0.32 % 0.00 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 471 ns 471 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 470 ns 471 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.67 ns 12.1 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.84 % 2.57 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 355 ns 353 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 356 ns 353 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.84 ns 0.000 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.36 % 0.00 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 5538 ns 5547 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 5547 ns 5547 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 115 ns 90.2 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 2.08 % 1.63 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 4019 ns 4013 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 4019 ns 3990 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 40.6 ns 45.3 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 1.01 % 1.13 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 900 ns 902 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 900 ns 907 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 17.6 ns 8.72 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.95 % 0.97 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 641 ns 638 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 644 ns 642 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 8.08 ns 6.98 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.26 % 1.09 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 482 ns 476 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 478 ns 476 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.41 ns 8.83 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.75 % 1.86 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 365 ns 365 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 366 ns 365 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 5.82 ns 4.63 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.59 % 1.27 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 11311 ns 11292 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 11176 ns 11230 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 302 ns 122 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 2.67 % 1.08 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1258 ns 1263 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1262 ns 1282 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 37.8 ns 46.2 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.00 % 3.66 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2797 ns 2778 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2801 ns 2762 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 85.5 ns 94.2 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.06 % 3.39 % 4 -std::string str = std::format("test = {} times", k);_mean 2370 ns 2341 ns 4 -std::string str = std::format("test = {} times", k);_median 2368 ns 2354 ns 4 -std::string str = std::format("test = {} times", k);_stddev 39.7 ns 26.2 ns 4 -std::string str = std::format("test = {} times", k);_cv 1.67 % 1.12 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2624 ns 2623 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2611 ns 2623 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 64.1 ns 91.1 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.44 % 3.47 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1513 ns 1508 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1512 ns 1500 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 9.49 ns 17.4 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 0.63 % 1.16 % 4 -lstringa<8> str = "test = " + k + " times";_mean 877 ns 874 ns 4 -lstringa<8> str = "test = " + k + " times";_median 878 ns 879 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 10.8 ns 10.5 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.24 % 1.20 % 4 -lstringa<32> str = "test = " + k + " times";_mean 171 ns 170 ns 4 -lstringa<32> str = "test = " + k + " times";_median 171 ns 169 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 1.50 ns 1.92 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 0.88 % 1.13 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 11725 ns 11719 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 11720 ns 11719 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 134 ns 199 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 1.14 % 1.70 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1226 ns 1228 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1223 ns 1228 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 27.1 ns 32.2 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 2.21 % 2.62 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2815 ns 2802 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2819 ns 2787 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 70.6 ns 74.6 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.51 % 2.66 % 4 +std::string str = std::format("test = {} times", k);_mean 2391 ns 2367 ns 4 +std::string str = std::format("test = {} times", k);_median 2379 ns 2354 ns 4 +std::string str = std::format("test = {} times", k);_stddev 26.5 ns 65.8 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.11 % 2.78 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 2677 ns 2653 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 2681 ns 2668 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 35.4 ns 88.9 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 1.32 % 3.35 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 1480 ns 1483 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 1477 ns 1475 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 14.2 ns 15.7 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 0.96 % 1.06 % 4 +lstringa<8> str = "test = " + k + " times";_mean 890 ns 889 ns 4 +lstringa<8> str = "test = " + k + " times";_median 891 ns 889 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 14.0 ns 14.2 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 1.58 % 1.60 % 4 +lstringa<32> str = "test = " + k + " times";_mean 180 ns 179 ns 4 +lstringa<32> str = "test = " + k + " times";_median 180 ns 180 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 3.64 ns 4.83 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 2.02 % 2.69 % 4 stringa str = "test = " + k + " times";_mean 172 ns 170 ns 4 -stringa str = "test = " + k + " times";_median 170 ns 167 ns 4 -stringa str = "test = " + k + " times";_stddev 6.14 ns 7.26 ns 4 -stringa str = "test = " + k + " times";_cv 3.57 % 4.28 % 4 +stringa str = "test = " + k + " times";_median 172 ns 170 ns 4 +stringa str = "test = " + k + " times";_stddev 2.25 ns 2.42 ns 4 +stringa str = "test = " + k + " times";_cv 1.31 % 1.43 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 555 ns 555 ns 4 -std::string::find + substr + std::strtol_median 551 ns 555 ns 4 -std::string::find + substr + std::strtol_stddev 15.3 ns 20.2 ns 4 -std::string::find + substr + std::strtol_cv 2.75 % 3.64 % 4 -ssa::splitter + ssa::as_int_mean 306 ns 306 ns 4 -ssa::splitter + ssa::as_int_median 306 ns 308 ns 4 -ssa::splitter + ssa::as_int_stddev 5.10 ns 6.34 ns 4 -ssa::splitter + ssa::as_int_cv 1.67 % 2.07 % 4 -ssa::splitf + functor_mean 212 ns 212 ns 4 -ssa::splitf + functor_median 212 ns 212 ns 4 -ssa::splitf + functor_stddev 3.09 ns 2.82 ns 4 -ssa::splitf + functor_cv 1.46 % 1.33 % 4 +std::string::find + substr + std::strtol_mean 573 ns 570 ns 4 +std::string::find + substr + std::strtol_median 566 ns 570 ns 4 +std::string::find + substr + std::strtol_stddev 23.5 ns 32.5 ns 4 +std::string::find + substr + std::strtol_cv 4.09 % 5.70 % 4 +ssa::splitter + ssa::as_int_mean 304 ns 303 ns 4 +ssa::splitter + ssa::as_int_median 304 ns 303 ns 4 +ssa::splitter + ssa::as_int_stddev 5.71 ns 9.01 ns 4 +ssa::splitter + ssa::as_int_cv 1.88 % 2.97 % 4 +ssa::splitf + functor_mean 218 ns 216 ns 4 +ssa::splitf + functor_median 218 ns 215 ns 4 +ssa::splitf + functor_stddev 4.32 ns 6.14 ns 4 +ssa::splitf + functor_cv 1.98 % 2.84 % 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 1249 ns 1242 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1243 ns 1242 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 25.7 ns 16.1 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 2.06 % 1.30 % 4 -replace symbols with std::string find_first_of + replace_mean 2111 ns 2112 ns 4 -replace symbols with std::string find_first_of + replace_median 2120 ns 2124 ns 4 -replace symbols with std::string find_first_of + replace_stddev 40.3 ns 46.7 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.91 % 2.21 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2522 ns 2524 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2532 ns 2537 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 62.3 ns 89.3 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 2.47 % 3.54 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1682 ns 1683 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1674 ns 1674 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 42.2 ns 43.9 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 2.51 % 2.61 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1470 ns 1467 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1477 ns 1475 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 36.7 ns 39.5 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.50 % 2.69 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1271 ns 1270 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1267 ns 1270 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 16.4 ns 16.1 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.29 % 1.27 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1209 ns 1208 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1212 ns 1208 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 45.2 ns 50.8 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 3.74 % 4.21 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 1206 ns 1207 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 1198 ns 1200 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 33.2 ns 35.1 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 2.76 % 2.91 % 4 +replace symbols with std::string find_first_of + replace_mean 2200 ns 2197 ns 4 +replace symbols with std::string find_first_of + replace_median 2200 ns 2197 ns 4 +replace symbols with std::string find_first_of + replace_stddev 7.02 ns 0.000 ns 4 +replace symbols with std::string find_first_of + replace_cv 0.32 % 0.00 % 4 +replace symbols with std::string_view find_first_of + copy_mean 2544 ns 2520 ns 4 +replace symbols with std::string_view find_first_of + copy_median 2549 ns 2520 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 15.3 ns 76.5 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 0.60 % 3.04 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 1663 ns 1659 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 1668 ns 1650 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 23.0 ns 19.2 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 1.38 % 1.16 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 1442 ns 1444 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 1435 ns 1444 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 18.5 ns 25.6 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 1.28 % 1.77 % 4 +replace const symbols with string expressions and without remembering all search results_mean 1293 ns 1283 ns 4 +replace const symbols with string expressions and without remembering all search results_median 1299 ns 1283 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 18.4 ns 22.8 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 1.43 % 1.77 % 4 +replace const symbols with string expressions and memorization of all search results_mean 1213 ns 1214 ns 4 +replace const symbols with string expressions and memorization of all search results_median 1201 ns 1200 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 28.8 ns 27.9 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 2.37 % 2.30 % 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 327 ns 326 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 328 ns 326 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.16 ns 9.46 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.88 % 2.90 % 4 -Short replace symbols with std::string find_first_of + replace_mean 407 ns 408 ns 4 -Short replace symbols with std::string find_first_of + replace_median 409 ns 410 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 10.7 ns 16.5 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 2.63 % 4.04 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 339 ns 338 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 335 ns 334 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 11.6 ns 10.9 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 3.42 % 3.21 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 309 ns 308 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 308 ns 308 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 10.7 ns 11.5 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.47 % 3.72 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 387 ns 388 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 385 ns 388 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 4.16 ns 5.03 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 1.07 % 1.30 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 250 ns 251 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 250 ns 252 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 4.69 ns 5.68 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.87 % 2.27 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 363 ns 364 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 353 ns 356 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 33.0 ns 32.4 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 9.09 % 8.90 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 328 ns 324 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 331 ns 326 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.41 ns 7.01 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.95 % 2.16 % 4 +Short replace symbols with std::string find_first_of + replace_mean 420 ns 422 ns 4 +Short replace symbols with std::string find_first_of + replace_median 417 ns 422 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 5.55 ns 11.7 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 1.32 % 2.78 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 333 ns 332 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 333 ns 330 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 3.60 ns 3.84 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 1.08 % 1.16 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 310 ns 308 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 309 ns 308 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 3.87 ns 3.83 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 1.25 % 1.24 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 401 ns 399 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 399 ns 397 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 9.40 ns 8.35 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 2.35 % 2.09 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 254 ns 254 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 252 ns 251 ns 4 +Short replace const symbols with string expressions and without remembering all search results_stddev 6.10 ns 9.06 ns 4 +Short replace const symbols with string expressions and without remembering all search results_cv 2.40 % 3.57 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 334 ns 335 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 333 ns 337 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 2.88 ns 3.66 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 0.86 % 1.09 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 239 ns 237 ns 4 -replace bb to ---- in std::string|64_median 237 ns 233 ns 4 -replace bb to ---- in std::string|64_stddev 10.1 ns 13.8 ns 4 -replace bb to ---- in std::string|64_cv 4.24 % 5.81 % 4 -replace bb to ---- in std::string|256_mean 755 ns 759 ns 4 -replace bb to ---- in std::string|256_median 755 ns 759 ns 4 -replace bb to ---- in std::string|256_stddev 4.49 ns 10.1 ns 4 -replace bb to ---- in std::string|256_cv 0.59 % 1.33 % 4 -replace bb to ---- in std::string|512_mean 1467 ns 1472 ns 4 -replace bb to ---- in std::string|512_median 1477 ns 1479 ns 4 -replace bb to ---- in std::string|512_stddev 40.7 ns 41.9 ns 4 -replace bb to ---- in std::string|512_cv 2.78 % 2.84 % 4 -replace bb to ---- in std::string|1024_mean 3081 ns 3069 ns 4 -replace bb to ---- in std::string|1024_median 3092 ns 3069 ns 4 -replace bb to ---- in std::string|1024_stddev 92.5 ns 57.0 ns 4 -replace bb to ---- in std::string|1024_cv 3.00 % 1.86 % 4 -replace bb to ---- in std::string|2048_mean 7858 ns 7847 ns 4 -replace bb to ---- in std::string|2048_median 7864 ns 7847 ns 4 -replace bb to ---- in std::string|2048_stddev 27.0 ns 0.000 ns 4 -replace bb to ---- in std::string|2048_cv 0.34 % 0.00 % 4 -replace bb to ---- in lstringa<8>|64_mean 231 ns 229 ns 4 -replace bb to ---- in lstringa<8>|64_median 233 ns 234 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 4.75 ns 9.77 ns 4 -replace bb to ---- in lstringa<8>|64_cv 2.05 % 4.26 % 4 -replace bb to ---- in lstringa<8>|256_mean 653 ns 652 ns 4 -replace bb to ---- in lstringa<8>|256_median 655 ns 656 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 5.12 ns 6.98 ns 4 -replace bb to ---- in lstringa<8>|256_cv 0.78 % 1.07 % 4 -replace bb to ---- in lstringa<8>|512_mean 1115 ns 1117 ns 4 -replace bb to ---- in lstringa<8>|512_median 1117 ns 1111 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 19.9 ns 23.4 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.78 % 2.09 % 4 -replace bb to ---- in lstringa<8>|1024_mean 2048 ns 2039 ns 4 -replace bb to ---- in lstringa<8>|1024_median 2051 ns 2051 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 15.3 ns 24.4 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 0.75 % 1.20 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3807 ns 3815 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3826 ns 3793 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 58.0 ns 83.5 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 1.52 % 2.19 % 4 -replace bb to ---- by init stringa|64_mean 197 ns 197 ns 4 -replace bb to ---- by init stringa|64_median 199 ns 199 ns 4 -replace bb to ---- by init stringa|64_stddev 6.03 ns 5.92 ns 4 -replace bb to ---- by init stringa|64_cv 3.06 % 3.01 % 4 -replace bb to ---- by init stringa|256_mean 448 ns 448 ns 4 -replace bb to ---- by init stringa|256_median 449 ns 445 ns 4 -replace bb to ---- by init stringa|256_stddev 5.06 ns 5.06 ns 4 -replace bb to ---- by init stringa|256_cv 1.13 % 1.13 % 4 -replace bb to ---- by init stringa|512_mean 1049 ns 1044 ns 4 -replace bb to ---- by init stringa|512_median 1049 ns 1038 ns 4 -replace bb to ---- by init stringa|512_stddev 11.9 ns 23.4 ns 4 -replace bb to ---- by init stringa|512_cv 1.14 % 2.24 % 4 -replace bb to ---- by init stringa|1024_mean 2172 ns 2184 ns 4 -replace bb to ---- by init stringa|1024_median 2165 ns 2171 ns 4 -replace bb to ---- by init stringa|1024_stddev 32.6 ns 50.1 ns 4 -replace bb to ---- by init stringa|1024_cv 1.50 % 2.29 % 4 -replace bb to ---- by init stringa|2048_mean 4373 ns 4374 ns 4 -replace bb to ---- by init stringa|2048_median 4358 ns 4400 ns 4 -replace bb to ---- by init stringa|2048_stddev 39.9 ns 96.8 ns 4 -replace bb to ---- by init stringa|2048_cv 0.91 % 2.21 % 4 +replace bb to ---- in std::string|64_mean 242 ns 243 ns 4 +replace bb to ---- in std::string|64_median 242 ns 243 ns 4 +replace bb to ---- in std::string|64_stddev 2.02 ns 0.000 ns 4 +replace bb to ---- in std::string|64_cv 0.83 % 0.00 % 4 +replace bb to ---- in std::string|256_mean 791 ns 793 ns 4 +replace bb to ---- in std::string|256_median 792 ns 793 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.27 % 1.27 % 4 +replace bb to ---- in std::string|512_mean 1464 ns 1460 ns 4 +replace bb to ---- in std::string|512_median 1469 ns 1460 ns 4 +replace bb to ---- in std::string|512_stddev 13.2 ns 18.1 ns 4 +replace bb to ---- in std::string|512_cv 0.90 % 1.24 % 4 +replace bb to ---- in std::string|1024_mean 3204 ns 3209 ns 4 +replace bb to ---- in std::string|1024_median 3216 ns 3209 ns 4 +replace bb to ---- in std::string|1024_stddev 60.8 ns 57.0 ns 4 +replace bb to ---- in std::string|1024_cv 1.90 % 1.77 % 4 +replace bb to ---- in std::string|2048_mean 8080 ns 8057 ns 4 +replace bb to ---- in std::string|2048_median 8073 ns 8057 ns 4 +replace bb to ---- in std::string|2048_stddev 177 ns 270 ns 4 +replace bb to ---- in std::string|2048_cv 2.19 % 3.35 % 4 +replace bb to ---- in lstringa<8>|64_mean 225 ns 224 ns 4 +replace bb to ---- in lstringa<8>|64_median 224 ns 220 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 7.34 ns 7.85 ns 4 +replace bb to ---- in lstringa<8>|64_cv 3.26 % 3.51 % 4 +replace bb to ---- in lstringa<8>|256_mean 655 ns 649 ns 4 +replace bb to ---- in lstringa<8>|256_median 653 ns 649 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 10.5 ns 8.05 ns 4 +replace bb to ---- in lstringa<8>|256_cv 1.60 % 1.24 % 4 +replace bb to ---- in lstringa<8>|512_mean 1124 ns 1123 ns 4 +replace bb to ---- in lstringa<8>|512_median 1124 ns 1123 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 20.7 ns 19.9 ns 4 +replace bb to ---- in lstringa<8>|512_cv 1.85 % 1.77 % 4 +replace bb to ---- in lstringa<8>|1024_mean 2038 ns 2040 ns 4 +replace bb to ---- in lstringa<8>|1024_median 2043 ns 2063 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 39.0 ns 64.1 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 1.91 % 3.14 % 4 +replace bb to ---- in lstringa<8>|2048_mean 3964 ns 3899 ns 4 +replace bb to ---- in lstringa<8>|2048_median 3929 ns 3899 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 127 ns 74.0 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 3.21 % 1.90 % 4 +replace bb to ---- by init stringa|64_mean 196 ns 196 ns 4 +replace bb to ---- by init stringa|64_median 198 ns 197 ns 4 +replace bb to ---- by init stringa|64_stddev 4.79 ns 5.27 ns 4 +replace bb to ---- by init stringa|64_cv 2.44 % 2.69 % 4 +replace bb to ---- by init stringa|256_mean 456 ns 453 ns 4 +replace bb to ---- by init stringa|256_median 454 ns 455 ns 4 +replace bb to ---- by init stringa|256_stddev 12.3 ns 10.0 ns 4 +replace bb to ---- by init stringa|256_cv 2.71 % 2.21 % 4 +replace bb to ---- by init stringa|512_mean 1064 ns 1057 ns 4 +replace bb to ---- by init stringa|512_median 1056 ns 1057 ns 4 +replace bb to ---- by init stringa|512_stddev 18.6 ns 12.1 ns 4 +replace bb to ---- by init stringa|512_cv 1.75 % 1.14 % 4 +replace bb to ---- by init stringa|1024_mean 2161 ns 2148 ns 4 +replace bb to ---- by init stringa|1024_median 2146 ns 2148 ns 4 +replace bb to ---- by init stringa|1024_stddev 37.6 ns 0.000 ns 4 +replace bb to ---- by init stringa|1024_cv 1.74 % 0.00 % 4 +replace bb to ---- by init stringa|2048_mean 4481 ns 4476 ns 4 +replace bb to ---- by init stringa|2048_median 4468 ns 4501 ns 4 +replace bb to ---- by init stringa|2048_stddev 83.1 ns 96.8 ns 4 +replace bb to ---- by init stringa|2048_cv 1.86 % 2.16 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 196 ns 197 ns 4 -replace bb to -- in std::string|64_median 198 ns 198 ns 4 -replace bb to -- in std::string|64_stddev 5.36 ns 3.67 ns 4 -replace bb to -- in std::string|64_cv 2.73 % 1.87 % 4 -replace bb to -- in std::string|256_mean 503 ns 502 ns 4 -replace bb to -- in std::string|256_median 504 ns 502 ns 4 -replace bb to -- in std::string|256_stddev 4.40 ns 0.000 ns 4 -replace bb to -- in std::string|256_cv 0.88 % 0.00 % 4 -replace bb to -- in std::string|512_mean 898 ns 900 ns 4 -replace bb to -- in std::string|512_median 896 ns 900 ns 4 -replace bb to -- in std::string|512_stddev 10.5 ns 0.000 ns 4 -replace bb to -- in std::string|512_cv 1.17 % 0.00 % 4 -replace bb to -- in std::string|1024_mean 1731 ns 1717 ns 4 -replace bb to -- in std::string|1024_median 1739 ns 1726 ns 4 -replace bb to -- in std::string|1024_stddev 37.2 ns 48.3 ns 4 -replace bb to -- in std::string|1024_cv 2.15 % 2.81 % 4 -replace bb to -- in std::string|2048_mean 3433 ns 3414 ns 4 -replace bb to -- in std::string|2048_median 3446 ns 3453 ns 4 -replace bb to -- in std::string|2048_stddev 35.2 ns 76.7 ns 4 -replace bb to -- in std::string|2048_cv 1.02 % 2.25 % 4 -replace bb to -- in lstringa<8>|64_mean 185 ns 185 ns 4 -replace bb to -- in lstringa<8>|64_median 185 ns 186 ns 4 -replace bb to -- in lstringa<8>|64_stddev 3.26 ns 4.01 ns 4 -replace bb to -- in lstringa<8>|64_cv 1.76 % 2.16 % 4 -replace bb to -- in lstringa<8>|256_mean 442 ns 442 ns 4 -replace bb to -- in lstringa<8>|256_median 442 ns 444 ns 4 -replace bb to -- in lstringa<8>|256_stddev 7.93 ns 9.35 ns 4 -replace bb to -- in lstringa<8>|256_cv 1.79 % 2.12 % 4 -replace bb to -- in lstringa<8>|512_mean 765 ns 759 ns 4 -replace bb to -- in lstringa<8>|512_median 763 ns 759 ns 4 -replace bb to -- in lstringa<8>|512_stddev 18.5 ns 22.5 ns 4 -replace bb to -- in lstringa<8>|512_cv 2.42 % 2.97 % 4 -replace bb to -- in lstringa<8>|1024_mean 1447 ns 1439 ns 4 -replace bb to -- in lstringa<8>|1024_median 1434 ns 1430 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 47.0 ns 43.9 ns 4 -replace bb to -- in lstringa<8>|1024_cv 3.24 % 3.05 % 4 -replace bb to -- in lstringa<8>|2048_mean 2826 ns 2841 ns 4 -replace bb to -- in lstringa<8>|2048_median 2809 ns 2825 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 71.6 ns 94.2 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.53 % 3.31 % 4 -replace bb to -- by init stringa|64_mean 163 ns 163 ns 4 -replace bb to -- by init stringa|64_median 163 ns 161 ns 4 -replace bb to -- by init stringa|64_stddev 3.63 ns 5.12 ns 4 -replace bb to -- by init stringa|64_cv 2.22 % 3.14 % 4 -replace bb to -- by init stringa|256_mean 373 ns 375 ns 4 -replace bb to -- by init stringa|256_median 373 ns 373 ns 4 -replace bb to -- by init stringa|256_stddev 4.20 ns 7.68 ns 4 -replace bb to -- by init stringa|256_cv 1.12 % 2.05 % 4 -replace bb to -- by init stringa|512_mean 620 ns 621 ns 4 -replace bb to -- by init stringa|512_median 619 ns 621 ns 4 -replace bb to -- by init stringa|512_stddev 14.8 ns 18.0 ns 4 -replace bb to -- by init stringa|512_cv 2.39 % 2.90 % 4 -replace bb to -- by init stringa|1024_mean 1101 ns 1104 ns 4 -replace bb to -- by init stringa|1024_median 1097 ns 1099 ns 4 -replace bb to -- by init stringa|1024_stddev 18.7 ns 20.0 ns 4 -replace bb to -- by init stringa|1024_cv 1.70 % 1.82 % 4 -replace bb to -- by init stringa|2048_mean 2114 ns 2097 ns 4 -replace bb to -- by init stringa|2048_median 2100 ns 2063 ns 4 -replace bb to -- by init stringa|2048_stddev 59.2 ns 85.8 ns 4 -replace bb to -- by init stringa|2048_cv 2.80 % 4.09 % 4 +replace bb to -- in std::string|64_mean 198 ns 198 ns 4 +replace bb to -- in std::string|64_median 196 ns 195 ns 4 +replace bb to -- in std::string|64_stddev 7.58 ns 9.35 ns 4 +replace bb to -- in std::string|64_cv 3.84 % 4.73 % 4 +replace bb to -- in std::string|256_mean 520 ns 520 ns 4 +replace bb to -- in std::string|256_median 517 ns 516 ns 4 +replace bb to -- in std::string|256_stddev 13.7 ns 17.6 ns 4 +replace bb to -- in std::string|256_cv 2.64 % 3.38 % 4 +replace bb to -- in std::string|512_mean 928 ns 921 ns 4 +replace bb to -- in std::string|512_median 924 ns 921 ns 4 +replace bb to -- in std::string|512_stddev 14.1 ns 17.1 ns 4 +replace bb to -- in std::string|512_cv 1.52 % 1.86 % 4 +replace bb to -- in std::string|1024_mean 1750 ns 1755 ns 4 +replace bb to -- in std::string|1024_median 1751 ns 1746 ns 4 +replace bb to -- in std::string|1024_stddev 33.9 ns 36.7 ns 4 +replace bb to -- in std::string|1024_cv 1.94 % 2.09 % 4 +replace bb to -- in std::string|2048_mean 3402 ns 3395 ns 4 +replace bb to -- in std::string|2048_median 3388 ns 3376 ns 4 +replace bb to -- in std::string|2048_stddev 44.1 ns 38.4 ns 4 +replace bb to -- in std::string|2048_cv 1.30 % 1.13 % 4 +replace bb to -- in lstringa<8>|64_mean 186 ns 185 ns 4 +replace bb to -- in lstringa<8>|64_median 185 ns 184 ns 4 +replace bb to -- in lstringa<8>|64_stddev 2.11 ns 5.27 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.13 % 2.84 % 4 +replace bb to -- in lstringa<8>|256_mean 442 ns 432 ns 4 +replace bb to -- in lstringa<8>|256_median 442 ns 435 ns 4 +replace bb to -- in lstringa<8>|256_stddev 4.20 ns 9.35 ns 4 +replace bb to -- in lstringa<8>|256_cv 0.95 % 2.16 % 4 +replace bb to -- in lstringa<8>|512_mean 771 ns 767 ns 4 +replace bb to -- in lstringa<8>|512_median 772 ns 767 ns 4 +replace bb to -- in lstringa<8>|512_stddev 8.00 ns 14.2 ns 4 +replace bb to -- in lstringa<8>|512_cv 1.04 % 1.86 % 4 +replace bb to -- in lstringa<8>|1024_mean 1457 ns 1456 ns 4 +replace bb to -- in lstringa<8>|1024_median 1454 ns 1465 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 11.9 ns 17.4 ns 4 +replace bb to -- in lstringa<8>|1024_cv 0.82 % 1.20 % 4 +replace bb to -- in lstringa<8>|2048_mean 2800 ns 2802 ns 4 +replace bb to -- in lstringa<8>|2048_median 2804 ns 2816 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 36.9 ns 56.8 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.32 % 2.03 % 4 +replace bb to -- by init stringa|64_mean 165 ns 163 ns 4 +replace bb to -- by init stringa|64_median 164 ns 164 ns 4 +replace bb to -- by init stringa|64_stddev 0.342 ns 1.74 ns 4 +replace bb to -- by init stringa|64_cv 0.21 % 1.07 % 4 +replace bb to -- by init stringa|256_mean 367 ns 366 ns 4 +replace bb to -- by init stringa|256_median 369 ns 368 ns 4 +replace bb to -- by init stringa|256_stddev 3.87 ns 4.19 ns 4 +replace bb to -- by init stringa|256_cv 1.05 % 1.14 % 4 +replace bb to -- by init stringa|512_mean 632 ns 628 ns 4 +replace bb to -- by init stringa|512_median 625 ns 621 ns 4 +replace bb to -- by init stringa|512_stddev 20.0 ns 19.7 ns 4 +replace bb to -- by init stringa|512_cv 3.16 % 3.14 % 4 +replace bb to -- by init stringa|1024_mean 1108 ns 1111 ns 4 +replace bb to -- by init stringa|1024_median 1113 ns 1123 ns 4 +replace bb to -- by init stringa|1024_stddev 17.8 ns 24.4 ns 4 +replace bb to -- by init stringa|1024_cv 1.61 % 2.20 % 4 +replace bb to -- by init stringa|2048_mean 2118 ns 2120 ns 4 +replace bb to -- by init stringa|2048_median 2129 ns 2131 ns 4 +replace bb to -- by init stringa|2048_stddev 52.1 ns 57.1 ns 4 +replace bb to -- by init stringa|2048_cv 2.46 % 2.69 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 4373144 ns 4370117 ns 4 -hashStrMapA emplace & find stringa;_median 4344827 ns 4394531 ns 4 -hashStrMapA emplace & find stringa;_stddev 67271 ns 48828 ns 4 -hashStrMapA emplace & find stringa;_cv 1.54 % 1.12 % 4 -std::unordered_map emplace & find std::string;_mean 5795906 ns 5789621 ns 4 -std::unordered_map emplace & find std::string;_median 5739451 ns 5719866 ns 4 -std::unordered_map emplace & find std::string;_stddev 137198 ns 139509 ns 4 -std::unordered_map emplace & find std::string;_cv 2.37 % 2.41 % 4 -hashStrMapA emplace & find ssa;_mean 3917153 ns 3906250 ns 4 -hashStrMapA emplace & find ssa;_median 3909701 ns 3884427 ns 4 -hashStrMapA emplace & find ssa;_stddev 89050 ns 83574 ns 4 -hashStrMapA emplace & find ssa;_cv 2.27 % 2.14 % 4 -std::unordered_map emplace & find std::string_view;_mean 6341143 ns 6367188 ns 4 -std::unordered_map emplace & find std::string_view;_median 6355890 ns 6328125 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 140221 ns 149598 ns 4 -std::unordered_map emplace & find std::string_view;_cv 2.21 % 2.35 % 4 +hashStrMapA emplace & find stringa;_mean 4479657 ns 4464286 ns 4 +hashStrMapA emplace & find stringa;_median 4475352 ns 4464286 ns 4 +hashStrMapA emplace & find stringa;_stddev 66831 ns 82843 ns 4 +hashStrMapA emplace & find stringa;_cv 1.49 % 1.86 % 4 +std::unordered_map emplace & find std::string;_mean 6065832 ns 6054688 ns 4 +std::unordered_map emplace & find std::string;_median 6124586 ns 6171875 ns 4 +std::unordered_map emplace & find std::string;_stddev 197357 ns 295776 ns 4 +std::unordered_map emplace & find std::string;_cv 3.25 % 4.89 % 4 +hashStrMapA emplace & find ssa;_mean 4127357 ns 4110647 ns 4 +hashStrMapA emplace & find ssa;_median 4151725 ns 4133358 ns 4 +hashStrMapA emplace & find ssa;_stddev 108956 ns 86976 ns 4 +hashStrMapA emplace & find ssa;_cv 2.64 % 2.12 % 4 +std::unordered_map emplace & find std::string_view;_mean 6592167 ns 6487165 ns 4 +std::unordered_map emplace & find std::string_view;_median 6513210 ns 6556920 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 328075 ns 139509 ns 4 +std::unordered_map emplace & find std::string_view;_cv 4.98 % 2.15 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1574 ns 1573 ns 4 -Build func full name std::string;_median 1554 ns 1554 ns 4 -Build func full name std::string;_stddev 54.9 ns 82.9 ns 4 -Build func full name std::string;_cv 3.49 % 5.27 % 4 -Build func full name std::string 1;_mean 1638 ns 1622 ns 4 -Build func full name std::string 1;_median 1650 ns 1622 ns 4 -Build func full name std::string 1;_stddev 30.1 ns 45.0 ns 4 -Build func full name std::string 1;_cv 1.84 % 2.78 % 4 -Build func full name std::stream;_mean 9771 ns 9783 ns 4 -Build func full name std::stream;_median 9837 ns 9835 ns 4 -Build func full name std::stream;_stddev 184 ns 105 ns 4 -Build func full name std::stream;_cv 1.88 % 1.07 % 4 -Build func full name stringa;_mean 855 ns 859 ns 4 -Build func full name stringa;_median 856 ns 863 ns 4 -Build func full name stringa;_stddev 13.9 ns 16.7 ns 4 -Build func full name stringa;_cv 1.63 % 1.94 % 4 -Build func full name stringa 1;_mean 988 ns 989 ns 4 -Build func full name stringa 1;_median 989 ns 989 ns 4 -Build func full name stringa 1;_stddev 21.9 ns 31.5 ns 4 -Build func full name stringa 1;_cv 2.22 % 3.19 % 4 +Build func full name std::string;_mean 1622 ns 1617 ns 4 +Build func full name std::string;_median 1619 ns 1632 ns 4 +Build func full name std::string;_stddev 25.8 ns 31.4 ns 4 +Build func full name std::string;_cv 1.59 % 1.94 % 4 +Build func full name std::string 1;_mean 1697 ns 1678 ns 4 +Build func full name std::string 1;_median 1703 ns 1669 ns 4 +Build func full name std::string 1;_stddev 17.8 ns 36.7 ns 4 +Build func full name std::string 1;_cv 1.05 % 2.19 % 4 +Build func full name std::stream;_mean 9698 ns 9644 ns 4 +Build func full name std::stream;_median 9701 ns 9521 ns 4 +Build func full name std::stream;_stddev 143 ns 244 ns 4 +Build func full name std::stream;_cv 1.47 % 2.53 % 4 +Build func full name stringa;_mean 867 ns 868 ns 4 +Build func full name stringa;_median 868 ns 868 ns 4 +Build func full name stringa;_stddev 21.8 ns 12.1 ns 4 +Build func full name stringa;_cv 2.51 % 1.39 % 4 +Build func full name stringa 1;_mean 996 ns 994 ns 4 +Build func full name stringa 1;_median 997 ns 994 ns 4 +Build func full name stringa 1;_stddev 10.2 ns 12.1 ns 4 +Build func full name stringa 1;_cv 1.02 % 1.22 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 1404 ns 1397 ns 4 -To upper case std::wstring_median 1411 ns 1397 ns 4 -To upper case std::wstring_stddev 29.0 ns 18.1 ns 4 -To upper case std::wstring_cv 2.06 % 1.30 % 4 -To upper case lstringw<15>_mean 47.9 ns 48.1 ns 4 -To upper case lstringw<15>_median 47.7 ns 48.1 ns 4 -To upper case lstringw<15>_stddev 0.855 ns 0.854 ns 4 -To upper case lstringw<15>_cv 1.78 % 1.77 % 4 +To upper case std::wstring_mean 1438 ns 1428 ns 4 +To upper case std::wstring_median 1439 ns 1428 ns 4 +To upper case std::wstring_stddev 11.0 ns 18.1 ns 4 +To upper case std::wstring_cv 0.76 % 1.27 % 4 +To upper case lstringw<15>_mean 44.4 ns 44.3 ns 4 +To upper case lstringw<15>_median 44.4 ns 44.7 ns 4 +To upper case lstringw<15>_stddev 0.322 ns 1.33 ns 4 +To upper case lstringw<15>_cv 0.73 % 3.01 % 4 diff --git a/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt b/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt index e2345fa..c7e9302 100644 --- a/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt +++ b/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt @@ -1,4 +1,4 @@ -Benchmarks of simstr, version 1.7.2 +Benchmarks of simstr, version 1.8.1 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html Compiler Clang 22.0.0, use libc++ @@ -8,975 +8,974 @@ Chrome/143.0.0.0 webasm Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 994 ns 994 ns 4 -Concat email std::format_median 996 ns 996 ns 4 -Concat email std::format_stddev 12.4 ns 12.4 ns 4 -Concat email std::format_cv 1.25 % 1.25 % 4 -Concat email std::stringstream_mean 2551 ns 2551 ns 4 -Concat email std::stringstream_median 2584 ns 2584 ns 4 -Concat email std::stringstream_stddev 103 ns 103 ns 4 -Concat email std::stringstream_cv 4.04 % 4.04 % 4 -Concat email stringzilla append_mean 591 ns 591 ns 4 -Concat email stringzilla append_median 589 ns 589 ns 4 -Concat email stringzilla append_stddev 25.8 ns 25.8 ns 4 -Concat email stringzilla append_cv 4.36 % 4.36 % 4 -Concat email stringzilla concat_mean 222 ns 222 ns 4 -Concat email stringzilla concat_median 222 ns 222 ns 4 -Concat email stringzilla concat_stddev 1.11 ns 1.11 ns 4 -Concat email stringzilla concat_cv 0.50 % 0.50 % 4 -Concat email std::string append_mean 643 ns 643 ns 4 -Concat email std::string append_median 645 ns 645 ns 4 -Concat email std::string append_stddev 22.7 ns 22.7 ns 4 -Concat email std::string append_cv 3.53 % 3.53 % 4 -Concat email std::string by strexpr_mean 164 ns 164 ns 4 -Concat email std::string by strexpr_median 164 ns 164 ns 4 -Concat email std::string by strexpr_stddev 7.39 ns 7.39 ns 4 -Concat email std::string by strexpr_cv 4.50 % 4.50 % 4 -Concat email stringa_mean 131 ns 131 ns 4 -Concat email stringa_median 131 ns 131 ns 4 -Concat email stringa_stddev 10.6 ns 10.6 ns 4 -Concat email stringa_cv 8.09 % 8.09 % 4 +Concat email std::format_mean 483 ns 483 ns 4 +Concat email std::format_median 481 ns 481 ns 4 +Concat email std::format_stddev 5.61 ns 5.61 ns 4 +Concat email std::format_cv 1.16 % 1.16 % 4 +Concat email std::stringstream_mean 1090 ns 1090 ns 4 +Concat email std::stringstream_median 1095 ns 1095 ns 4 +Concat email std::stringstream_stddev 16.5 ns 16.5 ns 4 +Concat email std::stringstream_cv 1.51 % 1.51 % 4 +Concat email stringzilla append_mean 230 ns 230 ns 4 +Concat email stringzilla append_median 230 ns 230 ns 4 +Concat email stringzilla append_stddev 1.55 ns 1.55 ns 4 +Concat email stringzilla append_cv 0.68 % 0.67 % 4 +Concat email stringzilla concat_mean 92.5 ns 92.5 ns 4 +Concat email stringzilla concat_median 92.8 ns 92.8 ns 4 +Concat email stringzilla concat_stddev 2.17 ns 2.17 ns 4 +Concat email stringzilla concat_cv 2.35 % 2.35 % 4 +Concat email std::string append_mean 289 ns 289 ns 4 +Concat email std::string append_median 290 ns 290 ns 4 +Concat email std::string append_stddev 8.94 ns 8.94 ns 4 +Concat email std::string append_cv 3.10 % 3.10 % 4 +Concat email std::string by strexpr_mean 88.2 ns 88.2 ns 4 +Concat email std::string by strexpr_median 86.7 ns 86.7 ns 4 +Concat email std::string by strexpr_stddev 5.21 ns 5.21 ns 4 +Concat email std::string by strexpr_cv 5.91 % 5.91 % 4 +Concat email stringa_mean 67.4 ns 67.4 ns 4 +Concat email stringa_median 67.3 ns 67.3 ns 4 +Concat email stringa_stddev 2.25 ns 2.25 ns 4 +Concat email stringa_cv 3.34 % 3.34 % 4 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 1982 ns 1982 ns 4 -Concat std::string and number by std to std::string_median 1962 ns 1962 ns 4 -Concat std::string and number by std to std::string_stddev 73.7 ns 73.6 ns 4 -Concat std::string and number by std to std::string_cv 3.72 % 3.72 % 4 -Concat std::string and number by StrExpr to std::string_mean 980 ns 980 ns 4 -Concat std::string and number by StrExpr to std::string_median 978 ns 978 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 28.9 ns 28.9 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.95 % 2.95 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 352 ns 352 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 352 ns 352 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 2.52 ns 2.52 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 0.72 % 0.72 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 377 ns 377 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 378 ns 378 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 11.3 ns 11.3 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 3.01 % 3.01 % 4 +Concat std::string and number by std to std::string_mean 1042 ns 1042 ns 4 +Concat std::string and number by std to std::string_median 1048 ns 1048 ns 4 +Concat std::string and number by std to std::string_stddev 25.0 ns 25.0 ns 4 +Concat std::string and number by std to std::string_cv 2.40 % 2.40 % 4 +Concat std::string and number by StrExpr to std::string_mean 486 ns 486 ns 4 +Concat std::string and number by StrExpr to std::string_median 484 ns 484 ns 4 +Concat std::string and number by StrExpr to std::string_stddev 13.4 ns 13.4 ns 4 +Concat std::string and number by StrExpr to std::string_cv 2.77 % 2.77 % 4 +Concat stringa and number by StrExpr to simstr::stringa_mean 217 ns 217 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_median 214 ns 214 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_stddev 8.29 ns 8.29 ns 4 +Concat stringa and number by StrExpr to simstr::stringa_cv 3.82 % 3.82 % 4 +Concat stringa and number by e_concat to simstr::stringa_mean 218 ns 218 ns 4 +Concat stringa and number by e_concat to simstr::stringa_median 217 ns 217 ns 4 +Concat stringa and number by e_concat to simstr::stringa_stddev 4.31 ns 4.31 ns 4 +Concat stringa and number by e_concat to simstr::stringa_cv 1.98 % 1.98 % 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 3864 ns 3864 ns 4 -Concat std::string and format hex number and literal to std::string_median 3839 ns 3839 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 123 ns 123 ns 4 -Concat std::string and format hex number and literal to std::string_cv 3.19 % 3.18 % 4 -std::format std::string and hex number by literal to std::string_mean 5212 ns 5212 ns 4 -std::format std::string and hex number by literal to std::string_median 5237 ns 5237 ns 4 -std::format std::string and hex number by literal to std::string_stddev 152 ns 152 ns 4 -std::format std::string and hex number by literal to std::string_cv 2.91 % 2.91 % 4 -Concat std::string and std::to_chars and string to std::string_mean 1159 ns 1159 ns 4 -Concat std::string and std::to_chars and string to std::string_median 1134 ns 1134 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 61.1 ns 61.1 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 5.27 % 5.27 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 912 ns 912 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 916 ns 916 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 21.4 ns 21.3 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 2.34 % 2.34 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 221 ns 221 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 227 ns 227 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 18.0 ns 18.0 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 8.14 % 8.14 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 221 ns 221 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 221 ns 221 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 6.40 ns 6.40 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.90 % 2.90 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 350 ns 350 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 351 ns 351 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 18.4 ns 18.4 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 5.25 % 5.25 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 928 ns 928 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 925 ns 925 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 20.4 ns 20.4 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.20 % 2.20 % 4 +Concat std::string and format hex number and literal to std::string_mean 2057 ns 2057 ns 4 +Concat std::string and format hex number and literal to std::string_median 2054 ns 2054 ns 4 +Concat std::string and format hex number and literal to std::string_stddev 53.5 ns 53.5 ns 4 +Concat std::string and format hex number and literal to std::string_cv 2.60 % 2.60 % 4 +std::format std::string and hex number by literal to std::string_mean 2629 ns 2629 ns 4 +std::format std::string and hex number by literal to std::string_median 2624 ns 2624 ns 4 +std::format std::string and hex number by literal to std::string_stddev 16.4 ns 16.4 ns 4 +std::format std::string and hex number by literal to std::string_cv 0.63 % 0.63 % 4 +Concat std::string and std::to_chars and string to std::string_mean 676 ns 676 ns 4 +Concat std::string and std::to_chars and string to std::string_median 678 ns 678 ns 4 +Concat std::string and std::to_chars and string to std::string_stddev 9.67 ns 9.67 ns 4 +Concat std::string and std::to_chars and string to std::string_cv 1.43 % 1.43 % 4 +Concat std::string and hex number and literal by StrExpr to std::string_mean 526 ns 526 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_median 525 ns 525 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_stddev 37.8 ns 37.8 ns 4 +Concat std::string and hex number and literal by StrExpr to std::string_cv 7.20 % 7.20 % 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 189 ns 189 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 187 ns 187 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 10.4 ns 10.4 ns 4 +Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 5.52 % 5.52 % 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 198 ns 198 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_median 199 ns 199 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 3.52 ns 3.52 ns 4 +Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.77 % 1.77 % 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_mean 355 ns 355 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_median 355 ns 355 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 12.1 ns 12.1 ns 4 +Subst stringa and hex number by e_subst literal to simstr::stringa_cv 3.42 % 3.42 % 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 843 ns 843 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 846 ns 846 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 29.0 ns 29.0 ns 4 +Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 3.44 % 3.44 % 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 418 ns 418 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 418 ns 418 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 16.3 ns 16.3 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.91 % 3.91 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 657 ns 657 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 648 ns 648 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 57.5 ns 57.5 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 8.76 % 8.76 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1440 ns 1440 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1451 ns 1451 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 30.6 ns 30.6 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.13 % 2.13 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2237 ns 2237 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2239 ns 2239 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 79.1 ns 79.1 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.53 % 3.53 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 2986 ns 2986 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 2955 ns 2955 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 105 ns 105 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 3.53 % 3.53 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 3132 ns 3132 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 3138 ns 3138 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 57.3 ns 57.2 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.83 % 1.83 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 3119 ns 3119 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 3148 ns 3148 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 76.8 ns 76.8 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.46 % 2.46 % 4 -std::format with std::formatted_size_mean 5329 ns 5329 ns 4 -std::format with std::formatted_size_median 5334 ns 5334 ns 4 -std::format with std::formatted_size_stddev 97.5 ns 97.5 ns 4 -std::format with std::formatted_size_cv 1.83 % 1.83 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8569 ns 8569 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8575 ns 8575 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 354 ns 354 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 4.13 % 4.13 % 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 414 ns 414 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 413 ns 413 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 13.6 ns 13.6 ns 4 +"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 3.27 % 3.28 % 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 621 ns 621 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 618 ns 618 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 17.1 ns 17.1 ns 4 +e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.76 % 2.76 % 4 +e_vsubst(pattern, i / 0x8a010_fmt)_mean 1426 ns 1426 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_median 1430 ns 1430 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_stddev 22.1 ns 22.1 ns 4 +e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.55 % 1.55 % 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2149 ns 2149 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2134 ns 2134 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 53.2 ns 53.2 ns 4 +fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.48 % 2.48 % 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 2879 ns 2879 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 2903 ns 2903 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 57.1 ns 57.1 ns 4 +fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.98 % 1.98 % 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_mean 2940 ns 2940 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_median 2935 ns 2935 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 62.6 ns 62.6 ns 4 +std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.13 % 2.13 % 4 +std::vformat(pattern, std::make_format_args(i))_mean 2985 ns 2985 ns 4 +std::vformat(pattern, std::make_format_args(i))_median 2971 ns 2971 ns 4 +std::vformat(pattern, std::make_format_args(i))_stddev 58.0 ns 58.0 ns 4 +std::vformat(pattern, std::make_format_args(i))_cv 1.94 % 1.94 % 4 +std::format with std::formatted_size_mean 5263 ns 5263 ns 4 +std::format with std::formatted_size_median 5234 ns 5234 ns 4 +std::format with std::formatted_size_stddev 98.0 ns 98.0 ns 4 +std::format with std::formatted_size_cv 1.86 % 1.86 % 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8433 ns 8433 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8423 ns 8423 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 118 ns 118 ns 4 +strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.40 % 1.40 % 4 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 116 ns 116 ns 4 -Concat std::string by std to std::string_median 115 ns 115 ns 4 -Concat std::string by std to std::string_stddev 5.03 ns 5.03 ns 4 -Concat std::string by std to std::string_cv 4.35 % 4.35 % 4 -Concat std::string by StrExpr to std::string_mean 131 ns 131 ns 4 -Concat std::string by StrExpr to std::string_median 129 ns 129 ns 4 -Concat std::string by StrExpr to std::string_stddev 4.40 ns 4.41 ns 4 -Concat std::string by StrExpr to std::string_cv 3.37 % 3.37 % 4 -Concat stringa by StrExpr to stringa_mean 101 ns 101 ns 4 -Concat stringa by StrExpr to stringa_median 99.5 ns 99.5 ns 4 -Concat stringa by StrExpr to stringa_stddev 5.02 ns 5.02 ns 4 -Concat stringa by StrExpr to stringa_cv 5.00 % 5.00 % 4 +Concat std::string by std to std::string_mean 109 ns 109 ns 4 +Concat std::string by std to std::string_median 109 ns 109 ns 4 +Concat std::string by std to std::string_stddev 1.82 ns 1.82 ns 4 +Concat std::string by std to std::string_cv 1.68 % 1.68 % 4 +Concat std::string by StrExpr to std::string_mean 120 ns 120 ns 4 +Concat std::string by StrExpr to std::string_median 120 ns 120 ns 4 +Concat std::string by StrExpr to std::string_stddev 1.50 ns 1.50 ns 4 +Concat std::string by StrExpr to std::string_cv 1.24 % 1.24 % 4 +Concat stringa by StrExpr to stringa_mean 95.4 ns 95.4 ns 4 +Concat stringa by StrExpr to stringa_median 95.0 ns 95.0 ns 4 +Concat stringa by StrExpr to stringa_stddev 3.65 ns 3.65 ns 4 +Concat stringa by StrExpr to stringa_cv 3.82 % 3.83 % 4 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 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 1.77 ns 1.77 ns 4 -Find concat three std::string_cv 0.83 % 0.83 % 4 -Find concat three strexpr_mean 107 ns 107 ns 4 -Find concat three strexpr_median 108 ns 108 ns 4 -Find concat three strexpr_stddev 1.66 ns 1.66 ns 4 -Find concat three strexpr_cv 1.55 % 1.55 % 4 -Find concat three simstr_mean 57.6 ns 57.6 ns 4 -Find concat three simstr_median 56.8 ns 56.8 ns 4 -Find concat three simstr_stddev 2.37 ns 2.37 ns 4 -Find concat three simstr_cv 4.12 % 4.12 % 4 -Find concat three stringzilla string_mean 271 ns 271 ns 4 -Find concat three stringzilla string_median 273 ns 273 ns 4 -Find concat three stringzilla string_stddev 4.34 ns 4.34 ns 4 -Find concat three stringzilla string_cv 1.60 % 1.60 % 4 +Find concat three std::string_median 210 ns 210 ns 4 +Find concat three std::string_stddev 13.1 ns 13.1 ns 4 +Find concat three std::string_cv 6.13 % 6.13 % 4 +Find concat three strexpr_mean 100.0 ns 100.0 ns 4 +Find concat three strexpr_median 100.0 ns 100.0 ns 4 +Find concat three strexpr_stddev 1.10 ns 1.10 ns 4 +Find concat three strexpr_cv 1.10 % 1.10 % 4 +Find concat three simstr_mean 58.2 ns 58.2 ns 4 +Find concat three simstr_median 58.1 ns 58.1 ns 4 +Find concat three simstr_stddev 0.634 ns 0.635 ns 4 +Find concat three simstr_cv 1.09 % 1.09 % 4 +Find concat three stringzilla string_mean 268 ns 268 ns 4 +Find concat three stringzilla string_median 268 ns 268 ns 4 +Find concat three stringzilla string_stddev 1.90 ns 1.90 ns 4 +Find concat three stringzilla string_cv 0.71 % 0.71 % 4 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 23.2 ns 23.2 ns 4 -BuildTypeNameStr 0/0_median 22.6 ns 22.6 ns 4 -BuildTypeNameStr 0/0_stddev 1.32 ns 1.32 ns 4 -BuildTypeNameStr 0/0_cv 5.68 % 5.68 % 4 -BuildTypeNameExp 0/0_mean 25.8 ns 25.8 ns 4 -BuildTypeNameExp 0/0_median 25.8 ns 25.8 ns 4 -BuildTypeNameExp 0/0_stddev 0.978 ns 0.978 ns 4 -BuildTypeNameExp 0/0_cv 3.79 % 3.79 % 4 -BuildTypeNameSim 0/0_mean 21.4 ns 21.4 ns 4 -BuildTypeNameSim 0/0_median 21.2 ns 21.2 ns 4 -BuildTypeNameSim 0/0_stddev 0.818 ns 0.818 ns 4 -BuildTypeNameSim 0/0_cv 3.83 % 3.83 % 4 -BuildTypeNameStr 10/10_mean 400 ns 400 ns 4 -BuildTypeNameStr 10/10_median 397 ns 397 ns 4 -BuildTypeNameStr 10/10_stddev 14.3 ns 14.4 ns 4 -BuildTypeNameStr 10/10_cv 3.57 % 3.59 % 4 -BuildTypeNameExp 10/10_mean 126 ns 126 ns 4 -BuildTypeNameExp 10/10_median 126 ns 126 ns 4 -BuildTypeNameExp 10/10_stddev 7.20 ns 7.20 ns 4 -BuildTypeNameExp 10/10_cv 5.72 % 5.72 % 4 -BuildTypeNameSim 10/10_mean 73.2 ns 73.2 ns 4 -BuildTypeNameSim 10/10_median 73.0 ns 73.0 ns 4 -BuildTypeNameSim 10/10_stddev 5.76 ns 5.76 ns 4 -BuildTypeNameSim 10/10_cv 7.87 % 7.87 % 4 +BuildTypeNameStr 0/0_mean 20.9 ns 20.9 ns 4 +BuildTypeNameStr 0/0_median 21.0 ns 21.0 ns 4 +BuildTypeNameStr 0/0_stddev 0.189 ns 0.189 ns 4 +BuildTypeNameStr 0/0_cv 0.90 % 0.90 % 4 +BuildTypeNameExp 0/0_mean 23.1 ns 23.1 ns 4 +BuildTypeNameExp 0/0_median 23.2 ns 23.2 ns 4 +BuildTypeNameExp 0/0_stddev 0.711 ns 0.711 ns 4 +BuildTypeNameExp 0/0_cv 3.09 % 3.09 % 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.751 ns 0.751 ns 4 +BuildTypeNameSim 0/0_cv 3.67 % 3.67 % 4 +BuildTypeNameStr 10/10_mean 365 ns 365 ns 4 +BuildTypeNameStr 10/10_median 370 ns 370 ns 4 +BuildTypeNameStr 10/10_stddev 13.3 ns 13.3 ns 4 +BuildTypeNameStr 10/10_cv 3.65 % 3.65 % 4 +BuildTypeNameExp 10/10_mean 116 ns 116 ns 4 +BuildTypeNameExp 10/10_median 116 ns 116 ns 4 +BuildTypeNameExp 10/10_stddev 7.06 ns 7.06 ns 4 +BuildTypeNameExp 10/10_cv 6.10 % 6.10 % 4 +BuildTypeNameSim 10/10_mean 69.0 ns 69.0 ns 4 +BuildTypeNameSim 10/10_median 69.1 ns 69.2 ns 4 +BuildTypeNameSim 10/10_stddev 1.79 ns 1.79 ns 4 +BuildTypeNameSim 10/10_cv 2.59 % 2.59 % 4 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 546 ns 546 ns 4 -Concat with replace str_median 546 ns 546 ns 4 -Concat with replace str_stddev 8.91 ns 8.91 ns 4 -Concat with replace str_cv 1.63 % 1.63 % 4 -Concat with replace exp_mean 247 ns 247 ns 4 -Concat with replace exp_median 248 ns 248 ns 4 -Concat with replace exp_stddev 13.3 ns 13.3 ns 4 -Concat with replace exp_cv 5.37 % 5.37 % 4 +Concat with replace str_mean 500 ns 500 ns 4 +Concat with replace str_median 498 ns 498 ns 4 +Concat with replace str_stddev 13.7 ns 13.7 ns 4 +Concat with replace str_cv 2.74 % 2.74 % 4 +Concat with replace exp_mean 235 ns 235 ns 4 +Concat with replace exp_median 234 ns 234 ns 4 +Concat with replace exp_stddev 2.95 ns 2.95 ns 4 +Concat with replace exp_cv 1.25 % 1.26 % 4 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 2.35 ns 2.35 ns 4 -std::string e;_median 2.40 ns 2.40 ns 4 -std::string e;_stddev 0.161 ns 0.161 ns 4 -std::string e;_cv 6.82 % 6.82 % 4 -std::string_view e;_mean 0.772 ns 0.772 ns 4 -std::string_view e;_median 0.749 ns 0.749 ns 4 -std::string_view e;_stddev 0.058 ns 0.058 ns 4 -std::string_view e;_cv 7.48 % 7.48 % 4 -ssa e;_mean 0.359 ns 0.359 ns 4 -ssa e;_median 0.358 ns 0.358 ns 4 -ssa e;_stddev 0.012 ns 0.012 ns 4 -ssa e;_cv 3.24 % 3.24 % 4 -stringa e;_mean 2.12 ns 2.12 ns 4 -stringa e;_median 2.12 ns 2.12 ns 4 -stringa e;_stddev 0.037 ns 0.037 ns 4 -stringa e;_cv 1.73 % 1.73 % 4 -lstringa<20> e;_mean 2.26 ns 2.26 ns 4 -lstringa<20> e;_median 2.22 ns 2.22 ns 4 -lstringa<20> e;_stddev 0.087 ns 0.087 ns 4 -lstringa<20> e;_cv 3.85 % 3.85 % 4 -lstringa<40> e;_mean 2.41 ns 2.41 ns 4 -lstringa<40> e;_median 2.38 ns 2.38 ns 4 -lstringa<40> e;_stddev 0.182 ns 0.182 ns 4 -lstringa<40> e;_cv 7.56 % 7.56 % 4 +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.011 ns 0.011 ns 4 +std::string e;_cv 0.49 % 0.49 % 4 +std::string_view e;_mean 0.740 ns 0.740 ns 4 +std::string_view e;_median 0.736 ns 0.736 ns 4 +std::string_view e;_stddev 0.010 ns 0.010 ns 4 +std::string_view e;_cv 1.30 % 1.30 % 4 +ssa e;_mean 0.378 ns 0.378 ns 4 +ssa e;_median 0.376 ns 0.376 ns 4 +ssa e;_stddev 0.010 ns 0.010 ns 4 +ssa e;_cv 2.62 % 2.62 % 4 +stringa e;_mean 2.15 ns 2.15 ns 4 +stringa e;_median 2.16 ns 2.16 ns 4 +stringa e;_stddev 0.021 ns 0.021 ns 4 +stringa e;_cv 0.99 % 0.99 % 4 +lstringa<20> e;_mean 2.20 ns 2.20 ns 4 +lstringa<20> e;_median 2.20 ns 2.20 ns 4 +lstringa<20> e;_stddev 0.028 ns 0.028 ns 4 +lstringa<20> e;_cv 1.27 % 1.27 % 4 +lstringa<40> e;_mean 2.20 ns 2.20 ns 4 +lstringa<40> e;_median 2.21 ns 2.21 ns 4 +lstringa<40> e;_stddev 0.027 ns 0.027 ns 4 +lstringa<40> e;_cv 1.21 % 1.21 % 4 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 2.49 ns 2.49 ns 4 -std::string e = "Test text";_median 2.38 ns 2.38 ns 4 -std::string e = "Test text";_stddev 0.271 ns 0.271 ns 4 -std::string e = "Test text";_cv 10.91 % 10.91 % 4 -std::string_view e = "Test text";_mean 1.08 ns 1.08 ns 4 -std::string_view e = "Test text";_median 1.08 ns 1.08 ns 4 -std::string_view e = "Test text";_stddev 0.006 ns 0.006 ns 4 -std::string_view e = "Test text";_cv 0.58 % 0.58 % 4 -ssa e = "Test text";_mean 0.779 ns 0.779 ns 4 -ssa e = "Test text";_median 0.771 ns 0.771 ns 4 -ssa e = "Test text";_stddev 0.056 ns 0.056 ns 4 -ssa e = "Test text";_cv 7.16 % 7.16 % 4 -stringa e = "Test text";_mean 2.17 ns 2.17 ns 4 -stringa e = "Test text";_median 2.17 ns 2.17 ns 4 -stringa e = "Test text";_stddev 0.008 ns 0.008 ns 4 -stringa e = "Test text";_cv 0.38 % 0.38 % 4 -lstringa<20> e = "Test text";_mean 2.58 ns 2.58 ns 4 -lstringa<20> e = "Test text";_median 2.57 ns 2.57 ns 4 -lstringa<20> e = "Test text";_stddev 0.042 ns 0.042 ns 4 -lstringa<20> e = "Test text";_cv 1.61 % 1.61 % 4 -lstringa<40> e = "Test text";_mean 2.55 ns 2.55 ns 4 -lstringa<40> e = "Test text";_median 2.54 ns 2.54 ns 4 -lstringa<40> e = "Test text";_stddev 0.040 ns 0.040 ns 4 -lstringa<40> e = "Test text";_cv 1.58 % 1.58 % 4 +std::string e = "Test text";_mean 2.47 ns 2.47 ns 4 +std::string e = "Test text";_median 2.47 ns 2.47 ns 4 +std::string e = "Test text";_stddev 0.048 ns 0.048 ns 4 +std::string e = "Test text";_cv 1.96 % 1.96 % 4 +std::string_view e = "Test text";_mean 1.12 ns 1.12 ns 4 +std::string_view e = "Test text";_median 1.12 ns 1.12 ns 4 +std::string_view e = "Test text";_stddev 0.023 ns 0.023 ns 4 +std::string_view e = "Test text";_cv 2.03 % 2.03 % 4 +ssa e = "Test text";_mean 0.744 ns 0.744 ns 4 +ssa e = "Test text";_median 0.732 ns 0.732 ns 4 +ssa e = "Test text";_stddev 0.026 ns 0.026 ns 4 +ssa e = "Test text";_cv 3.53 % 3.53 % 4 +stringa e = "Test text";_mean 2.19 ns 2.19 ns 4 +stringa e = "Test text";_median 2.19 ns 2.19 ns 4 +stringa e = "Test text";_stddev 0.014 ns 0.014 ns 4 +stringa e = "Test text";_cv 0.66 % 0.66 % 4 +lstringa<20> e = "Test text";_mean 2.63 ns 2.63 ns 4 +lstringa<20> e = "Test text";_median 2.64 ns 2.64 ns 4 +lstringa<20> e = "Test text";_stddev 0.019 ns 0.019 ns 4 +lstringa<20> e = "Test text";_cv 0.71 % 0.71 % 4 +lstringa<40> e = "Test text";_mean 2.61 ns 2.61 ns 4 +lstringa<40> e = "Test text";_median 2.61 ns 2.61 ns 4 +lstringa<40> e = "Test text";_stddev 0.027 ns 0.027 ns 4 +lstringa<40> e = "Test text";_cv 1.05 % 1.05 % 4 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 23.4 ns 23.4 ns 4 -std::string e = "123456789012345678901234567890";_median 22.9 ns 22.9 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.77 ns 1.77 ns 4 -std::string e = "123456789012345678901234567890";_cv 7.57 % 7.57 % 4 -std::string_view e = "123456789012345678901234567890";_mean 1.15 ns 1.15 ns 4 -std::string_view e = "123456789012345678901234567890";_median 1.16 ns 1.16 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.043 ns 0.043 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 3.78 % 3.78 % 4 -ssa e = "123456789012345678901234567890";_mean 0.757 ns 0.757 ns 4 -ssa e = "123456789012345678901234567890";_median 0.743 ns 0.743 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.048 ns 0.048 ns 4 -ssa e = "123456789012345678901234567890";_cv 6.37 % 6.37 % 4 -stringa e = "123456789012345678901234567890";_mean 2.17 ns 2.17 ns 4 -stringa e = "123456789012345678901234567890";_median 2.17 ns 2.17 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.030 ns 0.030 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.39 % 1.39 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 29.8 ns 29.8 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 30.3 ns 30.3 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 1.22 ns 1.22 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 4.09 % 4.09 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.95 ns 2.95 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.96 ns 2.96 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.039 ns 0.039 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.33 % 1.33 % 4 +std::string e = "123456789012345678901234567890";_mean 21.8 ns 21.8 ns 4 +std::string e = "123456789012345678901234567890";_median 21.9 ns 21.9 ns 4 +std::string e = "123456789012345678901234567890";_stddev 0.330 ns 0.329 ns 4 +std::string e = "123456789012345678901234567890";_cv 1.51 % 1.51 % 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.010 ns 0.010 ns 4 +std::string_view e = "123456789012345678901234567890";_cv 0.93 % 0.93 % 4 +ssa e = "123456789012345678901234567890";_mean 0.741 ns 0.741 ns 4 +ssa e = "123456789012345678901234567890";_median 0.739 ns 0.739 ns 4 +ssa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4 +ssa e = "123456789012345678901234567890";_cv 0.93 % 0.93 % 4 +stringa e = "123456789012345678901234567890";_mean 2.22 ns 2.22 ns 4 +stringa e = "123456789012345678901234567890";_median 2.21 ns 2.21 ns 4 +stringa e = "123456789012345678901234567890";_stddev 0.039 ns 0.039 ns 4 +stringa e = "123456789012345678901234567890";_cv 1.76 % 1.76 % 4 +lstringa<20> e = "123456789012345678901234567890";_mean 22.0 ns 22.0 ns 4 +lstringa<20> e = "123456789012345678901234567890";_median 21.9 ns 21.9 ns 4 +lstringa<20> e = "123456789012345678901234567890";_stddev 0.303 ns 0.303 ns 4 +lstringa<20> e = "123456789012345678901234567890";_cv 1.38 % 1.38 % 4 +lstringa<40> e = "123456789012345678901234567890";_mean 2.98 ns 2.98 ns 4 +lstringa<40> e = "123456789012345678901234567890";_median 2.97 ns 2.97 ns 4 +lstringa<40> e = "123456789012345678901234567890";_stddev 0.042 ns 0.042 ns 4 +lstringa<40> e = "123456789012345678901234567890";_cv 1.40 % 1.40 % 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.03 ns 4.03 ns 4 -std::string e = "Test text"; auto c{e};_median 4.02 ns 4.02 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.372 ns 0.372 ns 4 -std::string e = "Test text"; auto c{e};_cv 9.23 % 9.23 % 4 -std::string_view e = "Test text"; auto c{e};_mean 1.15 ns 1.15 ns 4 -std::string_view e = "Test text"; auto c{e};_median 1.17 ns 1.17 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.053 ns 0.053 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 4.61 % 4.61 % 4 -ssa e = "Test text"; auto c{e};_mean 1.09 ns 1.09 ns 4 -ssa e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.013 ns 0.013 ns 4 -ssa e = "Test text"; auto c{e};_cv 1.16 % 1.16 % 4 -stringa e = "Test text"; auto c{e};_mean 2.49 ns 2.49 ns 4 -stringa e = "Test text"; auto c{e};_median 2.48 ns 2.48 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4 -stringa e = "Test text"; auto c{e};_cv 0.55 % 0.55 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.74 ns 4.74 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.73 ns 4.73 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.090 ns 0.090 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.89 % 1.89 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 5.17 ns 5.17 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 5.13 ns 5.13 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.405 ns 0.405 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 7.84 % 7.84 % 4 +std::string e = "Test text"; auto c{e};_mean 3.72 ns 3.72 ns 4 +std::string e = "Test text"; auto c{e};_median 3.70 ns 3.70 ns 4 +std::string e = "Test text"; auto c{e};_stddev 0.073 ns 0.073 ns 4 +std::string e = "Test text"; auto c{e};_cv 1.97 % 1.97 % 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.10 ns 1.10 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 1.43 % 1.43 % 4 +ssa e = "Test text"; auto c{e};_mean 1.11 ns 1.11 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.44 % 1.43 % 4 +stringa e = "Test text"; auto c{e};_mean 2.53 ns 2.53 ns 4 +stringa e = "Test text"; auto c{e};_median 2.53 ns 2.53 ns 4 +stringa e = "Test text"; auto c{e};_stddev 0.004 ns 0.004 ns 4 +stringa e = "Test text"; auto c{e};_cv 0.15 % 0.15 % 4 +lstringa<20> e = "Test text"; auto c{e};_mean 4.17 ns 4.17 ns 4 +lstringa<20> e = "Test text"; auto c{e};_median 4.17 ns 4.17 ns 4 +lstringa<20> e = "Test text"; auto c{e};_stddev 0.031 ns 0.031 ns 4 +lstringa<20> e = "Test text"; auto c{e};_cv 0.75 % 0.75 % 4 +lstringa<40> e = "Test text"; auto c{e};_mean 4.49 ns 4.49 ns 4 +lstringa<40> e = "Test text"; auto c{e};_median 4.49 ns 4.49 ns 4 +lstringa<40> e = "Test text"; auto c{e};_stddev 0.079 ns 0.079 ns 4 +lstringa<40> e = "Test text"; auto c{e};_cv 1.77 % 1.77 % 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 49.0 ns 49.0 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 48.5 ns 48.5 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.70 ns 1.70 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 3.47 % 3.47 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.07 ns 1.07 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.07 ns 1.07 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.007 ns 0.007 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.62 % 0.62 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.784 ns 0.784 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.765 ns 0.765 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.066 ns 0.066 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 8.43 % 8.43 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.28 ns 2.28 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 2.21 ns 2.21 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.197 ns 0.197 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 8.62 % 8.62 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 23.8 ns 23.8 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 23.6 ns 23.6 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 1.64 ns 1.64 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 6.88 % 6.88 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 16.7 ns 16.7 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 16.6 ns 16.6 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.706 ns 0.706 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 4.22 % 4.22 % 4 +std::string e = "123456789012345678901234567890"; auto c{e};_mean 46.5 ns 46.5 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_median 45.8 ns 45.8 ns 4 +std::string e = "123456789012345678901234567890"; auto c{e};_stddev 1.47 ns 1.47 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.11 ns 1.12 ns 4 +std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 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.69 % 1.69 % 4 +ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.750 ns 0.750 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_median 0.750 ns 0.750 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.009 ns 0.009 ns 4 +ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.22 % 1.22 % 4 +stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.21 ns 2.21 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_median 2.20 ns 2.20 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.033 ns 0.033 ns 4 +stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.48 % 1.48 % 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 21.2 ns 21.2 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.522 ns 0.522 ns 4 +lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.46 % 2.46 % 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 15.8 ns 15.8 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 15.7 ns 15.7 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.213 ns 0.213 ns 4 +lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.35 % 1.35 % 4 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 123 ns 123 ns 4 -sz::string::find;_median 122 ns 122 ns 4 -sz::string::find;_stddev 2.32 ns 2.32 ns 4 -sz::string::find;_cv 1.89 % 1.89 % 4 -std::string::find;_mean 43.8 ns 43.8 ns 4 -std::string::find;_median 43.3 ns 43.3 ns 4 -std::string::find;_stddev 2.83 ns 2.83 ns 4 -std::string::find;_cv 6.46 % 6.46 % 4 -std::string_view::find;_mean 41.6 ns 41.6 ns 4 -std::string_view::find;_median 42.1 ns 42.1 ns 4 -std::string_view::find;_stddev 1.47 ns 1.47 ns 4 -std::string_view::find;_cv 3.54 % 3.54 % 4 -ssa::find;_mean 41.1 ns 41.1 ns 4 -ssa::find;_median 41.6 ns 41.6 ns 4 -ssa::find;_stddev 1.48 ns 1.48 ns 4 -ssa::find;_cv 3.59 % 3.59 % 4 -stringa::find;_mean 40.6 ns 40.6 ns 4 -stringa::find;_median 40.4 ns 40.4 ns 4 -stringa::find;_stddev 0.955 ns 0.955 ns 4 -stringa::find;_cv 2.35 % 2.35 % 4 +sz::string::find;_mean 125 ns 125 ns 4 +sz::string::find;_median 125 ns 125 ns 4 +sz::string::find;_stddev 0.709 ns 0.709 ns 4 +sz::string::find;_cv 0.57 % 0.57 % 4 +std::string::find;_mean 40.8 ns 40.8 ns 4 +std::string::find;_median 40.7 ns 40.7 ns 4 +std::string::find;_stddev 0.562 ns 0.562 ns 4 +std::string::find;_cv 1.38 % 1.38 % 4 +std::string_view::find;_mean 41.2 ns 41.2 ns 4 +std::string_view::find;_median 40.6 ns 40.6 ns 4 +std::string_view::find;_stddev 1.36 ns 1.36 ns 4 +std::string_view::find;_cv 3.31 % 3.31 % 4 +ssa::find;_mean 40.6 ns 40.6 ns 4 +ssa::find;_median 40.5 ns 40.5 ns 4 +ssa::find;_stddev 0.597 ns 0.597 ns 4 +ssa::find;_cv 1.47 % 1.47 % 4 +stringa::find;_mean 41.2 ns 41.2 ns 4 +stringa::find;_median 41.1 ns 41.1 ns 4 +stringa::find;_stddev 0.538 ns 0.537 ns 4 +stringa::find;_cv 1.30 % 1.30 % 4 lstringa<20>::find;_mean 39.8 ns 39.8 ns 4 -lstringa<20>::find;_median 39.8 ns 39.8 ns 4 -lstringa<20>::find;_stddev 0.590 ns 0.591 ns 4 -lstringa<20>::find;_cv 1.48 % 1.48 % 4 -lstringa<40>::find;_mean 39.2 ns 39.2 ns 4 -lstringa<40>::find;_median 39.3 ns 39.3 ns 4 -lstringa<40>::find;_stddev 0.650 ns 0.650 ns 4 -lstringa<40>::find;_cv 1.66 % 1.66 % 4 +lstringa<20>::find;_median 40.0 ns 40.0 ns 4 +lstringa<20>::find;_stddev 0.572 ns 0.572 ns 4 +lstringa<20>::find;_cv 1.44 % 1.44 % 4 +lstringa<40>::find;_mean 39.7 ns 39.7 ns 4 +lstringa<40>::find;_median 39.5 ns 39.5 ns 4 +lstringa<40>::find;_stddev 0.736 ns 0.737 ns 4 +lstringa<40>::find;_cv 1.86 % 1.86 % 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 45.0 ns 45.0 ns 4 -std::string copy{str_with_len_N};/15_median 45.2 ns 45.2 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.710 ns 0.710 ns 4 -std::string copy{str_with_len_N};/15_cv 1.58 % 1.58 % 4 -std::string copy{str_with_len_N};/16_mean 51.9 ns 51.9 ns 4 -std::string copy{str_with_len_N};/16_median 51.5 ns 51.5 ns 4 -std::string copy{str_with_len_N};/16_stddev 4.72 ns 4.71 ns 4 -std::string copy{str_with_len_N};/16_cv 9.09 % 9.09 % 4 -std::string copy{str_with_len_N};/23_mean 48.6 ns 48.6 ns 4 -std::string copy{str_with_len_N};/23_median 48.7 ns 48.7 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.687 ns 0.687 ns 4 -std::string copy{str_with_len_N};/23_cv 1.41 % 1.41 % 4 -std::string copy{str_with_len_N};/24_mean 49.6 ns 49.6 ns 4 -std::string copy{str_with_len_N};/24_median 48.4 ns 48.4 ns 4 -std::string copy{str_with_len_N};/24_stddev 2.80 ns 2.80 ns 4 -std::string copy{str_with_len_N};/24_cv 5.65 % 5.65 % 4 +std::string copy{str_with_len_N};/15_mean 52.3 ns 52.3 ns 4 +std::string copy{str_with_len_N};/15_median 52.7 ns 52.7 ns 4 +std::string copy{str_with_len_N};/15_stddev 1.46 ns 1.46 ns 4 +std::string copy{str_with_len_N};/15_cv 2.79 % 2.80 % 4 +std::string copy{str_with_len_N};/16_mean 53.0 ns 53.0 ns 4 +std::string copy{str_with_len_N};/16_median 52.9 ns 52.9 ns 4 +std::string copy{str_with_len_N};/16_stddev 1.28 ns 1.28 ns 4 +std::string copy{str_with_len_N};/16_cv 2.42 % 2.42 % 4 +std::string copy{str_with_len_N};/23_mean 52.5 ns 52.5 ns 4 +std::string copy{str_with_len_N};/23_median 53.0 ns 53.0 ns 4 +std::string copy{str_with_len_N};/23_stddev 1.61 ns 1.61 ns 4 +std::string copy{str_with_len_N};/23_cv 3.07 % 3.07 % 4 +std::string copy{str_with_len_N};/24_mean 51.6 ns 51.6 ns 4 +std::string copy{str_with_len_N};/24_median 51.8 ns 51.8 ns 4 +std::string copy{str_with_len_N};/24_stddev 0.532 ns 0.531 ns 4 +std::string copy{str_with_len_N};/24_cv 1.03 % 1.03 % 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.0 ns 54.0 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.96 ns 1.96 ns 4 -std::string copy{str_with_len_N};/32_cv 3.64 % 3.64 % 4 -std::string copy{str_with_len_N};/64_mean 52.8 ns 52.8 ns 4 -std::string copy{str_with_len_N};/64_median 53.0 ns 53.0 ns 4 -std::string copy{str_with_len_N};/64_stddev 2.28 ns 2.28 ns 4 -std::string copy{str_with_len_N};/64_cv 4.32 % 4.32 % 4 -std::string copy{str_with_len_N};/128_mean 59.2 ns 59.2 ns 4 -std::string copy{str_with_len_N};/128_median 57.4 ns 57.4 ns 4 -std::string copy{str_with_len_N};/128_stddev 8.56 ns 8.56 ns 4 -std::string copy{str_with_len_N};/128_cv 14.46 % 14.46 % 4 -std::string copy{str_with_len_N};/256_mean 77.3 ns 77.3 ns 4 -std::string copy{str_with_len_N};/256_median 77.4 ns 77.4 ns 4 -std::string copy{str_with_len_N};/256_stddev 11.8 ns 11.8 ns 4 -std::string copy{str_with_len_N};/256_cv 15.20 % 15.20 % 4 -std::string copy{str_with_len_N};/512_mean 86.0 ns 86.0 ns 4 -std::string copy{str_with_len_N};/512_median 89.8 ns 89.8 ns 4 -std::string copy{str_with_len_N};/512_stddev 12.4 ns 12.4 ns 4 -std::string copy{str_with_len_N};/512_cv 14.38 % 14.38 % 4 -std::string copy{str_with_len_N};/1024_mean 106 ns 106 ns 4 -std::string copy{str_with_len_N};/1024_median 106 ns 106 ns 4 -std::string copy{str_with_len_N};/1024_stddev 9.49 ns 9.49 ns 4 -std::string copy{str_with_len_N};/1024_cv 8.92 % 8.92 % 4 -std::string copy{str_with_len_N};/2048_mean 119 ns 119 ns 4 -std::string copy{str_with_len_N};/2048_median 120 ns 120 ns 4 -std::string copy{str_with_len_N};/2048_stddev 4.21 ns 4.21 ns 4 -std::string copy{str_with_len_N};/2048_cv 3.55 % 3.55 % 4 +std::string copy{str_with_len_N};/32_median 54.1 ns 54.1 ns 4 +std::string copy{str_with_len_N};/32_stddev 0.490 ns 0.490 ns 4 +std::string copy{str_with_len_N};/32_cv 0.91 % 0.91 % 4 +std::string copy{str_with_len_N};/64_mean 54.4 ns 54.4 ns 4 +std::string copy{str_with_len_N};/64_median 54.4 ns 54.4 ns 4 +std::string copy{str_with_len_N};/64_stddev 0.482 ns 0.482 ns 4 +std::string copy{str_with_len_N};/64_cv 0.89 % 0.89 % 4 +std::string copy{str_with_len_N};/128_mean 59.7 ns 59.7 ns 4 +std::string copy{str_with_len_N};/128_median 56.7 ns 56.7 ns 4 +std::string copy{str_with_len_N};/128_stddev 6.91 ns 6.91 ns 4 +std::string copy{str_with_len_N};/128_cv 11.58 % 11.58 % 4 +std::string copy{str_with_len_N};/256_mean 73.8 ns 73.8 ns 4 +std::string copy{str_with_len_N};/256_median 74.3 ns 74.3 ns 4 +std::string copy{str_with_len_N};/256_stddev 8.94 ns 8.94 ns 4 +std::string copy{str_with_len_N};/256_cv 12.12 % 12.12 % 4 +std::string copy{str_with_len_N};/512_mean 81.2 ns 81.2 ns 4 +std::string copy{str_with_len_N};/512_median 82.6 ns 82.6 ns 4 +std::string copy{str_with_len_N};/512_stddev 9.69 ns 9.69 ns 4 +std::string copy{str_with_len_N};/512_cv 11.94 % 11.94 % 4 +std::string copy{str_with_len_N};/1024_mean 93.3 ns 93.3 ns 4 +std::string copy{str_with_len_N};/1024_median 93.4 ns 93.4 ns 4 +std::string copy{str_with_len_N};/1024_stddev 1.97 ns 1.97 ns 4 +std::string copy{str_with_len_N};/1024_cv 2.11 % 2.11 % 4 +std::string copy{str_with_len_N};/2048_mean 109 ns 109 ns 4 +std::string copy{str_with_len_N};/2048_median 110 ns 110 ns 4 +std::string copy{str_with_len_N};/2048_stddev 2.09 ns 2.09 ns 4 +std::string copy{str_with_len_N};/2048_cv 1.92 % 1.92 % 4 std::string copy{str_with_len_N};/4096_mean 165 ns 165 ns 4 -std::string copy{str_with_len_N};/4096_median 163 ns 163 ns 4 -std::string copy{str_with_len_N};/4096_stddev 9.15 ns 9.15 ns 4 -std::string copy{str_with_len_N};/4096_cv 5.54 % 5.54 % 4 -stringa copy{str_with_len_N};/15_mean 2.50 ns 2.50 ns 4 -stringa copy{str_with_len_N};/15_median 2.50 ns 2.50 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.115 ns 0.115 ns 4 -stringa copy{str_with_len_N};/15_cv 4.60 % 4.59 % 4 -stringa copy{str_with_len_N};/16_mean 4.92 ns 4.92 ns 4 -stringa copy{str_with_len_N};/16_median 4.93 ns 4.93 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.158 ns 0.158 ns 4 -stringa copy{str_with_len_N};/16_cv 3.20 % 3.20 % 4 -stringa copy{str_with_len_N};/23_mean 4.77 ns 4.77 ns 4 -stringa copy{str_with_len_N};/23_median 4.78 ns 4.78 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.025 ns 0.025 ns 4 -stringa copy{str_with_len_N};/23_cv 0.52 % 0.52 % 4 -stringa copy{str_with_len_N};/24_mean 4.73 ns 4.73 ns 4 -stringa copy{str_with_len_N};/24_median 4.72 ns 4.72 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.085 ns 0.085 ns 4 -stringa copy{str_with_len_N};/24_cv 1.80 % 1.80 % 4 -stringa copy{str_with_len_N};/32_mean 4.77 ns 4.77 ns 4 -stringa copy{str_with_len_N};/32_median 4.78 ns 4.78 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.040 ns 0.040 ns 4 -stringa copy{str_with_len_N};/32_cv 0.84 % 0.84 % 4 -stringa copy{str_with_len_N};/64_mean 4.76 ns 4.76 ns 4 -stringa copy{str_with_len_N};/64_median 4.74 ns 4.74 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.090 ns 0.090 ns 4 -stringa copy{str_with_len_N};/64_cv 1.88 % 1.88 % 4 -stringa copy{str_with_len_N};/128_mean 4.74 ns 4.74 ns 4 -stringa copy{str_with_len_N};/128_median 4.73 ns 4.73 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.050 ns 0.050 ns 4 -stringa copy{str_with_len_N};/128_cv 1.06 % 1.06 % 4 -stringa copy{str_with_len_N};/256_mean 4.74 ns 4.74 ns 4 -stringa copy{str_with_len_N};/256_median 4.74 ns 4.74 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.042 ns 0.042 ns 4 -stringa copy{str_with_len_N};/256_cv 0.89 % 0.89 % 4 -stringa copy{str_with_len_N};/512_mean 4.75 ns 4.75 ns 4 -stringa copy{str_with_len_N};/512_median 4.73 ns 4.73 ns 4 +std::string copy{str_with_len_N};/4096_median 165 ns 165 ns 4 +std::string copy{str_with_len_N};/4096_stddev 2.73 ns 2.73 ns 4 +std::string copy{str_with_len_N};/4096_cv 1.65 % 1.65 % 4 +stringa copy{str_with_len_N};/15_mean 2.46 ns 2.46 ns 4 +stringa copy{str_with_len_N};/15_median 2.45 ns 2.45 ns 4 +stringa copy{str_with_len_N};/15_stddev 0.085 ns 0.085 ns 4 +stringa copy{str_with_len_N};/15_cv 3.46 % 3.46 % 4 +stringa copy{str_with_len_N};/16_mean 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/16_median 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/16_stddev 0.050 ns 0.050 ns 4 +stringa copy{str_with_len_N};/16_cv 1.09 % 1.09 % 4 +stringa copy{str_with_len_N};/23_mean 4.54 ns 4.54 ns 4 +stringa copy{str_with_len_N};/23_median 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/23_stddev 0.024 ns 0.024 ns 4 +stringa copy{str_with_len_N};/23_cv 0.54 % 0.54 % 4 +stringa copy{str_with_len_N};/24_mean 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/24_median 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/24_stddev 0.034 ns 0.034 ns 4 +stringa copy{str_with_len_N};/24_cv 0.75 % 0.75 % 4 +stringa copy{str_with_len_N};/32_mean 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/32_median 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/32_stddev 0.064 ns 0.064 ns 4 +stringa copy{str_with_len_N};/32_cv 1.41 % 1.41 % 4 +stringa copy{str_with_len_N};/64_mean 4.56 ns 4.56 ns 4 +stringa copy{str_with_len_N};/64_median 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/64_stddev 0.059 ns 0.059 ns 4 +stringa copy{str_with_len_N};/64_cv 1.29 % 1.29 % 4 +stringa copy{str_with_len_N};/128_mean 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/128_median 4.55 ns 4.55 ns 4 +stringa copy{str_with_len_N};/128_stddev 0.060 ns 0.060 ns 4 +stringa copy{str_with_len_N};/128_cv 1.32 % 1.32 % 4 +stringa copy{str_with_len_N};/256_mean 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/256_median 4.56 ns 4.56 ns 4 +stringa copy{str_with_len_N};/256_stddev 0.043 ns 0.043 ns 4 +stringa copy{str_with_len_N};/256_cv 0.95 % 0.95 % 4 +stringa copy{str_with_len_N};/512_mean 4.60 ns 4.60 ns 4 +stringa copy{str_with_len_N};/512_median 4.58 ns 4.58 ns 4 stringa copy{str_with_len_N};/512_stddev 0.051 ns 0.051 ns 4 -stringa copy{str_with_len_N};/512_cv 1.07 % 1.07 % 4 -stringa copy{str_with_len_N};/1024_mean 4.75 ns 4.75 ns 4 -stringa copy{str_with_len_N};/1024_median 4.75 ns 4.75 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.038 ns 0.038 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.79 % 0.79 % 4 -stringa copy{str_with_len_N};/2048_mean 5.34 ns 5.34 ns 4 -stringa copy{str_with_len_N};/2048_median 5.25 ns 5.25 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.520 ns 0.520 ns 4 -stringa copy{str_with_len_N};/2048_cv 9.75 % 9.75 % 4 -stringa copy{str_with_len_N};/4096_mean 5.09 ns 5.09 ns 4 -stringa copy{str_with_len_N};/4096_median 5.19 ns 5.19 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.258 ns 0.258 ns 4 -stringa copy{str_with_len_N};/4096_cv 5.07 % 5.07 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.26 ns 4.26 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.18 ns 4.18 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.348 ns 0.348 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 8.18 % 8.18 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 16.3 ns 16.3 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 16.4 ns 16.4 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.595 ns 0.595 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 3.65 % 3.65 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 36.5 ns 36.5 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 36.5 ns 36.5 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.695 ns 0.695 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 1.90 % 1.90 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 37.9 ns 37.9 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 37.7 ns 37.7 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 2.17 ns 2.17 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 5.71 % 5.71 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 39.6 ns 39.6 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 39.1 ns 39.1 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 1.39 ns 1.39 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 3.50 % 3.50 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 39.5 ns 39.5 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 39.0 ns 39.0 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 1.54 ns 1.54 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 3.91 % 3.91 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 39.7 ns 39.7 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 39.7 ns 39.7 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.644 ns 0.644 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 1.62 % 1.62 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 63.9 ns 63.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 65.9 ns 65.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 11.7 ns 11.7 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 18.30 % 18.30 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 71.1 ns 71.1 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 74.7 ns 74.7 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 13.4 ns 13.4 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 18.81 % 18.81 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 84.9 ns 84.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 85.6 ns 85.6 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 4.67 ns 4.67 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 5.50 % 5.50 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 104 ns 104 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 102 ns 102 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 8.34 ns 8.34 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 8.00 % 8.00 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 145 ns 145 ns 4 +stringa copy{str_with_len_N};/512_cv 1.10 % 1.10 % 4 +stringa copy{str_with_len_N};/1024_mean 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/1024_median 4.56 ns 4.56 ns 4 +stringa copy{str_with_len_N};/1024_stddev 0.052 ns 0.052 ns 4 +stringa copy{str_with_len_N};/1024_cv 1.14 % 1.14 % 4 +stringa copy{str_with_len_N};/2048_mean 4.56 ns 4.56 ns 4 +stringa copy{str_with_len_N};/2048_median 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/2048_stddev 0.045 ns 0.045 ns 4 +stringa copy{str_with_len_N};/2048_cv 0.98 % 0.98 % 4 +stringa copy{str_with_len_N};/4096_mean 4.57 ns 4.57 ns 4 +stringa copy{str_with_len_N};/4096_median 4.59 ns 4.59 ns 4 +stringa copy{str_with_len_N};/4096_stddev 0.055 ns 0.055 ns 4 +stringa copy{str_with_len_N};/4096_cv 1.20 % 1.20 % 4 +lstringa<16> copy{str_with_len_N};/15_mean 4.14 ns 4.14 ns 4 +lstringa<16> copy{str_with_len_N};/15_median 4.12 ns 4.12 ns 4 +lstringa<16> copy{str_with_len_N};/15_stddev 0.074 ns 0.074 ns 4 +lstringa<16> copy{str_with_len_N};/15_cv 1.78 % 1.78 % 4 +lstringa<16> copy{str_with_len_N};/16_mean 16.9 ns 16.9 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.839 ns 0.839 ns 4 +lstringa<16> copy{str_with_len_N};/16_cv 4.97 % 4.97 % 4 +lstringa<16> copy{str_with_len_N};/23_mean 36.0 ns 36.0 ns 4 +lstringa<16> copy{str_with_len_N};/23_median 36.0 ns 36.0 ns 4 +lstringa<16> copy{str_with_len_N};/23_stddev 0.556 ns 0.556 ns 4 +lstringa<16> copy{str_with_len_N};/23_cv 1.55 % 1.55 % 4 +lstringa<16> copy{str_with_len_N};/24_mean 37.0 ns 37.0 ns 4 +lstringa<16> copy{str_with_len_N};/24_median 37.0 ns 37.0 ns 4 +lstringa<16> copy{str_with_len_N};/24_stddev 0.240 ns 0.240 ns 4 +lstringa<16> copy{str_with_len_N};/24_cv 0.65 % 0.65 % 4 +lstringa<16> copy{str_with_len_N};/32_mean 38.0 ns 38.0 ns 4 +lstringa<16> copy{str_with_len_N};/32_median 37.8 ns 37.8 ns 4 +lstringa<16> copy{str_with_len_N};/32_stddev 0.985 ns 0.985 ns 4 +lstringa<16> copy{str_with_len_N};/32_cv 2.60 % 2.60 % 4 +lstringa<16> copy{str_with_len_N};/64_mean 38.3 ns 38.3 ns 4 +lstringa<16> copy{str_with_len_N};/64_median 38.3 ns 38.3 ns 4 +lstringa<16> copy{str_with_len_N};/64_stddev 0.332 ns 0.332 ns 4 +lstringa<16> copy{str_with_len_N};/64_cv 0.87 % 0.87 % 4 +lstringa<16> copy{str_with_len_N};/128_mean 38.8 ns 38.8 ns 4 +lstringa<16> copy{str_with_len_N};/128_median 38.4 ns 38.4 ns 4 +lstringa<16> copy{str_with_len_N};/128_stddev 0.889 ns 0.889 ns 4 +lstringa<16> copy{str_with_len_N};/128_cv 2.29 % 2.29 % 4 +lstringa<16> copy{str_with_len_N};/256_mean 62.4 ns 62.4 ns 4 +lstringa<16> copy{str_with_len_N};/256_median 66.7 ns 66.7 ns 4 +lstringa<16> copy{str_with_len_N};/256_stddev 10.1 ns 10.1 ns 4 +lstringa<16> copy{str_with_len_N};/256_cv 16.21 % 16.21 % 4 +lstringa<16> copy{str_with_len_N};/512_mean 66.7 ns 66.7 ns 4 +lstringa<16> copy{str_with_len_N};/512_median 69.9 ns 69.9 ns 4 +lstringa<16> copy{str_with_len_N};/512_stddev 11.9 ns 11.9 ns 4 +lstringa<16> copy{str_with_len_N};/512_cv 17.82 % 17.82 % 4 +lstringa<16> copy{str_with_len_N};/1024_mean 78.8 ns 78.8 ns 4 +lstringa<16> copy{str_with_len_N};/1024_median 78.5 ns 78.5 ns 4 +lstringa<16> copy{str_with_len_N};/1024_stddev 3.36 ns 3.36 ns 4 +lstringa<16> copy{str_with_len_N};/1024_cv 4.27 % 4.27 % 4 +lstringa<16> copy{str_with_len_N};/2048_mean 94.8 ns 94.8 ns 4 +lstringa<16> copy{str_with_len_N};/2048_median 94.8 ns 94.8 ns 4 +lstringa<16> copy{str_with_len_N};/2048_stddev 0.570 ns 0.570 ns 4 +lstringa<16> copy{str_with_len_N};/2048_cv 0.60 % 0.60 % 4 +lstringa<16> copy{str_with_len_N};/4096_mean 146 ns 146 ns 4 lstringa<16> copy{str_with_len_N};/4096_median 146 ns 146 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 4.90 ns 4.90 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 3.37 % 3.37 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 4.67 ns 4.67 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 4.52 ns 4.52 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.443 ns 0.444 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 9.49 % 9.52 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 16.9 ns 16.9 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 16.8 ns 16.8 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.643 ns 0.644 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 3.81 % 3.81 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 16.2 ns 16.2 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 15.8 ns 15.8 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.825 ns 0.825 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 5.09 % 5.09 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 16.0 ns 16.0 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 15.8 ns 15.8 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.895 ns 0.895 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 5.60 % 5.60 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 20.1 ns 20.1 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 20.1 ns 20.1 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.610 ns 0.610 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 3.04 % 3.03 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 20.1 ns 20.1 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 19.9 ns 19.9 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 1.18 ns 1.18 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 5.86 % 5.86 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 20.3 ns 20.3 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 20.1 ns 20.1 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.976 ns 0.976 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 4.82 % 4.82 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 21.6 ns 21.6 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 21.6 ns 21.6 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.298 ns 0.298 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 1.38 % 1.38 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 24.0 ns 24.1 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 23.6 ns 23.6 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 1.22 ns 1.22 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 5.09 % 5.09 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 82.6 ns 82.6 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 83.0 ns 83.0 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 2.36 ns 2.36 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.85 % 2.85 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 103 ns 103 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 103 ns 103 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 2.46 ns 2.46 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 2.40 % 2.40 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 152 ns 152 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 150 ns 150 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 13.4 ns 13.4 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 8.84 % 8.84 % 4 +lstringa<16> copy{str_with_len_N};/4096_stddev 2.30 ns 2.30 ns 4 +lstringa<16> copy{str_with_len_N};/4096_cv 1.57 % 1.57 % 4 +lstringa<512> copy{str_with_len_N};/15_mean 4.06 ns 4.06 ns 4 +lstringa<512> copy{str_with_len_N};/15_median 4.06 ns 4.06 ns 4 +lstringa<512> copy{str_with_len_N};/15_stddev 0.038 ns 0.038 ns 4 +lstringa<512> copy{str_with_len_N};/15_cv 0.94 % 0.94 % 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.1 ns 15.1 ns 4 +lstringa<512> copy{str_with_len_N};/16_stddev 0.210 ns 0.210 ns 4 +lstringa<512> copy{str_with_len_N};/16_cv 1.40 % 1.40 % 4 +lstringa<512> copy{str_with_len_N};/23_mean 15.1 ns 15.1 ns 4 +lstringa<512> copy{str_with_len_N};/23_median 15.2 ns 15.2 ns 4 +lstringa<512> copy{str_with_len_N};/23_stddev 0.322 ns 0.322 ns 4 +lstringa<512> copy{str_with_len_N};/23_cv 2.13 % 2.13 % 4 +lstringa<512> copy{str_with_len_N};/24_mean 15.2 ns 15.2 ns 4 +lstringa<512> copy{str_with_len_N};/24_median 15.2 ns 15.2 ns 4 +lstringa<512> copy{str_with_len_N};/24_stddev 0.357 ns 0.357 ns 4 +lstringa<512> copy{str_with_len_N};/24_cv 2.34 % 2.34 % 4 +lstringa<512> copy{str_with_len_N};/32_mean 16.9 ns 16.9 ns 4 +lstringa<512> copy{str_with_len_N};/32_median 17.0 ns 17.0 ns 4 +lstringa<512> copy{str_with_len_N};/32_stddev 0.320 ns 0.320 ns 4 +lstringa<512> copy{str_with_len_N};/32_cv 1.90 % 1.90 % 4 +lstringa<512> copy{str_with_len_N};/64_mean 17.9 ns 17.9 ns 4 +lstringa<512> copy{str_with_len_N};/64_median 18.1 ns 18.1 ns 4 +lstringa<512> copy{str_with_len_N};/64_stddev 0.618 ns 0.618 ns 4 +lstringa<512> copy{str_with_len_N};/64_cv 3.46 % 3.46 % 4 +lstringa<512> copy{str_with_len_N};/128_mean 18.2 ns 18.2 ns 4 +lstringa<512> copy{str_with_len_N};/128_median 18.2 ns 18.2 ns 4 +lstringa<512> copy{str_with_len_N};/128_stddev 0.466 ns 0.466 ns 4 +lstringa<512> copy{str_with_len_N};/128_cv 2.56 % 2.56 % 4 +lstringa<512> copy{str_with_len_N};/256_mean 20.8 ns 20.8 ns 4 +lstringa<512> copy{str_with_len_N};/256_median 21.0 ns 21.0 ns 4 +lstringa<512> copy{str_with_len_N};/256_stddev 0.540 ns 0.540 ns 4 +lstringa<512> copy{str_with_len_N};/256_cv 2.59 % 2.59 % 4 +lstringa<512> copy{str_with_len_N};/512_mean 24.0 ns 24.0 ns 4 +lstringa<512> copy{str_with_len_N};/512_median 24.0 ns 24.0 ns 4 +lstringa<512> copy{str_with_len_N};/512_stddev 0.374 ns 0.374 ns 4 +lstringa<512> copy{str_with_len_N};/512_cv 1.56 % 1.56 % 4 +lstringa<512> copy{str_with_len_N};/1024_mean 78.6 ns 78.6 ns 4 +lstringa<512> copy{str_with_len_N};/1024_median 77.5 ns 77.5 ns 4 +lstringa<512> copy{str_with_len_N};/1024_stddev 2.75 ns 2.75 ns 4 +lstringa<512> copy{str_with_len_N};/1024_cv 3.49 % 3.49 % 4 +lstringa<512> copy{str_with_len_N};/2048_mean 95.8 ns 95.8 ns 4 +lstringa<512> copy{str_with_len_N};/2048_median 95.7 ns 95.7 ns 4 +lstringa<512> copy{str_with_len_N};/2048_stddev 2.32 ns 2.32 ns 4 +lstringa<512> copy{str_with_len_N};/2048_cv 2.42 % 2.42 % 4 +lstringa<512> copy{str_with_len_N};/4096_mean 146 ns 146 ns 4 +lstringa<512> copy{str_with_len_N};/4096_median 146 ns 146 ns 4 +lstringa<512> copy{str_with_len_N};/4096_stddev 1.96 ns 1.96 ns 4 +lstringa<512> copy{str_with_len_N};/4096_cv 1.34 % 1.34 % 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 96.0 ns 96.0 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 92.2 ns 92.2 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 8.34 ns 8.34 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 8.69 % 8.69 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 0.787 ns 0.787 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 0.788 ns 0.788 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.054 ns 0.054 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 6.88 % 6.88 % 4 -stringa s = "123456789"; int res = s.to_int_mean 19.6 ns 19.6 ns 4 -stringa s = "123456789"; int res = s.to_int_median 19.3 ns 19.3 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.832 ns 0.832 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 4.25 % 4.25 % 4 -ssa s = "123456789"; int res = s.to_int_mean 20.8 ns 20.8 ns 4 -ssa s = "123456789"; int res = s.to_int_median 20.6 ns 20.6 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 1.59 ns 1.59 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 7.65 % 7.65 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 16.6 ns 16.6 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 16.7 ns 16.7 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.691 ns 0.691 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 4.16 % 4.16 % 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 91.7 ns 91.7 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 91.5 ns 91.5 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 1.23 ns 1.23 ns 4 +std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 1.34 % 1.34 % 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 0.739 ns 0.739 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 0.740 ns 0.740 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.006 ns 0.006 ns 4 +std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 0.86 % 0.86 % 4 +stringa s = "123456789"; int res = s.to_int_mean 20.4 ns 20.4 ns 4 +stringa s = "123456789"; int res = s.to_int_median 20.4 ns 20.4 ns 4 +stringa s = "123456789"; int res = s.to_int_stddev 0.133 ns 0.133 ns 4 +stringa s = "123456789"; int res = s.to_int_cv 0.65 % 0.65 % 4 +ssa s = "123456789"; int res = s.to_int_mean 16.2 ns 16.2 ns 4 +ssa s = "123456789"; int res = s.to_int_median 16.2 ns 16.2 ns 4 +ssa s = "123456789"; int res = s.to_int_stddev 0.183 ns 0.183 ns 4 +ssa s = "123456789"; int res = s.to_int_cv 1.13 % 1.13 % 4 +lstringa<20> s = "123456789"; int res = s.to_int_mean 16.1 ns 16.1 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_median 16.1 ns 16.1 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.297 ns 0.297 ns 4 +lstringa<20> s = "123456789"; int res = s.to_int_cv 1.84 % 1.84 % 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 69.8 ns 69.8 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 70.2 ns 70.2 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 2.25 ns 2.25 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 3.22 % 3.22 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 19.3 ns 19.3 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 19.4 ns 19.4 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 1.50 ns 1.50 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 7.81 % 7.81 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 20.2 ns 20.2 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 20.1 ns 20.1 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 1.28 ns 1.28 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 6.35 % 6.35 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 20.1 ns 20.1 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 20.0 ns 20.0 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 1.53 ns 1.53 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 7.63 % 7.63 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 15.9 ns 15.9 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 15.9 ns 15.9 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.170 ns 0.170 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 1.07 % 1.07 % 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 67.2 ns 67.2 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 67.2 ns 67.2 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.233 ns 0.233 ns 4 +std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 0.35 % 0.35 % 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 18.3 ns 18.3 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 18.3 ns 18.3 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.264 ns 0.263 ns 4 +std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.44 % 1.44 % 4 +stringa s = "abcDef"; int res = s.to_int_mean 17.2 ns 17.2 ns 4 +stringa s = "abcDef"; int res = s.to_int_median 17.3 ns 17.3 ns 4 +stringa s = "abcDef"; int res = s.to_int_stddev 0.309 ns 0.309 ns 4 +stringa s = "abcDef"; int res = s.to_int_cv 1.79 % 1.79 % 4 +ssa s = "abcDef"; int res = s.to_int_mean 16.7 ns 16.7 ns 4 +ssa s = "abcDef"; int res = s.to_int_median 16.6 ns 16.6 ns 4 +ssa s = "abcDef"; int res = s.to_int_stddev 0.184 ns 0.184 ns 4 +ssa s = "abcDef"; int res = s.to_int_cv 1.10 % 1.10 % 4 +lstringa<20> s = "abcDef"; int res = s.to_int_mean 16.1 ns 16.1 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_median 16.0 ns 16.0 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.330 ns 0.330 ns 4 +lstringa<20> s = "abcDef"; int res = s.to_int_cv 2.04 % 2.04 % 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 98.1 ns 98.1 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 97.9 ns 97.9 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 2.13 ns 2.13 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.17 % 2.17 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 13.9 ns 13.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 13.9 ns 13.9 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.218 ns 0.218 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 14.8 ns 14.8 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 14.7 ns 14.7 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.455 ns 0.455 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 3.07 % 3.08 % 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_mean 97.3 ns 97.3 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 97.6 ns 97.6 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 1.28 ns 1.28 ns 4 +std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.32 % 1.32 % 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 13.7 ns 13.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 13.7 ns 13.7 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.061 ns 0.061 ns 4 +stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.44 % 0.44 % 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 15.0 ns 15.0 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 15.0 ns 15.0 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.408 ns 0.407 ns 4 +ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 2.71 % 2.71 % 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 305 ns 305 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 304 ns 304 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.73 ns 4.73 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.55 % 1.55 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 106 ns 106 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 106 ns 106 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.96 ns 1.97 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.85 % 1.85 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 44.4 ns 44.4 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 44.0 ns 44.0 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 2.74 ns 2.74 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 6.18 % 6.18 % 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_mean 298 ns 298 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 297 ns 297 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 4.44 ns 4.45 ns 4 +std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.49 % 1.49 % 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 108 ns 108 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 108 ns 108 ns 4 +std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.57 ns 1.57 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 42.2 ns 42.2 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_median 42.3 ns 42.3 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.399 ns 0.399 ns 4 +ssa s = "1234.567e10"; double res = *s.to_double()_cv 0.95 % 0.95 % 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 6891 ns 6891 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 6729 ns 6729 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 459 ns 459 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 6.67 % 6.67 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 853 ns 853 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 819 ns 820 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 91.7 ns 91.7 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 10.75 % 10.75 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 805 ns 805 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 779 ns 779 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 60.6 ns 60.6 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 7.53 % 7.53 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 594 ns 594 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 597 ns 597 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 21.6 ns 21.6 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.64 % 3.64 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 462 ns 462 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 458 ns 458 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 15.9 ns 15.9 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.44 % 3.44 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 366 ns 366 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 366 ns 366 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 10.0 ns 10.0 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.74 % 2.74 % 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_mean 6499 ns 6499 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_median 6469 ns 6469 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 189 ns 189 ns 4 +std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.90 % 2.90 % 4 +std::string str; ... str += "abbaabbaabbaabba";_mean 815 ns 815 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_median 820 ns 820 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_stddev 20.2 ns 20.2 ns 4 +std::string str; ... str += "abbaabbaabbaabba";_cv 2.48 % 2.48 % 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 794 ns 794 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_median 793 ns 793 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 94.1 ns 94.1 ns 4 +lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 11.84 % 11.84 % 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 620 ns 620 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_median 615 ns 615 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 22.6 ns 22.6 ns 4 +lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 3.65 % 3.65 % 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 401 ns 401 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_median 405 ns 405 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 14.1 ns 14.1 ns 4 +lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 3.52 % 3.52 % 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 335 ns 335 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 335 ns 335 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 4.51 ns 4.52 ns 4 +lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.35 % 1.35 % 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 7083 ns 7083 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7007 ns 7007 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 222 ns 222 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.13 % 3.13 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2327 ns 2327 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2321 ns 2321 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 47.9 ns 47.9 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.06 % 2.06 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1069 ns 1069 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1056 ns 1056 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 45.5 ns 45.5 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.26 % 4.26 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 895 ns 895 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 894 ns 894 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.24 ns 7.26 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.81 % 0.81 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 800 ns 800 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 803 ns 803 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 38.4 ns 38.4 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.80 % 4.80 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 713 ns 713 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 708 ns 708 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 30.3 ns 30.3 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.25 % 4.25 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_mean 7163 ns 7163 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7211 ns 7211 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 153 ns 153 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.14 % 2.14 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2186 ns 2186 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2185 ns 2185 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 40.6 ns 40.6 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.86 % 1.86 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 890 ns 890 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 892 ns 892 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 31.5 ns 31.5 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.54 % 3.54 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 864 ns 864 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 843 ns 843 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 72.7 ns 72.7 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 8.42 % 8.42 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 722 ns 722 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 723 ns 723 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 6.78 ns 6.79 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.94 % 0.94 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 639 ns 639 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 637 ns 637 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.2 ns 18.3 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.85 % 2.86 % 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 345299 ns 345303 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 345382 ns 345387 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 4911 ns 4912 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.42 % 1.42 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 127979 ns 127979 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 129225 ns 129225 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3514 ns 3515 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.75 % 2.75 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 52828 ns 52828 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 54171 ns 54171 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2762 ns 2762 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 5.23 % 5.23 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49507 ns 49507 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48568 ns 48568 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2403 ns 2403 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.85 % 4.85 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 50433 ns 50433 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 50589 ns 50589 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1207 ns 1207 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.39 % 2.39 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47948 ns 47948 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 47586 ns 47587 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1616 ns 1616 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.37 % 3.37 % 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_mean 348509 ns 348511 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 346178 ns 346180 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6563 ns 6565 ns 4 +std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.88 % 1.88 % 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 120123 ns 120124 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 119443 ns 119443 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2307 ns 2307 ns 4 +std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.92 % 1.92 % 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 44146 ns 44146 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 44022 ns 44023 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 746 ns 746 ns 4 +lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.69 % 1.69 % 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 44572 ns 44572 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 44629 ns 44629 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 793 ns 793 ns 4 +lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.78 % 1.78 % 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 44298 ns 44298 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 44441 ns 44441 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 777 ns 777 ns 4 +lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.75 % 1.75 % 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 44327 ns 44327 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 44235 ns 44235 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 660 ns 660 ns 4 +lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.49 % 1.49 % 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 7228 ns 7228 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 7267 ns 7267 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 84.1 ns 84.1 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 1.16 % 1.16 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 2636 ns 2636 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 2644 ns 2644 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 113 ns 113 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 4.29 % 4.29 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 1283 ns 1283 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 1296 ns 1296 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 36.8 ns 36.8 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.86 % 2.86 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 1173 ns 1173 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 1176 ns 1176 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 48.3 ns 48.3 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 4.12 % 4.12 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 1019 ns 1019 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 988 ns 988 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 71.4 ns 71.4 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 7.01 % 7.01 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 906 ns 906 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 57.5 ns 57.5 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 6.35 % 6.35 % 4 +std::stringstream str; ... str << str_var1 << str_var2;_mean 7317 ns 7317 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_median 7276 ns 7276 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_stddev 187 ns 187 ns 4 +std::stringstream str; ... str << str_var1 << str_var2;_cv 2.55 % 2.55 % 4 +std::string str; ... str += str_var1 + str_var2;_mean 2607 ns 2607 ns 4 +std::string str; ... str += str_var1 + str_var2;_median 2588 ns 2588 ns 4 +std::string str; ... str += str_var1 + str_var2;_stddev 76.9 ns 77.0 ns 4 +std::string str; ... str += str_var1 + str_var2;_cv 2.95 % 2.95 % 4 +lstringa<16> str; ... str += str_var1 + str_var2;_mean 1132 ns 1132 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_median 1125 ns 1125 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_stddev 24.3 ns 24.3 ns 4 +lstringa<16> str; ... str += str_var1 + str_var2;_cv 2.15 % 2.15 % 4 +lstringa<128> str; ... str += str_var1 + str_var2;_mean 1062 ns 1062 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_median 1062 ns 1062 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_stddev 10.9 ns 10.9 ns 4 +lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.03 % 1.03 % 4 +lstringa<512> str; ... str += str_var1 + str_var2;_mean 914 ns 914 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_median 917 ns 917 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_stddev 16.5 ns 16.5 ns 4 +lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.81 % 1.81 % 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_mean 829 ns 829 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_median 829 ns 829 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 14.6 ns 14.6 ns 4 +lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.76 % 1.76 % 4 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 11660 ns 11660 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 11610 ns 11610 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 189 ns 189 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 1.62 % 1.62 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1723 ns 1723 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1708 ns 1708 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 63.9 ns 63.9 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.71 % 3.71 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5394 ns 5394 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5367 ns 5367 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 73.9 ns 73.9 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.37 % 1.37 % 4 -std::string str = std::format("test = {} times", k);_mean 2892 ns 2892 ns 4 -std::string str = std::format("test = {} times", k);_median 2856 ns 2856 ns 4 -std::string str = std::format("test = {} times", k);_stddev 89.3 ns 89.3 ns 4 -std::string str = std::format("test = {} times", k);_cv 3.09 % 3.09 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 4873 ns 4873 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 4822 ns 4822 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 251 ns 251 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 5.15 % 5.15 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 4141 ns 4141 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 4133 ns 4133 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 49.5 ns 49.5 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.19 % 1.19 % 4 -lstringa<8> str = "test = " + k + " times";_mean 611 ns 611 ns 4 -lstringa<8> str = "test = " + k + " times";_median 616 ns 616 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 20.6 ns 20.6 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 3.37 % 3.37 % 4 -lstringa<32> str = "test = " + k + " times";_mean 374 ns 374 ns 4 -lstringa<32> str = "test = " + k + " times";_median 376 ns 376 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 11.5 ns 11.5 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 3.08 % 3.08 % 4 -stringa str = "test = " + k + " times";_mean 554 ns 554 ns 4 -stringa str = "test = " + k + " times";_median 561 ns 561 ns 4 -stringa str = "test = " + k + " times";_stddev 23.4 ns 23.4 ns 4 -stringa str = "test = " + k + " times";_cv 4.23 % 4.23 % 4 +std::stringstream str; str << "test = " << k << " times";_mean 11412 ns 11412 ns 4 +std::stringstream str; str << "test = " << k << " times";_median 11465 ns 11465 ns 4 +std::stringstream str; str << "test = " << k << " times";_stddev 153 ns 153 ns 4 +std::stringstream str; str << "test = " << k << " times";_cv 1.34 % 1.34 % 4 +std::string str = "test = " + std::to_string(k) + " times";_mean 1772 ns 1772 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_median 1755 ns 1755 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_stddev 99.1 ns 99.1 ns 4 +std::string str = "test = " + std::to_string(k) + " times";_cv 5.59 % 5.59 % 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5285 ns 5285 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5294 ns 5294 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 36.6 ns 36.6 ns 4 +char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.69 % 0.69 % 4 +std::string str = std::format("test = {} times", k);_mean 2834 ns 2834 ns 4 +std::string str = std::format("test = {} times", k);_median 2832 ns 2832 ns 4 +std::string str = std::format("test = {} times", k);_stddev 37.0 ns 37.0 ns 4 +std::string str = std::format("test = {} times", k);_cv 1.30 % 1.30 % 4 +lstringa<8> str; str.format("test = {} times", k);_mean 4681 ns 4681 ns 4 +lstringa<8> str; str.format("test = {} times", k);_median 4678 ns 4678 ns 4 +lstringa<8> str; str.format("test = {} times", k);_stddev 65.6 ns 65.6 ns 4 +lstringa<8> str; str.format("test = {} times", k);_cv 1.40 % 1.40 % 4 +lstringa<32> str; str.format("test = {} times", k);_mean 4054 ns 4054 ns 4 +lstringa<32> str; str.format("test = {} times", k);_median 4047 ns 4047 ns 4 +lstringa<32> str; str.format("test = {} times", k);_stddev 105 ns 105 ns 4 +lstringa<32> str; str.format("test = {} times", k);_cv 2.59 % 2.59 % 4 +lstringa<8> str = "test = " + k + " times";_mean 555 ns 555 ns 4 +lstringa<8> str = "test = " + k + " times";_median 546 ns 546 ns 4 +lstringa<8> str = "test = " + k + " times";_stddev 29.0 ns 29.0 ns 4 +lstringa<8> str = "test = " + k + " times";_cv 5.22 % 5.22 % 4 +lstringa<32> str = "test = " + k + " times";_mean 339 ns 339 ns 4 +lstringa<32> str = "test = " + k + " times";_median 341 ns 341 ns 4 +lstringa<32> str = "test = " + k + " times";_stddev 10.3 ns 10.3 ns 4 +lstringa<32> str = "test = " + k + " times";_cv 3.03 % 3.03 % 4 +stringa str = "test = " + k + " times";_mean 511 ns 511 ns 4 +stringa str = "test = " + k + " times";_median 512 ns 512 ns 4 +stringa str = "test = " + k + " times";_stddev 30.8 ns 30.8 ns 4 +stringa str = "test = " + k + " times";_cv 6.01 % 6.01 % 4 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 684 ns 684 ns 4 -std::string::find + substr + std::strtol_median 683 ns 683 ns 4 -std::string::find + substr + std::strtol_stddev 7.51 ns 7.52 ns 4 -std::string::find + substr + std::strtol_cv 1.10 % 1.10 % 4 -ssa::splitter + ssa::as_int_mean 247 ns 247 ns 4 -ssa::splitter + ssa::as_int_median 246 ns 246 ns 4 -ssa::splitter + ssa::as_int_stddev 14.0 ns 14.0 ns 4 -ssa::splitter + ssa::as_int_cv 5.66 % 5.66 % 4 -ssa::splitf + functor_mean 284 ns 284 ns 4 -ssa::splitf + functor_median 278 ns 278 ns 4 -ssa::splitf + functor_stddev 22.7 ns 22.7 ns 4 -ssa::splitf + functor_cv 8.00 % 8.00 % 4 +std::string::find + substr + std::strtol_mean 660 ns 660 ns 4 +std::string::find + substr + std::strtol_median 660 ns 660 ns 4 +std::string::find + substr + std::strtol_stddev 10.3 ns 10.3 ns 4 +std::string::find + substr + std::strtol_cv 1.56 % 1.56 % 4 +ssa::splitter + ssa::as_int_mean 245 ns 245 ns 4 +ssa::splitter + ssa::as_int_median 244 ns 244 ns 4 +ssa::splitter + ssa::as_int_stddev 3.30 ns 3.30 ns 4 +ssa::splitter + ssa::as_int_cv 1.35 % 1.35 % 4 +ssa::splitf + functor_mean 271 ns 271 ns 4 +ssa::splitf + functor_median 268 ns 268 ns 4 +ssa::splitf + functor_stddev 7.54 ns 7.54 ns 4 +ssa::splitf + functor_cv 2.78 % 2.78 % 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 2994 ns 2994 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 2942 ns 2942 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 195 ns 195 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 6.51 % 6.51 % 4 -replace symbols with std::string find_first_of + replace_mean 5651 ns 5651 ns 4 -replace symbols with std::string find_first_of + replace_median 5576 ns 5576 ns 4 -replace symbols with std::string find_first_of + replace_stddev 212 ns 212 ns 4 -replace symbols with std::string find_first_of + replace_cv 3.75 % 3.75 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2910 ns 2910 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2848 ns 2848 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 157 ns 157 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 5.40 % 5.40 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 2879 ns 2879 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 2856 ns 2856 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 152 ns 152 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 5.28 % 5.28 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 2251 ns 2251 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 2240 ns 2240 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 67.2 ns 67.3 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.99 % 2.99 % 4 -replace const symbols with string expressions and without remembering all search results_mean 2457 ns 2457 ns 4 -replace const symbols with string expressions and without remembering all search results_median 2444 ns 2444 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 95.4 ns 95.4 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 3.88 % 3.88 % 4 -replace const symbols with string expressions and memorization of all search results_mean 2073 ns 2073 ns 4 -replace const symbols with string expressions and memorization of all search results_median 2090 ns 2090 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 75.2 ns 75.2 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 3.63 % 3.63 % 4 +Naive (and wrong) replace symbols with std::string find + replace_mean 2872 ns 2872 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_median 2855 ns 2855 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_stddev 93.5 ns 93.5 ns 4 +Naive (and wrong) replace symbols with std::string find + replace_cv 3.25 % 3.26 % 4 +replace symbols with std::string find_first_of + replace_mean 5223 ns 5223 ns 4 +replace symbols with std::string find_first_of + replace_median 5241 ns 5241 ns 4 +replace symbols with std::string find_first_of + replace_stddev 157 ns 157 ns 4 +replace symbols with std::string find_first_of + replace_cv 3.01 % 3.01 % 4 +replace symbols with std::string_view find_first_of + copy_mean 2704 ns 2704 ns 4 +replace symbols with std::string_view find_first_of + copy_median 2721 ns 2721 ns 4 +replace symbols with std::string_view find_first_of + copy_stddev 96.7 ns 96.7 ns 4 +replace symbols with std::string_view find_first_of + copy_cv 3.58 % 3.57 % 4 +replace runtime symbols with string expressions and without remembering all search results_mean 2675 ns 2675 ns 4 +replace runtime symbols with string expressions and without remembering all search results_median 2681 ns 2681 ns 4 +replace runtime symbols with string expressions and without remembering all search results_stddev 59.7 ns 59.7 ns 4 +replace runtime symbols with string expressions and without remembering all search results_cv 2.23 % 2.23 % 4 +replace runtime symbols with simstr and memorization of all search results_mean 2107 ns 2107 ns 4 +replace runtime symbols with simstr and memorization of all search results_median 2118 ns 2118 ns 4 +replace runtime symbols with simstr and memorization of all search results_stddev 57.8 ns 57.8 ns 4 +replace runtime symbols with simstr and memorization of all search results_cv 2.74 % 2.74 % 4 +replace const symbols with string expressions and without remembering all search results_mean 2227 ns 2227 ns 4 +replace const symbols with string expressions and without remembering all search results_median 2210 ns 2210 ns 4 +replace const symbols with string expressions and without remembering all search results_stddev 56.1 ns 56.1 ns 4 +replace const symbols with string expressions and without remembering all search results_cv 2.52 % 2.52 % 4 +replace const symbols with string expressions and memorization of all search results_mean 1872 ns 1872 ns 4 +replace const symbols with string expressions and memorization of all search results_median 1874 ns 1874 ns 4 +replace const symbols with string expressions and memorization of all search results_stddev 23.9 ns 23.9 ns 4 +replace const symbols with string expressions and memorization of all search results_cv 1.27 % 1.27 % 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 498 ns 498 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 500 ns 500 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 14.3 ns 14.3 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.88 % 2.88 % 4 -Short replace symbols with std::string find_first_of + replace_mean 751 ns 751 ns 4 -Short replace symbols with std::string find_first_of + replace_median 751 ns 751 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 32.5 ns 32.5 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 4.32 % 4.32 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 448 ns 448 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 450 ns 450 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 22.2 ns 22.2 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 4.96 % 4.96 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 392 ns 392 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 391 ns 391 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 5.52 ns 5.52 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 1.41 % 1.41 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 421 ns 421 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 420 ns 420 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 8.44 ns 8.43 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.00 % 2.00 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 278 ns 278 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 276 ns 276 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 472 ns 472 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 472 ns 472 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_stddev 8.01 ns 8.00 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_cv 1.70 % 1.70 % 4 +Short replace symbols with std::string find_first_of + replace_mean 718 ns 718 ns 4 +Short replace symbols with std::string find_first_of + replace_median 717 ns 717 ns 4 +Short replace symbols with std::string find_first_of + replace_stddev 18.4 ns 18.4 ns 4 +Short replace symbols with std::string find_first_of + replace_cv 2.57 % 2.57 % 4 +Short replace symbols with std::string_view find_first_of + copy_mean 433 ns 433 ns 4 +Short replace symbols with std::string_view find_first_of + copy_median 438 ns 438 ns 4 +Short replace symbols with std::string_view find_first_of + copy_stddev 15.1 ns 15.1 ns 4 +Short replace symbols with std::string_view find_first_of + copy_cv 3.49 % 3.49 % 4 +Short replace runtime symbols with string expressions and without remembering all search results_mean 378 ns 378 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_median 374 ns 374 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_stddev 11.6 ns 11.6 ns 4 +Short replace runtime symbols with string expressions and without remembering all search results_cv 3.07 % 3.07 % 4 +Short replace runtime symbols with simstr and memorization of all search results_mean 391 ns 391 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_median 389 ns 389 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_stddev 8.66 ns 8.66 ns 4 +Short replace runtime symbols with simstr and memorization of all search results_cv 2.22 % 2.22 % 4 +Short replace const symbols with string expressions and without remembering all search results_mean 271 ns 271 ns 4 +Short replace const symbols with string expressions and without remembering all search results_median 274 ns 274 ns 4 Short replace const symbols with string expressions and without remembering all search results_stddev 10.6 ns 10.6 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 3.80 % 3.80 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 317 ns 317 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 318 ns 318 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 13.4 ns 13.4 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 4.22 % 4.22 % 4 +Short replace const symbols with string expressions and without remembering all search results_cv 3.91 % 3.91 % 4 +Short replace const symbols with string expressions and memorization of all search results_mean 294 ns 294 ns 4 +Short replace const symbols with string expressions and memorization of all search results_median 296 ns 296 ns 4 +Short replace const symbols with string expressions and memorization of all search results_stddev 6.16 ns 6.16 ns 4 +Short replace const symbols with string expressions and memorization of all search results_cv 2.09 % 2.09 % 4 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 370 ns 370 ns 4 -replace bb to ---- in std::string|64_median 368 ns 368 ns 4 -replace bb to ---- in std::string|64_stddev 7.79 ns 7.80 ns 4 -replace bb to ---- in std::string|64_cv 2.11 % 2.11 % 4 -replace bb to ---- in std::string|256_mean 1187 ns 1187 ns 4 -replace bb to ---- in std::string|256_median 1192 ns 1192 ns 4 -replace bb to ---- in std::string|256_stddev 35.2 ns 35.2 ns 4 -replace bb to ---- in std::string|256_cv 2.97 % 2.97 % 4 -replace bb to ---- in std::string|512_mean 2268 ns 2268 ns 4 -replace bb to ---- in std::string|512_median 2257 ns 2257 ns 4 -replace bb to ---- in std::string|512_stddev 88.8 ns 88.8 ns 4 -replace bb to ---- in std::string|512_cv 3.92 % 3.92 % 4 -replace bb to ---- in std::string|1024_mean 4800 ns 4800 ns 4 -replace bb to ---- in std::string|1024_median 4831 ns 4831 ns 4 -replace bb to ---- in std::string|1024_stddev 184 ns 184 ns 4 -replace bb to ---- in std::string|1024_cv 3.84 % 3.84 % 4 -replace bb to ---- in std::string|2048_mean 10945 ns 10945 ns 4 -replace bb to ---- in std::string|2048_median 10893 ns 10893 ns 4 -replace bb to ---- in std::string|2048_stddev 279 ns 280 ns 4 -replace bb to ---- in std::string|2048_cv 2.55 % 2.55 % 4 -replace bb to ---- in lstringa<8>|64_mean 285 ns 285 ns 4 -replace bb to ---- in lstringa<8>|64_median 285 ns 285 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 2.85 ns 2.85 ns 4 -replace bb to ---- in lstringa<8>|64_cv 1.00 % 1.00 % 4 -replace bb to ---- in lstringa<8>|256_mean 910 ns 910 ns 4 -replace bb to ---- in lstringa<8>|256_median 911 ns 911 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 15.0 ns 15.0 ns 4 -replace bb to ---- in lstringa<8>|256_cv 1.64 % 1.64 % 4 -replace bb to ---- in lstringa<8>|512_mean 1712 ns 1712 ns 4 -replace bb to ---- in lstringa<8>|512_median 1727 ns 1727 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 43.1 ns 43.1 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.52 % 2.52 % 4 -replace bb to ---- in lstringa<8>|1024_mean 3116 ns 3116 ns 4 -replace bb to ---- in lstringa<8>|1024_median 3161 ns 3161 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 94.6 ns 94.6 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 3.04 % 3.04 % 4 -replace bb to ---- in lstringa<8>|2048_mean 6042 ns 6042 ns 4 -replace bb to ---- in lstringa<8>|2048_median 5971 ns 5971 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 190 ns 190 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 3.14 % 3.14 % 4 -replace bb to ---- by init stringa|64_mean 170 ns 170 ns 4 -replace bb to ---- by init stringa|64_median 169 ns 169 ns 4 -replace bb to ---- by init stringa|64_stddev 2.85 ns 2.85 ns 4 -replace bb to ---- by init stringa|64_cv 1.68 % 1.68 % 4 -replace bb to ---- by init stringa|256_mean 586 ns 586 ns 4 -replace bb to ---- by init stringa|256_median 587 ns 587 ns 4 -replace bb to ---- by init stringa|256_stddev 24.8 ns 24.8 ns 4 -replace bb to ---- by init stringa|256_cv 4.24 % 4.24 % 4 -replace bb to ---- by init stringa|512_mean 1275 ns 1275 ns 4 -replace bb to ---- by init stringa|512_median 1276 ns 1276 ns 4 -replace bb to ---- by init stringa|512_stddev 13.5 ns 13.5 ns 4 -replace bb to ---- by init stringa|512_cv 1.06 % 1.06 % 4 -replace bb to ---- by init stringa|1024_mean 2632 ns 2632 ns 4 -replace bb to ---- by init stringa|1024_median 2623 ns 2623 ns 4 -replace bb to ---- by init stringa|1024_stddev 59.9 ns 59.9 ns 4 -replace bb to ---- by init stringa|1024_cv 2.28 % 2.28 % 4 -replace bb to ---- by init stringa|2048_mean 5701 ns 5701 ns 4 -replace bb to ---- by init stringa|2048_median 5605 ns 5605 ns 4 -replace bb to ---- by init stringa|2048_stddev 331 ns 331 ns 4 -replace bb to ---- by init stringa|2048_cv 5.80 % 5.80 % 4 +replace bb to ---- in std::string|64_mean 363 ns 363 ns 4 +replace bb to ---- in std::string|64_median 363 ns 363 ns 4 +replace bb to ---- in std::string|64_stddev 17.7 ns 17.7 ns 4 +replace bb to ---- in std::string|64_cv 4.89 % 4.89 % 4 +replace bb to ---- in std::string|256_mean 1189 ns 1189 ns 4 +replace bb to ---- in std::string|256_median 1176 ns 1176 ns 4 +replace bb to ---- in std::string|256_stddev 42.3 ns 42.3 ns 4 +replace bb to ---- in std::string|256_cv 3.56 % 3.56 % 4 +replace bb to ---- in std::string|512_mean 2210 ns 2210 ns 4 +replace bb to ---- in std::string|512_median 2215 ns 2215 ns 4 +replace bb to ---- in std::string|512_stddev 90.9 ns 90.9 ns 4 +replace bb to ---- in std::string|512_cv 4.12 % 4.12 % 4 +replace bb to ---- in std::string|1024_mean 4756 ns 4756 ns 4 +replace bb to ---- in std::string|1024_median 4774 ns 4774 ns 4 +replace bb to ---- in std::string|1024_stddev 235 ns 235 ns 4 +replace bb to ---- in std::string|1024_cv 4.94 % 4.94 % 4 +replace bb to ---- in std::string|2048_mean 11109 ns 11109 ns 4 +replace bb to ---- in std::string|2048_median 11132 ns 11132 ns 4 +replace bb to ---- in std::string|2048_stddev 260 ns 260 ns 4 +replace bb to ---- in std::string|2048_cv 2.34 % 2.34 % 4 +replace bb to ---- in lstringa<8>|64_mean 292 ns 292 ns 4 +replace bb to ---- in lstringa<8>|64_median 292 ns 292 ns 4 +replace bb to ---- in lstringa<8>|64_stddev 13.1 ns 13.1 ns 4 +replace bb to ---- in lstringa<8>|64_cv 4.49 % 4.49 % 4 +replace bb to ---- in lstringa<8>|256_mean 913 ns 913 ns 4 +replace bb to ---- in lstringa<8>|256_median 918 ns 918 ns 4 +replace bb to ---- in lstringa<8>|256_stddev 27.9 ns 27.9 ns 4 +replace bb to ---- in lstringa<8>|256_cv 3.06 % 3.06 % 4 +replace bb to ---- in lstringa<8>|512_mean 1685 ns 1685 ns 4 +replace bb to ---- in lstringa<8>|512_median 1682 ns 1682 ns 4 +replace bb to ---- in lstringa<8>|512_stddev 31.6 ns 31.6 ns 4 +replace bb to ---- in lstringa<8>|512_cv 1.88 % 1.88 % 4 +replace bb to ---- in lstringa<8>|1024_mean 3100 ns 3100 ns 4 +replace bb to ---- in lstringa<8>|1024_median 3052 ns 3052 ns 4 +replace bb to ---- in lstringa<8>|1024_stddev 117 ns 117 ns 4 +replace bb to ---- in lstringa<8>|1024_cv 3.77 % 3.77 % 4 +replace bb to ---- in lstringa<8>|2048_mean 6119 ns 6119 ns 4 +replace bb to ---- in lstringa<8>|2048_median 6220 ns 6220 ns 4 +replace bb to ---- in lstringa<8>|2048_stddev 316 ns 316 ns 4 +replace bb to ---- in lstringa<8>|2048_cv 5.16 % 5.16 % 4 +replace bb to ---- by init stringa|64_mean 187 ns 187 ns 4 +replace bb to ---- by init stringa|64_median 184 ns 184 ns 4 +replace bb to ---- by init stringa|64_stddev 13.2 ns 13.2 ns 4 +replace bb to ---- by init stringa|64_cv 7.05 % 7.05 % 4 +replace bb to ---- by init stringa|256_mean 580 ns 580 ns 4 +replace bb to ---- by init stringa|256_median 591 ns 591 ns 4 +replace bb to ---- by init stringa|256_stddev 28.6 ns 28.6 ns 4 +replace bb to ---- by init stringa|256_cv 4.94 % 4.94 % 4 +replace bb to ---- by init stringa|512_mean 1341 ns 1341 ns 4 +replace bb to ---- by init stringa|512_median 1340 ns 1340 ns 4 +replace bb to ---- by init stringa|512_stddev 12.1 ns 12.1 ns 4 +replace bb to ---- by init stringa|512_cv 0.90 % 0.90 % 4 +replace bb to ---- by init stringa|1024_mean 2813 ns 2813 ns 4 +replace bb to ---- by init stringa|1024_median 2828 ns 2828 ns 4 +replace bb to ---- by init stringa|1024_stddev 55.7 ns 55.7 ns 4 +replace bb to ---- by init stringa|1024_cv 1.98 % 1.98 % 4 +replace bb to ---- by init stringa|2048_mean 5550 ns 5550 ns 4 +replace bb to ---- by init stringa|2048_median 5503 ns 5503 ns 4 +replace bb to ---- by init stringa|2048_stddev 133 ns 133 ns 4 +replace bb to ---- by init stringa|2048_cv 2.39 % 2.39 % 4 ----- Replace All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 264 ns 264 ns 4 -replace bb to -- in std::string|64_median 262 ns 262 ns 4 -replace bb to -- in std::string|64_stddev 9.29 ns 9.29 ns 4 -replace bb to -- in std::string|64_cv 3.52 % 3.52 % 4 -replace bb to -- in std::string|256_mean 846 ns 846 ns 4 -replace bb to -- in std::string|256_median 843 ns 843 ns 4 -replace bb to -- in std::string|256_stddev 55.5 ns 55.5 ns 4 -replace bb to -- in std::string|256_cv 6.56 % 6.56 % 4 -replace bb to -- in std::string|512_mean 1556 ns 1556 ns 4 -replace bb to -- in std::string|512_median 1560 ns 1560 ns 4 -replace bb to -- in std::string|512_stddev 62.0 ns 62.0 ns 4 -replace bb to -- in std::string|512_cv 3.98 % 3.98 % 4 -replace bb to -- in std::string|1024_mean 2961 ns 2961 ns 4 -replace bb to -- in std::string|1024_median 2956 ns 2956 ns 4 -replace bb to -- in std::string|1024_stddev 126 ns 126 ns 4 -replace bb to -- in std::string|1024_cv 4.24 % 4.24 % 4 -replace bb to -- in std::string|2048_mean 5794 ns 5794 ns 4 -replace bb to -- in std::string|2048_median 5714 ns 5714 ns 4 -replace bb to -- in std::string|2048_stddev 260 ns 260 ns 4 -replace bb to -- in std::string|2048_cv 4.49 % 4.49 % 4 -replace bb to -- in lstringa<8>|64_mean 198 ns 198 ns 4 -replace bb to -- in lstringa<8>|64_median 198 ns 198 ns 4 -replace bb to -- in lstringa<8>|64_stddev 6.71 ns 6.71 ns 4 -replace bb to -- in lstringa<8>|64_cv 3.38 % 3.38 % 4 -replace bb to -- in lstringa<8>|256_mean 663 ns 663 ns 4 -replace bb to -- in lstringa<8>|256_median 665 ns 665 ns 4 -replace bb to -- in lstringa<8>|256_stddev 38.5 ns 38.5 ns 4 -replace bb to -- in lstringa<8>|256_cv 5.80 % 5.80 % 4 -replace bb to -- in lstringa<8>|512_mean 1186 ns 1186 ns 4 -replace bb to -- in lstringa<8>|512_median 1198 ns 1198 ns 4 -replace bb to -- in lstringa<8>|512_stddev 39.4 ns 39.4 ns 4 -replace bb to -- in lstringa<8>|512_cv 3.32 % 3.32 % 4 -replace bb to -- in lstringa<8>|1024_mean 2250 ns 2250 ns 4 -replace bb to -- in lstringa<8>|1024_median 2227 ns 2227 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 93.7 ns 93.7 ns 4 -replace bb to -- in lstringa<8>|1024_cv 4.16 % 4.16 % 4 -replace bb to -- in lstringa<8>|2048_mean 4373 ns 4373 ns 4 -replace bb to -- in lstringa<8>|2048_median 4365 ns 4366 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 135 ns 135 ns 4 -replace bb to -- in lstringa<8>|2048_cv 3.08 % 3.08 % 4 -replace bb to -- by init stringa|64_mean 144 ns 144 ns 4 -replace bb to -- by init stringa|64_median 141 ns 141 ns 4 -replace bb to -- by init stringa|64_stddev 6.60 ns 6.60 ns 4 -replace bb to -- by init stringa|64_cv 4.59 % 4.59 % 4 -replace bb to -- by init stringa|256_mean 472 ns 472 ns 4 -replace bb to -- by init stringa|256_median 478 ns 478 ns 4 -replace bb to -- by init stringa|256_stddev 13.9 ns 13.9 ns 4 -replace bb to -- by init stringa|256_cv 2.94 % 2.94 % 4 -replace bb to -- by init stringa|512_mean 894 ns 894 ns 4 -replace bb to -- by init stringa|512_median 893 ns 893 ns 4 -replace bb to -- by init stringa|512_stddev 18.6 ns 18.6 ns 4 -replace bb to -- by init stringa|512_cv 2.08 % 2.08 % 4 -replace bb to -- by init stringa|1024_mean 1701 ns 1701 ns 4 -replace bb to -- by init stringa|1024_median 1677 ns 1677 ns 4 -replace bb to -- by init stringa|1024_stddev 64.1 ns 64.1 ns 4 -replace bb to -- by init stringa|1024_cv 3.77 % 3.77 % 4 -replace bb to -- by init stringa|2048_mean 2793 ns 2793 ns 4 -replace bb to -- by init stringa|2048_median 2785 ns 2785 ns 4 -replace bb to -- by init stringa|2048_stddev 40.1 ns 40.1 ns 4 -replace bb to -- by init stringa|2048_cv 1.44 % 1.44 % 4 +replace bb to -- in std::string|64_mean 243 ns 243 ns 4 +replace bb to -- in std::string|64_median 242 ns 242 ns 4 +replace bb to -- in std::string|64_stddev 4.47 ns 4.47 ns 4 +replace bb to -- in std::string|64_cv 1.84 % 1.84 % 4 +replace bb to -- in std::string|256_mean 814 ns 814 ns 4 +replace bb to -- in std::string|256_median 817 ns 817 ns 4 +replace bb to -- in std::string|256_stddev 30.9 ns 30.9 ns 4 +replace bb to -- in std::string|256_cv 3.79 % 3.79 % 4 +replace bb to -- in std::string|512_mean 1542 ns 1542 ns 4 +replace bb to -- in std::string|512_median 1548 ns 1548 ns 4 +replace bb to -- in std::string|512_stddev 58.0 ns 58.0 ns 4 +replace bb to -- in std::string|512_cv 3.76 % 3.76 % 4 +replace bb to -- in std::string|1024_mean 2825 ns 2825 ns 4 +replace bb to -- in std::string|1024_median 2823 ns 2823 ns 4 +replace bb to -- in std::string|1024_stddev 73.7 ns 73.7 ns 4 +replace bb to -- in std::string|1024_cv 2.61 % 2.61 % 4 +replace bb to -- in std::string|2048_mean 5545 ns 5545 ns 4 +replace bb to -- in std::string|2048_median 5553 ns 5553 ns 4 +replace bb to -- in std::string|2048_stddev 80.6 ns 80.6 ns 4 +replace bb to -- in std::string|2048_cv 1.45 % 1.45 % 4 +replace bb to -- in lstringa<8>|64_mean 192 ns 192 ns 4 +replace bb to -- in lstringa<8>|64_median 192 ns 192 ns 4 +replace bb to -- in lstringa<8>|64_stddev 2.88 ns 2.88 ns 4 +replace bb to -- in lstringa<8>|64_cv 1.50 % 1.50 % 4 +replace bb to -- in lstringa<8>|256_mean 636 ns 636 ns 4 +replace bb to -- in lstringa<8>|256_median 636 ns 636 ns 4 +replace bb to -- in lstringa<8>|256_stddev 5.38 ns 5.37 ns 4 +replace bb to -- in lstringa<8>|256_cv 0.85 % 0.84 % 4 +replace bb to -- in lstringa<8>|512_mean 1150 ns 1150 ns 4 +replace bb to -- in lstringa<8>|512_median 1131 ns 1131 ns 4 +replace bb to -- in lstringa<8>|512_stddev 42.8 ns 42.8 ns 4 +replace bb to -- in lstringa<8>|512_cv 3.72 % 3.72 % 4 +replace bb to -- in lstringa<8>|1024_mean 2296 ns 2296 ns 4 +replace bb to -- in lstringa<8>|1024_median 2292 ns 2292 ns 4 +replace bb to -- in lstringa<8>|1024_stddev 64.2 ns 64.2 ns 4 +replace bb to -- in lstringa<8>|1024_cv 2.80 % 2.80 % 4 +replace bb to -- in lstringa<8>|2048_mean 4237 ns 4237 ns 4 +replace bb to -- in lstringa<8>|2048_median 4236 ns 4236 ns 4 +replace bb to -- in lstringa<8>|2048_stddev 67.5 ns 67.4 ns 4 +replace bb to -- in lstringa<8>|2048_cv 1.59 % 1.59 % 4 +replace bb to -- by init stringa|64_mean 136 ns 136 ns 4 +replace bb to -- by init stringa|64_median 137 ns 137 ns 4 +replace bb to -- by init stringa|64_stddev 3.83 ns 3.84 ns 4 +replace bb to -- by init stringa|64_cv 2.81 % 2.81 % 4 +replace bb to -- by init stringa|256_mean 464 ns 464 ns 4 +replace bb to -- by init stringa|256_median 468 ns 468 ns 4 +replace bb to -- by init stringa|256_stddev 10.2 ns 10.2 ns 4 +replace bb to -- by init stringa|256_cv 2.20 % 2.20 % 4 +replace bb to -- by init stringa|512_mean 838 ns 838 ns 4 +replace bb to -- by init stringa|512_median 843 ns 843 ns 4 +replace bb to -- by init stringa|512_stddev 11.5 ns 11.5 ns 4 +replace bb to -- by init stringa|512_cv 1.37 % 1.37 % 4 +replace bb to -- by init stringa|1024_mean 1620 ns 1620 ns 4 +replace bb to -- by init stringa|1024_median 1616 ns 1616 ns 4 +replace bb to -- by init stringa|1024_stddev 45.0 ns 45.0 ns 4 +replace bb to -- by init stringa|1024_cv 2.78 % 2.78 % 4 +replace bb to -- by init stringa|2048_mean 2774 ns 2774 ns 4 +replace bb to -- by init stringa|2048_median 2790 ns 2790 ns 4 +replace bb to -- by init stringa|2048_stddev 87.5 ns 87.5 ns 4 +replace bb to -- by init stringa|2048_cv 3.16 % 3.15 % 4 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3509082 ns 3509094 ns 4 -hashStrMapA emplace & find stringa;_median 3582855 ns 3582867 ns 4 -hashStrMapA emplace & find stringa;_stddev 222607 ns 222618 ns 4 -hashStrMapA emplace & find stringa;_cv 6.34 % 6.34 % 4 -std::unordered_map emplace & find std::string;_mean 3684923 ns 3684936 ns 4 -std::unordered_map emplace & find std::string;_median 3661103 ns 3661115 ns 4 -std::unordered_map emplace & find std::string;_stddev 131891 ns 131883 ns 4 -std::unordered_map emplace & find std::string;_cv 3.58 % 3.58 % 4 -hashStrMapA emplace & find ssa;_mean 3369803 ns 3369809 ns 4 -hashStrMapA emplace & find ssa;_median 3329662 ns 3329673 ns 4 -hashStrMapA emplace & find ssa;_stddev 147334 ns 147331 ns 4 -hashStrMapA emplace & find ssa;_cv 4.37 % 4.37 % 4 -std::unordered_map emplace & find std::string_view;_mean 4260216 ns 4260251 ns 4 -std::unordered_map emplace & find std::string_view;_median 4244727 ns 4244784 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 298387 ns 298376 ns 4 -std::unordered_map emplace & find std::string_view;_cv 7.00 % 7.00 % 4 +hashStrMapA emplace & find stringa;_mean 3271665 ns 3271682 ns 4 +hashStrMapA emplace & find stringa;_median 3273789 ns 3273823 ns 4 +hashStrMapA emplace & find stringa;_stddev 31230 ns 31230 ns 4 +hashStrMapA emplace & find stringa;_cv 0.95 % 0.95 % 4 +std::unordered_map emplace & find std::string;_mean 3592775 ns 3592795 ns 4 +std::unordered_map emplace & find std::string;_median 3597592 ns 3597618 ns 4 +std::unordered_map emplace & find std::string;_stddev 44741 ns 44725 ns 4 +std::unordered_map emplace & find std::string;_cv 1.25 % 1.24 % 4 +hashStrMapA emplace & find ssa;_mean 3244867 ns 3244884 ns 4 +hashStrMapA emplace & find ssa;_median 3239181 ns 3239192 ns 4 +hashStrMapA emplace & find ssa;_stddev 17436 ns 17437 ns 4 +hashStrMapA emplace & find ssa;_cv 0.54 % 0.54 % 4 +std::unordered_map emplace & find std::string_view;_mean 4041903 ns 4041917 ns 4 +std::unordered_map emplace & find std::string_view;_median 4036025 ns 4036025 ns 4 +std::unordered_map emplace & find std::string_view;_stddev 24855 ns 24882 ns 4 +std::unordered_map emplace & find std::string_view;_cv 0.61 % 0.62 % 4 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 3466 ns 3466 ns 4 -Build func full name std::string;_median 3514 ns 3514 ns 4 -Build func full name std::string;_stddev 200 ns 200 ns 4 -Build func full name std::string;_cv 5.78 % 5.78 % 4 -Build func full name std::string 1;_mean 3613 ns 3613 ns 4 -Build func full name std::string 1;_median 3604 ns 3604 ns 4 -Build func full name std::string 1;_stddev 44.5 ns 44.5 ns 4 -Build func full name std::string 1;_cv 1.23 % 1.23 % 4 -Build func full name std::stream;_mean 13169 ns 13169 ns 4 -Build func full name std::stream;_median 13151 ns 13151 ns 4 -Build func full name std::stream;_stddev 822 ns 822 ns 4 -Build func full name std::stream;_cv 6.24 % 6.24 % 4 -Build func full name stringa;_mean 1567 ns 1567 ns 4 -Build func full name stringa;_median 1607 ns 1607 ns 4 -Build func full name stringa;_stddev 115 ns 115 ns 4 -Build func full name stringa;_cv 7.31 % 7.31 % 4 -Build func full name stringa 1;_mean 1808 ns 1808 ns 4 -Build func full name stringa 1;_median 1807 ns 1807 ns 4 -Build func full name stringa 1;_stddev 61.0 ns 61.0 ns 4 -Build func full name stringa 1;_cv 3.37 % 3.37 % 4 +Build func full name std::string;_mean 3162 ns 3162 ns 4 +Build func full name std::string;_median 3147 ns 3147 ns 4 +Build func full name std::string;_stddev 52.6 ns 52.5 ns 4 +Build func full name std::string;_cv 1.66 % 1.66 % 4 +Build func full name std::string 1;_mean 3363 ns 3363 ns 4 +Build func full name std::string 1;_median 3372 ns 3372 ns 4 +Build func full name std::string 1;_stddev 87.9 ns 87.9 ns 4 +Build func full name std::string 1;_cv 2.61 % 2.61 % 4 +Build func full name std::stream;_mean 11876 ns 11876 ns 4 +Build func full name std::stream;_median 11928 ns 11928 ns 4 +Build func full name std::stream;_stddev 311 ns 311 ns 4 +Build func full name std::stream;_cv 2.62 % 2.62 % 4 +Build func full name stringa;_mean 1461 ns 1461 ns 4 +Build func full name stringa;_median 1472 ns 1472 ns 4 +Build func full name stringa;_stddev 42.0 ns 42.0 ns 4 +Build func full name stringa;_cv 2.87 % 2.87 % 4 +Build func full name stringa 1;_mean 1910 ns 1910 ns 4 +Build func full name stringa 1;_median 1889 ns 1889 ns 4 +Build func full name stringa 1;_stddev 57.7 ns 57.7 ns 4 +Build func full name stringa 1;_cv 3.02 % 3.02 % 4 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 226 ns 226 ns 4 -To upper case std::wstring_median 223 ns 223 ns 4 -To upper case std::wstring_stddev 17.6 ns 17.6 ns 4 -To upper case std::wstring_cv 7.80 % 7.80 % 4 -To upper case lstringw<15>_mean 68.2 ns 68.2 ns 4 -To upper case lstringw<15>_median 66.9 ns 66.9 ns 4 -To upper case lstringw<15>_stddev 4.75 ns 4.75 ns 4 -To upper case lstringw<15>_cv 6.97 % 6.97 % 4 -Done! +To upper case std::wstring_mean 204 ns 204 ns 4 +To upper case std::wstring_median 204 ns 204 ns 4 +To upper case std::wstring_stddev 1.85 ns 1.85 ns 4 +To upper case std::wstring_cv 0.91 % 0.91 % 4 +To upper case lstringw<15>_mean 63.1 ns 63.1 ns 4 +To upper case lstringw<15>_median 62.9 ns 62.9 ns 4 +To upper case lstringw<15>_stddev 0.872 ns 0.872 ns 4 +To upper case lstringw<15>_cv 1.38 % 1.38 % 4 diff --git a/docs/Doxyfile b/docs/Doxyfile index 0e4e2c4..cf84753 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.7.3 +PROJECT_NUMBER = 1.8.1 # 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 04d6600..dcc58c9 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.7.3 +PROJECT_NUMBER = 1.8.1 # 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 96c8f49..842f2fc 100644 --- a/include/simstr/simple_unicode.h +++ b/include/simstr/simple_unicode.h @@ -1,6 +1,6 @@ /* * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com - * ver. 1.7.3 + * ver. 1.8.1 */ #pragma once diff --git a/include/simstr/sstring.h b/include/simstr/sstring.h index adf2308..746c9e6 100644 --- a/include/simstr/sstring.h +++ b/include/simstr/sstring.h @@ -1,5 +1,5 @@ /* -* ver. 1.7.3 +* ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Классы для работы со строками * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -775,7 +775,6 @@ protected: Эти методы должен реализовать класс-наследник. вызывается только при создании объекта init(size_t size) - set_size(size_t size) */ template requires(!std::is_same_v) @@ -841,6 +840,94 @@ expr_utf e_utf(simple_str from) { return {from}; } +template +struct expr_change_case : expr_to_std_string>{ + using symb_type = K; + + str_src src_; + mutable size_t len_{}; + + template + expr_change_case(S&& s) : src_(std::forward(s)){} + + constexpr size_t length() const noexcept { + if constexpr (sizeof(K) > 1) { + return src_.length(); + } else { + if constexpr (upper) { + len_ = unicode_traits::upper_len(src_.str, src_.len); + } else { + len_ = unicode_traits::lower_len(src_.str, src_.len); + } + return len_; + } + } + constexpr K* place(K* ptr) const noexcept { + if constexpr (sizeof(K) > 1) { + if constexpr (upper) { + unicode_traits::upper(src_.str, src_.len, ptr); + } else { + unicode_traits::lower(src_.str, src_.len, ptr); + } + return ptr + src_.len; + } else { + const K* src = src_.str; + if constexpr (upper) { + unicode_traits::upper(src, src_.len, ptr, len_); + } else { + unicode_traits::lower(src, src_.len, ptr, len_); + } + return ptr; + } + } +}; + +/*! + * @ru @brief Генерирует строку на основе исходной, заменяя все строчные буквы первой плоскости Юникода на прописные. + * @tparam K - тип символов, выводится на основе исходной строки. + * @details Берёт исходную строку и копирует её, заменяя строчные буквы первой плоскости Юникода на прописные. + * В качестве исходной строки может браться любой строковый объект. + * @en @brief Generates a string based on the original one, replacing all lowercase letters of the first Unicode plane with uppercase ones. + * @tparam K - character type, inferred based on the source string. + * @details Takes the original string and copies it, replacing the lowercase letters of the first Unicode plane with uppercase ones. + * Any string object can be taken as the source string. + * @ru Пример @en Example @~ + * ```cpp + * stringa upper = "Upper case version is: '" + e_upper(source_str) + "'."; + * ``` + */ +template +struct e_upper : expr_change_case { + using base = expr_change_case; + using base::base; +}; + +template +e_upper(S&&) -> e_upper>; + +/*! + * @ru @brief Генерирует строку на основе исходной, заменяя все прописные буквы первой плоскости Юникода на строчные. + * @tparam K - тип символов, выводится на основе исходной строки. + * @details Берёт исходную строку и копирует её, заменяя прописные буквы первой плоскости Юникода на строчные. + * В качестве исходной строки может браться любой строковый объект. + * @ru @brief Generate a string from the original one, replacing all uppercase letters of the first Unicode plane with lowercase ones. + * @tparam K - character type, inferred based on the source string. + * @details Takes the original string and copies it, replacing the uppercase letters of the first Unicode plane with lowercase ones. + * Any string object can be taken as the source string. + * @ru Пример @en Example @~ + * ```cpp + * stringa lower = "Lower case version is: '" + e_lower(source_str) + "'."; + * ``` + */ +template +struct e_lower : expr_change_case { + using base = expr_change_case; + using base::base; +}; + +template +e_lower(S&&) -> e_lower>; + /*! * @ru @brief Концепт типа, который может сохранить строку. * @en @brief A type concept that can store a string. @@ -879,12 +966,9 @@ concept immutable_str = storable_str && !mutable_str; * Эти методы должен реализовать класс-наследник, вызываются только при создании объекта * - `K* init(size_t size)` - выделить место для строки указанного размера, вернуть адрес * - `void create_empty()` - создать пустой объект - * - `K* set_size(size_t size)` - перевыделить место для строки, если при создании не угадали - * нужный размер и место нужно больше или меньше. - * Содержимое строки нужно оставить. * Хотя тип аллокатора и задаётся параметром шаблона, делается это только для проброса * его типа в конструкторы, методы аллокатора не вызываются. Если наследник не пользуется - * аллокатором, а сам в `init` и `set_size` как-то выделяет место, может указать типом аллокатора + * аллокатором, а сам в `init` как-то выделяет место, может указать типом аллокатора * какой-либо пустой класс. * @en @brief The base for the objects that own the string. * @tparam K - character type. @@ -899,12 +983,9 @@ concept immutable_str = storable_str && !mutable_str; * These methods must be implemented by the descendant class and are called only when an object is created * - `K* init(size_t size)` - allocate space for a string of the specified size, return the address * - `void create_empty()` - create an empty object - * - `K* set_size(size_t size)` - re-allocate space for the string if you didn’t guess correctly when creating - * the size you need and the space you need is larger or smaller. - * The contents of the string must be left. * Although the allocator type is specified by the template parameter, this is done only for forwarding * of its type in constructors, allocator methods are not called. If the heir does not use - * an allocator, and in `init` and `set_size` it somehow allocates space, can indicate the type of the allocator + * an allocator, and in `init` it somehow allocates space, can indicate the type of the allocator * any empty class. */ template @@ -1068,74 +1149,6 @@ protected: *ptr = 0; } - template From, typename Op1, typename... Args> - requires std::is_constructible_v - static my_type changeCaseAscii(const From& f, const Op1& opMakeNeedCase, Args&&... args) { - my_type result{std::forward(args)...}; - size_t len = f.length(); - if (len) { - const K* source = f.symbols(); - K* destination = result.init(len); - while(len--) { - *destination++ = opMakeNeedCase(*source++); - } - *destination = 0; - } - return result; - } - // GCC до сих пор не даёт делать полную специализацию вложенного шаблонного класса внутри внешнего класса, только частичную. - // Поэтому добавим фиктивный параметр шаблона, чтобы сделать специализацию для u8s прямо в классе. - // GCC still does not allow full specialization of a nested template class inside an outer class, only partial. - // So let's add a dummy template parameter to make the specialization for u8s right in the class. - template - struct ChangeCase { - template - requires std::is_constructible_v - static my_type changeCase(const From& f, const Op1& opChangeCase, Args&&... args) { - my_type result{std::forward(args)...}; - size_t len = f.length(); - if (len) { - opChangeCase(f.symbols(), len, result.init(len)); - } - return result; - } - }; - // Для utf8 сделаем отдельную спецификацию, так как при смене регистра может изменится длина строки - // For utf8 we will make a separate specification, since changing the register may change the length of the string - template - struct ChangeCase { - template - requires std::is_constructible_v - static my_type changeCase(const From& f, const Op1& opChangeCase, Args&&... args) { - my_type result{std::forward(args)...}; - ; - size_t len = f.length(); - if (len) { - const K* ptr = f.symbols(); - K* pWrite = result.init(len); - - const u8s* source = ptr; - u8s* dest = pWrite; - size_t newLen = opChangeCase(source, len, dest, len); - if (newLen < len) { - // Строка просто укоротилась - // The string was simply shortened - result.set_size(newLen); - } else if (newLen > len) { - // Строка не влезла в буфер. - // The string did not fit into the buffer. - size_t readed = static_cast(source - ptr); - size_t writed = static_cast(dest - pWrite); - pWrite = result.set_size(newLen); - dest = pWrite + writed; - opChangeCase(source, len - readed, dest, newLen - writed); - } - pWrite[newLen] = 0; - } - return result; - } - }; - public: inline static constexpr bool is_str_storable = true; @@ -1264,7 +1277,7 @@ public: template From, typename... Args> requires std::is_constructible_v static my_type upperred_only_ascii_from(const From& f, Args&&... args) { - return changeCaseAscii(f, makeAsciiUpper, std::forward(args)...); + return my_type{e_ascii_upper{f}, std::forward(args)...}; } /*! * @ru @brief Создать копию переданной строки в нижнем регистре символов ASCII. @@ -1277,7 +1290,7 @@ public: template From, typename... Args> requires std::is_constructible_v static my_type lowered_only_ascii_from(const From& f, Args&&... args) { - return changeCaseAscii(f, makeAsciiLower, std::forward(args)...); + return my_type{e_ascii_lower{f}, std::forward(args)...}; } /*! * @ru @brief Создать копию переданной строки в верхнем регистре символов Unicode первой плоскости (<0xFFFF). @@ -1294,7 +1307,7 @@ public: template From, typename... Args> requires std::is_constructible_v static my_type upperred_from(const From& f, Args&&... args) { - return ChangeCase::changeCase(f, uni::upper, std::forward(args)...); + return my_type{e_upper{f}, std::forward(args)...}; } /*! * @ru @brief Создать копию переданной строки в нижнем регистре символов Unicode первой плоскости (<0xFFFF). @@ -1311,7 +1324,7 @@ public: template From, typename... Args> requires std::is_constructible_v static my_type lowered_from(const From& f, Args&&... args) { - return ChangeCase::changeCase(f, uni::lower, std::forward(args)...); + return my_type{e_lower{f}, std::forward(args)...}; } /*! * @ru @brief Создать копию переданной строки с заменой подстрок. @@ -1341,11 +1354,28 @@ public: * @en @brief Concept of a memory management type */ template -concept Allocatorable = requires(A& a, size_t size, void* void_ptr) { +concept AllocatableNoSized = requires(A& a, size_t size, void* void_ptr) { { a.allocate(size) } -> std::same_as; { a.deallocate(void_ptr) } noexcept -> std::same_as; }; +/*! + * @ru @brief Концепт типа, управляющего памятью + * @en @brief Concept of a memory management type + */ +template +concept AllocatableSized = requires(A& a, size_t size, void* void_ptr) { + { a.allocate(size) } -> std::same_as; + { a.deallocate(void_ptr, size) } noexcept -> std::same_as; +}; + +/*! + * @ru @brief Концепт типа, управляющего памятью + * @en @brief Concept of a memory management type + */ +template +concept Allocatable = AllocatableNoSized || AllocatableSized; + struct printf_selector { template requires (is_one_of_std_char_v) static int snprintf(K* buffer, size_t count, const K* format, T&&... args) { @@ -2577,28 +2607,47 @@ public: template struct SharedStringData { std::atomic_size_t ref_; // Счетчик ссылок | Reference count + inline static constexpr size_t mask = (size_t(-1)) >> 1, check = ~mask; SharedStringData() { ref_ = 1; } + SharedStringData(size_t capacity) { + ref_ = 1 | check; + reinterpret_cast(this)[-1] = (capacity + 1) * sizeof(K) + sizeof(*this) + sizeof(size_t); + } K* str() const { return (K*)(this + 1); } void incr() { ref_.fetch_add(1, std::memory_order_relaxed); } - void decr(Allocatorable auto& allocator) { + void decr(AllocatableNoSized auto& allocator) { size_t val = ref_.fetch_sub(1, std::memory_order_relaxed); if (val == 1) { allocator.deallocate(this); } } - static SharedStringData* create(size_t l, Allocatorable auto& allocator) { - size_t size = sizeof(SharedStringData) + (l + 1) * sizeof(K); + void decr(AllocatableSized auto& allocator, size_t len) { + size_t val = ref_.fetch_sub(1, std::memory_order_relaxed); + if ((val & mask) == 1) { + if (val & check) { + // Это блок от перемещённой lstring, перед ним записан размер выделенной памяти. + // This is a block from the moved lstring, the size of the allocated memory is written in front of it. + size_t* ptr = reinterpret_cast(this); + ptr--; + allocator.deallocate(ptr, *ptr); + } else { + allocator.deallocate(this, (len + 1) * sizeof(K) + sizeof(*this)); + } + } + } + static SharedStringData* create(size_t l, Allocatable auto& allocator) { + size_t size = sizeof(SharedStringData) + (l + 1) * sizeof(K); return new (allocator.allocate(size)) SharedStringData(); } - static SharedStringData* from_str(const K* p) { - return (SharedStringData*)p - 1; + static SharedStringData* from_str(const K* p) { + return (SharedStringData*)p - 1; } K* place(K* p, size_t len) { ch_traits::copy(p, str(), len); @@ -2611,10 +2660,10 @@ struct SharedStringData { class string_common_allocator { public: void* allocate(size_t bytes) { - return new char[bytes]; + return ::operator new(bytes); } void deallocate(void* address) noexcept { - delete [] static_cast(address); + ::operator delete(address); } }; @@ -2627,7 +2676,7 @@ string_common_allocator default_string_allocator_selector(...); // your_allocator_type default_string_allocator_selector(int); using allocator_string = decltype(default_string_allocator_selector(int(0))); -template +template class sstring; /* @@ -2659,7 +2708,7 @@ class sstring; * At the same time, if you plan to later move the result to sstring, then for a dynamic buffer * +n bytes are allocated so as not to copy the data later. */ -template +template class decl_empty_bases lstring : public str_algs, lstring, true>, public str_mutable>, @@ -2678,7 +2727,7 @@ public: protected: enum : size_t { - extra = forShared ? sizeof(SharedStringData) : 0, + extra = forShared ? sizeof(SharedStringData) + (AllocatableSized ? sizeof(size_t) : 0) : 0, }; using base_algs = str_algs, my_type, true>; @@ -2732,7 +2781,11 @@ protected: constexpr void dealloc() { if (is_alloced()) { - base_storable::allocator().deallocate(to_real_address(data_)); + if constexpr (AllocatableNoSized) { + base_storable::allocator().deallocate(to_real_address(data_)); + } else { + base_storable::allocator().deallocate(to_real_address(data_), (capacity_ + 1) * sizeof(K) + extra); + } data_ = local_; } } @@ -3349,7 +3402,7 @@ constexpr const size_t local_count = _local_count; * - for u16s - 32 bytes, stores strings of up to 15 characters + 0 * - for u32s - 32 bytes, stores strings of up to 7 characters + 0 */ -template +template class decl_empty_bases sstring : public str_algs, sstring, false>, public str_storable, Allocator>, @@ -3421,49 +3474,15 @@ protected: } } - K* set_size(size_t newSize) { - // Вызывается при создании строки при необходимости изменить размер. - // Других ссылок на shared buffer нет. - // Called when a string is created and needs to be resized. - // There are no other references to the shared buffer. - size_t size = length(); - if (newSize != size) { - if (type_ == Constant) { - bigLen_ = newSize; + void dealloc() { + if (type_ == Shared) { + if constexpr (AllocatableNoSized) { + SharedStringData::from_str(sstr_)->decr(base_storable::allocator()); } else { - if (newSize <= LocalCount) { - if (type_ == Shared) { - SharedStringData* str_buf = SharedStringData::from_str(sstr_); - traits::copy(buf_, sstr_, newSize); - str_buf->decr(base_storable::allocator()); - } - type_ = Local; - localRemain_ = LocalCount - newSize; - } else { - if (type_ == Shared) { - if (newSize > size || (newSize > 64 && newSize <= size * 3 / 4)) { - K* newStr = SharedStringData::create(newSize, base_storable::allocator())->str(); - traits::copy(newStr, sstr_, newSize); - SharedStringData::from_str(sstr_)->decr(base_storable::allocator()); - sstr_ = newStr; - } - } else if (type_ == Local) { - K* newStr = SharedStringData::create(newSize, base_storable::allocator())->str(); - if (size) - traits::copy(newStr, buf_, size); - sstr_ = newStr; - type_ = Shared; - localRemain_ = 0; - } - bigLen_ = newSize; - } + SharedStringData::from_str(sstr_)->decr(base_storable::allocator(), bigLen_); } } - K* str = type_ == Local ? buf_ : (K*)sstr_; - str[newSize] = 0; - return str; } - public: sstring() { @@ -3571,9 +3590,7 @@ public: static const sstring empty_str; /// @ru Деструктор строки. @en String destructor. constexpr ~sstring() { - if (type_ == Shared) { - SharedStringData::from_str(sstr_)->decr(base_storable::allocator()); - } + dealloc(); } /*! * @ru @brief Конструктор копирования строки. @@ -3612,8 +3629,8 @@ public: size_t size = src.length(); if (size) { if (src.is_alloced()) { - // Там динамический буфер, выделенный с запасом для SharedStringData. - // There is a dynamic buffer allocated with a reserve for SharedStringData. + // Там динамический буфер, выделенный с запасом для SharedStringData и size_t. + // There is a dynamic buffer allocated with a reserve for SharedStringData and size_t. K* str = src.str(); if (size > LocalCount) { // Просто присвоим его себе. @@ -3622,7 +3639,11 @@ public: bigLen_ = size; type_ = Shared; localRemain_ = 0; - new (SharedStringData::from_str(str)) SharedStringData(); + if constexpr (AllocatableNoSized) { + new (SharedStringData::from_str(str)) SharedStringData; + } else { + new (SharedStringData::from_str(str)) SharedStringData(src.capacity_); + } } else { // Скопируем локально // Copy locally @@ -3765,8 +3786,7 @@ public: * @return my_type& - a reference to yourself. */ constexpr my_type& make_empty() noexcept { - if (type_ == Shared) - SharedStringData::from_str(sstr_)->decr(base_storable::allocator()); + dealloc(); create_empty(); return *this; } @@ -3832,7 +3852,7 @@ public: } }; -template +template inline const sstring sstring::empty_str{}; struct no_alloc{}; @@ -5068,94 +5088,6 @@ inline HashKeyIU operator""_iu(const uws* ptr, size_t l) { } } // namespace literals -template -struct expr_change_case : expr_to_std_string>{ - using symb_type = K; - - str_src src_; - mutable size_t len_{}; - - template - expr_change_case(S&& s) : src_(std::forward(s)){} - - constexpr size_t length() const noexcept { - if constexpr (sizeof(K) > 1) { - return src_.length(); - } else { - if constexpr (upper) { - len_ = unicode_traits::upper_len(src_.str, src_.len); - } else { - len_ = unicode_traits::lower_len(src_.str, src_.len); - } - return len_; - } - } - constexpr K* place(K* ptr) const noexcept { - if constexpr (sizeof(K) > 1) { - if constexpr (upper) { - unicode_traits::upper(src_.str, src_.len, ptr); - } else { - unicode_traits::lower(src_.str, src_.len, ptr); - } - return ptr + src_.len; - } else { - const K* src = src_.str; - if constexpr (upper) { - unicode_traits::upper(src, src_.len, ptr, len_); - } else { - unicode_traits::lower(src, src_.len, ptr, len_); - } - return ptr; - } - } -}; - -/*! - * @ru @brief Генерирует строку на основе исходной, заменяя все строчные буквы первой плоскости Юникода на прописные. - * @tparam K - тип символов, выводится на основе исходной строки. - * @details Берёт исходную строку и копирует её, заменяя строчные буквы первой плоскости Юникода на прописные. - * В качестве исходной строки может браться любой строковый объект. - * @en @brief Generates a string based on the original one, replacing all lowercase letters of the first Unicode plane with uppercase ones. - * @tparam K - character type, inferred based on the source string. - * @details Takes the original string and copies it, replacing the lowercase letters of the first Unicode plane with uppercase ones. - * Any string object can be taken as the source string. - * @ru Пример @en Example @~ - * ```cpp - * stringa upper = "Upper case version is: '" + e_upper(source_str) + "'."; - * ``` - */ -template -struct e_upper : expr_change_case { - using base = expr_change_case; - using base::base; -}; - -template -e_upper(S&&) -> e_upper>; - -/*! - * @ru @brief Генерирует строку на основе исходной, заменяя все прописные буквы первой плоскости Юникода на строчные. - * @tparam K - тип символов, выводится на основе исходной строки. - * @details Берёт исходную строку и копирует её, заменяя прописные буквы первой плоскости Юникода на строчные. - * В качестве исходной строки может браться любой строковый объект. - * @ru @brief Generate a string from the original one, replacing all uppercase letters of the first Unicode plane with lowercase ones. - * @tparam K - character type, inferred based on the source string. - * @details Takes the original string and copies it, replacing the uppercase letters of the first Unicode plane with lowercase ones. - * Any string object can be taken as the source string. - * @ru Пример @en Example @~ - * ```cpp - * stringa lower = "Lower case version is: '" + e_lower(source_str) + "'."; - * ``` - */ -template -struct e_lower : expr_change_case { - using base = expr_change_case; - using base::base; -}; - -template -e_lower(S&&) -> e_lower>; - /*! * @ru @brief Оператор вывода в поток simple_str. * @param stream - поток вывода. @@ -5250,7 +5182,7 @@ inline std::wostream& operator<<(std::wostream& stream, const sstring +template inline std::ostream& operator<<(std::ostream& stream, const lstring& text) { return stream << std::string_view{text.symbols(), text.length()}; } @@ -5265,7 +5197,7 @@ inline std::ostream& operator<<(std::ostream& stream, const lstring +template inline std::wostream& operator<<(std::wostream& stream, const lstring& text) { return stream << std::wstring_view{text.symbols(), text.length()}; } @@ -5280,7 +5212,7 @@ inline std::wostream& operator<<(std::wostream& stream, const lstring +template inline std::wostream& operator<<(std::wostream& stream, const lstring& text) { return stream << std::wstring_view{from_w(text.symbols()), text.length()}; } diff --git a/include/simstr/strexpr.h b/include/simstr/strexpr.h index f849959..bd266c0 100644 --- a/include/simstr/strexpr.h +++ b/include/simstr/strexpr.h @@ -1,5 +1,5 @@ /* - * ver. 1.7.3 + * ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * База для строковых конкатенаций через выражения времени компиляции * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com diff --git a/readme.md b/readme.md index 0a7842c..280f4db 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.7.3. +Version 1.8.1.

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

    @@ -325,8 +325,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.7.3 # Specify the desired release - FIND_PACKAGE_ARGS NAMES simstr 1.7.3 + GIT_TAG tags/rel1.8.1 # Specify the desired release + FIND_PACKAGE_ARGS NAMES simstr 1.8.1 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/readme_ru.md b/readme_ru.md index aee2865..dee0b9d 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.7.3. +Версия 1.8.1.

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

    @@ -326,8 +326,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.7.3 # Укажите нужный релиз - FIND_PACKAGE_ARGS NAMES simstr 1.7.3 + GIT_TAG tags/rel1.8.1 # Укажите нужный релиз + FIND_PACKAGE_ARGS NAMES simstr 1.8.1 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/src/sstring.cpp b/src/sstring.cpp index 8da9d13..60f137f 100644 --- a/src/sstring.cpp +++ b/src/sstring.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.3 + * ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Реализация строковых функций * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -250,7 +250,7 @@ size_t utf8_case_change(const u8s*& src, size_t len, u8s*& dest, size_t lenBuffe // то есть если символ считан, и длина записываемого символа не больше считанного, то он поместится в буфер записи // и не перетрет символы, которые еще не прочитали // По другому работать откажемся - if (lenBuffer < len || (dest > src && dest < src + len)) + if (dest > src && dest < src + len) return len; const uu8s *beginReadPos = reinterpret_cast(src), *readPos = beginReadPos, *endReadPos = beginReadPos + len, *readFromPos = readPos; diff --git a/tests/test_expr_only.cpp b/tests/test_expr_only.cpp index b8d3876..3a035f4 100644 --- a/tests/test_expr_only.cpp +++ b/tests/test_expr_only.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.3 + * ver. 1.8.1 * (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 7a18df0..a149180 100644 --- a/tests/test_str.cpp +++ b/tests/test_str.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.3 + * ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -24,6 +24,9 @@ public: size_t sharedCount() const { return type_ == Shared ? SharedStringData::from_str(sstr_)->ref_.load() : 0u; } + size_t sharedCountForce() const { + return SharedStringData::from_str(sstr_)->ref_.load(); + } }; TEST(SimStr, CreateSimpleEmpty) { @@ -2109,6 +2112,62 @@ TEST(SimStr, ConstEval) { } #endif +struct sized_alloc { + inline static size_t allocated = 0, dealloced = 0; + inline static void* alloced = nullptr; + + void* allocate(size_t bytes) { + allocated += bytes; + return alloced = ::operator new(bytes); + } + template + void deallocate(T* address, size_t size) noexcept { + dealloced += size; + EXPECT_EQ(address, alloced); + if constexpr (requires{::operator delete(address, size);}) { + ::operator delete(address, size); + } else { + ::operator delete(address); + } + } +}; + +TEST(SimStr, SizedAlloc) { + sized_alloc::allocated = sized_alloc::dealloced = 0; + { + lstring src{10, "test"}; + sstring str{std::move(src)}; + EXPECT_TRUE(src.is_empty()); + EXPECT_EQ(((Tstringa*)&str)->sharedCount(), SharedStringData::check | 1); + } + EXPECT_EQ(sized_alloc::allocated, sized_alloc::dealloced); + EXPECT_EQ(sized_alloc::allocated, 64); + { + sstring str{10, "test"}; + EXPECT_EQ(((Tstringa*)&str)->sharedCount(), 1); + } + EXPECT_EQ(sized_alloc::allocated, sized_alloc::dealloced); + EXPECT_EQ(sized_alloc::allocated, 113); +} + +TEST(SimStr, SizedAllocU) { + sized_alloc::allocated = sized_alloc::dealloced = 0; + { + lstring src{10, u"test"}; + sstring str{std::move(src)}; + EXPECT_TRUE(src.is_empty()); + EXPECT_EQ(((Tstringa*)&str)->sharedCountForce(), SharedStringData::check | 1); + } + EXPECT_EQ(sized_alloc::allocated, sized_alloc::dealloced); + EXPECT_EQ(sized_alloc::allocated, 112); + { + sstring str{10, u"test"}; + EXPECT_EQ(((Tstringa*)&str)->sharedCountForce(), 1); + } + EXPECT_EQ(sized_alloc::allocated, sized_alloc::dealloced); + EXPECT_EQ(sized_alloc::allocated, 202); +} + } // namespace simstr::tests TEST(SimStr, StrNoNamespace) { diff --git a/tests/test_tostrexpr.cpp b/tests/test_tostrexpr.cpp index 4293063..2188adf 100644 --- a/tests/test_tostrexpr.cpp +++ b/tests/test_tostrexpr.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.3 + * ver. 1.8.1 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com