diff --git a/CMakeLists.txt b/CMakeLists.txt index 42ed1ed..67841d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ include(FetchContent) project( simstr - VERSION 1.7.1 + VERSION 1.7.2 DESCRIPTION "Yet another modern C++ string library" HOMEPAGE_URL "https://github.com/orefkov/simstr" LANGUAGES CXX @@ -29,6 +29,12 @@ option(SIMSTR_BUILD_TESTS "Build tests" ON) option(SIMSTR_BENCHMARKS "Build benchmarks" Off) option(USE_SYSTEM_DEPS "Use system dependencies" Off) cmake_dependent_option(SIMSTR_LINK_NATVIS "Link natvis file" On CAN_LINK_NATVIS Off) +cmake_dependent_option(SIMSTR_USE_LIBCXX "Use libc++" Off "NOT CAN_LINK_NATVIS" Off) + +if (SIMSTR_USE_LIBCXX) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") +endif(SIMSTR_USE_LIBCXX) add_library(simstr_simstr src/sstring.cpp @@ -142,6 +148,10 @@ function(GBencmark) set(BENCHMARK_INSTALL_DOCS OFF) set(BENCHMARK_DOWNLOAD_DEPENDENCIES ON) set(BENCHMARK_ENABLE_GTEST_TESTS OFF) + if (SIMSTR_USE_LIBCXX) + set(BENCHMARK_USE_LIBCXX On) + endif(SIMSTR_USE_LIBCXX) + add_compile_definitions(BENCHMARK_STATIC_DEFINE) FetchContent_MakeAvailable(googlebench) if(TARGET benchmark) diff --git a/CMakePresets.json b/CMakePresets.json index 59e0661..5882ac4 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -134,8 +134,8 @@ "inherits": "base", "displayName": "Linux base", "cacheVariables": { - "CMAKE_C_COMPILER": "gcc-13", - "CMAKE_CXX_COMPILER": "g++-13", + "CMAKE_C_COMPILER": "gcc", + "CMAKE_CXX_COMPILER": "g++", "CMAKE_EXPORT_COMPILE_COMMANDS": true }, "condition": { @@ -169,7 +169,7 @@ }, { "name": "linux-release", - "displayName": "Linux Release", + "displayName": "Linux Release GCC", "inherits": "linux-base", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" @@ -181,8 +181,20 @@ "inherits": "linux-base", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", - "CMAKE_C_COMPILER": "clang-21", - "CMAKE_CXX_COMPILER": "clang++-21" + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++" + } + }, + { + "name": "linux-release-clang-libcxx", + "displayName": "Linux Release Clang libc++", + "inherits": "linux-base", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++", + "SIMSTR_USE_LIBCXX": true, + "SIMSTR_BENCHMARKS": true } } ], diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index bedc2fd..8e1babe 100644 --- a/bench/CMakeLists.txt +++ b/bench/CMakeLists.txt @@ -6,7 +6,12 @@ cmake_minimum_required (VERSION 3.15) add_executable(benchStr bench_str.cpp bench.h) target_link_libraries(benchStr simstr::simstr benchmark::benchmark) target_compile_features(benchStr PUBLIC cxx_std_23) -target_compile_definitions(benchStr PRIVATE SIMSTR_VERSION="${PROJECT_VERSION}") +target_compile_definitions(benchStr PRIVATE + SIMSTR_VERSION="${PROJECT_VERSION}" + CXX_COMPILER_ID="${CMAKE_CXX_COMPILER_ID}" + CXX_COMPILER_VERSION="${CMAKE_CXX_COMPILER_VERSION}" +) + FetchContent_Declare( fmt GIT_REPOSITORY https://github.com/fmtlib/fmt diff --git a/bench/bench_str.cpp b/bench/bench_str.cpp index 445cf58..0e853c4 100644 --- a/bench/bench_str.cpp +++ b/bench/bench_str.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Бенчмарки * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -418,6 +418,17 @@ void FmtFormat(benchmark::State& state) { } +void 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); + benchmark::DoNotOptimize(str); + } + } +} + BENCHMARK(__)->Name("---- format/vformat and subst/vsubst octal number to 32 symbols result ----")->Repetitions(1); BENCHMARK(ConcatSimToSimOct) ->Name("\"abcdefghihklmopqr \"_ss + i / 0x8a010_fmt + \" end\""); BENCHMARK(SubstSimToSimOct) ->Name("e_subst(\"abcdefghihklmopqr {} end\", i / 0x8a010_fmt)"); @@ -426,6 +437,7 @@ BENCHMARK(FmtFormatComp) ->Name("fmt::format(FMT_COMPILE(\"abcdefghihklmo BENCHMARK(FmtFormat) ->Name("fmt::format(\"abcdefghihklmopqr {:#010o} end\", i)"); BENCHMARK(FormatStdToStdOct) ->Name("std::format(\"abcdefghihklmopqr {:#010o} end\", i)"); BENCHMARK(VFormatStdToStdOct) ->Name("std::vformat(pattern, std::make_format_args(i))"); +BENCHMARK(StdFormatSize) ->Name("std::format with std::formatted_size"); BENCHMARK(StreamStdToStdOct) ->Name("strm << \"abcdefghihklmopqr 0\" << std::oct << std::setw(9) << std::setfill('0') << i << \" end\""); void ConcatStdToStdS(benchmark::State& state) { @@ -957,11 +969,16 @@ void ToDoubleStr(benchmark::State& state, const std::string& s, double c) { } } +template void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { for (auto _: state) { double res = 0; - if (std::from_chars(s.data(), s.data() + s.size(), res).ec != std::errc{}) { - state.SkipWithError("not equal"); + if constexpr (requires { std::from_chars(std::declval(), std::declval(), std::declval()); }) { + if (std::from_chars((const K*)s.data(), (const K*)s.data() + s.size(), res).ec != std::errc{}) { + state.SkipWithError("not equal"); + } + } else { + state.SkipWithError("not implemented"); } #ifdef CHECK_RESULT if (res != c) { @@ -2650,7 +2667,12 @@ BENCHMARK(UpperCaseSim)->Name("To upper case lstringw<15>"); int main(int argc, char** argv) { std::cout << "Benchmarks of simstr, version " SIMSTR_VERSION << "\n" << "Sources: https://github.com/orefkov/simstr\n" - << "Results: https://orefkov.github.io/simstr/results.html\n" << std::endl; + << "Results: https://orefkov.github.io/simstr/results.html\n" + << "Compiler " << CXX_COMPILER_ID << " " << CXX_COMPILER_VERSION +#ifdef _LIBCPP_VERSION + << ", use libc++" +#endif + << std::endl; #ifdef EMSCRIPTEN EM_ASM({ console.log(navigator.userAgent); }); diff --git a/bench/results.html b/bench/results.html index e1adde9..c1133ea 100644 --- a/bench/results.html +++ b/bench/results.html @@ -270,76 +270,83 @@ All times in ns. Source for benchmarks
Group tests by platforms in charts:

Test configurations:

    -
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-2132 X 2494.22 MHz CPU sCPU Caches: +
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-2232 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.31, 0.73, 0.52 +Load Average: 0.03, 0.01, 0.00 ***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • -
  • Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-1332 X 2494.22 MHz CPU sCPU Caches: +
  • 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 +***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 -***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. Include in charts:
  • -
  • Xeon E5-2682 v4, Windows 10, Clang-1932 X 2494 MHz CPU sCPU Caches: - L1 Data 32 KiB (x16) - L1 Instruction 32 KiB (x16) - L2 Unified 256 KiB (x16) - L3 Unified 40960 KiB (x1) Include in charts:
  • -
  • Xeon E5-2682 v4, Windows 10, MSVC-1932 X 2494 MHz CPU sCPU Caches: +***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) L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) Include in charts:
  • -
  • Xeon E5-2682 v4, WASM Chrome 143, Clang-2132 X 2513.96 MHz CPU sChrome/143.0.0.0 webasm Include in charts:
  • +
  • Xeon E5-2682 v4, Windows 10, MSVC-1932 X 2494 MHz CPU sCPU Caches: + L1 Data 32 KiB (x16) + L1 Instruction 32 KiB (x16) + L2 Unified 256 KiB (x16) + L3 Unified 40960 KiB (x1) Include in charts:
  • +
  • Xeon E5-2682 v4, WASM Chrome 143, Clang-2232 X 2513.96 MHz CPU sChrome/143.0.0.0 webasm Include in charts:
- +

# Concatenate email

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Concat email std::formatstd::string email_concat_format(std::string_view name, std::string_view domain, std::string_view tld) { + + - + - + - + - + - + - + +}
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) { return std::format("{}@{}.{}", name, domain, tld); -}167176210254529
Concat email std::stringstreamstd::string email_concat_stream(std::string_view name, std::string_view domain, std::string_view tld) { +}165167160207252994
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(); -}3243328569341155
Concat email stringzilla appendsz::string email_concat_stringzilla_app(sz::string name, sz::string_view domain, sz::string_view tld) { +}3252683188089092551
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); -}135115271268249
Concat email stringzilla concatsz::string email_concat_stringzilla_exp(sz::string name, sz::string_view domain, sz::string_view tld) { +}136141108260272591
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.53.546.612812995.2
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.858.342.7125127222
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); -}72.999.0187197324
Concat email std::string by strexprstd::string email_concat_std_expr(std::string_view name, std::string_view domain, std::string_view 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) { return +name + "@" + domain + "." + tld; -}43.535.610711092.7
Concat email stringastringa email_concat_sim_expr(ssa name, ssa domain, ssa tld) { +}44.845.233.6106111164
Concat email stringastringa email_concat_sim_expr(ssa name, ssa domain, ssa tld) { return name + "@" + domain + "." + tld; -}39.440.593.199.571.3
40.539.339.792.9101131

# Concatenate string + Number + "Literal"

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Concat std::string and number by std to std::stringvoid ConcatStdToStd(benchmark::State& state) { + + - + - + - + +}
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -348,8 +355,8 @@ but it's not as convenient or advanced as simstr.2142092643371115
Concat std::string and number by StrExpr to std::stringvoid ConcatSimToStd(benchmark::State& state) { +}2162392072653311982
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) { @@ -358,8 +365,8 @@ but it's not as convenient or advanced as simstr.10498.1156219530
Concat stringa and number by StrExpr to simstr::stringavoid ConcatSimToSim(benchmark::State& state) { +}104100101156211980
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) { @@ -375,8 +382,8 @@ but it's not as convenient or advanced as simstr.67.773.069.1111227
Concat stringa and number by e_concat to simstr::stringavoid ConcatSimToSimConcat(benchmark::State& state) { +while in stringa , the entire test is included in SSO.65.665.168.166.5102352
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) { @@ -385,17 +392,17 @@ while in stringa , the entire test is included in SSO.70.879.774.9116258
71.267.876.474.2113377

# Concatenate string + Hex Number + "Literal"

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Concat std::string and format hex number and literal to std::stringvoid ConcatStdToFmtHex(benchmark::State& state) { + + - + - + - + - + - + - + - + +}
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { // 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) { @@ -406,8 +413,8 @@ while in stringa , the entire test is included in SSO.68974671510432114
std::format std::string and hex number by literal to std::stringvoid ConcatAllFmtToHex(benchmark::State& state) { +}70370374270110433864
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) { @@ -418,8 +425,8 @@ while in stringa , the entire test is included in SSO.889970149618592763
Concat std::string and std::to_chars and string to std::stringvoid ConcatStdToCharsHex(benchmark::State& state) { +}835804850146518345212
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) { @@ -432,8 +439,8 @@ while in stringa , the entire test is included in SSO.199254194256743
Concat std::string and hex number and literal by StrExpr to std::stringvoid ConcatSimToStdHex(benchmark::State& state) { +}2072181941822541159
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) { @@ -444,8 +451,8 @@ while in stringa , the entire test is included in SSO.13412689.2136547
Concat stringa and hex number and literal by StrExpr to simstr::stringavoid ConcatSimToSimHex(benchmark::State& state) { +}13314512183.5119912
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) { @@ -456,8 +463,8 @@ while in stringa , the entire test is included in SSO.11712070.7105220
Concat stringa and hex number and literal by e_concat to simstr::stringavoid ConcatSimToSimHexC(benchmark::State& state) { +}11711511667.1101221
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) { @@ -468,8 +475,8 @@ while in stringa , the entire test is included in SSO.12312877.7103211
Subst stringa and hex number by e_subst literal to simstr::stringavoid ConcatSimToSimHexS(benchmark::State& state) { +}12412312175.9105221
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) { @@ -479,8 +486,8 @@ while in stringa , the entire test is included in SSO.188169156176354
Subst stringa and hex number by e_vsubst stra to simstr::stringavoid ConcatSimToSimHexVS(benchmark::State& state) { +}182183165145171350
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) { @@ -490,37 +497,37 @@ while in stringa , the entire test is included in SSO.310292291362936
314320275292359928

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

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"void ConcatSimToSimOct(benchmark::State& state) { + + - + - + - + - + - + - + - + + +}
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) { for (auto _: state) { for (unsigned i = 1; i <= 100'000; i *= 10) { stringa str = "abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"; benchmark::DoNotOptimize(str); } } -}277261685701434
e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)void SubstSimToSimOct(benchmark::State& state) { +}265278259668695418
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); } } -}353320758798634
e_vsubst(pattern, i / 0x8a010_fmt)void VSubstSimToSimOct(benchmark::State& state) { +}350357314753828657
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) { @@ -528,16 +535,16 @@ while in stringa , the entire test is included in SSO.615614112811111530
fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)void FmtFormatComp(benchmark::State& state) { +}628640571105211661440
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); } } -}685745142416172320
fmt::format("abcdefghihklmopqr {:#010o} end", i)void FmtFormat(benchmark::State& state) { +}703668632140815772237
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); @@ -545,16 +552,16 @@ while in stringa , the entire test is included in SSO.854847137514403086
std::format("abcdefghihklmopqr {:#010o} end", i)void FormatStdToStdOct(benchmark::State& state) { +}873795747138414402986
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); } } -}10161276165718853154
std::vformat(pattern, std::make_format_args(i))void VFormatStdToStdOct(benchmark::State& state) { +}98212161210157419213132
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) { @@ -562,8 +569,18 @@ while in stringa , the entire test is included in SSO.10161145157419573173
strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"void StreamStdToStdOct(benchmark::State& state) { +}97512431241157819143119
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); + benchmark::DoNotOptimize(str); + } + } +}181821592117244328615329
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; @@ -572,21 +589,22 @@ while in stringa , the entire test is included in SSO.20572189677371698797
237325941954658969478569

# Concatenate string + "Literal"

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Concat std::string by std to std::stringvoid ConcatStdToStdS(benchmark::State& state) { + + - + - + +}
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) { std::string s1 = "start "; for (auto _: state) { for (int i = 1; i <= 100'000; i *= 10) { @@ -595,8 +613,8 @@ while in stringa , the entire test is included in SSO.45.649.444.059.3115
Concat std::string by StrExpr to std::stringvoid ConcatSimToStdS(benchmark::State& state) { +}47.234.045.340.455.1116
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) { @@ -605,8 +623,8 @@ while in stringa , the entire test is included in SSO.32.231.839.277.1128
Concat stringa by StrExpr to stringavoid ConcatSimToSimS(benchmark::State& state) { +}33.036.029.938.780.2131
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) { @@ -615,41 +633,41 @@ while in stringa , the entire test is included in SSO.28.527.928.951.4110
29.229.426.729.352.4101

# Find three concatenated string in string_view

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Find concat three std::stringsize_t find_pos_str(std::string_view src, std::string_view 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
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"); -}114140206212226
Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { +}11090.6116205223214
Find concat three strexprsize_t find_pos_exp(ssa src, ssa name) { return src.find(std::string{"\n- " + name + " -\n"}); -}49.638.1117123117
Find concat three simstrsize_t find_pos_sim(ssa src, ssa name) { +}52.643.138.4114124107
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.19.516.121.428.371.5
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.816.614.420.828.257.6
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")); -}145130217231288
157135118211221271

# Build Type Name

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
BuildTypeNameStr 0/0std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { + + - + - + - + - + - + +}
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { std::string res{type_name}; if (prec) { res += "(" + std::to_string(prec); @@ -659,20 +677,20 @@ it is collected in a stack-based buffer, without allocation or deallocation.7.3310.08.4017.323.4
BuildTypeNameExp 0/0std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}7.236.798.408.2117.523.2
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.788.417.5913.527.3
BuildTypeNameSim 0/0stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}6.615.996.687.4814.125.8
BuildTypeNameSim 0/0stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}5.045.957.7415.220.9
BuildTypeNameStr 10/10std::string buildTypeNameStr(std::string_view type_name, size_t prec, size_t scale) { +}4.204.284.837.4616.321.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); @@ -682,31 +700,31 @@ it is collected in a stack-based buffer, without allocation or deallocation.57.979.660.180.4403
BuildTypeNameExp 10/10std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { +}59.788.972.569.383.6400
BuildTypeNameExp 10/10std::string buildTypeNameExp(ssa type_name, size_t prec, size_t scale) { if (prec) { return type_name + "(" + prec + e_if(scale, ","_ss + scale) + ")"; } return type_name; -}31.026.733.039.4122
BuildTypeNameSim 10/10stringa buildTypeNameSim(ssa type_name, size_t prec, size_t scale) { +}30.938.826.532.238.1126
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.623.725.537.375.6
23.923.521.725.938.473.2

# Replace string by copy

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

# Create Empty Str

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string e;template<typename T> + + - + - + - + - + - + +}
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> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } } >> Пустые строки, ничего необычного. -Empty lines, nothing unusual.1.121.101.132.602.28
std::string_view e;template<typename T> +Empty lines, nothing unusual.1.140.7421.091.092.522.35
std::string_view e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3700.7430.3691.840.732
ssa e;template<typename T> +}0.3890.3730.7400.3631.820.772
ssa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.3690.1850.3631.870.368
stringa e;template<typename T> +}0.3700.3750.1810.3571.810.359
stringa e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}0.7490.7430.7442.212.14
lstringa<20> e;template<typename T> +}0.7700.7630.7370.7412.222.12
lstringa<20> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.131.111.152.592.17
lstringa<40> e;template<typename T> +}1.111.101.101.082.542.26
lstringa<40> e;template<typename T> void CreateEmpty(benchmark::State& state) { for (auto _: state) { T empty_string; benchmark::DoNotOptimize(empty_string); } -}1.131.121.112.592.48
1.111.101.101.092.562.41

# Create Str from short literal (9 symbols)

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string e = "Test text";template<typename T> + + - + - + - + - + - + +}
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> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -798,8 +816,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.861.871.822.612.43
std::string_view e = "Test text";template<typename T> +time is spent only copying 10 bytes.1.951.461.831.832.582.49
std::string_view e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -808,15 +826,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.7430.7580.7291.841.09
ssa e = "Test text";template<typename T> +a pointer to text and its length.0.7410.7410.7300.7181.831.08
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.3760.7420.3711.870.726
stringa e = "Test text";template<typename T> +}0.3740.3700.7290.3671.820.779
stringa e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -825,8 +843,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.111.131.112.592.19
lstringa<20> e = "Test text";template<typename T> +only a pointer to the text and its length.1.131.121.101.102.552.17
lstringa<20> e = "Test text";template<typename T> void CreateShortLiteral(benchmark::State& state) { for (auto _: state) { T empty_string = TEST_TEXT; @@ -835,26 +853,26 @@ void CreateShortLiteral(benchmark::State& state) { } >> Внутреннего буфера хватает для размещения символов, время уходит только на копирование байтов. The internal buffer is sufficient to accommodate characters; -time is spent only on copying bytes.1.891.861.852.652.62
lstringa<40> e = "Test text";template<typename T> +time is spent only on copying bytes.1.931.861.831.822.532.58
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.861.871.832.582.59
1.891.871.851.822.552.55

# Create Str from long literal (30 symbols)

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string e = "123456789012345678901234567890";template<typename T> + + - + - + - + - + - + +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> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -865,8 +883,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.020.875.880.526.1
std::string_view e = "123456789012345678901234567890";template<typename T> +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> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -875,23 +893,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.7440.7330.7271.801.15
ssa e = "123456789012345678901234567890";template<typename T> +remember the pointer to the text and its size.0.7380.7320.7400.7341.841.15
ssa e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; benchmark::DoNotOptimize(empty_string); } -}0.3730.7480.3691.870.737
stringa e = "123456789012345678901234567890";template<typename T> +}0.3690.3710.7460.3621.850.757
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.111.131.092.892.21
lstringa<20> e = "123456789012345678901234567890";template<typename T> +stringa doesn't lag behind on constant literals!1.101.111.111.092.872.17
lstringa<20> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -899,8 +917,8 @@ void CreateLongLiteral(benchmark::State& state) { } } >> lstringa<20> может вместить в себя до 23 символов, Очевидно, что для 30-и символов уже нужна аллокация. -Obviously, 30 characters already require allocation.21.220.276.576.224.2
lstringa<40> e = "123456789012345678901234567890";template<typename T> +Obviously, 30 characters already require allocation.20.519.220.176.776.929.8
lstringa<40> e = "123456789012345678901234567890";template<typename T> void CreateLongLiteral(benchmark::State& state) { for (auto _: state) { T empty_string{LONG_TEXT}; @@ -909,19 +927,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.591.862.523.402.92
2.571.841.822.503.272.95

# Create copy of Str with 9 symbols

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

# Create copy of Str with 30 symbols

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string e = "123456789012345678901234567890"; auto c{e};template<typename T> + + - + - + - + - + - + +Placed in the internal buffer.
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1005,24 +1023,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.324.579.477.853.4
std::string_view e = "123456789012345678901234567890"; auto c{e};template<typename T> +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> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { T copy{x}; benchmark::DoNotOptimize(copy); } -}0.7440.7460.7431.851.12
ssa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.7380.7370.7300.7311.831.07
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.3790.7460.3741.850.746
stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> +}0.3730.3720.7330.3651.810.784
stringa e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1032,8 +1050,8 @@ void CopyLongString(benchmark::State& state) { } >> А вот у stringa копирование литерала не зависит от его длины, сравни с предыдущим бенчмарком. But with stringa, literal copying doesn't depend on its length, -compare with the previous benchmark.1.111.111.833.012.18
lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> +compare with the previous benchmark.1.121.126.701.082.902.28
lstringa<20> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1041,8 +1059,8 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Не влезает, аллокация. -Doesn't fit, allocation.20.721.276.482.222.5
lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> +Doesn't fit, allocation.20.418.219.575.181.123.8
lstringa<40> e = "123456789012345678901234567890"; auto c{e};template<typename T> void CopyLongString(benchmark::State& state) { T x = LONG_TEXT; for (auto _: state) { @@ -1050,19 +1068,19 @@ void CopyLongString(benchmark::State& state) { benchmark::DoNotOptimize(copy); } } >> Уложили во внутренний буфер. -Placed in the internal buffer.4.594.204.957.9717.0
4.745.024.074.887.7316.7

# Find 9 symbols text in end of 99 symbols text

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
sz::string::find;template<typename T> + + - + - + - + - + - + - + +}
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> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1077,8 +1095,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> stringzilla более заточена на поиск больших строк в больших строках. -stringzilla is more focused on searching large strings within large strings.94.792.997.9116123
std::string::find;template<typename T> +stringzilla is more focused on searching large strings within large strings.98.196.284.995.3115123
std::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 +1113,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.156.9740.240.440.4
std::string_view::find;template<typename T> +However, Windows and Linux are clearly in different weight classes.7.047.466.6439.140.543.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) { @@ -1110,8 +1128,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.657.2752.239.543.8
ssa::find;template<typename T> +}7.157.137.0537.939.541.6
ssa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1125,8 +1143,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}7.316.7419.322.241.7
stringa::find;template<typename T> +}7.456.976.7318.122.041.1
stringa::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1140,8 +1158,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}8.306.8519.431.441.7
lstringa<20>::find;template<typename T> +}8.207.887.0119.229.940.6
lstringa<20>::find;template<typename T> void Find(benchmark::State& state) { T x{LONG_TEXT LONG_TEXT LONG_TEXT TEST_TEXT}; for (auto _: state) { @@ -1155,8 +1173,8 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}6.706.4517.922.439.4
lstringa<40>::find;template<typename T> +}6.826.736.5317.221.939.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) { @@ -1170,20 +1188,20 @@ void Find(benchmark::State& state) { benchmark::DoNotOptimize(i); benchmark::DoNotOptimize(x); } -}6.756.4218.122.039.6
6.706.796.2717.622.939.2

# Copy not literal Str with N symbols

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string copy{str_with_len_N};/15template<typename T> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1191,8 +1209,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.798.621.875.2654.0
std::string copy{str_with_len_N};/16template<typename T> +}5.241.174.851.905.0945.0
std::string copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1205,8 +1223,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.728.182.883.150.8
std::string copy{str_with_len_N};/23template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1215,8 +1233,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Дальше просто добавляется время на копирование байтов. -Then the time for copying bytes is simply added.22.827.680.282.550.7
std::string copy{str_with_len_N};/24template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1224,8 +1242,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}23.427.978.882.751.0
std::string copy{str_with_len_N};/32template<typename T> +}22.624.621.278.383.049.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) { @@ -1233,8 +1251,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}23.027.686.083.957.8
std::string copy{str_with_len_N};/64template<typename T> +}22.123.822.381.985.553.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) { @@ -1242,8 +1260,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}22.826.484.485.257.0
std::string copy{str_with_len_N};/128template<typename T> +}22.225.723.280.890.052.8
std::string copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1251,8 +1269,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}24.928.290.986.357.2
std::string copy{str_with_len_N};/256template<typename T> +}24.726.528.484.089.559.2
std::string copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1260,8 +1278,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}31.433.587.488.968.5
std::string copy{str_with_len_N};/512template<typename T> +}24.827.725.286.991.477.3
std::string copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1269,8 +1287,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}29.233.290.093.365.9
std::string copy{str_with_len_N};/1024template<typename T> +}29.131.227.889.893.486.0
std::string copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1278,8 +1296,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}33.837.810099.388.6
std::string copy{str_with_len_N};/2048template<typename T> +}47.838.235.597.298.8106
std::string copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1287,8 +1305,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}77.681.0129131113
std::string copy{str_with_len_N};/4096template<typename T> +}12386.4118126132119
std::string copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1297,8 +1315,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> Чем длиннее строка, тем дольше создаётся копия. -The longer the string, the longer it takes to create a copy.117121180184159
stringa copy{str_with_len_N};/15template<typename T> +The longer the string, the longer it takes to create a copy.146115154180181165
stringa copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1309,8 +1327,8 @@ void CopyDynString(benchmark::State& state) { } >> Здесь stringa инициализируется не литералом, а значит, должна сама хранить символы. Here, stringa is not initialized with a literal, -meaning it must store characters itself.1.101.311.324.062.40
stringa copy{str_with_len_N};/16template<typename T> +meaning it must store characters itself.1.111.101.101.074.032.50
stringa copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1323,8 +1341,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.091.301.334.114.81
stringa copy{str_with_len_N};/23template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1335,8 +1353,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.101.301.333.974.81
stringa copy{str_with_len_N};/24template<typename T> +copies faster than 15 in std::string.1.121.111.101.083.994.77
stringa copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1347,8 +1365,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.016.215.918.54.86
stringa copy{str_with_len_N};/32template<typename T> +Time is added for the atomic counter increment.16.316.016.115.818.44.73
stringa copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1356,8 +1374,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.115.819.04.81
stringa copy{str_with_len_N};/64template<typename T> +}16.116.016.115.918.44.77
stringa copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1365,8 +1383,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.215.818.55.13
stringa copy{str_with_len_N};/128template<typename T> +}16.116.116.115.818.44.76
stringa copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1374,8 +1392,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.116.115.918.95.28
stringa copy{str_with_len_N};/256template<typename T> +}15.916.216.015.818.44.74
stringa copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1383,8 +1401,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.215.818.55.19
stringa copy{str_with_len_N};/512template<typename T> +}16.016.316.015.818.74.74
stringa copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1392,8 +1410,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.215.918.54.80
stringa copy{str_with_len_N};/1024template<typename T> +}16.116.016.015.818.54.75
stringa copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1401,8 +1419,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.016.115.918.84.86
stringa copy{str_with_len_N};/2048template<typename T> +}16.016.016.015.818.54.75
stringa copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1410,8 +1428,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}16.516.315.818.54.82
stringa copy{str_with_len_N};/4096template<typename T> +}16.116.215.915.818.45.34
stringa copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1422,8 +1440,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.116.116.018.74.82
lstringa<16> copy{str_with_len_N};/15template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1434,8 +1452,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.511.091.554.594.09
lstringa<16> copy{str_with_len_N};/16template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1443,8 +1461,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.984.545.549.6916.1
lstringa<16> copy{str_with_len_N};/23template<typename T> +}5.425.274.434.799.6416.3
lstringa<16> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1452,8 +1470,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.024.545.659.5638.4
lstringa<16> copy{str_with_len_N};/24template<typename T> +}5.175.224.434.819.6636.5
lstringa<16> copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1462,8 +1480,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> И после начинает вести себя при копировании, как std::string. -And then it starts to behave like std::string when copied.25.324.579.981.839.6
lstringa<16> copy{str_with_len_N};/32template<typename T> +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> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1471,8 +1489,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}25.324.687.185.041.7
lstringa<16> copy{str_with_len_N};/64template<typename T> +}23.122.824.080.783.439.6
lstringa<16> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1480,8 +1498,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}26.826.283.383.642.5
lstringa<16> copy{str_with_len_N};/128template<typename T> +}24.924.225.377.384.939.5
lstringa<16> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1489,8 +1507,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}27.126.689.289.746.0
lstringa<16> copy{str_with_len_N};/256template<typename T> +}24.923.940.083.488.639.7
lstringa<16> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1498,8 +1516,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}28.327.590.089.556.1
lstringa<16> copy{str_with_len_N};/512template<typename T> +}27.326.827.086.688.463.9
lstringa<16> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1507,8 +1525,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}31.130.792.990.554.9
lstringa<16> copy{str_with_len_N};/1024template<typename T> +}29.829.029.188.191.771.1
lstringa<16> copy{str_with_len_N};/1024template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1516,8 +1534,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}53.554.110399.968.5
lstringa<16> copy{str_with_len_N};/2048template<typename T> +}95.478.397.494.795.584.9
lstringa<16> copy{str_with_len_N};/2048template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1525,8 +1543,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}64.264.512412997.6
lstringa<16> copy{str_with_len_N};/4096template<typename T> +}10574.6107126126104
lstringa<16> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1534,8 +1552,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}90.287.1188189143
lstringa<512> copy{str_with_len_N};/15template<typename T> +}12289.5121191186145
lstringa<512> copy{str_with_len_N};/15template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1543,8 +1561,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}1.501.131.474.414.74
lstringa<512> copy{str_with_len_N};/16template<typename T> +}1.131.141.471.104.414.67
lstringa<512> copy{str_with_len_N};/16template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1552,8 +1570,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.924.865.249.3316.3
lstringa<512> copy{str_with_len_N};/23template<typename T> +}5.124.804.395.369.3016.9
lstringa<512> copy{str_with_len_N};/23template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1561,8 +1579,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.884.795.289.4716.0
lstringa<512> copy{str_with_len_N};/24template<typename T> +}4.984.974.405.239.2916.2
lstringa<512> copy{str_with_len_N};/24template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1570,8 +1588,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.604.735.189.3516.2
lstringa<512> copy{str_with_len_N};/32template<typename T> +}4.454.424.155.199.5216.0
lstringa<512> copy{str_with_len_N};/32template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1579,8 +1597,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}4.584.598.2712.419.5
lstringa<512> copy{str_with_len_N};/64template<typename T> +}4.664.724.198.3012.320.1
lstringa<512> copy{str_with_len_N};/64template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1588,8 +1606,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}5.955.998.1712.419.3
lstringa<512> copy{str_with_len_N};/128template<typename T> +}6.036.105.948.0112.020.1
lstringa<512> copy{str_with_len_N};/128template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1597,8 +1615,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}6.426.998.4312.819.5
lstringa<512> copy{str_with_len_N};/256template<typename T> +}6.416.395.938.4513.020.3
lstringa<512> copy{str_with_len_N};/256template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1606,8 +1624,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}7.928.239.9813.922.1
lstringa<512> copy{str_with_len_N};/512template<typename T> +}7.858.097.879.5613.821.6
lstringa<512> copy{str_with_len_N};/512template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1618,8 +1636,8 @@ void CopyDynString(benchmark::State& state) { } >> Даже 512 символов копируются быстрее, чем одна аллокация или атомарный инкремент. Even 512 characters are copied faster than a single -allocation or atomic increment.10.310.411.215.623.7
lstringa<512> copy{str_with_len_N};/1024template<typename T> +allocation or atomic increment.10.610.510.211.015.324.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) { @@ -1628,8 +1646,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(x); } } >> А дальше уже как у всех. -And then it's like everyone else.53.255.598.099.773.4
lstringa<512> copy{str_with_len_N};/2048template<typename T> +And then it's like everyone else.98.151.897.098.295.282.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) { @@ -1637,8 +1655,8 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}63.266.3128128102
lstringa<512> copy{str_with_len_N};/4096template<typename T> +}10473.1105132129103
lstringa<512> copy{str_with_len_N};/4096template<typename T> void CopyDynString(benchmark::State& state) { T x(state.range(0), 'a'); for (auto _: state) { @@ -1646,61 +1664,61 @@ void CopyDynString(benchmark::State& state) { benchmark::DoNotOptimize(copy); benchmark::DoNotOptimize(x); } -}89.490.6189190150
12186.2123185195152

# Convert to int '1234567'

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);void ToIntStr10(benchmark::State& state, const std::string& s, int c) { + + - + - + - + - + +}
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) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 10); #ifdef CHECK_RESULT @@ -1719,8 +1737,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.831.331.891.8
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.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) { for (auto _: state) { int res = 0; std::from_chars(s.data(), s.data() + s.size(), res, 10); @@ -1735,8 +1753,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.12.911.313.612.00.732
stringa s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +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> void ToIntSimStr10(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int, true, 10, false, false>().value; @@ -1752,8 +1770,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.547.9413.417.318.7
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.159.4116.513.817.719.6
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; @@ -1766,8 +1784,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}9.238.5412.515.417.2
lstringa<20> s = "123456789"; int res = s.to_int<int, true, 10, false>template<typename T> +}9.469.407.419.1916.320.8
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; @@ -1780,18 +1798,18 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}9.457.9013.414.817.0
9.309.447.4313.614.816.6

# Convert to unsigned 'abcDef'

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);void ToIntStr16(benchmark::State& state, const std::string& s, int c) { + + - + - + - + - + +}
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) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 16); #ifdef CHECK_RESULT @@ -1803,8 +1821,8 @@ void ToIntSimStr10(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> Всё то же, только для 16ричной системы -Everything is the same, only for the hexadecimal system23.723.533.435.166.6
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.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) { for (auto _: state) { int res = 0; std::from_chars(s.data(), s.data() + s.size(), res, 16); @@ -1816,8 +1834,8 @@ Everything is the same, only for the hexadecimal system9.439.038.218.9518.0
stringa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}9.2221.98.898.028.7419.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; @@ -1830,8 +1848,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.597.9312.314.517.9
ssa s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}7.607.7115.812.714.220.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; @@ -1844,8 +1862,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.577.497.4912.316.3
lstringa<20> s = "abcDef"; int res = s.to_int<int, true, 16, false>template<typename T> +}7.567.626.357.2613.120.1
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; @@ -1858,18 +1876,18 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}7.567.4911.813.116.2
7.357.416.3212.512.515.9

# Convert to int ' 1234567'

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);void ToIntStr0(benchmark::State& state, const std::string& s, int c) { + + - + - + +}
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) { for (auto _: state) { int res = std::strtol(s.c_str(), nullptr, 0); #ifdef CHECK_RESULT @@ -1881,8 +1899,8 @@ void ToIntSimStr16(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); } } >> А здесь уже парсинг произвольного числа. -And here we have parsing of an arbitrary number.28.529.244.046.9106
stringa s = " 123456789"; int res = s.to_int<int>; // Check overflowtemplate<typename T> +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> void ToIntSimStr0(benchmark::State& state, T t, int c) { for (auto _: state) { int res = t. template to_int<int>().value; @@ -1895,8 +1913,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}11.515.416.322.214.7
ssa s = " 123456789"; int res = s.to_int<int, false>; // No check overflowvoid ToIntNoOverflow(benchmark::State& state, ssa t, int c) { +}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) { for (auto _: state) { int res = t.to_int<int, false>().value; #ifdef CHECK_RESULT @@ -1908,16 +1926,16 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}13.313.513.018.815.5
13.313.110.713.518.714.8

# Convert to double '1234.567e10'

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);void ToDoubleStr(benchmark::State& state, const std::string& s, double c) { + + - + - + +}
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) { for (auto _: state) { char* ptr = nullptr; double res = std::strtod(s.c_str(), &ptr); @@ -1932,12 +1950,17 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { #endif benchmark::DoNotOptimize(res); } -}66.564.397.7100301
std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { +}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> +void ToDoubleFromChars(benchmark::State& state, const std::string_view& s, double c) { for (auto _: state) { double res = 0; - if (std::from_chars(s.data(), s.data() + s.size(), res).ec != std::errc{}) { - state.SkipWithError("not equal"); + if constexpr (requires { std::from_chars(std::declval<K*>(), std::declval<K*>(), std::declval<double&>()); }) { + if (std::from_chars((const K*)s.data(), (const K*)s.data() + s.size(), res).ec != std::errc{}) { + state.SkipWithError("not equal"); + } + } else { + state.SkipWithError("not implemented"); } #ifdef CHECK_RESULT if (res != c) { @@ -1947,8 +1970,8 @@ void ToIntSimStr0(benchmark::State& state, T t, int c) { #endif benchmark::DoNotOptimize(res); } -}24.023.860.587.4106
ssa s = "1234.567e10"; double res = *s.to_double()template<typename T> +}24.1Not impl23.861.685.0106
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>(); @@ -1965,16 +1988,16 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(res); benchmark::DoNotOptimize(t); } -}26.024.836.238.041.1
26.034.224.236.637.044.4

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

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::stringstream str; ... str << "abbaabbaabbaabba";void AppendStreamConstLiteral(benchmark::State& state) { + + - + - + - + - + - + +}
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) { for (auto _: state) { std::string result; std::stringstream str; @@ -1991,8 +2014,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(str); } -}13881348471357296596
std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { +}137419481379464656686891
std::string str; ... str += "abbaabbaabbaabba";void AppendStdStringConstLiteral(benchmark::State& state) { for (auto _: state) { std::string result; for (size_t c = 0; c < 64; c++) { @@ -2006,8 +2029,8 @@ void ToDoubleSimStr(benchmark::State& state, T t, double c) { #endif benchmark::DoNotOptimize(result); } -}36832610831363858
lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}44541938010601286853
lstringa<8> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2022,8 +2045,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}374358824970782
lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}413381360777929805
lstringa<128> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2041,8 +2064,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { } >> Чем больше внутренний буфер, тем меньше раз требуется аллокация, тем быстрее результат. The larger the internal buffer, the fewer allocations are -required, and the faster the result.233236391542591
lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> +required, and the faster the result.289279263399539594
lstringa<512> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2057,8 +2080,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}237211254369461
lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> +}248253219269350462
lstringa<1024> str; ... str += "abbaabbaabbaabba";template<unsigned N> void AppendLstringConstLiteral(benchmark::State& state) { for (auto _: state) { lstringa<N> result; @@ -2073,19 +2096,19 @@ void AppendLstringConstLiteral(benchmark::State& state) { #endif benchmark::DoNotOptimize(result); } -}163140134230372
139157143157227366

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

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::stringstream str; ... str << str_var << "abbaabbaabbaabba";void AppendStreamStrConstLiteral(benchmark::State& state) { + + - + - + - + - + - + +}
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::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2103,8 +2126,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}14781373460658407324
std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { +}143919611348459655907083
std::string str; ... str += str_var + "abbaabbaabbaabba";void AppendStdStrStrConstLiteral(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2120,8 +2143,8 @@ void AppendLstringConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}12861249382538412429
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}128912631202378139662327
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2138,8 +2161,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}4354017468561035
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}4434674567268291069
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2156,8 +2179,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}336355468542886
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}383355401465535895
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2174,8 +2197,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}280300303391745
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> +}332317310289377800
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";template<unsigned N> void AppendLstringStrConstLiteral(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2192,19 +2215,19 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}214249184288685
206230212217281713

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

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 timesvoid AppendStreamStrConstLiteralBig(benchmark::State& state) { + + - + - + - + - + - + +}
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::string s1 = TEXT_16; for (auto _: state) { std::string result; @@ -2222,8 +2245,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(s1); } -}119217118986224278288424367555
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { +}7612514056773026215409287657345299
std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 timesvoid AppendStdStrStrConstLiteralBig(benchmark::State& state) { std::string p1 = TEXT_16; for (auto _: state) { std::string result; @@ -2239,8 +2262,8 @@ void AppendLstringStrConstLiteral(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}7273473469192363189131128555
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}715079463066199193253196942127979
lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2257,8 +2280,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}4667947566209742495551145
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}180294302122156189262636152828
lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2275,8 +2298,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}2814526208168892198748871
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}159972382218805171702327049507
lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2293,8 +2316,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}1909020362162872209949022
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> +}157761815618433159552189050433
lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 timestemplate<unsigned N> void AppendLstringStrConstLiteralBig(benchmark::State& state) { stringa p1 = TEXT_16; for (auto _: state) { @@ -2311,19 +2334,19 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(p1); } -}1608316214162802337647869
189911787418781175282225747948

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

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::stringstream str; ... str << str_var1 << str_var2;void AppendStream2String(benchmark::State& state) { + + - + - + - + - + - + +}
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::string s1 = TEXT_16; std::string s2 = TEXT_16; for (auto _: state) { @@ -2343,8 +2366,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}13981401449154717371
std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { +}136420031378439755357228
std::string str; ... str += str_var1 + str_var2;void AppendStdStr2String(benchmark::State& state) { std::string s1 = TEXT_16; std::string s2 = TEXT_16; @@ -2363,8 +2386,8 @@ void AppendLstringStrConstLiteralBig(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}13961418404840912705
lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> +}134213701285397040142636
lstringa<16> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2383,8 +2406,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4894848139331272
lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> +}5234965328129241283
lstringa<128> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2403,8 +2426,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}4044185266411198
lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> +}4434344745146071173
lstringa<512> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2423,8 +2446,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}3743713984831033
lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> +}4093873793834711019
lstringa<1024> str; ... str += str_var1 + str_var2;template<unsigned N> void AppendLstring2String(benchmark::State& state) { stra s1 = TEXT_16; stra s2 = TEXT_16; @@ -2443,19 +2466,19 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(s1); benchmark::DoNotOptimize(s2); } -}292320295389960
306290281286355906

# Append text, number, text

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::stringstream str; str << "test = " << k << " times";void AppendStreamStrNumStr(benchmark::State& state) { + + - + - + - + - + - + - + - + - + +enough to accommodate the result, hence the long time.
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { for (auto _: state) { for (unsigned k = 1; k <= 1'000'000'000; k *= 10) { std::stringstream t; @@ -2471,8 +2494,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}30753267105551266811807
std::string str = "test = " + std::to_string(k) + " times";void AppendStdStringStrNumStr(benchmark::State& state) { +}311533222931105431131111660
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"; @@ -2486,8 +2509,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}444434106112701850
char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;void AppendSprintfStrNumStr(benchmark::State& state) { +}437475412108812581723
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]; @@ -2503,8 +2526,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}13771519284328065459
std::string str = std::format("test = {} times", k);void AppendFormatStrNumStr(benchmark::State& state) { +}138212001435274327975394
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); @@ -2518,8 +2541,8 @@ void AppendLstring2String(benchmark::State& state) { benchmark::DoNotOptimize(k); } } -}11251497190823762886
lstringa<8> str; str.format("test = {} times", k);template<typename T> +}11219481165191923702892
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) { @@ -2537,8 +2560,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } >> В simstr format с первого раза не помещается в такую строку без аллокации. In simstr format, the first time it doesn't fit into such a -string without allocation.13861586205626304975
lstringa<32> str; str.format("test = {} times", k);template<typename T> +string without allocation.126920191487197226244873
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) { @@ -2555,8 +2578,8 @@ void AppendSimStrStrNumStrF(benchmark::State& state) { } } } >> А в такую помещается. Используйте сразу буфера подходящего размера. -And it fits in this one. Use buffers of the appropriate size right away.10211126102915464261
lstringa<8> str = "test = " + k + " times";template<typename T> +And it fits in this one. Use buffers of the appropriate size right away.9671714100599315134141
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) { @@ -2572,8 +2595,8 @@ void AppendSimStrStrNumStr(benchmark::State& state) { } } } >> Результат не помещается в SSO, возникает аллокация. -The result does not fit into SSO, an allocation occurs.282315832925592
lstringa<32> str = "test = " + k + " times";template<typename T> +The result does not fit into SSO, an allocation occurs.278271289810877611
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) { @@ -2591,8 +2614,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.127154138173376
stringa str = "test = " + k + " times";template<typename T> +Once again, use appropriately sized buffers from the start.120120132129171374
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) { @@ -2610,22 +2633,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.123133123180573
121124136118172554

# Split text and convert to int

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
std::string::find + substr + std::strtolvoid SplitConvertIntStdString(benchmark::State& state) { + + - + - + +}
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 numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2647,8 +2670,8 @@ enough to accommodate the result, hence the long time.265265549556693
ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { +}291277272547555684
ssa::splitter + ssa::as_intvoid SplitConvertIntSimStr(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2664,8 +2687,8 @@ enough to accommodate the result, hence the long time.155143164302240
ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { +}159153190167306247
ssa::splitf + functorvoid SplitConvertIntSplitf(benchmark::State& state) { stra numbers = NUMBER_LIST; for (auto _: state) { int total = 0; @@ -2679,16 +2702,16 @@ enough to accommodate the result, hence the long time.206125188216281
201211194194212284

# Replace symbols in text ~400 symbols

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Naive (and wrong) replace symbols with std::string find + replacevoid ReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { + + - + - + - + - + - + - + +}
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" " ksjd-fksjd \"dkjfs-jkhdf dfj ' kdkd \"dkfdkfkdjf" @@ -2745,8 +2768,8 @@ enough to accommodate the result, hence the long time.'b' and 'b'->'a'. But if the substitutions don't conflict, -it works quickly.841837116112592875
replace symbols with std::string find_first_of + replacevoid ReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +it works quickly.826892793107612492994
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" @@ -2800,8 +2823,8 @@ it works quickly.841 >> Дальше уже правильные реализации, не зависящие от конфликтующих замен. Further, there are correct implementations that do not depend on -conflicting replacements.24502361201222625461
replace symbols with std::string_view find_first_of + copyvoid ReplaceSymbolsStdString(benchmark::State& state) { +conflicting replacements.245021932390189921115651
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" @@ -2852,8 +2875,8 @@ conflicting replacements.24501078965238526183004
replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}10731024960227225222910
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 >" @@ -2898,8 +2921,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}12741436160716892942
replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}124714631320159116822879
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 >" @@ -2944,8 +2967,8 @@ void ReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}10531067137114902367
replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}95911311012134914702251
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 >" @@ -2987,8 +3010,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}10091246122912552442
replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}110410031057112912712457
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 >" @@ -3030,20 +3053,20 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}883850114912172031
804876827118212092073

# Replace symbols in text ~40 symbols

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Short Naive (and wrong) replace symbols with std::string find + replacevoid ShortReplaceSymbolsStdStringNaiveWrong(benchmark::State& state) { + + - + - + - + - + - + - + +}
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3081,8 +3104,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}165158307330516
Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { +}158167157299327498
Short replace symbols with std::string find_first_of + replacevoid ShortReplaceSymbolsStdStringNaiveRight(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3120,8 +3143,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}318338358423774
Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { +}311309318346407751
Short replace symbols with std::string_view find_first_of + copyvoid ShortReplaceSymbolsStdString(benchmark::State& state) { std::string_view source = "abcdefg124 < jhsfjsh sjdfsh jfhjd && jdjdj >" ; @@ -3158,8 +3181,8 @@ void ReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}152160313350439
Short replace runtime symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}154152150296339448
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 >" @@ -3190,8 +3213,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}163204276312389
Short replace runtime symbols with simstr and memorization of all search resultstemplate<bool UseVector> +}166192175266309392
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 >" @@ -3222,8 +3245,8 @@ void ShortReplaceSymbolsDynPatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(source); benchmark::DoNotOptimize(repl); } -}187193345418439
Short replace const symbols with string expressions and without remembering all search resultstemplate<bool UseVector> +}174208178357387421
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 >" @@ -3251,8 +3274,8 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}126150212252292
Short replace const symbols with string expressions and memorization of all search resultstemplate<bool UseVector> +}127124136198250278
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 >" @@ -3280,20 +3303,20 @@ void ShortReplaceSymbolsCons2PatternSimStr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}147140294325320
138137129297363317

# Replace All Str To Longer Size

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
replace bb to ---- in std::string|64template<size_t Long> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
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> void ReplaceAllLongerStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3325,8 +3348,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}152157219239394
replace bb to ---- in std::string|256template<size_t Long> +}152173154221239370
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"; @@ -3358,8 +3381,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}5384927507961197
replace bb to ---- in std::string|512template<size_t Long> +}5258445007377551187
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"; @@ -3391,8 +3414,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}1070990135215222361
replace bb to ---- in std::string|1024template<size_t Long> +}10781199972136414672268
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"; @@ -3424,8 +3447,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}23842325302831214872
replace bb to ---- in std::string|2048template<size_t Long> +}226424622261303430814800
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"; @@ -3457,8 +3480,8 @@ void ReplaceAllLongerStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}607260647680789411862
replace bb to ---- in lstringa<8>|64template<size_t N, size_t Count> +}5910629858877577785810945
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"; @@ -3479,8 +3502,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}129145217230306
replace bb to ---- in lstringa<8>|256template<size_t N, size_t Count> +}127129130214231285
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"; @@ -3501,8 +3524,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}430475609671953
replace bb to ---- in lstringa<8>|512template<size_t N, size_t Count> +}425446494601653910
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"; @@ -3523,8 +3546,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}825862105211191732
replace bb to ---- in lstringa<8>|1024template<size_t N, size_t Count> +}801831839100911151712
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"; @@ -3545,8 +3568,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}16131756187820323256
replace bb to ---- in lstringa<8>|2048template<size_t N, size_t Count> +}163916091731185120483116
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"; @@ -3567,8 +3590,8 @@ void ReplaceAllLongerSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}31743286354838676323
replace bb to ---- by init stringa|64template<size_t Count> +}307730583350346838076042
replace bb to ---- by init stringa|64template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3588,8 +3611,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}94.587.1162200162
replace bb to ---- by init stringa|256template<size_t Count> +}92.589.482.3161197170
replace bb to ---- by init stringa|256template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3609,8 +3632,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}299267363463527
replace bb to ---- by init stringa|512template<size_t Count> +}293283276362448586
replace bb to ---- by init stringa|512template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3630,8 +3653,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}69665178910751213
replace bb to ---- by init stringa|1024template<size_t Count> +}68767367577310491275
replace bb to ---- by init stringa|1024template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3651,8 +3674,8 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}15461455158721672565
replace bb to ---- by init stringa|2048template<size_t Count> +}158114321510157521722632
replace bb to ---- by init stringa|2048template<size_t Count> void ReplaceAllLongerSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa----baaaaaaaa--------aaaaabaaaaaaaaaaaaaaaaaaaaa----a"; @@ -3672,28 +3695,28 @@ void ReplaceAllLongerSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}31762933291243575315
316728543059287643735701

# Replace All Str To Same Size

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
replace bb to -- in std::string|64template<size_t Long> + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + +}
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> void ReplaceAllEqualStdString(benchmark::State& state) { std::string_view source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; std::string_view sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3724,8 +3747,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}106111181201256
replace bb to -- in std::string|256template<size_t Long> +}112118120178196264
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"; @@ -3756,8 +3779,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}382366480517819
replace bb to -- in std::string|512template<size_t Long> +}376413365459503846
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"; @@ -3788,8 +3811,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}7247388269241546
replace bb to -- in std::string|1024template<size_t Long> +}7208257728288981556
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"; @@ -3820,8 +3843,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}14571431159817712954
replace bb to -- in std::string|2048template<size_t Long> +}143815431404154917312961
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"; @@ -3852,8 +3875,8 @@ void ReplaceAllEqualStdString(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}28552775382235115749
replace bb to -- in lstringa<8>|64template<size_t N, size_t Long> +}283931402726307234335794
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"; @@ -3873,8 +3896,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}94.195.4174189206
replace bb to -- in lstringa<8>|256template<size_t N, size_t Long> +}93.288.190.0173185198
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"; @@ -3894,8 +3917,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}282282429434650
replace bb to -- in lstringa<8>|512template<size_t N, size_t Long> +}297282295426442663
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"; @@ -3915,8 +3938,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}5205317337791202
replace bb to -- in lstringa<8>|1024template<size_t N, size_t Long> +}5195265407277651186
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"; @@ -3936,8 +3959,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}10691029137714652364
replace bb to -- in lstringa<8>|2048template<size_t N, size_t Long> +}108110721086138114472250
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"; @@ -3957,8 +3980,8 @@ void ReplaceAllEqualSimString(benchmark::State& state) { benchmark::DoNotOptimize(result); benchmark::DoNotOptimize(source); } -}21002008265528104378
replace bb to -- by init stringa|64template<size_t Count> +}211720232111265328264373
replace bb to -- by init stringa|64template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -3982,8 +4005,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}76.183.6150166147
replace bb to -- by init stringa|256template<size_t Count> +}75.575.375.9150163144
replace bb to -- by init stringa|256template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4007,8 +4030,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}234265325375472
replace bb to -- by init stringa|512template<size_t Count> +}243233241329373472
replace bb to -- by init stringa|512template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4032,8 +4055,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}439501519621912
replace bb to -- by init stringa|1024template<size_t Count> +}429428457519620894
replace bb to -- by init stringa|1024template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4057,8 +4080,8 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}8541004101011121712
replace bb to -- by init stringa|2048template<size_t Count> +}90984692098711011701
replace bb to -- by init stringa|2048template<size_t Count> void ReplaceAllEqualSimStringExpr(benchmark::State& state) { ssa source = "aaaaaaaaaaaaaaaaaaabbbaaaaaaaabbbbaaaaabaaaaaaaaaaaaaaaaaaaaabba"; ssa sample = "aaaaaaaaaaaaaaaaaaa--baaaaaaaa----aaaaabaaaaaaaaaaaaaaaaaaaaa--a"; @@ -4082,28 +4105,28 @@ void ReplaceAllEqualSimStringExpr(benchmark::State& state) { benchmark::DoNotOptimize(pattern); benchmark::DoNotOptimize(repl); } -}16461944174121252832
168716541760174421142793

# Hash Map insert and find

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
hashStrMapA<size_t> emplace & find stringa;void HashMapSimStr(benchmark::State& state) { + + - + - + - + +We insert std::string and look for std::string_view
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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) { for (auto _: state) { hashStrMapA<size_t> store; for (size_t idx = 0; idx < bs_sim.size(); idx++) { @@ -4128,8 +4151,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.36060143698007402036644282533227313
std::unordered_map<std::string, size_t> emplace & find std::string;void HashMapStdStr(benchmark::State& state) { +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) { for (auto _: state) { std::unordered_map<std::string, size_t> store; for (size_t idx = 0; idx < bs_std.size(); idx++) { @@ -4152,8 +4175,8 @@ hashStrMapA, and then search for them in it. >> То же самое c std::string и std::unordered_map -Same thing with std::string and std::unordered_map35235753645916559876058980023640106
hashStrMapA<size_t> emplace & find ssa;void HashMapSimSsa(benchmark::State& state) { +Same thing with std::string and std::unordered_map354609935172103585692570655557959063684923
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++) { @@ -4177,8 +4200,8 @@ Same thing with std::string and std::unordered_map >> Теперь вставляем stringa, а ищем ssa -Now we insert stringa and search for ssa35935133708079343970640821783237505
std::unordered_map<std::string, size_t> emplace & find std::string_view;void HashMapStdStrView(benchmark::State& state) { +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) { for (auto _: state) { std::unordered_map<std::string, size_t> store; for (size_t idx = 0; idx < bs_std.size(); idx++) { @@ -4202,17 +4225,17 @@ Now we insert stringa and search for ssa >> Вставляем std::string, а ищем std::string_view -We insert std::string and look for std::string_view40683994189102706885563035344135414
427199540420573948260645350763411434260216

# Build Full Func Name

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
Build func full name std::string;std::string build_full_name_std() const { + + - + - + - + - + +to be written in a single string, but is slightly slower in execution time.
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-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 { std::string str{has_ret_type_resolver ? "any"sv : type_names_sv[(unsigned)ret_type]}; str += " "; str += std_name; @@ -4249,8 +4272,8 @@ We insert std::string and look for std::string_view678853150616043605
Build func full name std::string 1;std::string build_full_name_std1() const { +return values. The algorithm uses std::string.652991733154315743466
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 + "("; @@ -4281,8 +4304,8 @@ return values. The algorithm uses std::string. >> Почти тот же алгоритм, но несколько последовательных += к строке заменены на одно += + + +. Almost the same algorithm, but several consecutive -+= to a string are replaced with a single += + + +.776912158216973610
Build func full name std::stream;std::string build_full_name_stream() const { ++= to a string are replaced with a single += + + +.722997789152716383613
Build func full name std::stream;std::string build_full_name_stream() const { std::ostringstream str; if (has_ret_type_resolver) { str << "any"; @@ -4315,8 +4338,8 @@ Almost the same algorithm, but several consecutive str << ")"; return str.str(); } >> Строим имя функции через std::ostringstream и << -We construct the function name through std::ostringstream and <<2611250281671005412391
Build func full name stringa;stringa build_full_name() const { +We construct the function name through std::ostringstream and <<2537283224908122977113169
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; @@ -4333,8 +4356,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.4844597908791610
Build func full name stringa 1;stringa build_full_name1() const { +Parameter information is appended to the current line.4834434497658551567
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; @@ -4351,18 +4374,18 @@ Parameter information is appended to the current line.6106278779821874
5995975308529881808

# Make Upper

- -
Benchmark nameCommentXeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13Xeon E5-2682 v4, Windows 10, Clang-19Xeon E5-2682 v4, Windows 10, MSVC-19Xeon E5-2682 v4, WASM Chrome 143, Clang-21
To upper case std::wstringvoid UpperCaseStd(benchmark::State& state) { + + - + +}
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) { static const auto& loc = std::locale("en_US.utf8"); for (auto _: state) { @@ -4380,8 +4403,8 @@ to be written in a single string, but is slightly slower in execution time.15116615261424203
To upper case lstringw<15>void UpperCaseSim(benchmark::State& state) { +}15016716814051404226
To upper case lstringw<15>void UpperCaseSim(benchmark::State& state) { for (auto _: state) { lstringw<15> test = L"TestПриветTest"; benchmark::DoNotOptimize(test); @@ -4395,8 +4418,8 @@ to be written in a single string, but is slightly slower in execution time.41.442.040.350.563.5
39.840.339.336.247.968.2
\ No newline at end of file diff --git a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt similarity index 55% rename from bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt rename to bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt index 2c35199..8365987 100644 --- a/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-21.txt +++ b/bench/results/000-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.1 +Benchmarks of simstr, version 1.7.2 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html - -2026-02-21T16:31:51+03:00 +Compiler Clang 22.0.0 +2026-02-27T22:30:05+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,976 +10,980 @@ CPU Caches: L1 Instruction 32 KiB (x16) L2 Unified 256 KiB (x16) L3 Unified 40960 KiB (x1) -Load Average: 0.31, 0.73, 0.52 +Load Average: 0.03, 0.01, 0.00 ***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 167 ns 167 ns 4 -Concat email std::format_stddev 1.71 ns 1.71 ns 4 -Concat email std::format_cv 1.02 % 1.02 % 4 -Concat email std::stringstream_mean 324 ns 324 ns 4 -Concat email std::stringstream_median 324 ns 324 ns 4 -Concat email std::stringstream_stddev 6.79 ns 6.79 ns 4 -Concat email std::stringstream_cv 2.09 % 2.09 % 4 -Concat email stringzilla append_mean 135 ns 135 ns 4 -Concat email stringzilla append_median 135 ns 135 ns 4 -Concat email stringzilla append_stddev 2.16 ns 2.16 ns 4 -Concat email stringzilla append_cv 1.60 % 1.60 % 4 -Concat email stringzilla concat_mean 53.5 ns 53.5 ns 4 -Concat email stringzilla concat_median 53.6 ns 53.6 ns 4 -Concat email stringzilla concat_stddev 1.95 ns 1.95 ns 4 -Concat email stringzilla concat_cv 3.64 % 3.64 % 4 -Concat email std::string append_mean 72.9 ns 72.9 ns 4 -Concat email std::string append_median 73.1 ns 73.1 ns 4 -Concat email std::string append_stddev 1.03 ns 1.03 ns 4 -Concat email std::string append_cv 1.42 % 1.42 % 4 -Concat email std::string by strexpr_mean 43.5 ns 43.5 ns 4 -Concat email std::string by strexpr_median 43.4 ns 43.4 ns 4 -Concat email std::string by strexpr_stddev 0.342 ns 0.341 ns 4 -Concat email std::string by strexpr_cv 0.79 % 0.79 % 4 -Concat email stringa_mean 39.4 ns 39.4 ns 4 -Concat email stringa_median 39.6 ns 39.6 ns 4 -Concat email stringa_stddev 0.697 ns 0.697 ns 4 -Concat email stringa_cv 1.77 % 1.77 % 4 +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 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -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 213 ns 213 ns 4 -Concat std::string and number by std to std::string_stddev 5.13 ns 5.13 ns 4 -Concat std::string and number by std to std::string_cv 2.40 % 2.40 % 4 +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.10 ns 2.10 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.02 % 2.02 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 67.7 ns 67.7 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 67.8 ns 67.8 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 0.686 ns 0.686 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 1.01 % 1.01 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 70.8 ns 70.8 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 70.6 ns 70.6 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 2.17 ns 2.17 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 3.06 % 3.06 % 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 ----- 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 689 ns 689 ns 4 -Concat std::string and format hex number and literal to std::string_median 682 ns 682 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 18.9 ns 18.9 ns 4 -Concat std::string and format hex number and literal to std::string_cv 2.74 % 2.74 % 4 -std::format std::string and hex number by literal to std::string_mean 889 ns 889 ns 4 -std::format std::string and hex number by literal to std::string_median 889 ns 889 ns 4 -std::format std::string and hex number by literal to std::string_stddev 8.63 ns 8.63 ns 4 -std::format std::string and hex number by literal to std::string_cv 0.97 % 0.97 % 4 -Concat std::string and std::to_chars and string to std::string_mean 199 ns 199 ns 4 -Concat std::string and std::to_chars and string to std::string_median 200 ns 200 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 2.47 ns 2.47 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.24 % 1.24 % 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.07 ns 1.07 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 0.80 % 0.80 % 4 +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 stringa and hex number and literal by StrExpr to simstr::stringa_mean 117 ns 117 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 117 ns 117 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.09 ns 1.09 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.94 % 0.94 % 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 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 1.16 ns 1.16 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 0.95 % 0.95 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 188 ns 188 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 189 ns 189 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 3.53 ns 3.53 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.88 % 1.88 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 310 ns 310 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 310 ns 310 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.86 ns 8.86 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 2.86 % 2.86 % 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 ---- 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 277 ns 277 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 275 ns 275 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 7.52 ns 7.52 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.71 % 2.71 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 353 ns 353 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 352 ns 352 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 4.33 ns 4.33 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.23 % 1.23 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 615 ns 615 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 620 ns 620 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 16.2 ns 16.2 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 2.64 % 2.64 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 685 ns 685 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 686 ns 686 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.66 % 1.66 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 854 ns 854 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 858 ns 858 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 44.1 ns 44.1 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 5.16 % 5.16 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1016 ns 1016 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 992 ns 992 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 50.4 ns 50.4 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 4.96 % 4.96 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1016 ns 1016 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1016 ns 1016 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 21.0 ns 21.0 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.07 % 2.07 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2057 ns 2057 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2060 ns 2060 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 38.6 ns 38.6 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 1.88 % 1.88 % 4 +"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 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 45.6 ns 45.6 ns 4 -Concat std::string by std to std::string_median 45.7 ns 45.7 ns 4 -Concat std::string by std to std::string_stddev 0.655 ns 0.655 ns 4 -Concat std::string by std to std::string_cv 1.44 % 1.44 % 4 -Concat std::string by StrExpr to std::string_mean 32.2 ns 32.2 ns 4 -Concat std::string by StrExpr to std::string_median 32.2 ns 32.2 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.60 ns 1.60 ns 4 -Concat std::string by StrExpr to std::string_cv 4.96 % 4.96 % 4 -Concat stringa by StrExpr to stringa_mean 28.5 ns 28.5 ns 4 -Concat stringa by StrExpr to stringa_median 28.4 ns 28.4 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.635 ns 0.635 ns 4 -Concat stringa by StrExpr to stringa_cv 2.23 % 2.23 % 4 +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 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 114 ns 114 ns 4 -Find concat three std::string_median 115 ns 115 ns 4 -Find concat three std::string_stddev 3.52 ns 3.52 ns 4 -Find concat three std::string_cv 3.08 % 3.08 % 4 -Find concat three strexpr_mean 49.6 ns 49.6 ns 4 -Find concat three strexpr_median 49.6 ns 49.6 ns 4 -Find concat three strexpr_stddev 0.141 ns 0.141 ns 4 -Find concat three strexpr_cv 0.28 % 0.28 % 4 -Find concat three simstr_mean 19.5 ns 19.5 ns 4 -Find concat three simstr_median 19.5 ns 19.5 ns 4 -Find concat three simstr_stddev 0.443 ns 0.443 ns 4 -Find concat three simstr_cv 2.27 % 2.27 % 4 -Find concat three stringzilla string_mean 145 ns 145 ns 4 -Find concat three stringzilla string_median 144 ns 144 ns 4 -Find concat three stringzilla string_stddev 4.55 ns 4.55 ns 4 -Find concat three stringzilla string_cv 3.15 % 3.15 % 4 +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 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 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 7.33 ns 7.33 ns 4 -BuildTypeNameStr 0/0_median 7.29 ns 7.29 ns 4 -BuildTypeNameStr 0/0_stddev 0.286 ns 0.286 ns 4 -BuildTypeNameStr 0/0_cv 3.90 % 3.90 % 4 -BuildTypeNameExp 0/0_mean 6.78 ns 6.78 ns 4 -BuildTypeNameExp 0/0_median 6.77 ns 6.77 ns 4 -BuildTypeNameExp 0/0_stddev 0.201 ns 0.201 ns 4 -BuildTypeNameExp 0/0_cv 2.96 % 2.96 % 4 -BuildTypeNameSim 0/0_mean 5.04 ns 5.04 ns 4 -BuildTypeNameSim 0/0_median 4.95 ns 4.95 ns 4 -BuildTypeNameSim 0/0_stddev 0.203 ns 0.203 ns 4 -BuildTypeNameSim 0/0_cv 4.03 % 4.03 % 4 -BuildTypeNameStr 10/10_mean 57.9 ns 57.9 ns 4 -BuildTypeNameStr 10/10_median 56.8 ns 56.8 ns 4 -BuildTypeNameStr 10/10_stddev 4.32 ns 4.32 ns 4 -BuildTypeNameStr 10/10_cv 7.47 % 7.47 % 4 -BuildTypeNameExp 10/10_mean 31.0 ns 31.0 ns 4 -BuildTypeNameExp 10/10_median 30.9 ns 30.9 ns 4 -BuildTypeNameExp 10/10_stddev 0.453 ns 0.453 ns 4 -BuildTypeNameExp 10/10_cv 1.46 % 1.46 % 4 -BuildTypeNameSim 10/10_mean 23.6 ns 23.6 ns 4 -BuildTypeNameSim 10/10_median 23.3 ns 23.3 ns 4 -BuildTypeNameSim 10/10_stddev 1.22 ns 1.22 ns 4 -BuildTypeNameSim 10/10_cv 5.19 % 5.19 % 4 +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 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 203 ns 203 ns 4 -Concat with replace str_median 203 ns 203 ns 4 -Concat with replace str_stddev 2.25 ns 2.25 ns 4 -Concat with replace str_cv 1.11 % 1.11 % 4 -Concat with replace exp_mean 147 ns 147 ns 4 -Concat with replace exp_median 147 ns 147 ns 4 -Concat with replace exp_stddev 1.58 ns 1.58 ns 4 -Concat with replace exp_cv 1.07 % 1.07 % 4 +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 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.12 ns 1.12 ns 4 -std::string e;_median 1.12 ns 1.12 ns 4 -std::string e;_stddev 0.016 ns 0.016 ns 4 -std::string e;_cv 1.46 % 1.46 % 4 -std::string_view e;_mean 0.370 ns 0.370 ns 4 -std::string_view e;_median 0.371 ns 0.371 ns 4 -std::string_view e;_stddev 0.004 ns 0.004 ns 4 -std::string_view e;_cv 1.21 % 1.21 % 4 -ssa e;_mean 0.369 ns 0.369 ns 4 -ssa e;_median 0.367 ns 0.367 ns 4 -ssa e;_stddev 0.007 ns 0.007 ns 4 -ssa e;_cv 2.00 % 2.00 % 4 -stringa e;_mean 0.749 ns 0.749 ns 4 -stringa e;_median 0.750 ns 0.750 ns 4 -stringa e;_stddev 0.008 ns 0.008 ns 4 -stringa e;_cv 1.04 % 1.04 % 4 -lstringa<20> e;_mean 1.13 ns 1.13 ns 4 -lstringa<20> e;_median 1.13 ns 1.13 ns 4 -lstringa<20> e;_stddev 0.039 ns 0.039 ns 4 -lstringa<20> e;_cv 3.48 % 3.48 % 4 -lstringa<40> e;_mean 1.13 ns 1.13 ns 4 -lstringa<40> e;_median 1.13 ns 1.13 ns 4 -lstringa<40> e;_stddev 0.012 ns 0.012 ns 4 -lstringa<40> e;_cv 1.08 % 1.08 % 4 +std::string e;_mean 1.14 ns 1.14 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 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.86 ns 1.86 ns 4 -std::string e = "Test text";_median 1.86 ns 1.86 ns 4 -std::string e = "Test text";_stddev 0.042 ns 0.042 ns 4 -std::string e = "Test text";_cv 2.27 % 2.27 % 4 -std::string_view e = "Test text";_mean 0.743 ns 0.743 ns 4 -std::string_view e = "Test text";_median 0.740 ns 0.740 ns 4 -std::string_view e = "Test text";_stddev 0.010 ns 0.010 ns 4 -std::string_view e = "Test text";_cv 1.38 % 1.38 % 4 -ssa e = "Test text";_mean 0.376 ns 0.376 ns 4 -ssa e = "Test text";_median 0.375 ns 0.375 ns 4 -ssa e = "Test text";_stddev 0.005 ns 0.005 ns 4 -ssa e = "Test text";_cv 1.42 % 1.42 % 4 -stringa e = "Test text";_mean 1.11 ns 1.11 ns 4 -stringa e = "Test text";_median 1.12 ns 1.12 ns 4 -stringa e = "Test text";_stddev 0.026 ns 0.026 ns 4 -stringa e = "Test text";_cv 2.33 % 2.33 % 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.007 ns 0.007 ns 4 -lstringa<20> e = "Test text";_cv 0.39 % 0.39 % 4 -lstringa<40> e = "Test text";_mean 1.86 ns 1.86 ns 4 -lstringa<40> e = "Test text";_median 1.85 ns 1.85 ns 4 -lstringa<40> e = "Test text";_stddev 0.044 ns 0.044 ns 4 -lstringa<40> e = "Test text";_cv 2.36 % 2.36 % 4 +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 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 20.0 ns 20.0 ns 4 -std::string e = "123456789012345678901234567890";_median 19.9 ns 19.9 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.284 ns 0.284 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.42 % 1.42 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.744 ns 0.744 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.744 ns 0.744 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.012 ns 0.012 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.63 % 1.63 % 4 -ssa e = "123456789012345678901234567890";_mean 0.373 ns 0.373 ns 4 -ssa e = "123456789012345678901234567890";_median 0.371 ns 0.371 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.010 ns 0.010 ns 4 -ssa e = "123456789012345678901234567890";_cv 2.77 % 2.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.018 ns 0.018 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.63 % 1.63 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 21.2 ns 21.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 21.3 ns 21.3 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.445 ns 0.445 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 2.10 % 2.10 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.59 ns 2.59 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.58 ns 2.58 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.036 ns 0.036 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.38 % 1.38 % 4 +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 +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 ----- 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.24 ns 5.24 ns 4 -std::string e = "Test text"; auto c{e};_median 5.25 ns 5.25 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.033 ns 0.033 ns 4 -std::string e = "Test text"; auto c{e};_cv 0.63 % 0.63 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.371 ns 0.371 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.011 ns 0.011 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 3.00 % 3.00 % 4 -ssa e = "Test text"; auto c{e};_mean 0.376 ns 0.376 ns 4 +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.011 ns 0.011 ns 4 -ssa e = "Test text"; auto c{e};_cv 2.95 % 2.95 % 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.015 ns 0.015 ns 4 -stringa e = "Test text"; auto c{e};_cv 1.36 % 1.36 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.50 ns 1.50 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.50 ns 1.50 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.011 ns 0.011 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 0.72 % 0.72 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.48 ns 1.48 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.49 ns 1.49 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.018 ns 0.018 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.19 % 1.19 % 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 +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 ----- 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.3 ns 19.3 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 19.4 ns 19.4 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.526 ns 0.526 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 2.72 % 2.72 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.744 ns 0.744 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.743 ns 0.743 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.96 % 1.96 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.379 ns 0.379 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.378 ns 0.378 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.006 ns 0.006 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.61 % 1.61 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.020 ns 0.020 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.81 % 1.81 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 20.7 ns 20.7 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 20.6 ns 20.6 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.512 ns 0.512 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.47 % 2.47 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.59 ns 4.59 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.64 ns 4.64 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.131 ns 0.131 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.86 % 2.86 % 4 +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 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 94.7 ns 94.7 ns 4 -sz::string::find;_median 95.0 ns 95.0 ns 4 -sz::string::find;_stddev 0.998 ns 0.998 ns 4 -sz::string::find;_cv 1.05 % 1.05 % 4 -std::string::find;_mean 7.15 ns 7.15 ns 4 -std::string::find;_median 7.17 ns 7.17 ns 4 -std::string::find;_stddev 0.084 ns 0.084 ns 4 -std::string::find;_cv 1.17 % 1.17 % 4 -std::string_view::find;_mean 7.65 ns 7.65 ns 4 -std::string_view::find;_median 7.64 ns 7.64 ns 4 -std::string_view::find;_stddev 0.210 ns 0.210 ns 4 -std::string_view::find;_cv 2.74 % 2.74 % 4 -ssa::find;_mean 7.31 ns 7.31 ns 4 -ssa::find;_median 7.34 ns 7.34 ns 4 -ssa::find;_stddev 0.241 ns 0.241 ns 4 -ssa::find;_cv 3.30 % 3.30 % 4 -stringa::find;_mean 8.30 ns 8.30 ns 4 -stringa::find;_median 8.14 ns 8.14 ns 4 -stringa::find;_stddev 0.347 ns 0.347 ns 4 -stringa::find;_cv 4.18 % 4.18 % 4 -lstringa<20>::find;_mean 6.70 ns 6.70 ns 4 -lstringa<20>::find;_median 6.66 ns 6.66 ns 4 -lstringa<20>::find;_stddev 0.124 ns 0.124 ns 4 -lstringa<20>::find;_cv 1.85 % 1.85 % 4 -lstringa<40>::find;_mean 6.75 ns 6.75 ns 4 -lstringa<40>::find;_median 6.71 ns 6.71 ns 4 -lstringa<40>::find;_stddev 0.157 ns 0.157 ns 4 -lstringa<40>::find;_cv 2.32 % 2.32 % 4 +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 ------- 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.79 ns 5.79 ns 4 -std::string copy{str_with_len_N};/15_median 5.77 ns 5.77 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.149 ns 0.149 ns 4 -std::string copy{str_with_len_N};/15_cv 2.58 % 2.58 % 4 -std::string copy{str_with_len_N};/16_mean 23.7 ns 23.7 ns 4 -std::string copy{str_with_len_N};/16_median 23.4 ns 23.4 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.865 ns 0.865 ns 4 -std::string copy{str_with_len_N};/16_cv 3.65 % 3.65 % 4 -std::string copy{str_with_len_N};/23_mean 22.8 ns 22.8 ns 4 -std::string copy{str_with_len_N};/23_median 22.8 ns 22.8 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.316 ns 0.316 ns 4 -std::string copy{str_with_len_N};/23_cv 1.38 % 1.38 % 4 -std::string copy{str_with_len_N};/24_mean 23.4 ns 23.4 ns 4 -std::string copy{str_with_len_N};/24_median 23.5 ns 23.5 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.422 ns 0.422 ns 4 -std::string copy{str_with_len_N};/24_cv 1.81 % 1.81 % 4 -std::string copy{str_with_len_N};/32_mean 23.0 ns 23.0 ns 4 -std::string copy{str_with_len_N};/32_median 23.0 ns 23.0 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.394 ns 0.394 ns 4 -std::string copy{str_with_len_N};/32_cv 1.71 % 1.71 % 4 -std::string copy{str_with_len_N};/64_mean 22.8 ns 22.8 ns 4 -std::string copy{str_with_len_N};/64_median 22.7 ns 22.7 ns 4 -std::string copy{str_with_len_N};/64_stddev 0.672 ns 0.672 ns 4 -std::string copy{str_with_len_N};/64_cv 2.95 % 2.95 % 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.7 ns 24.7 ns 4 -std::string copy{str_with_len_N};/128_stddev 0.566 ns 0.566 ns 4 -std::string copy{str_with_len_N};/128_cv 2.28 % 2.28 % 4 -std::string copy{str_with_len_N};/256_mean 31.4 ns 31.4 ns 4 -std::string copy{str_with_len_N};/256_median 31.2 ns 31.2 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.684 ns 0.684 ns 4 -std::string copy{str_with_len_N};/256_cv 2.18 % 2.18 % 4 -std::string copy{str_with_len_N};/512_mean 29.2 ns 29.2 ns 4 -std::string copy{str_with_len_N};/512_median 29.1 ns 29.1 ns 4 -std::string copy{str_with_len_N};/512_stddev 0.649 ns 0.649 ns 4 -std::string copy{str_with_len_N};/512_cv 2.22 % 2.22 % 4 -std::string copy{str_with_len_N};/1024_mean 33.8 ns 33.8 ns 4 -std::string copy{str_with_len_N};/1024_median 33.4 ns 33.4 ns 4 -std::string copy{str_with_len_N};/1024_stddev 1.06 ns 1.06 ns 4 -std::string copy{str_with_len_N};/1024_cv 3.14 % 3.14 % 4 -std::string copy{str_with_len_N};/2048_mean 77.6 ns 77.6 ns 4 -std::string copy{str_with_len_N};/2048_median 75.3 ns 75.3 ns 4 -std::string copy{str_with_len_N};/2048_stddev 5.61 ns 5.61 ns 4 -std::string copy{str_with_len_N};/2048_cv 7.23 % 7.23 % 4 -std::string copy{str_with_len_N};/4096_mean 117 ns 117 ns 4 -std::string copy{str_with_len_N};/4096_median 117 ns 117 ns 4 -std::string copy{str_with_len_N};/4096_stddev 4.08 ns 4.08 ns 4 -std::string copy{str_with_len_N};/4096_cv 3.50 % 3.50 % 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.09 ns 1.09 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.010 ns 0.010 ns 4 -stringa copy{str_with_len_N};/15_cv 0.90 % 0.90 % 4 -stringa copy{str_with_len_N};/16_mean 1.09 ns 1.09 ns 4 -stringa copy{str_with_len_N};/16_median 1.09 ns 1.09 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.022 ns 0.022 ns 4 -stringa copy{str_with_len_N};/16_cv 2.05 % 2.05 % 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.021 ns 0.021 ns 4 -stringa copy{str_with_len_N};/23_cv 1.90 % 1.90 % 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.041 ns 0.041 ns 4 -stringa copy{str_with_len_N};/24_cv 0.25 % 0.25 % 4 -stringa copy{str_with_len_N};/32_mean 16.0 ns 16.0 ns 4 +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 +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.124 ns 0.124 ns 4 -stringa copy{str_with_len_N};/32_cv 0.77 % 0.77 % 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.131 ns 0.131 ns 4 -stringa copy{str_with_len_N};/64_cv 0.81 % 0.81 % 4 -stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.091 ns 0.091 ns 4 -stringa copy{str_with_len_N};/128_cv 0.56 % 0.56 % 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.073 ns 0.073 ns 4 -stringa copy{str_with_len_N};/256_cv 0.46 % 0.46 % 4 -stringa copy{str_with_len_N};/512_mean 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.061 ns 0.061 ns 4 -stringa copy{str_with_len_N};/512_cv 0.38 % 0.38 % 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.070 ns 0.070 ns 4 -stringa copy{str_with_len_N};/1024_cv 0.44 % 0.44 % 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.6 ns 16.6 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.293 ns 0.293 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.77 % 1.77 % 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.095 ns 0.095 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.59 % 0.59 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.51 ns 1.51 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.50 ns 1.50 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.035 ns 0.035 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.35 % 2.35 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.98 ns 4.98 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.99 ns 4.99 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.149 ns 0.149 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 2.99 % 2.99 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 5.02 ns 5.02 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 5.02 ns 5.02 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.163 ns 0.163 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 3.24 % 3.24 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 25.3 ns 25.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 25.2 ns 25.2 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.271 ns 0.271 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.07 % 1.07 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 25.3 ns 25.3 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 25.4 ns 25.4 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.952 ns 0.952 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 3.75 % 3.75 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 26.8 ns 26.8 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 26.9 ns 26.9 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.556 ns 0.556 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 2.07 % 2.07 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 27.1 ns 27.1 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 27.1 ns 27.1 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.165 ns 0.165 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 0.61 % 0.61 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 28.3 ns 28.3 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 28.4 ns 28.4 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 0.902 ns 0.902 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 3.19 % 3.19 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 31.1 ns 31.1 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 31.4 ns 31.4 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 0.790 ns 0.790 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 2.54 % 2.54 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 53.5 ns 53.5 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 53.2 ns 53.2 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 1.75 ns 1.75 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 3.28 % 3.28 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 64.2 ns 64.2 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 64.1 ns 64.1 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 1.48 ns 1.48 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 2.31 % 2.31 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 90.2 ns 90.2 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 89.7 ns 89.7 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 3.76 ns 3.76 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 4.17 % 4.17 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 1.50 ns 1.50 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 1.49 ns 1.49 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.045 ns 0.045 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 3.02 % 3.02 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 4.92 ns 4.92 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 4.91 ns 4.91 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.56 % 2.56 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.88 ns 4.88 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.104 ns 0.104 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 4.60 ns 4.60 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 4.61 ns 4.61 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.105 ns 0.105 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 2.29 % 2.29 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.58 ns 4.58 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.60 ns 4.60 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.147 ns 0.147 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 3.22 % 3.22 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 5.95 ns 5.95 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 5.93 ns 5.93 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.148 ns 0.148 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 2.49 % 2.49 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 6.42 ns 6.42 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 6.46 ns 6.46 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.157 ns 0.157 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 2.44 % 2.45 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 7.92 ns 7.92 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 7.86 ns 7.86 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.266 ns 0.266 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 3.36 % 3.36 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.3 ns 10.3 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.204 ns 0.204 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.98 % 1.98 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 53.2 ns 53.2 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 53.1 ns 53.1 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 0.432 ns 0.432 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 0.81 % 0.81 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 63.2 ns 63.2 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 62.9 ns 62.9 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 1.11 ns 1.11 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.76 % 1.76 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 89.4 ns 89.4 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 89.1 ns 89.1 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 2.95 ns 2.95 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 3.30 % 3.30 % 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 +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<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 ----- 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.1 ns 27.1 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.907 ns 0.907 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 3.32 % 3.32 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.9 ns 12.9 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.8 ns 12.8 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.323 ns 0.323 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 2.51 % 2.51 % 4 -stringa s = "123456789"; int res = s.to_int_mean 9.54 ns 9.54 ns 4 -stringa s = "123456789"; int res = s.to_int_median 9.47 ns 9.47 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.219 ns 0.219 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 2.30 % 2.30 % 4 -ssa s = "123456789"; int res = s.to_int_mean 9.23 ns 9.23 ns 4 -ssa s = "123456789"; int res = s.to_int_median 9.19 ns 9.19 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.238 ns 0.238 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 2.58 % 2.58 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 9.45 ns 9.45 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.063 ns 0.063 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 0.67 % 0.67 % 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 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.7 ns 23.7 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.6 ns 23.6 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.347 ns 0.347 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.47 % 1.47 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.43 ns 9.43 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.41 ns 9.41 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.193 ns 0.193 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.05 % 2.05 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 7.59 ns 7.59 ns 4 +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.159 ns 0.159 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 2.09 % 2.09 % 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.54 ns 7.54 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.122 ns 0.122 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 1.61 % 1.61 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.56 ns 7.56 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 7.53 ns 7.53 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.075 ns 0.075 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.99 % 0.99 % 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 ----- 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.7 ns 28.7 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.565 ns 0.565 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.98 % 1.98 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 11.5 ns 11.5 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.514 ns 0.514 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 4.46 % 4.46 % 4 +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 +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 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.3 ns 13.3 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.147 ns 0.147 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.10 % 1.10 % 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 ----- 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.5 ns 66.5 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 66.3 ns 66.3 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.89 ns 1.89 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.84 % 2.84 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 24.0 ns 24.0 ns 4 +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.274 ns 0.274 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.14 % 1.14 % 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 25.7 ns 25.7 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.536 ns 0.536 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.07 % 2.07 % 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 -- 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 1388 ns 1388 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1390 ns 1390 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 40.1 ns 40.1 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.89 % 2.89 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 368 ns 368 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 369 ns 369 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 4.61 ns 4.61 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 1.25 % 1.25 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 374 ns 374 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 374 ns 374 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 8.98 ns 8.98 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 2.40 % 2.40 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 233 ns 233 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 228 ns 228 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 13.5 ns 13.5 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 5.79 % 5.79 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 237 ns 237 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 233 ns 233 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 15.8 ns 15.8 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 6.67 % 6.67 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 163 ns 163 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 162 ns 162 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.17 ns 1.17 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.72 % 0.72 % 4 +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::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 -- 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 1478 ns 1478 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1470 ns 1470 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 105 ns 105 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 7.09 % 7.09 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1286 ns 1286 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1297 ns 1297 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 36.1 ns 36.1 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.81 % 2.81 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 435 ns 435 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 436 ns 436 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.2 ns 18.2 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.18 % 4.18 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 336 ns 336 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 333 ns 333 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.2 ns 12.2 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.63 % 3.63 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 280 ns 280 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 280 ns 280 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.82 ns 3.82 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.37 % 1.37 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 214 ns 214 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 211 ns 211 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.82 ns 7.82 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.66 % 3.66 % 4 +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 -- 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 119217 ns 119217 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 118553 ns 118554 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 6463 ns 6463 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 5.42 % 5.42 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 72734 ns 72734 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 72923 ns 72923 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 992 ns 992 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.36 % 1.36 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 46679 ns 46679 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 47124 ns 47124 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2011 ns 2011 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.31 % 4.31 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 28145 ns 28145 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 28240 ns 28240 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1400 ns 1400 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.97 % 4.97 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 19090 ns 19090 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 19187 ns 19187 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3896 ns 3896 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 20.41 % 20.41 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16083 ns 16083 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16086 ns 16086 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 315 ns 315 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.96 % 1.96 % 4 +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 -- 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 1398 ns 1398 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1393 ns 1393 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 39.0 ns 39.0 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 2.79 % 2.79 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1396 ns 1396 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1403 ns 1403 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 18.8 ns 18.8 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 1.35 % 1.35 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 489 ns 489 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 492 ns 492 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 15.4 ns 15.4 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.15 % 3.15 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 404 ns 404 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 402 ns 402 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 15.3 ns 15.3 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 3.79 % 3.79 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 374 ns 374 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 373 ns 373 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 5.40 ns 5.40 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.45 % 1.45 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 292 ns 292 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 293 ns 293 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 3.42 ns 3.42 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.17 % 1.17 % 4 +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 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3075 ns 3075 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3078 ns 3078 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 49.0 ns 49.0 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 1.59 % 1.59 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 444 ns 444 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 443 ns 443 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 4.42 ns 4.42 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 0.99 % 0.99 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1377 ns 1377 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1377 ns 1377 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 23.2 ns 23.2 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 1.69 % 1.69 % 4 -std::string str = std::format("test = {} times", k);_mean 1125 ns 1125 ns 4 -std::string str = std::format("test = {} times", k);_median 1119 ns 1119 ns 4 -std::string str = std::format("test = {} times", k);_stddev 26.0 ns 26.0 ns 4 -std::string str = std::format("test = {} times", k);_cv 2.31 % 2.31 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1386 ns 1386 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1372 ns 1372 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 36.3 ns 36.3 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 2.62 % 2.62 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1021 ns 1021 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1017 ns 1017 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 73.2 ns 73.2 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 7.17 % 7.17 % 4 -lstringa<8> str = "test = " + k + " times";_mean 282 ns 282 ns 4 -lstringa<8> str = "test = " + k + " times";_median 283 ns 283 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 5.45 ns 5.45 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.93 % 1.93 % 4 -lstringa<32> str = "test = " + k + " times";_mean 127 ns 127 ns 4 -lstringa<32> str = "test = " + k + " times";_median 127 ns 127 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 1.08 ns 1.08 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 0.85 % 0.85 % 4 -stringa str = "test = " + k + " times";_mean 123 ns 123 ns 4 -stringa str = "test = " + k + " times";_median 124 ns 124 ns 4 -stringa str = "test = " + k + " times";_stddev 3.41 ns 3.41 ns 4 -stringa str = "test = " + k + " times";_cv 2.78 % 2.78 % 4 +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 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 265 ns 265 ns 4 -std::string::find + substr + std::strtol_median 265 ns 265 ns 4 -std::string::find + substr + std::strtol_stddev 2.38 ns 2.38 ns 4 -std::string::find + substr + std::strtol_cv 0.90 % 0.90 % 4 -ssa::splitter + ssa::as_int_mean 155 ns 155 ns 4 -ssa::splitter + ssa::as_int_median 156 ns 156 ns 4 -ssa::splitter + ssa::as_int_stddev 7.02 ns 7.02 ns 4 -ssa::splitter + ssa::as_int_cv 4.52 % 4.52 % 4 -ssa::splitf + functor_mean 206 ns 206 ns 4 -ssa::splitf + functor_median 205 ns 205 ns 4 -ssa::splitf + functor_stddev 5.74 ns 5.74 ns 4 -ssa::splitf + functor_cv 2.79 % 2.79 % 4 +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 -- 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 841 ns 841 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 836 ns 836 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 22.5 ns 22.5 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 2.67 % 2.68 % 4 +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 2453 ns 2453 ns 4 -replace symbols with std::string find_first_of + replace_stddev 29.6 ns 29.6 ns 4 -replace symbols with std::string find_first_of + replace_cv 1.21 % 1.21 % 4 -replace symbols with std::string_view find_first_of + copy_mean 1078 ns 1078 ns 4 -replace symbols with std::string_view find_first_of + copy_median 1070 ns 1070 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 64.2 ns 64.2 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 5.96 % 5.96 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1274 ns 1274 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1271 ns 1271 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 12.8 ns 12.8 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 1.00 % 1.00 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1053 ns 1053 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1056 ns 1056 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 37.0 ns 37.0 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 3.51 % 3.51 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1009 ns 1009 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1007 ns 1007 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 11.0 ns 11.0 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.09 % 1.09 % 4 -replace const symbols with string expressions and memorization of all search results_mean 883 ns 883 ns 4 -replace const symbols with string expressions and memorization of all search results_median 881 ns 881 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 22.6 ns 22.6 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 2.56 % 2.56 % 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 -- 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 165 ns 165 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 165 ns 165 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.07 ns 5.07 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.07 % 3.07 % 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 316 ns 316 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 5.82 ns 5.82 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.83 % 1.83 % 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 153 ns 153 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 3.41 ns 3.41 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 2.24 % 2.24 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 163 ns 163 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 162 ns 162 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.45 ns 2.45 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 1.50 % 1.50 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 187 ns 187 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 4.81 ns 4.81 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.58 % 2.58 % 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.22 ns 1.22 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 0.97 % 0.97 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 147 ns 147 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 147 ns 147 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 4.64 ns 4.64 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 3.15 % 3.15 % 4 +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 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 ----- 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 1.35 ns 1.35 ns 4 -replace bb to ---- in std::string|64_cv 0.89 % 0.89 % 4 -replace bb to ---- in std::string|256_mean 538 ns 538 ns 4 -replace bb to ---- in std::string|256_median 537 ns 537 ns 4 -replace bb to ---- in std::string|256_stddev 7.63 ns 7.63 ns 4 -replace bb to ---- in std::string|256_cv 1.42 % 1.42 % 4 -replace bb to ---- in std::string|512_mean 1070 ns 1070 ns 4 -replace bb to ---- in std::string|512_median 1072 ns 1072 ns 4 -replace bb to ---- in std::string|512_stddev 12.2 ns 12.2 ns 4 -replace bb to ---- in std::string|512_cv 1.14 % 1.14 % 4 -replace bb to ---- in std::string|1024_mean 2384 ns 2384 ns 4 -replace bb to ---- in std::string|1024_median 2413 ns 2413 ns 4 -replace bb to ---- in std::string|1024_stddev 245 ns 245 ns 4 -replace bb to ---- in std::string|1024_cv 10.29 % 10.29 % 4 -replace bb to ---- in std::string|2048_mean 6072 ns 6072 ns 4 -replace bb to ---- in std::string|2048_median 6182 ns 6182 ns 4 -replace bb to ---- in std::string|2048_stddev 342 ns 342 ns 4 -replace bb to ---- in std::string|2048_cv 5.63 % 5.63 % 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 1.82 ns 1.82 ns 4 -replace bb to ---- in lstringa<8>|64_cv 1.41 % 1.41 % 4 -replace bb to ---- in lstringa<8>|256_mean 430 ns 430 ns 4 -replace bb to ---- in lstringa<8>|256_median 429 ns 429 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 6.03 ns 6.03 ns 4 -replace bb to ---- in lstringa<8>|256_cv 1.40 % 1.40 % 4 -replace bb to ---- in lstringa<8>|512_mean 825 ns 825 ns 4 -replace bb to ---- in lstringa<8>|512_median 830 ns 830 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 13.0 ns 13.0 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.57 % 1.57 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1613 ns 1613 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1614 ns 1614 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 49.5 ns 49.5 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 3.07 % 3.07 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3174 ns 3174 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3174 ns 3174 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 56.1 ns 56.1 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 1.77 % 1.77 % 4 -replace bb to ---- by init stringa|64_mean 94.5 ns 94.5 ns 4 -replace bb to ---- by init stringa|64_median 94.6 ns 94.6 ns 4 -replace bb to ---- by init stringa|64_stddev 1.74 ns 1.74 ns 4 -replace bb to ---- by init stringa|64_cv 1.84 % 1.84 % 4 -replace bb to ---- by init stringa|256_mean 299 ns 299 ns 4 -replace bb to ---- by init stringa|256_median 298 ns 298 ns 4 -replace bb to ---- by init stringa|256_stddev 6.25 ns 6.25 ns 4 -replace bb to ---- by init stringa|256_cv 2.09 % 2.09 % 4 -replace bb to ---- by init stringa|512_mean 696 ns 696 ns 4 -replace bb to ---- by init stringa|512_median 700 ns 700 ns 4 -replace bb to ---- by init stringa|512_stddev 12.5 ns 12.5 ns 4 -replace bb to ---- by init stringa|512_cv 1.80 % 1.80 % 4 -replace bb to ---- by init stringa|1024_mean 1546 ns 1546 ns 4 -replace bb to ---- by init stringa|1024_median 1535 ns 1535 ns 4 -replace bb to ---- by init stringa|1024_stddev 28.2 ns 28.2 ns 4 -replace bb to ---- by init stringa|1024_cv 1.82 % 1.82 % 4 -replace bb to ---- by init stringa|2048_mean 3176 ns 3176 ns 4 -replace bb to ---- by init stringa|2048_median 3173 ns 3173 ns 4 -replace bb to ---- by init stringa|2048_stddev 25.5 ns 25.5 ns 4 -replace bb to ---- by init stringa|2048_cv 0.80 % 0.80 % 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 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 All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 106 ns 106 ns 4 -replace bb to -- in std::string|64_median 105 ns 105 ns 4 -replace bb to -- in std::string|64_stddev 3.23 ns 3.23 ns 4 -replace bb to -- in std::string|64_cv 3.05 % 3.05 % 4 -replace bb to -- in std::string|256_mean 382 ns 382 ns 4 -replace bb to -- in std::string|256_median 379 ns 379 ns 4 -replace bb to -- in std::string|256_stddev 7.84 ns 7.84 ns 4 -replace bb to -- in std::string|256_cv 2.05 % 2.05 % 4 -replace bb to -- in std::string|512_mean 724 ns 724 ns 4 -replace bb to -- in std::string|512_median 727 ns 727 ns 4 -replace bb to -- in std::string|512_stddev 14.4 ns 14.4 ns 4 -replace bb to -- in std::string|512_cv 1.99 % 1.99 % 4 -replace bb to -- in std::string|1024_mean 1457 ns 1457 ns 4 -replace bb to -- in std::string|1024_median 1440 ns 1440 ns 4 -replace bb to -- in std::string|1024_stddev 50.7 ns 50.7 ns 4 -replace bb to -- in std::string|1024_cv 3.48 % 3.48 % 4 -replace bb to -- in std::string|2048_mean 2855 ns 2855 ns 4 -replace bb to -- in std::string|2048_median 2854 ns 2854 ns 4 -replace bb to -- in std::string|2048_stddev 43.3 ns 43.3 ns 4 -replace bb to -- in std::string|2048_cv 1.52 % 1.52 % 4 -replace bb to -- in lstringa<8>|64_mean 94.1 ns 94.1 ns 4 -replace bb to -- in lstringa<8>|64_median 94.5 ns 94.5 ns 4 -replace bb to -- in lstringa<8>|64_stddev 2.56 ns 2.56 ns 4 -replace bb to -- in lstringa<8>|64_cv 2.71 % 2.71 % 4 -replace bb to -- in lstringa<8>|256_mean 282 ns 282 ns 4 -replace bb to -- in lstringa<8>|256_median 281 ns 281 ns 4 -replace bb to -- in lstringa<8>|256_stddev 4.21 ns 4.21 ns 4 -replace bb to -- in lstringa<8>|256_cv 1.49 % 1.49 % 4 -replace bb to -- in lstringa<8>|512_mean 520 ns 520 ns 4 -replace bb to -- in lstringa<8>|512_median 522 ns 522 ns 4 -replace bb to -- in lstringa<8>|512_stddev 8.34 ns 8.34 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.60 % 1.60 % 4 -replace bb to -- in lstringa<8>|1024_mean 1069 ns 1069 ns 4 -replace bb to -- in lstringa<8>|1024_median 1073 ns 1073 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 24.3 ns 24.3 ns 4 -replace bb to -- in lstringa<8>|1024_cv 2.28 % 2.28 % 4 -replace bb to -- in lstringa<8>|2048_mean 2100 ns 2100 ns 4 -replace bb to -- in lstringa<8>|2048_median 2111 ns 2111 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 46.8 ns 46.8 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.23 % 2.23 % 4 -replace bb to -- by init stringa|64_mean 76.1 ns 76.1 ns 4 -replace bb to -- by init stringa|64_median 75.9 ns 75.9 ns 4 -replace bb to -- by init stringa|64_stddev 0.782 ns 0.782 ns 4 -replace bb to -- by init stringa|64_cv 1.03 % 1.03 % 4 -replace bb to -- by init stringa|256_mean 234 ns 234 ns 4 -replace bb to -- by init stringa|256_median 235 ns 235 ns 4 -replace bb to -- by init stringa|256_stddev 5.03 ns 5.03 ns 4 -replace bb to -- by init stringa|256_cv 2.15 % 2.15 % 4 -replace bb to -- by init stringa|512_mean 439 ns 439 ns 4 -replace bb to -- by init stringa|512_median 437 ns 437 ns 4 -replace bb to -- by init stringa|512_stddev 14.7 ns 14.7 ns 4 -replace bb to -- by init stringa|512_cv 3.34 % 3.34 % 4 -replace bb to -- by init stringa|1024_mean 854 ns 854 ns 4 -replace bb to -- by init stringa|1024_median 855 ns 855 ns 4 -replace bb to -- by init stringa|1024_stddev 22.4 ns 22.4 ns 4 -replace bb to -- by init stringa|1024_cv 2.63 % 2.63 % 4 -replace bb to -- by init stringa|2048_mean 1646 ns 1646 ns 4 -replace bb to -- by init stringa|2048_median 1632 ns 1632 ns 4 -replace bb to -- by init stringa|2048_stddev 34.3 ns 34.3 ns 4 -replace bb to -- by init stringa|2048_cv 2.08 % 2.08 % 4 +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 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 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3606014 ns 3606026 ns 4 -hashStrMapA emplace & find stringa;_median 3602171 ns 3602183 ns 4 -hashStrMapA emplace & find stringa;_stddev 52069 ns 52068 ns 4 -hashStrMapA emplace & find stringa;_cv 1.44 % 1.44 % 4 -std::unordered_map emplace & find std::string;_mean 3523575 ns 3523588 ns 4 -std::unordered_map emplace & find std::string;_median 3536946 ns 3536961 ns 4 -std::unordered_map emplace & find std::string;_stddev 70276 ns 70275 ns 4 -std::unordered_map emplace & find std::string;_cv 1.99 % 1.99 % 4 -hashStrMapA emplace & find ssa;_mean 3593513 ns 3593528 ns 4 -hashStrMapA emplace & find ssa;_median 3594431 ns 3594444 ns 4 -hashStrMapA emplace & find ssa;_stddev 70018 ns 70018 ns 4 -hashStrMapA emplace & find ssa;_cv 1.95 % 1.95 % 4 -std::unordered_map emplace & find std::string_view;_mean 4068399 ns 4068418 ns 4 -std::unordered_map emplace & find std::string_view;_median 4094237 ns 4094260 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 101342 ns 101344 ns 4 -std::unordered_map emplace & find std::string_view;_cv 2.49 % 2.49 % 4 +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 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 678 ns 678 ns 4 -Build func full name std::string;_median 676 ns 676 ns 4 -Build func full name std::string;_stddev 8.82 ns 8.82 ns 4 -Build func full name std::string;_cv 1.30 % 1.30 % 4 -Build func full name std::string 1;_mean 776 ns 776 ns 4 -Build func full name std::string 1;_median 767 ns 767 ns 4 -Build func full name std::string 1;_stddev 30.3 ns 30.3 ns 4 -Build func full name std::string 1;_cv 3.91 % 3.91 % 4 -Build func full name std::stream;_mean 2611 ns 2611 ns 4 -Build func full name std::stream;_median 2600 ns 2600 ns 4 -Build func full name std::stream;_stddev 73.2 ns 73.2 ns 4 -Build func full name std::stream;_cv 2.80 % 2.80 % 4 -Build func full name stringa;_mean 484 ns 484 ns 4 -Build func full name stringa;_median 487 ns 487 ns 4 -Build func full name stringa;_stddev 15.3 ns 15.3 ns 4 -Build func full name stringa;_cv 3.17 % 3.17 % 4 -Build func full name stringa 1;_mean 610 ns 610 ns 4 -Build func full name stringa 1;_median 611 ns 611 ns 4 -Build func full name stringa 1;_stddev 15.9 ns 15.9 ns 4 -Build func full name stringa 1;_cv 2.61 % 2.61 % 4 +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 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 151 ns 151 ns 4 +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 3.75 ns 3.75 ns 4 -To upper case std::wstring_cv 2.49 % 2.49 % 4 -To upper case lstringw<15>_mean 41.4 ns 41.4 ns 4 -To upper case lstringw<15>_median 41.4 ns 41.4 ns 4 -To upper case lstringw<15>_stddev 0.779 ns 0.779 ns 4 -To upper case lstringw<15>_cv 1.88 % 1.88 % 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 diff --git a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt similarity index 53% rename from bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt rename to bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt index c9bb72a..2d25d91 100644 --- a/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-13.txt +++ b/bench/results/001-Xeon E5-2682 v4, Ubuntu 22 (WSL), Clang-22 libc++.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.1 +Benchmarks of simstr, version 1.7.2 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html - -2026-02-21T16:18:50+03:00 +Compiler Clang 22.0.0, use libc++ +2026-02-27T22:45:08+03:00 Running ./benchStr Run on (32 X 2494.22 MHz CPU s) CPU Caches: @@ -10,976 +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.03, 0.45, 0.43 ***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 176 ns 176 ns 4 -Concat email std::format_median 176 ns 176 ns 4 -Concat email std::format_stddev 3.68 ns 3.68 ns 4 -Concat email std::format_cv 2.09 % 2.09 % 4 -Concat email std::stringstream_mean 332 ns 332 ns 4 -Concat email std::stringstream_median 333 ns 333 ns 4 -Concat email std::stringstream_stddev 6.22 ns 6.22 ns 4 -Concat email std::stringstream_cv 1.87 % 1.87 % 4 -Concat email stringzilla append_mean 115 ns 115 ns 4 -Concat email stringzilla append_median 115 ns 115 ns 4 -Concat email stringzilla append_stddev 3.89 ns 3.89 ns 4 -Concat email stringzilla append_cv 3.38 % 3.38 % 4 -Concat email stringzilla concat_mean 46.6 ns 46.6 ns 4 -Concat email stringzilla concat_median 46.7 ns 46.7 ns 4 -Concat email stringzilla concat_stddev 1.60 ns 1.60 ns 4 -Concat email stringzilla concat_cv 3.45 % 3.45 % 4 -Concat email std::string append_mean 99.0 ns 99.0 ns 4 -Concat email std::string append_median 98.9 ns 98.9 ns 4 -Concat email std::string append_stddev 1.47 ns 1.47 ns 4 -Concat email std::string append_cv 1.49 % 1.49 % 4 -Concat email std::string by strexpr_mean 35.6 ns 35.6 ns 4 -Concat email std::string by strexpr_median 35.4 ns 35.4 ns 4 -Concat email std::string by strexpr_stddev 0.660 ns 0.660 ns 4 -Concat email std::string by strexpr_cv 1.86 % 1.86 % 4 -Concat email stringa_mean 40.5 ns 40.5 ns 4 -Concat email stringa_median 40.5 ns 40.5 ns 4 -Concat email stringa_stddev 0.182 ns 0.182 ns 4 -Concat email stringa_cv 0.45 % 0.45 % 4 +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 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 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 209 ns 209 ns 4 -Concat std::string and number by std to std::string_median 210 ns 210 ns 4 -Concat std::string and number by std to std::string_stddev 2.54 ns 2.54 ns 4 -Concat std::string and number by std to std::string_cv 1.22 % 1.22 % 4 -Concat std::string and number by StrExpr to std::string_mean 98.1 ns 98.1 ns 4 -Concat std::string and number by StrExpr to std::string_median 97.5 ns 97.5 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 2.89 ns 2.89 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.94 % 2.94 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 73.0 ns 73.0 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 73.2 ns 73.2 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 0.860 ns 0.860 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 1.18 % 1.18 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 79.7 ns 79.7 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 79.6 ns 79.6 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 0.921 ns 0.921 ns 4 +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 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 ----- 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 746 ns 746 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 6.63 ns 6.63 ns 4 -Concat std::string and format hex number and literal to std::string_cv 0.89 % 0.89 % 4 -std::format std::string and hex number by literal to std::string_mean 970 ns 970 ns 4 -std::format std::string and hex number by literal to std::string_median 966 ns 966 ns 4 -std::format std::string and hex number by literal to std::string_stddev 25.4 ns 25.4 ns 4 -std::format std::string and hex number by literal to std::string_cv 2.62 % 2.62 % 4 -Concat std::string and std::to_chars and string to std::string_mean 254 ns 254 ns 4 -Concat std::string and std::to_chars and string to std::string_median 253 ns 253 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 7.07 ns 7.07 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 2.79 % 2.79 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 126 ns 126 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 126 ns 126 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.91 ns 1.91 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 1.52 % 1.52 % 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 120 ns 120 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 0.463 ns 0.462 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 0.38 % 0.38 % 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 128 ns 128 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.82 ns 1.82 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.42 % 1.42 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 169 ns 169 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 168 ns 168 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.56 ns 1.56 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 0.93 % 0.93 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 292 ns 292 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 292 ns 292 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 5.72 ns 5.72 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.96 % 1.96 % 4 +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 ---- format/vformat and subst/vsubst octal number to 32 symbols result ----/repeats:1 0.000 ns 0.000 ns 1000000000000 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_mean 261 ns 261 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 259 ns 259 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 6.00 ns 6.00 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 2.30 % 2.30 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 320 ns 320 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 322 ns 322 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 5.85 ns 5.85 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.83 % 1.83 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 614 ns 614 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 614 ns 614 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 3.62 ns 3.63 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 0.59 % 0.59 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 745 ns 745 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 747 ns 747 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 24.0 ns 24.0 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.23 % 3.23 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 847 ns 847 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 852 ns 852 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 19.9 ns 19.9 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.34 % 2.34 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1276 ns 1276 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1284 ns 1284 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 20.2 ns 20.2 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.58 % 1.58 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1145 ns 1145 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1132 ns 1132 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 43.2 ns 43.2 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 3.77 % 3.77 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 2189 ns 2189 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 2196 ns 2196 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 66.7 ns 66.7 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.05 % 3.05 % 4 +"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 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 49.4 ns 49.4 ns 4 -Concat std::string by std to std::string_median 49.1 ns 49.1 ns 4 -Concat std::string by std to std::string_stddev 0.855 ns 0.855 ns 4 -Concat std::string by std to std::string_cv 1.73 % 1.73 % 4 -Concat std::string by StrExpr to std::string_mean 31.8 ns 31.8 ns 4 -Concat std::string by StrExpr to std::string_median 31.8 ns 31.8 ns 4 -Concat std::string by StrExpr to std::string_stddev 0.814 ns 0.814 ns 4 -Concat std::string by StrExpr to std::string_cv 2.56 % 2.56 % 4 -Concat stringa by StrExpr to stringa_mean 27.9 ns 27.9 ns 4 -Concat stringa by StrExpr to stringa_median 28.1 ns 28.1 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.888 ns 0.888 ns 4 -Concat stringa by StrExpr to stringa_cv 3.18 % 3.18 % 4 +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 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 140 ns 140 ns 4 -Find concat three std::string_median 141 ns 141 ns 4 -Find concat three std::string_stddev 1.85 ns 1.85 ns 4 -Find concat three std::string_cv 1.33 % 1.33 % 4 -Find concat three strexpr_mean 38.1 ns 38.1 ns 4 -Find concat three strexpr_median 37.8 ns 37.8 ns 4 -Find concat three strexpr_stddev 0.847 ns 0.847 ns 4 -Find concat three strexpr_cv 2.22 % 2.22 % 4 -Find concat three simstr_mean 16.1 ns 16.1 ns 4 -Find concat three simstr_median 16.2 ns 16.2 ns 4 -Find concat three simstr_stddev 0.471 ns 0.471 ns 4 -Find concat three simstr_cv 2.91 % 2.91 % 4 -Find concat three stringzilla string_mean 130 ns 130 ns 4 -Find concat three stringzilla string_median 130 ns 130 ns 4 -Find concat three stringzilla string_stddev 1.34 ns 1.34 ns 4 -Find concat three stringzilla string_cv 1.03 % 1.03 % 4 +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 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 10.0 ns 10.0 ns 4 -BuildTypeNameStr 0/0_median 10.0 ns 10.0 ns 4 -BuildTypeNameStr 0/0_stddev 0.211 ns 0.211 ns 4 -BuildTypeNameStr 0/0_cv 2.10 % 2.10 % 4 -BuildTypeNameExp 0/0_mean 8.41 ns 8.41 ns 4 -BuildTypeNameExp 0/0_median 8.37 ns 8.37 ns 4 -BuildTypeNameExp 0/0_stddev 0.265 ns 0.265 ns 4 -BuildTypeNameExp 0/0_cv 3.16 % 3.16 % 4 -BuildTypeNameSim 0/0_mean 5.95 ns 5.95 ns 4 -BuildTypeNameSim 0/0_median 5.87 ns 5.87 ns 4 -BuildTypeNameSim 0/0_stddev 0.792 ns 0.792 ns 4 -BuildTypeNameSim 0/0_cv 13.31 % 13.31 % 4 -BuildTypeNameStr 10/10_mean 79.6 ns 79.6 ns 4 -BuildTypeNameStr 10/10_median 79.5 ns 79.5 ns 4 -BuildTypeNameStr 10/10_stddev 1.83 ns 1.83 ns 4 -BuildTypeNameStr 10/10_cv 2.30 % 2.30 % 4 -BuildTypeNameExp 10/10_mean 26.7 ns 26.7 ns 4 -BuildTypeNameExp 10/10_median 26.5 ns 26.5 ns 4 -BuildTypeNameExp 10/10_stddev 0.357 ns 0.357 ns 4 -BuildTypeNameExp 10/10_cv 1.34 % 1.34 % 4 -BuildTypeNameSim 10/10_mean 23.7 ns 23.7 ns 4 -BuildTypeNameSim 10/10_median 23.7 ns 23.7 ns 4 -BuildTypeNameSim 10/10_stddev 0.500 ns 0.500 ns 4 -BuildTypeNameSim 10/10_cv 2.11 % 2.11 % 4 +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 ----- 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 4.82 ns 4.82 ns 4 -Concat with replace str_cv 2.06 % 2.06 % 4 -Concat with replace exp_mean 136 ns 136 ns 4 -Concat with replace exp_median 136 ns 136 ns 4 -Concat with replace exp_stddev 2.83 ns 2.83 ns 4 -Concat with replace exp_cv 2.07 % 2.07 % 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 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.10 ns 1.10 ns 4 -std::string e;_median 1.11 ns 1.11 ns 4 -std::string e;_stddev 0.019 ns 0.019 ns 4 -std::string e;_cv 1.74 % 1.74 % 4 -std::string_view e;_mean 0.743 ns 0.743 ns 4 -std::string_view e;_median 0.742 ns 0.742 ns 4 -std::string_view e;_stddev 0.014 ns 0.014 ns 4 -std::string_view e;_cv 1.94 % 1.94 % 4 -ssa e;_mean 0.185 ns 0.185 ns 4 -ssa e;_median 0.185 ns 0.185 ns 4 -ssa e;_stddev 0.000 ns 0.000 ns 4 -ssa e;_cv 0.26 % 0.26 % 4 -stringa e;_mean 0.743 ns 0.743 ns 4 -stringa e;_median 0.744 ns 0.744 ns 4 -stringa e;_stddev 0.010 ns 0.010 ns 4 -stringa e;_cv 1.30 % 1.30 % 4 -lstringa<20> e;_mean 1.11 ns 1.11 ns 4 +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 +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.024 ns 0.024 ns 4 -lstringa<20> e;_cv 2.21 % 2.21 % 4 -lstringa<40> e;_mean 1.12 ns 1.12 ns 4 -lstringa<40> e;_median 1.12 ns 1.12 ns 4 -lstringa<40> e;_stddev 0.029 ns 0.029 ns 4 -lstringa<40> e;_cv 2.59 % 2.59 % 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 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.87 ns 1.87 ns 4 -std::string e = "Test text";_median 1.87 ns 1.87 ns 4 -std::string e = "Test text";_stddev 0.023 ns 0.023 ns 4 -std::string e = "Test text";_cv 1.21 % 1.21 % 4 -std::string_view e = "Test text";_mean 0.758 ns 0.758 ns 4 -std::string_view e = "Test text";_median 0.755 ns 0.755 ns 4 -std::string_view e = "Test text";_stddev 0.016 ns 0.016 ns 4 -std::string_view e = "Test text";_cv 2.06 % 2.06 % 4 -ssa e = "Test text";_mean 0.742 ns 0.742 ns 4 -ssa e = "Test text";_median 0.744 ns 0.744 ns 4 -ssa e = "Test text";_stddev 0.007 ns 0.007 ns 4 -ssa e = "Test text";_cv 0.92 % 0.92 % 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.017 ns 0.017 ns 4 -stringa e = "Test text";_cv 1.51 % 1.51 % 4 +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 +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.87 ns 1.87 ns 4 -lstringa<20> e = "Test text";_stddev 0.013 ns 0.013 ns 4 -lstringa<20> e = "Test text";_cv 0.69 % 0.69 % 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.84 ns 1.84 ns 4 -lstringa<40> e = "Test text";_stddev 0.066 ns 0.066 ns 4 -lstringa<40> e = "Test text";_cv 3.53 % 3.53 % 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 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 20.8 ns 20.8 ns 4 -std::string e = "123456789012345678901234567890";_median 20.7 ns 20.7 ns 4 -std::string e = "123456789012345678901234567890";_stddev 0.409 ns 0.409 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.97 % 1.97 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.733 ns 0.733 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.732 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.008 ns 0.008 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.09 % 1.09 % 4 -ssa e = "123456789012345678901234567890";_mean 0.748 ns 0.748 ns 4 -ssa e = "123456789012345678901234567890";_median 0.747 ns 0.747 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.004 ns 0.004 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.59 % 0.59 % 4 -stringa e = "123456789012345678901234567890";_mean 1.13 ns 1.13 ns 4 -stringa e = "123456789012345678901234567890";_median 1.13 ns 1.13 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.007 ns 0.007 ns 4 -stringa e = "123456789012345678901234567890";_cv 0.58 % 0.58 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 20.2 ns 20.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 20.3 ns 20.3 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.286 ns 0.286 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 1.41 % 1.41 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 1.86 ns 1.86 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 1.86 ns 1.86 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.037 ns 0.037 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.98 % 1.98 % 4 +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 ----- Create copy of Str with 9 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text"; auto c{e};_mean 4.89 ns 4.89 ns 4 -std::string e = "Test text"; auto c{e};_median 4.91 ns 4.91 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.098 ns 0.098 ns 4 -std::string e = "Test text"; auto c{e};_cv 2.01 % 2.01 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.382 ns 0.382 ns 4 -std::string_view e = "Test text"; auto c{e};_median 0.384 ns 0.384 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.01 % 1.01 % 4 -ssa e = "Test text"; auto c{e};_mean 0.382 ns 0.382 ns 4 -ssa e = "Test text"; auto c{e};_median 0.385 ns 0.385 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.48 % 2.48 % 4 -stringa e = "Test text"; auto c{e};_mean 1.31 ns 1.31 ns 4 -stringa e = "Test text"; auto c{e};_median 1.31 ns 1.31 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.035 ns 0.035 ns 4 -stringa e = "Test text"; auto c{e};_cv 2.65 % 2.65 % 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.014 ns 0.014 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.24 % 1.24 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.12 ns 1.12 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.12 ns 1.12 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 2.14 % 2.14 % 4 +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 ----- 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.5 ns 24.5 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 24.5 ns 24.5 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.212 ns 0.212 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 0.87 % 0.87 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.748 ns 0.748 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.006 ns 0.006 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 0.81 % 0.81 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.745 ns 0.745 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.011 ns 0.011 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 1.52 % 1.52 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.11 ns 1.11 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.12 ns 1.12 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.030 ns 0.030 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.69 % 2.69 % 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.254 ns 0.254 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 1.20 % 1.20 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.20 ns 4.20 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.22 ns 4.22 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.069 ns 0.069 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 1.63 % 1.63 % 4 +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 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 92.9 ns 92.9 ns 4 -sz::string::find;_median 92.7 ns 92.7 ns 4 -sz::string::find;_stddev 1.18 ns 1.18 ns 4 -sz::string::find;_cv 1.27 % 1.27 % 4 -std::string::find;_mean 6.97 ns 6.97 ns 4 -std::string::find;_median 7.02 ns 7.02 ns 4 -std::string::find;_stddev 0.138 ns 0.138 ns 4 -std::string::find;_cv 1.97 % 1.97 % 4 -std::string_view::find;_mean 7.27 ns 7.27 ns 4 -std::string_view::find;_median 7.35 ns 7.35 ns 4 -std::string_view::find;_stddev 0.219 ns 0.219 ns 4 -std::string_view::find;_cv 3.00 % 3.00 % 4 -ssa::find;_mean 6.74 ns 6.74 ns 4 -ssa::find;_median 6.76 ns 6.76 ns 4 -ssa::find;_stddev 0.089 ns 0.089 ns 4 -ssa::find;_cv 1.33 % 1.33 % 4 -stringa::find;_mean 6.85 ns 6.85 ns 4 -stringa::find;_median 6.87 ns 6.87 ns 4 -stringa::find;_stddev 0.165 ns 0.165 ns 4 -stringa::find;_cv 2.41 % 2.41 % 4 -lstringa<20>::find;_mean 6.45 ns 6.45 ns 4 -lstringa<20>::find;_median 6.44 ns 6.44 ns 4 -lstringa<20>::find;_stddev 0.175 ns 0.175 ns 4 -lstringa<20>::find;_cv 2.71 % 2.71 % 4 -lstringa<40>::find;_mean 6.42 ns 6.42 ns 4 -lstringa<40>::find;_median 6.42 ns 6.42 ns 4 -lstringa<40>::find;_stddev 0.034 ns 0.034 ns 4 -lstringa<40>::find;_cv 0.52 % 0.52 % 4 +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 ------- 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 8.62 ns 8.62 ns 4 -std::string copy{str_with_len_N};/15_median 8.66 ns 8.66 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.207 ns 0.207 ns 4 -std::string copy{str_with_len_N};/15_cv 2.40 % 2.40 % 4 -std::string copy{str_with_len_N};/16_mean 28.1 ns 28.1 ns 4 -std::string copy{str_with_len_N};/16_median 28.1 ns 28.1 ns 4 -std::string copy{str_with_len_N};/16_stddev 0.675 ns 0.675 ns 4 -std::string copy{str_with_len_N};/16_cv 2.40 % 2.40 % 4 -std::string copy{str_with_len_N};/23_mean 27.6 ns 27.6 ns 4 -std::string copy{str_with_len_N};/23_median 27.8 ns 27.8 ns 4 -std::string copy{str_with_len_N};/23_stddev 0.437 ns 0.437 ns 4 -std::string copy{str_with_len_N};/23_cv 1.58 % 1.58 % 4 -std::string copy{str_with_len_N};/24_mean 27.9 ns 27.9 ns 4 -std::string copy{str_with_len_N};/24_median 27.8 ns 27.8 ns 4 -std::string copy{str_with_len_N};/24_stddev 0.444 ns 0.444 ns 4 -std::string copy{str_with_len_N};/24_cv 1.59 % 1.59 % 4 -std::string copy{str_with_len_N};/32_mean 27.6 ns 27.6 ns 4 -std::string copy{str_with_len_N};/32_median 27.5 ns 27.5 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.570 ns 0.570 ns 4 -std::string copy{str_with_len_N};/32_cv 2.07 % 2.07 % 4 -std::string copy{str_with_len_N};/64_mean 26.4 ns 26.4 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.583 ns 0.583 ns 4 -std::string copy{str_with_len_N};/64_cv 2.21 % 2.21 % 4 -std::string copy{str_with_len_N};/128_mean 28.2 ns 28.2 ns 4 -std::string copy{str_with_len_N};/128_median 28.2 ns 28.2 ns 4 -std::string copy{str_with_len_N};/128_stddev 0.649 ns 0.649 ns 4 -std::string copy{str_with_len_N};/128_cv 2.30 % 2.30 % 4 -std::string copy{str_with_len_N};/256_mean 33.5 ns 33.5 ns 4 -std::string copy{str_with_len_N};/256_median 33.3 ns 33.3 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.547 ns 0.547 ns 4 -std::string copy{str_with_len_N};/256_cv 1.63 % 1.63 % 4 -std::string copy{str_with_len_N};/512_mean 33.2 ns 33.2 ns 4 -std::string copy{str_with_len_N};/512_median 33.0 ns 33.0 ns 4 -std::string copy{str_with_len_N};/512_stddev 0.772 ns 0.772 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 37.8 ns 37.8 ns 4 -std::string copy{str_with_len_N};/1024_median 38.2 ns 38.2 ns 4 -std::string copy{str_with_len_N};/1024_stddev 1.22 ns 1.22 ns 4 -std::string copy{str_with_len_N};/1024_cv 3.23 % 3.23 % 4 -std::string copy{str_with_len_N};/2048_mean 81.0 ns 81.0 ns 4 -std::string copy{str_with_len_N};/2048_median 78.8 ns 78.8 ns 4 -std::string copy{str_with_len_N};/2048_stddev 5.45 ns 5.45 ns 4 -std::string copy{str_with_len_N};/2048_cv 6.72 % 6.72 % 4 -std::string copy{str_with_len_N};/4096_mean 121 ns 121 ns 4 -std::string copy{str_with_len_N};/4096_median 122 ns 122 ns 4 -std::string copy{str_with_len_N};/4096_stddev 1.92 ns 1.92 ns 4 -std::string copy{str_with_len_N};/4096_cv 1.58 % 1.58 % 4 -stringa copy{str_with_len_N};/15_mean 1.31 ns 1.31 ns 4 -stringa copy{str_with_len_N};/15_median 1.31 ns 1.31 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.015 ns 0.015 ns 4 -stringa copy{str_with_len_N};/15_cv 1.11 % 1.11 % 4 -stringa copy{str_with_len_N};/16_mean 1.30 ns 1.30 ns 4 -stringa copy{str_with_len_N};/16_median 1.30 ns 1.30 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.62 % 1.62 % 4 -stringa copy{str_with_len_N};/23_mean 1.30 ns 1.30 ns 4 -stringa copy{str_with_len_N};/23_median 1.31 ns 1.31 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.029 ns 0.029 ns 4 -stringa copy{str_with_len_N};/23_cv 2.22 % 2.22 % 4 -stringa copy{str_with_len_N};/24_mean 16.2 ns 16.2 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.140 ns 0.140 ns 4 -stringa copy{str_with_len_N};/24_cv 0.86 % 0.86 % 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.114 ns 0.114 ns 4 -stringa copy{str_with_len_N};/32_cv 0.71 % 0.71 % 4 -stringa copy{str_with_len_N};/64_mean 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/64_median 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.101 ns 0.101 ns 4 -stringa copy{str_with_len_N};/64_cv 0.62 % 0.62 % 4 -stringa copy{str_with_len_N};/128_mean 16.1 ns 16.1 ns 4 +std::string copy{str_with_len_N};/15_mean 1.17 ns 1.17 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.162 ns 0.162 ns 4 -stringa copy{str_with_len_N};/128_cv 1.01 % 1.00 % 4 -stringa copy{str_with_len_N};/256_mean 16.2 ns 16.2 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.111 ns 0.111 ns 4 -stringa copy{str_with_len_N};/256_cv 0.69 % 0.69 % 4 -stringa copy{str_with_len_N};/512_mean 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/512_median 16.2 ns 16.2 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.211 ns 0.211 ns 4 -stringa copy{str_with_len_N};/512_cv 1.30 % 1.30 % 4 -stringa copy{str_with_len_N};/1024_mean 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/1024_median 16.1 ns 16.1 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.213 ns 0.213 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.32 % 1.32 % 4 -stringa copy{str_with_len_N};/2048_mean 16.3 ns 16.3 ns 4 -stringa copy{str_with_len_N};/2048_median 16.3 ns 16.3 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.188 ns 0.188 ns 4 -stringa copy{str_with_len_N};/2048_cv 1.16 % 1.16 % 4 -stringa copy{str_with_len_N};/4096_mean 16.1 ns 16.1 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.092 ns 0.092 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.57 % 0.57 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.09 ns 1.09 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.10 ns 1.10 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.017 ns 0.017 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 1.59 % 1.59 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 4.54 ns 4.54 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 4.55 ns 4.55 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.031 ns 0.031 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 0.69 % 0.69 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 4.54 ns 4.54 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 4.54 ns 4.54 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.012 ns 0.012 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 0.25 % 0.25 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 24.5 ns 24.5 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 24.4 ns 24.4 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.417 ns 0.417 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.70 % 1.70 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 24.6 ns 24.6 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 24.7 ns 24.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.483 ns 0.483 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 1.96 % 1.96 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 26.2 ns 26.2 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 26.2 ns 26.2 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.569 ns 0.569 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 2.18 % 2.18 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 26.6 ns 26.6 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 26.6 ns 26.6 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 1.17 ns 1.17 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 4.40 % 4.40 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 27.5 ns 27.5 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 27.5 ns 27.5 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 0.764 ns 0.764 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.78 % 2.78 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 30.7 ns 30.7 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 30.7 ns 30.7 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 0.716 ns 0.716 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 2.33 % 2.33 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 54.1 ns 54.1 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 53.7 ns 53.7 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 1.73 ns 1.73 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 3.19 % 3.19 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 64.5 ns 64.5 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 64.7 ns 64.7 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 0.663 ns 0.663 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 1.03 % 1.03 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 87.1 ns 87.1 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 87.4 ns 87.4 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 1.01 ns 1.01 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 1.16 % 1.16 % 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.13 ns 1.13 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.028 ns 0.028 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 2.51 % 2.51 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 4.86 ns 4.86 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 4.86 ns 4.86 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.037 ns 0.037 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 0.76 % 0.76 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 4.79 ns 4.79 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 4.76 ns 4.76 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.071 ns 0.071 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 1.48 % 1.48 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 4.73 ns 4.73 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.418 ns 0.418 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 8.82 % 8.82 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 4.59 ns 4.59 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 4.58 ns 4.58 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.057 ns 0.057 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 1.25 % 1.25 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 5.99 ns 5.99 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 6.01 ns 6.01 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.140 ns 0.140 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 2.34 % 2.34 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 6.99 ns 6.99 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 6.97 ns 6.97 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.081 ns 0.081 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.16 % 1.16 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 8.23 ns 8.23 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 8.19 ns 8.19 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.177 ns 0.177 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.16 % 2.16 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 10.4 ns 10.4 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 +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.236 ns 0.236 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 2.26 % 2.26 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 55.5 ns 55.5 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 55.3 ns 55.3 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 1.17 ns 1.17 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 2.10 % 2.10 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 66.3 ns 66.3 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 65.6 ns 65.6 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 2.86 ns 2.86 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 4.32 % 4.32 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 90.6 ns 90.6 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 91.4 ns 91.4 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 3.22 ns 3.22 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 3.56 % 3.56 % 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 ----- 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.8 ns 27.8 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 27.7 ns 27.7 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.779 ns 0.779 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.80 % 2.80 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 11.3 ns 11.3 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 11.3 ns 11.3 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.198 ns 0.198 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.76 % 1.76 % 4 -stringa s = "123456789"; int res = s.to_int_mean 7.94 ns 7.94 ns 4 -stringa s = "123456789"; int res = s.to_int_median 7.91 ns 7.91 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.43 % 2.43 % 4 -ssa s = "123456789"; int res = s.to_int_mean 8.54 ns 8.54 ns 4 -ssa s = "123456789"; int res = s.to_int_median 8.55 ns 8.55 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.087 ns 0.087 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.02 % 1.02 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 7.90 ns 7.90 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 7.91 ns 7.91 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.169 ns 0.169 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.14 % 2.14 % 4 +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 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 23.5 ns 23.5 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 23.6 ns 23.6 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.298 ns 0.298 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 1.27 % 1.27 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 9.03 ns 9.03 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 9.08 ns 9.08 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.154 ns 0.154 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 1.70 % 1.70 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 7.93 ns 7.93 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 7.90 ns 7.90 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.086 ns 0.086 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 1.08 % 1.08 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 7.49 ns 7.49 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 7.50 ns 7.50 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.092 ns 0.092 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 1.23 % 1.23 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 7.49 ns 7.49 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 7.41 ns 7.41 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.218 ns 0.218 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 2.91 % 2.91 % 4 +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 ----- 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.2 ns 29.2 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 28.9 ns 28.9 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.777 ns 0.777 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 2.67 % 2.67 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 15.4 ns 15.4 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 15.4 ns 15.4 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.219 ns 0.219 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.42 % 1.42 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.5 ns 13.5 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.5 ns 13.5 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.239 ns 0.239 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.77 % 1.77 % 4 +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 ----- 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 64.3 ns 64.3 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 64.4 ns 64.4 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 0.927 ns 0.927 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.44 % 1.44 % 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.9 ns 23.9 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 0.202 ns 0.202 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 0.85 % 0.85 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 24.8 ns 24.8 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 24.7 ns 24.7 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.464 ns 0.464 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.87 % 1.87 % 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.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_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 -- 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 1348 ns 1348 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 1345 ns 1345 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 31.9 ns 31.9 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.36 % 2.36 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 326 ns 326 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 322 ns 322 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 10.4 ns 10.4 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 3.18 % 3.18 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 358 ns 358 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 356 ns 356 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 5.60 ns 5.60 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 1.57 % 1.56 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 236 ns 236 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 230 ns 230 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 14.2 ns 14.2 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 6.03 % 6.03 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 211 ns 211 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 205 ns 205 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 16.0 ns 16.0 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 7.55 % 7.55 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 140 ns 140 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 140 ns 140 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 1.69 ns 1.69 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.21 % 1.21 % 4 +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 -- 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 1373 ns 1373 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 1371 ns 1371 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 34.8 ns 34.8 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.54 % 2.54 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 1249 ns 1249 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 1245 ns 1245 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 14.5 ns 14.5 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 1.16 % 1.16 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 401 ns 401 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 399 ns 399 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.67 ns 8.67 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.16 % 2.16 % 4 +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 354 ns 354 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.47 ns 8.47 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.38 % 2.38 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 300 ns 300 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 295 ns 295 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 11.8 ns 11.8 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.91 % 3.91 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 249 ns 249 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 250 ns 250 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.18 ns 4.18 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.68 % 1.68 % 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 -- 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 118986 ns 118986 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 119292 ns 119292 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2656 ns 2656 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 2.23 % 2.23 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 73469 ns 73469 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 73088 ns 73088 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1432 ns 1432 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.95 % 1.95 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47566 ns 47566 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48321 ns 48321 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 2368 ns 2368 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.98 % 4.98 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 26208 ns 26208 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 26604 ns 26604 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 908 ns 908 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.47 % 3.47 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20362 ns 20362 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 20380 ns 20381 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 4440 ns 4440 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 21.80 % 21.80 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16214 ns 16214 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16158 ns 16158 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 360 ns 360 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.22 % 2.22 % 4 +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 -- 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 1401 ns 1401 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 1399 ns 1399 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 28.1 ns 28.1 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 2.01 % 2.01 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 1418 ns 1418 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 1394 ns 1394 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 63.8 ns 63.8 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 4.50 % 4.50 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 484 ns 484 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 488 ns 488 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 9.03 ns 9.03 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 1.87 % 1.87 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 418 ns 418 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 417 ns 417 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 8.05 ns 8.05 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.93 % 1.93 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 371 ns 371 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 373 ns 373 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 11.1 ns 11.1 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.98 % 2.98 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 320 ns 320 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 321 ns 321 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 6.97 ns 6.97 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.18 % 2.18 % 4 +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 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 3267 ns 3267 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 3266 ns 3266 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 45.6 ns 45.6 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 1.40 % 1.40 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 434 ns 434 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 439 ns 439 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 15.5 ns 15.5 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.56 % 3.56 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 1519 ns 1519 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 1516 ns 1516 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 13.7 ns 13.7 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 0.90 % 0.90 % 4 -std::string str = std::format("test = {} times", k);_mean 1497 ns 1497 ns 4 -std::string str = std::format("test = {} times", k);_median 1481 ns 1481 ns 4 -std::string str = std::format("test = {} times", k);_stddev 50.5 ns 50.5 ns 4 -std::string str = std::format("test = {} times", k);_cv 3.38 % 3.38 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 1586 ns 1586 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 1592 ns 1592 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 27.4 ns 27.5 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 1.73 % 1.73 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1126 ns 1126 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1129 ns 1129 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 30.0 ns 30.0 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 2.66 % 2.66 % 4 -lstringa<8> str = "test = " + k + " times";_mean 315 ns 315 ns 4 -lstringa<8> str = "test = " + k + " times";_median 313 ns 313 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 8.47 ns 8.47 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 2.69 % 2.69 % 4 -lstringa<32> str = "test = " + k + " times";_mean 154 ns 154 ns 4 -lstringa<32> str = "test = " + k + " times";_median 154 ns 154 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 2.74 ns 2.74 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 1.78 % 1.78 % 4 -stringa str = "test = " + k + " times";_mean 133 ns 133 ns 4 -stringa str = "test = " + k + " times";_median 131 ns 131 ns 4 -stringa str = "test = " + k + " times";_stddev 5.14 ns 5.14 ns 4 -stringa str = "test = " + k + " times";_cv 3.87 % 3.87 % 4 +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 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 265 ns 265 ns 4 -std::string::find + substr + std::strtol_median 264 ns 264 ns 4 -std::string::find + substr + std::strtol_stddev 2.64 ns 2.64 ns 4 -std::string::find + substr + std::strtol_cv 1.00 % 1.00 % 4 -ssa::splitter + ssa::as_int_mean 143 ns 143 ns 4 -ssa::splitter + ssa::as_int_median 144 ns 144 ns 4 -ssa::splitter + ssa::as_int_stddev 3.25 ns 3.25 ns 4 -ssa::splitter + ssa::as_int_cv 2.26 % 2.26 % 4 -ssa::splitf + functor_mean 125 ns 125 ns 4 -ssa::splitf + functor_median 124 ns 124 ns 4 -ssa::splitf + functor_stddev 4.56 ns 4.56 ns 4 -ssa::splitf + functor_cv 3.66 % 3.66 % 4 +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 -- 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 837 ns 837 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 839 ns 839 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 9.85 ns 9.85 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 1.18 % 1.18 % 4 -replace symbols with std::string find_first_of + replace_mean 2361 ns 2361 ns 4 -replace symbols with std::string find_first_of + replace_median 2363 ns 2363 ns 4 -replace symbols with std::string find_first_of + replace_stddev 63.7 ns 63.7 ns 4 -replace symbols with std::string find_first_of + replace_cv 2.70 % 2.70 % 4 -replace symbols with std::string_view find_first_of + copy_mean 965 ns 965 ns 4 -replace symbols with std::string_view find_first_of + copy_median 969 ns 969 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.30 % 2.30 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1436 ns 1436 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1434 ns 1434 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 19.8 ns 19.8 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 1.38 % 1.38 % 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 1069 ns 1069 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 26.1 ns 26.1 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.44 % 2.44 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1246 ns 1246 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1245 ns 1245 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 15.0 ns 15.0 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.20 % 1.20 % 4 -replace const symbols with string expressions and memorization of all search results_mean 850 ns 850 ns 4 -replace const symbols with string expressions and memorization of all search results_median 850 ns 850 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 13.7 ns 13.7 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 1.62 % 1.62 % 4 +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 -- 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 157 ns 157 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 5.76 ns 5.76 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.65 % 3.65 % 4 -Short replace symbols with std::string find_first_of + replace_mean 338 ns 338 ns 4 -Short replace symbols with std::string find_first_of + replace_median 338 ns 338 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 12.1 ns 12.1 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 3.59 % 3.59 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 160 ns 160 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 160 ns 160 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.71 ns 2.71 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 1.69 % 1.69 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 204 ns 204 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 207 ns 207 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 8.34 ns 8.34 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 4.09 % 4.09 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 193 ns 193 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 195 ns 195 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 8.21 ns 8.21 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 4.25 % 4.25 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 150 ns 150 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 150 ns 150 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 1.09 ns 1.09 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 0.73 % 0.73 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 140 ns 140 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 141 ns 141 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 1.52 ns 1.52 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.09 % 1.09 % 4 +Short Naive (and wrong) replace symbols with std::string find + replace_mean 167 ns 167 ns 4 +Short Naive (and wrong) replace symbols with std::string find + replace_median 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 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 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 157 ns 157 ns 4 -replace bb to ---- in std::string|64_median 158 ns 158 ns 4 -replace bb to ---- in std::string|64_stddev 2.61 ns 2.61 ns 4 -replace bb to ---- in std::string|64_cv 1.66 % 1.66 % 4 -replace bb to ---- in std::string|256_mean 492 ns 492 ns 4 -replace bb to ---- in std::string|256_median 491 ns 491 ns 4 -replace bb to ---- in std::string|256_stddev 10.7 ns 10.7 ns 4 -replace bb to ---- in std::string|256_cv 2.18 % 2.18 % 4 -replace bb to ---- in std::string|512_mean 990 ns 990 ns 4 -replace bb to ---- in std::string|512_median 982 ns 982 ns 4 -replace bb to ---- in std::string|512_stddev 21.2 ns 21.2 ns 4 -replace bb to ---- in std::string|512_cv 2.14 % 2.14 % 4 -replace bb to ---- in std::string|1024_mean 2325 ns 2325 ns 4 -replace bb to ---- in std::string|1024_median 2350 ns 2350 ns 4 -replace bb to ---- in std::string|1024_stddev 278 ns 278 ns 4 -replace bb to ---- in std::string|1024_cv 11.96 % 11.96 % 4 -replace bb to ---- in std::string|2048_mean 6064 ns 6064 ns 4 -replace bb to ---- in std::string|2048_median 6154 ns 6154 ns 4 -replace bb to ---- in std::string|2048_stddev 424 ns 424 ns 4 -replace bb to ---- in std::string|2048_cv 6.99 % 6.99 % 4 -replace bb to ---- in lstringa<8>|64_mean 145 ns 145 ns 4 -replace bb to ---- in lstringa<8>|64_median 145 ns 145 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 0.675 ns 0.675 ns 4 -replace bb to ---- in lstringa<8>|64_cv 0.46 % 0.46 % 4 -replace bb to ---- in lstringa<8>|256_mean 475 ns 475 ns 4 -replace bb to ---- in lstringa<8>|256_median 474 ns 474 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 7.27 ns 7.27 ns 4 -replace bb to ---- in lstringa<8>|256_cv 1.53 % 1.53 % 4 -replace bb to ---- in lstringa<8>|512_mean 862 ns 862 ns 4 -replace bb to ---- in lstringa<8>|512_median 866 ns 866 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 10.4 ns 10.4 ns 4 -replace bb to ---- in lstringa<8>|512_cv 1.20 % 1.20 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1756 ns 1756 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1754 ns 1754 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 59.5 ns 59.5 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 3.39 % 3.39 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3286 ns 3286 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3267 ns 3267 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 61.3 ns 61.3 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 1.87 % 1.87 % 4 -replace bb to ---- by init stringa|64_mean 87.1 ns 87.1 ns 4 -replace bb to ---- by init stringa|64_median 87.1 ns 87.1 ns 4 -replace bb to ---- by init stringa|64_stddev 0.674 ns 0.673 ns 4 -replace bb to ---- by init stringa|64_cv 0.77 % 0.77 % 4 -replace bb to ---- by init stringa|256_mean 267 ns 267 ns 4 -replace bb to ---- by init stringa|256_median 266 ns 266 ns 4 -replace bb to ---- by init stringa|256_stddev 4.85 ns 4.85 ns 4 -replace bb to ---- by init stringa|256_cv 1.82 % 1.82 % 4 -replace bb to ---- by init stringa|512_mean 651 ns 651 ns 4 -replace bb to ---- by init stringa|512_median 652 ns 652 ns 4 -replace bb to ---- by init stringa|512_stddev 17.0 ns 17.0 ns 4 -replace bb to ---- by init stringa|512_cv 2.62 % 2.62 % 4 -replace bb to ---- by init stringa|1024_mean 1455 ns 1455 ns 4 -replace bb to ---- by init stringa|1024_median 1460 ns 1460 ns 4 -replace bb to ---- by init stringa|1024_stddev 41.1 ns 41.1 ns 4 -replace bb to ---- by init stringa|1024_cv 2.83 % 2.83 % 4 -replace bb to ---- by init stringa|2048_mean 2933 ns 2933 ns 4 -replace bb to ---- by init stringa|2048_median 2943 ns 2943 ns 4 -replace bb to ---- by init stringa|2048_stddev 62.8 ns 62.8 ns 4 -replace bb to ---- by init stringa|2048_cv 2.14 % 2.14 % 4 +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 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>|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 All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 111 ns 111 ns 4 -replace bb to -- in std::string|64_median 111 ns 111 ns 4 -replace bb to -- in std::string|64_stddev 2.53 ns 2.53 ns 4 -replace bb to -- in std::string|64_cv 2.28 % 2.28 % 4 -replace bb to -- in std::string|256_mean 366 ns 366 ns 4 -replace bb to -- in std::string|256_median 367 ns 367 ns 4 -replace bb to -- in std::string|256_stddev 4.66 ns 4.66 ns 4 -replace bb to -- in std::string|256_cv 1.27 % 1.27 % 4 -replace bb to -- in std::string|512_mean 738 ns 738 ns 4 -replace bb to -- in std::string|512_median 739 ns 739 ns 4 -replace bb to -- in std::string|512_stddev 27.2 ns 27.2 ns 4 -replace bb to -- in std::string|512_cv 3.69 % 3.69 % 4 -replace bb to -- in std::string|1024_mean 1431 ns 1431 ns 4 -replace bb to -- in std::string|1024_median 1419 ns 1419 ns 4 -replace bb to -- in std::string|1024_stddev 30.8 ns 30.8 ns 4 -replace bb to -- in std::string|1024_cv 2.16 % 2.16 % 4 -replace bb to -- in std::string|2048_mean 2775 ns 2775 ns 4 -replace bb to -- in std::string|2048_median 2767 ns 2767 ns 4 -replace bb to -- in std::string|2048_stddev 33.0 ns 33.0 ns 4 -replace bb to -- in std::string|2048_cv 1.19 % 1.19 % 4 -replace bb to -- in lstringa<8>|64_mean 95.4 ns 95.4 ns 4 -replace bb to -- in lstringa<8>|64_median 95.2 ns 95.2 ns 4 -replace bb to -- in lstringa<8>|64_stddev 2.48 ns 2.48 ns 4 -replace bb to -- in lstringa<8>|64_cv 2.60 % 2.60 % 4 +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 280 ns 280 ns 4 -replace bb to -- in lstringa<8>|256_stddev 7.99 ns 7.99 ns 4 -replace bb to -- in lstringa<8>|256_cv 2.83 % 2.83 % 4 -replace bb to -- in lstringa<8>|512_mean 531 ns 531 ns 4 -replace bb to -- in lstringa<8>|512_median 531 ns 531 ns 4 -replace bb to -- in lstringa<8>|512_stddev 11.8 ns 11.8 ns 4 -replace bb to -- in lstringa<8>|512_cv 2.22 % 2.22 % 4 -replace bb to -- in lstringa<8>|1024_mean 1029 ns 1029 ns 4 -replace bb to -- in lstringa<8>|1024_median 1029 ns 1029 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 10.9 ns 10.9 ns 4 -replace bb to -- in lstringa<8>|1024_cv 1.05 % 1.05 % 4 -replace bb to -- in lstringa<8>|2048_mean 2008 ns 2008 ns 4 -replace bb to -- in lstringa<8>|2048_median 2012 ns 2012 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 45.5 ns 45.5 ns 4 -replace bb to -- in lstringa<8>|2048_cv 2.27 % 2.27 % 4 -replace bb to -- by init stringa|64_mean 83.6 ns 83.6 ns 4 -replace bb to -- by init stringa|64_median 83.2 ns 83.2 ns 4 -replace bb to -- by init stringa|64_stddev 1.77 ns 1.77 ns 4 -replace bb to -- by init stringa|64_cv 2.12 % 2.12 % 4 -replace bb to -- by init stringa|256_mean 265 ns 265 ns 4 -replace bb to -- by init stringa|256_median 264 ns 264 ns 4 -replace bb to -- by init stringa|256_stddev 3.74 ns 3.74 ns 4 -replace bb to -- by init stringa|256_cv 1.41 % 1.41 % 4 -replace bb to -- by init stringa|512_mean 501 ns 501 ns 4 -replace bb to -- by init stringa|512_median 501 ns 501 ns 4 -replace bb to -- by init stringa|512_stddev 8.33 ns 8.33 ns 4 -replace bb to -- by init stringa|512_cv 1.66 % 1.66 % 4 -replace bb to -- by init stringa|1024_mean 1004 ns 1004 ns 4 -replace bb to -- by init stringa|1024_median 996 ns 996 ns 4 -replace bb to -- by init stringa|1024_stddev 25.9 ns 25.9 ns 4 -replace bb to -- by init stringa|1024_cv 2.58 % 2.58 % 4 -replace bb to -- by init stringa|2048_mean 1944 ns 1944 ns 4 -replace bb to -- by init stringa|2048_median 1948 ns 1948 ns 4 -replace bb to -- by init stringa|2048_stddev 20.1 ns 20.1 ns 4 -replace bb to -- by init stringa|2048_cv 1.03 % 1.03 % 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 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3698007 ns 3698020 ns 4 -hashStrMapA emplace & find stringa;_median 3717991 ns 3718003 ns 4 -hashStrMapA emplace & find stringa;_stddev 81510 ns 81510 ns 4 -hashStrMapA emplace & find stringa;_cv 2.20 % 2.20 % 4 -std::unordered_map emplace & find std::string;_mean 3645916 ns 3645929 ns 4 -std::unordered_map emplace & find std::string;_median 3681250 ns 3681258 ns 4 -std::unordered_map emplace & find std::string;_stddev 74522 ns 74517 ns 4 -std::unordered_map emplace & find std::string;_cv 2.04 % 2.04 % 4 -hashStrMapA emplace & find ssa;_mean 3708079 ns 3708095 ns 4 -hashStrMapA emplace & find ssa;_median 3703166 ns 3703183 ns 4 -hashStrMapA emplace & find ssa;_stddev 31211 ns 31212 ns 4 -hashStrMapA emplace & find ssa;_cv 0.84 % 0.84 % 4 -std::unordered_map emplace & find std::string_view;_mean 4189102 ns 4189095 ns 4 -std::unordered_map emplace & find std::string_view;_median 4196771 ns 4196783 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 34020 ns 33996 ns 4 -std::unordered_map emplace & find std::string_view;_cv 0.81 % 0.81 % 4 +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 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 853 ns 853 ns 4 -Build func full name std::string;_median 853 ns 853 ns 4 -Build func full name std::string;_stddev 20.7 ns 20.7 ns 4 -Build func full name std::string;_cv 2.43 % 2.43 % 4 -Build func full name std::string 1;_mean 912 ns 912 ns 4 -Build func full name std::string 1;_median 907 ns 907 ns 4 -Build func full name std::string 1;_stddev 18.4 ns 18.4 ns 4 -Build func full name std::string 1;_cv 2.02 % 2.02 % 4 -Build func full name std::stream;_mean 2502 ns 2502 ns 4 -Build func full name std::stream;_median 2476 ns 2476 ns 4 -Build func full name std::stream;_stddev 77.4 ns 77.4 ns 4 -Build func full name std::stream;_cv 3.09 % 3.09 % 4 -Build func full name stringa;_mean 459 ns 459 ns 4 -Build func full name stringa;_median 460 ns 460 ns 4 -Build func full name stringa;_stddev 9.94 ns 9.94 ns 4 -Build func full name stringa;_cv 2.17 % 2.17 % 4 -Build func full name stringa 1;_mean 627 ns 627 ns 4 -Build func full name stringa 1;_median 625 ns 625 ns 4 -Build func full name stringa 1;_stddev 8.45 ns 8.45 ns 4 -Build func full name stringa 1;_cv 1.35 % 1.35 % 4 +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 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 166 ns 166 ns 4 -To upper case std::wstring_median 165 ns 165 ns 4 -To upper case std::wstring_stddev 2.97 ns 2.97 ns 4 -To upper case std::wstring_cv 1.79 % 1.79 % 4 -To upper case lstringw<15>_mean 42.0 ns 42.0 ns 4 -To upper case lstringw<15>_median 41.9 ns 41.9 ns 4 -To upper case lstringw<15>_stddev 0.987 ns 0.987 ns 4 -To upper case lstringw<15>_cv 2.35 % 2.35 % 4 +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 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 new file mode 100644 index 0000000..b2e0547 --- /dev/null +++ b/bench/results/002-Xeon E5-2682 v4, Ubuntu 22 (WSL), GCC-15.txt @@ -0,0 +1,989 @@ +Benchmarks of simstr, version 1.7.2 +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 +Running ./benchStr +Run on (32 X 2494.22 MHz CPU s) +CPU Caches: + L1 Data 32 KiB (x16) + L1 Instruction 32 KiB (x16) + L2 Unified 256 KiB (x16) + L3 Unified 40960 KiB (x1) +Load Average: 0.00, 0.00, 0.00 +***WARNING*** ASLR is enabled, the results may have unreproducible noise in them. +-------------------------------------------------------------------------------------------------------------------------------------------------------- +Benchmark Time CPU Iterations +-------------------------------------------------------------------------------------------------------------------------------------------------------- +----- Concatenate 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 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 +----- 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 +----- 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 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 +---- 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"_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 +----- 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 +----- 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 +----- 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 +----- 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 +----- 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 +----- 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_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 +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 +----- 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 +----- 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 +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 +----- 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 +----- 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 +------- 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 +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 +----- 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 +----- 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 +----- 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 +----- 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 +-- 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::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 +-- 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 +-- 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 +-- 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 +-- 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 +-- 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 +-- 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 +-- 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 +----- 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 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 +----- 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 +----- 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 +----- 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 diff --git a/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt b/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt similarity index 55% rename from bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt rename to bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt index 4ff778e..da37637 100644 --- a/bench/results/002-Xeon E5-2682 v4, Windows 10, Clang-19.txt +++ b/bench/results/003-Xeon E5-2682 v4, Windows 10, Clang-22.txt @@ -1,8 +1,8 @@ -Benchmarks of simstr, version 1.7.1 +Benchmarks of simstr, version 1.7.2 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html - -2026-02-21T15:40:35+03:00 +Compiler Clang 22.1.0 +2026-02-27T17:24:35+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,970 +14,974 @@ CPU Caches: Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 210 ns 209 ns 4 -Concat email std::format_median 209 ns 209 ns 4 -Concat email std::format_stddev 5.34 ns 0.000 ns 4 -Concat email std::format_cv 2.54 % 0.00 % 4 -Concat email std::stringstream_mean 856 ns 854 ns 4 -Concat email std::stringstream_median 862 ns 854 ns 4 -Concat email std::stringstream_stddev 24.0 ns 31.8 ns 4 -Concat email std::stringstream_cv 2.81 % 3.73 % 4 -Concat email stringzilla append_mean 271 ns 271 ns 4 -Concat email stringzilla append_median 271 ns 270 ns 4 -Concat email stringzilla append_stddev 5.02 ns 5.68 ns 4 -Concat email stringzilla append_cv 1.85 % 2.09 % 4 -Concat email stringzilla concat_mean 128 ns 128 ns 4 -Concat email stringzilla concat_median 128 ns 129 ns 4 -Concat email stringzilla concat_stddev 1.80 ns 1.57 ns 4 -Concat email stringzilla concat_cv 1.40 % 1.23 % 4 -Concat email std::string append_mean 187 ns 185 ns 4 -Concat email std::string append_median 187 ns 186 ns 4 -Concat email std::string append_stddev 1.36 ns 4.01 ns 4 -Concat email std::string append_cv 0.73 % 2.16 % 4 -Concat email std::string by strexpr_mean 107 ns 107 ns 4 -Concat email std::string by strexpr_median 107 ns 106 ns 4 -Concat email std::string by strexpr_stddev 1.72 ns 1.40 ns 4 -Concat email std::string by strexpr_cv 1.60 % 1.31 % 4 -Concat email stringa_mean 93.1 ns 93.3 ns 4 -Concat email stringa_median 92.8 ns 93.3 ns 4 -Concat email stringa_stddev 1.08 ns 1.01 ns 4 -Concat email stringa_cv 1.16 % 1.08 % 4 +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 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 264 ns 265 ns 4 -Concat std::string and number by std to std::string_median 263 ns 264 ns 4 -Concat std::string and number by std to std::string_stddev 8.29 ns 5.68 ns 4 -Concat std::string and number by std to std::string_cv 3.13 % 2.14 % 4 -Concat std::string and number by StrExpr to std::string_mean 156 ns 156 ns 4 -Concat std::string and number by StrExpr to std::string_median 155 ns 156 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 3.45 ns 2.62 ns 4 -Concat std::string and number by StrExpr to std::string_cv 2.21 % 1.67 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 69.1 ns 68.9 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 69.8 ns 69.8 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 1.82 ns 1.74 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 2.64 % 2.53 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 74.9 ns 74.6 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 75.1 ns 74.1 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 1.52 ns 1.67 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 2.03 % 2.24 % 4 +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 ----- 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 715 ns 715 ns 4 -Concat std::string and format hex number and literal to std::string_median 713 ns 711 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 6.72 ns 6.98 ns 4 -Concat std::string and format hex number and literal to std::string_cv 0.94 % 0.98 % 4 -std::format std::string and hex number by literal to std::string_mean 1496 ns 1500 ns 4 -std::format std::string and hex number by literal to std::string_median 1492 ns 1500 ns 4 -std::format std::string and hex number by literal to std::string_stddev 22.5 ns 28.5 ns 4 -std::format std::string and hex number by literal to std::string_cv 1.50 % 1.90 % 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 194 ns 195 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 1.49 ns 4.01 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 0.77 % 2.07 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 89.2 ns 89.5 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 89.8 ns 90.0 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 1.32 ns 1.05 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 1.48 % 1.17 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 70.7 ns 70.2 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 69.1 ns 69.8 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 3.36 ns 2.19 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 4.75 % 3.13 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 77.7 ns 77.8 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 78.0 ns 78.1 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.95 ns 2.09 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.51 % 2.69 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 156 ns 155 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 157 ns 155 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 1.66 ns 2.01 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.06 % 1.30 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 291 ns 292 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 290 ns 292 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 3.52 ns 5.41 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 1.21 % 1.86 % 4 +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 ---- 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 685 ns 684 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 685 ns 680 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 11.8 ns 8.72 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 1.73 % 1.27 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 758 ns 754 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 757 ns 750 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 13.2 ns 8.72 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 1.74 % 1.16 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1128 ns 1120 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1134 ns 1120 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 18.7 ns 27.0 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 1.65 % 2.41 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1424 ns 1420 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1417 ns 1413 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 54.1 ns 69.6 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 3.80 % 4.90 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1375 ns 1373 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1377 ns 1381 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 8.83 ns 15.7 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 0.64 % 1.14 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1657 ns 1650 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1648 ns 1650 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 25.9 ns 31.3 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.56 % 1.90 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1574 ns 1561 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1576 ns 1552 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 33.6 ns 33.4 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 2.13 % 2.14 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 6773 ns 6766 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 6746 ns 6696 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 159 ns 140 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 2.34 % 2.06 % 4 +"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 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 44.0 ns 43.7 ns 4 -Concat std::string by std to std::string_median 43.9 ns 43.5 ns 4 -Concat std::string by std to std::string_stddev 0.835 ns 1.27 ns 4 -Concat std::string by std to std::string_cv 1.90 % 2.91 % 4 -Concat std::string by StrExpr to std::string_mean 39.2 ns 39.0 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.647 ns 1.10 ns 4 -Concat std::string by StrExpr to std::string_cv 1.65 % 2.81 % 4 -Concat stringa by StrExpr to stringa_mean 28.9 ns 28.8 ns 4 -Concat stringa by StrExpr to stringa_median 28.9 ns 28.8 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.344 ns 0.383 ns 4 -Concat stringa by StrExpr to stringa_cv 1.19 % 1.33 % 4 +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 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 206 ns 205 ns 4 -Find concat three std::string_median 206 ns 206 ns 4 -Find concat three std::string_stddev 4.34 ns 4.34 ns 4 -Find concat three std::string_cv 2.10 % 2.12 % 4 -Find concat three strexpr_mean 117 ns 117 ns 4 -Find concat three strexpr_median 116 ns 117 ns 4 -Find concat three strexpr_stddev 2.90 ns 2.28 ns 4 -Find concat three strexpr_cv 2.48 % 1.94 % 4 -Find concat three simstr_mean 21.4 ns 21.4 ns 4 -Find concat three simstr_median 21.3 ns 21.3 ns 4 -Find concat three simstr_stddev 0.260 ns 0.571 ns 4 -Find concat three simstr_cv 1.21 % 2.66 % 4 -Find concat three stringzilla string_mean 217 ns 219 ns 4 -Find concat three stringzilla string_median 218 ns 220 ns 4 -Find concat three stringzilla string_stddev 6.44 ns 6.14 ns 4 -Find concat three stringzilla string_cv 2.96 % 2.81 % 4 +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 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 8.40 ns 8.37 ns 4 -BuildTypeNameStr 0/0_median 8.29 ns 8.27 ns 4 -BuildTypeNameStr 0/0_stddev 0.339 ns 0.452 ns 4 -BuildTypeNameStr 0/0_cv 4.04 % 5.40 % 4 -BuildTypeNameExp 0/0_mean 7.59 ns 7.60 ns 4 -BuildTypeNameExp 0/0_median 7.60 ns 7.60 ns 4 -BuildTypeNameExp 0/0_stddev 0.205 ns 0.180 ns 4 -BuildTypeNameExp 0/0_cv 2.70 % 2.37 % 4 -BuildTypeNameSim 0/0_mean 7.74 ns 7.76 ns 4 -BuildTypeNameSim 0/0_median 7.69 ns 7.67 ns 4 -BuildTypeNameSim 0/0_stddev 0.158 ns 0.174 ns 4 -BuildTypeNameSim 0/0_cv 2.04 % 2.25 % 4 -BuildTypeNameStr 10/10_mean 60.1 ns 59.3 ns 4 -BuildTypeNameStr 10/10_median 59.7 ns 59.3 ns 4 -BuildTypeNameStr 10/10_stddev 1.80 ns 2.42 ns 4 -BuildTypeNameStr 10/10_cv 3.00 % 4.08 % 4 -BuildTypeNameExp 10/10_mean 33.0 ns 33.0 ns 4 -BuildTypeNameExp 10/10_median 32.8 ns 33.0 ns 4 -BuildTypeNameExp 10/10_stddev 0.646 ns 0.626 ns 4 -BuildTypeNameExp 10/10_cv 1.96 % 1.90 % 4 -BuildTypeNameSim 10/10_mean 25.5 ns 25.5 ns 4 -BuildTypeNameSim 10/10_median 25.5 ns 25.7 ns 4 -BuildTypeNameSim 10/10_stddev 0.618 ns 0.837 ns 4 -BuildTypeNameSim 10/10_cv 2.42 % 3.28 % 4 +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 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 317 ns 316 ns 4 -Concat with replace str_median 312 ns 311 ns 4 -Concat with replace str_stddev 9.68 ns 9.94 ns 4 -Concat with replace str_cv 3.06 % 3.14 % 4 -Concat with replace exp_mean 214 ns 215 ns 4 -Concat with replace exp_median 213 ns 215 ns 4 -Concat with replace exp_stddev 3.61 ns 3.99 ns 4 -Concat with replace exp_cv 1.69 % 1.86 % 4 +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 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 1.13 ns 1.12 ns 4 -std::string e;_median 1.12 ns 1.11 ns 4 -std::string e;_stddev 0.052 ns 0.021 ns 4 -std::string e;_cv 4.63 % 1.87 % 4 -std::string_view e;_mean 0.369 ns 0.367 ns 4 -std::string_view e;_median 0.367 ns 0.365 ns 4 -std::string_view e;_stddev 0.006 ns 0.008 ns 4 -std::string_view e;_cv 1.68 % 2.09 % 4 -ssa e;_mean 0.363 ns 0.364 ns 4 -ssa e;_median 0.365 ns 0.368 ns 4 -ssa e;_stddev 0.006 ns 0.008 ns 4 -ssa e;_cv 1.55 % 2.30 % 4 -stringa e;_mean 0.744 ns 0.741 ns 4 -stringa e;_median 0.747 ns 0.732 ns 4 -stringa e;_stddev 0.009 ns 0.017 ns 4 -stringa e;_cv 1.27 % 2.35 % 4 -lstringa<20> e;_mean 1.15 ns 1.13 ns 4 -lstringa<20> e;_median 1.13 ns 1.13 ns 4 -lstringa<20> e;_stddev 0.048 ns 0.016 ns 4 -lstringa<20> e;_cv 4.14 % 1.43 % 4 -lstringa<40> e;_mean 1.11 ns 1.10 ns 4 -lstringa<40> e;_median 1.11 ns 1.11 ns 4 -lstringa<40> e;_stddev 0.033 ns 0.023 ns 4 -lstringa<40> e;_cv 2.93 % 2.12 % 4 +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 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 1.82 ns 1.81 ns 4 -std::string e = "Test text";_median 1.81 ns 1.79 ns 4 -std::string e = "Test text";_stddev 0.059 ns 0.064 ns 4 -std::string e = "Test text";_cv 3.23 % 3.54 % 4 -std::string_view e = "Test text";_mean 0.729 ns 0.728 ns 4 -std::string_view e = "Test text";_median 0.730 ns 0.732 ns 4 -std::string_view e = "Test text";_stddev 0.010 ns 0.009 ns 4 -std::string_view e = "Test text";_cv 1.41 % 1.20 % 4 -ssa e = "Test text";_mean 0.371 ns 0.369 ns 4 -ssa e = "Test text";_median 0.369 ns 0.369 ns 4 -ssa e = "Test text";_stddev 0.005 ns 0.007 ns 4 -ssa e = "Test text";_cv 1.43 % 1.77 % 4 -stringa e = "Test text";_mean 1.11 ns 1.10 ns 4 -stringa e = "Test text";_median 1.11 ns 1.11 ns 4 -stringa e = "Test text";_stddev 0.016 ns 0.010 ns 4 -stringa e = "Test text";_cv 1.47 % 0.95 % 4 -lstringa<20> e = "Test text";_mean 1.85 ns 1.83 ns 4 -lstringa<20> e = "Test text";_median 1.86 ns 1.82 ns 4 -lstringa<20> e = "Test text";_stddev 0.045 ns 0.040 ns 4 -lstringa<20> e = "Test text";_cv 2.45 % 2.19 % 4 -lstringa<40> e = "Test text";_mean 1.83 ns 1.82 ns 4 -lstringa<40> e = "Test text";_median 1.84 ns 1.80 ns 4 -lstringa<40> e = "Test text";_stddev 0.031 ns 0.038 ns 4 -lstringa<40> e = "Test text";_cv 1.69 % 2.11 % 4 +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 +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 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 75.8 ns 75.4 ns 4 -std::string e = "123456789012345678901234567890";_median 75.7 ns 75.0 ns 4 -std::string e = "123456789012345678901234567890";_stddev 2.86 ns 2.62 ns 4 -std::string e = "123456789012345678901234567890";_cv 3.78 % 3.47 % 4 -std::string_view e = "123456789012345678901234567890";_mean 0.727 ns 0.724 ns 4 -std::string_view e = "123456789012345678901234567890";_median 0.727 ns 0.724 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.004 ns 0.010 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 0.56 % 1.39 % 4 -ssa e = "123456789012345678901234567890";_mean 0.369 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890";_median 0.370 ns 0.368 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.002 ns 0.006 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.63 % 1.70 % 4 +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.024 ns 0.023 ns 4 -stringa e = "123456789012345678901234567890";_cv 2.21 % 2.09 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 76.5 ns 75.4 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 75.8 ns 75.9 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 2.20 ns 1.67 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 2.88 % 2.21 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.52 ns 2.53 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.52 ns 2.51 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.021 ns 0.028 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 0.83 % 1.10 % 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 ----- 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.86 ns 1.85 ns 4 -std::string e = "Test text"; auto c{e};_median 1.85 ns 1.84 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.036 ns 0.053 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.96 % 2.84 % 4 -std::string_view e = "Test text"; auto c{e};_mean 0.370 ns 0.371 ns 4 +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.006 ns 0.004 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 1.66 % 1.08 % 4 -ssa e = "Test text"; auto c{e};_mean 0.365 ns 0.365 ns 4 -ssa e = "Test text"; auto c{e};_median 0.362 ns 0.361 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.008 ns 0.008 ns 4 -ssa e = "Test text"; auto c{e};_cv 2.24 % 2.20 % 4 -stringa e = "Test text"; auto c{e};_mean 1.32 ns 1.31 ns 4 -stringa e = "Test text"; auto c{e};_median 1.32 ns 1.32 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.034 ns 0.037 ns 4 -stringa e = "Test text"; auto c{e};_cv 2.60 % 2.79 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 1.50 ns 1.51 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 1.50 ns 1.51 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.014 ns 0.023 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 0.91 % 1.51 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 1.50 ns 1.50 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 1.52 ns 1.51 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.027 ns 0.039 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.80 % 2.64 % 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 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890"; auto c{e};_mean 79.4 ns 79.3 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 78.8 ns 78.5 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 3.70 ns 4.39 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.67 % 5.53 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 0.743 ns 0.741 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 0.734 ns 0.732 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.017 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 2.54 % 2.35 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.374 ns 0.372 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.378 ns 0.372 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.010 ns 0.011 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.62 % 2.90 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 1.83 ns 1.83 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 1.82 ns 1.82 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.017 ns 0.037 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 0.93 % 2.01 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 76.4 ns 76.3 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 76.1 ns 75.9 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.41 ns 2.98 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 3.16 % 3.90 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 4.95 ns 4.94 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 4.90 ns 4.92 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.103 ns 0.052 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 2.09 % 1.06 % 4 +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 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 97.9 ns 97.8 ns 4 -sz::string::find;_median 97.9 ns 98.4 ns 4 -sz::string::find;_stddev 0.232 ns 1.05 ns 4 -sz::string::find;_cv 0.24 % 1.07 % 4 -std::string::find;_mean 40.2 ns 40.3 ns 4 -std::string::find;_median 39.9 ns 40.1 ns 4 -std::string::find;_stddev 0.840 ns 0.436 ns 4 -std::string::find;_cv 2.09 % 1.08 % 4 -std::string_view::find;_mean 52.2 ns 52.3 ns 4 -std::string_view::find;_median 52.1 ns 52.3 ns 4 -std::string_view::find;_stddev 0.842 ns 0.902 ns 4 -std::string_view::find;_cv 1.61 % 1.72 % 4 -ssa::find;_mean 19.3 ns 19.2 ns 4 -ssa::find;_median 19.3 ns 19.0 ns 4 -ssa::find;_stddev 0.218 ns 0.244 ns 4 -ssa::find;_cv 1.13 % 1.27 % 4 -stringa::find;_mean 19.4 ns 19.5 ns 4 -stringa::find;_median 19.5 ns 19.5 ns 4 -stringa::find;_stddev 0.316 ns 0.540 ns 4 -stringa::find;_cv 1.62 % 2.78 % 4 -lstringa<20>::find;_mean 17.9 ns 17.8 ns 4 -lstringa<20>::find;_median 17.8 ns 17.6 ns 4 -lstringa<20>::find;_stddev 0.211 ns 0.419 ns 4 -lstringa<20>::find;_cv 1.18 % 2.35 % 4 -lstringa<40>::find;_mean 18.1 ns 18.0 ns 4 -lstringa<40>::find;_median 18.1 ns 18.0 ns 4 -lstringa<40>::find;_stddev 0.226 ns 0.342 ns 4 -lstringa<40>::find;_cv 1.25 % 1.90 % 4 +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 ------- 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.87 ns 1.87 ns 4 -std::string copy{str_with_len_N};/15_median 1.86 ns 1.86 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.045 ns 0.057 ns 4 -std::string copy{str_with_len_N};/15_cv 2.41 % 3.05 % 4 -std::string copy{str_with_len_N};/16_mean 82.8 ns 82.0 ns 4 -std::string copy{str_with_len_N};/16_median 80.7 ns 80.2 ns 4 -std::string copy{str_with_len_N};/16_stddev 5.42 ns 4.72 ns 4 -std::string copy{str_with_len_N};/16_cv 6.55 % 5.76 % 4 -std::string copy{str_with_len_N};/23_mean 80.2 ns 78.5 ns 4 -std::string copy{str_with_len_N};/23_median 79.5 ns 78.5 ns 4 -std::string copy{str_with_len_N};/23_stddev 2.64 ns 1.42 ns 4 -std::string copy{str_with_len_N};/23_cv 3.30 % 1.81 % 4 -std::string copy{str_with_len_N};/24_mean 78.8 ns 78.5 ns 4 -std::string copy{str_with_len_N};/24_median 78.5 ns 78.5 ns 4 -std::string copy{str_with_len_N};/24_stddev 1.06 ns 1.21 ns 4 -std::string copy{str_with_len_N};/24_cv 1.35 % 1.54 % 4 -std::string copy{str_with_len_N};/32_mean 86.0 ns 85.9 ns 4 -std::string copy{str_with_len_N};/32_median 86.0 ns 86.3 ns 4 -std::string copy{str_with_len_N};/32_stddev 1.15 ns 1.67 ns 4 -std::string copy{str_with_len_N};/32_cv 1.34 % 1.94 % 4 -std::string copy{str_with_len_N};/64_mean 84.4 ns 84.1 ns 4 -std::string copy{str_with_len_N};/64_median 83.9 ns 84.6 ns 4 -std::string copy{str_with_len_N};/64_stddev 1.84 ns 1.67 ns 4 -std::string copy{str_with_len_N};/64_cv 2.19 % 1.98 % 4 -std::string copy{str_with_len_N};/128_mean 90.9 ns 90.5 ns 4 -std::string copy{str_with_len_N};/128_median 91.2 ns 92.1 ns 4 -std::string copy{str_with_len_N};/128_stddev 2.80 ns 3.14 ns 4 -std::string copy{str_with_len_N};/128_cv 3.07 % 3.47 % 4 -std::string copy{str_with_len_N};/256_mean 87.4 ns 87.6 ns 4 -std::string copy{str_with_len_N};/256_median 87.4 ns 87.2 ns 4 -std::string copy{str_with_len_N};/256_stddev 0.312 ns 0.872 ns 4 -std::string copy{str_with_len_N};/256_cv 0.36 % 1.00 % 4 -std::string copy{str_with_len_N};/512_mean 90.0 ns 89.8 ns 4 -std::string copy{str_with_len_N};/512_median 90.0 ns 88.9 ns 4 -std::string copy{str_with_len_N};/512_stddev 1.71 ns 1.74 ns 4 -std::string copy{str_with_len_N};/512_cv 1.90 % 1.94 % 4 -std::string copy{str_with_len_N};/1024_mean 100 ns 99.9 ns 4 -std::string copy{str_with_len_N};/1024_median 98.8 ns 98.4 ns 4 -std::string copy{str_with_len_N};/1024_stddev 3.89 ns 4.94 ns 4 -std::string copy{str_with_len_N};/1024_cv 3.88 % 4.95 % 4 -std::string copy{str_with_len_N};/2048_mean 129 ns 128 ns 4 -std::string copy{str_with_len_N};/2048_median 129 ns 127 ns 4 -std::string copy{str_with_len_N};/2048_stddev 3.21 ns 3.01 ns 4 -std::string copy{str_with_len_N};/2048_cv 2.50 % 2.35 % 4 -std::string copy{str_with_len_N};/4096_mean 180 ns 179 ns 4 -std::string copy{str_with_len_N};/4096_median 181 ns 178 ns 4 -std::string copy{str_with_len_N};/4096_stddev 5.61 ns 3.67 ns 4 -std::string copy{str_with_len_N};/4096_cv 3.11 % 2.05 % 4 -stringa copy{str_with_len_N};/15_mean 1.32 ns 1.32 ns 4 -stringa copy{str_with_len_N};/15_median 1.32 ns 1.32 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.024 ns 0.031 ns 4 -stringa copy{str_with_len_N};/15_cv 1.83 % 2.32 % 4 -stringa copy{str_with_len_N};/16_mean 1.33 ns 1.32 ns 4 -stringa copy{str_with_len_N};/16_median 1.33 ns 1.33 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.012 ns 0.023 ns 4 -stringa copy{str_with_len_N};/16_cv 0.92 % 1.76 % 4 -stringa copy{str_with_len_N};/23_mean 1.33 ns 1.33 ns 4 -stringa copy{str_with_len_N};/23_median 1.33 ns 1.33 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.047 ns 0.041 ns 4 -stringa copy{str_with_len_N};/23_cv 3.49 % 3.04 % 4 -stringa copy{str_with_len_N};/24_mean 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/24_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.084 ns 0.201 ns 4 -stringa copy{str_with_len_N};/24_cv 0.53 % 1.27 % 4 -stringa copy{str_with_len_N};/32_mean 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/32_median 15.8 ns 15.7 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.094 ns 0.000 ns 4 -stringa copy{str_with_len_N};/32_cv 0.60 % 0.00 % 4 -stringa copy{str_with_len_N};/64_mean 15.8 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_median 15.8 ns 15.9 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.046 ns 0.201 ns 4 -stringa copy{str_with_len_N};/64_cv 0.29 % 1.27 % 4 -stringa copy{str_with_len_N};/128_mean 15.9 ns 15.8 ns 4 -stringa copy{str_with_len_N};/128_median 15.8 ns 15.9 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.149 ns 0.334 ns 4 -stringa copy{str_with_len_N};/128_cv 0.94 % 2.12 % 4 -stringa copy{str_with_len_N};/256_mean 15.8 ns 15.9 ns 4 -stringa copy{str_with_len_N};/256_median 15.9 ns 15.9 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.106 ns 0.201 ns 4 -stringa copy{str_with_len_N};/256_cv 0.67 % 1.27 % 4 -stringa copy{str_with_len_N};/512_mean 15.9 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_median 15.9 ns 16.0 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.179 ns 0.174 ns 4 -stringa copy{str_with_len_N};/512_cv 1.12 % 1.09 % 4 -stringa copy{str_with_len_N};/1024_mean 15.9 ns 15.8 ns 4 +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 +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.201 ns 0.192 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.27 % 1.21 % 4 -stringa copy{str_with_len_N};/2048_mean 15.8 ns 15.8 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.035 ns 0.192 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.22 % 1.21 % 4 -stringa copy{str_with_len_N};/4096_mean 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/4096_median 16.0 ns 16.0 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.121 ns 0.174 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.76 % 1.09 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 1.55 ns 1.53 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 1.54 ns 1.53 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.032 ns 0.000 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.07 % 0.00 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 5.54 ns 5.51 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 5.50 ns 5.47 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.131 ns 0.197 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 2.36 % 3.57 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 5.65 ns 5.66 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 5.67 ns 5.70 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.082 ns 0.150 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 1.46 % 2.64 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 79.9 ns 79.8 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 79.6 ns 79.3 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.864 ns 1.67 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.08 % 2.09 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 87.1 ns 87.2 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 87.2 ns 87.2 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.877 ns 1.42 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 1.01 % 1.63 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 83.3 ns 83.3 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 0.686 ns 0.872 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 0.82 % 1.05 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 89.2 ns 88.5 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 89.2 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 0.670 ns 0.872 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 0.75 % 0.99 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 90.0 ns 89.5 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 90.7 ns 90.0 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 1.89 ns 2.63 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 2.10 % 2.94 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 92.9 ns 92.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 92.5 ns 91.6 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 4.57 ns 2.98 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 4.92 % 3.24 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 103 ns 103 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 102 ns 103 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 2.98 ns 3.99 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 2.90 % 3.89 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 124 ns 122 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 123 ns 121 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 2.90 ns 2.67 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 2.34 % 2.19 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 188 ns 187 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 187 ns 188 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 5.44 ns 8.63 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 2.90 % 4.61 % 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.47 ns 1.48 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.016 ns 0.016 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.06 % 1.07 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 5.24 ns 5.20 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 5.21 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.130 ns 0.176 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 2.49 % 3.38 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 5.28 ns 5.27 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 5.29 ns 5.31 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.085 ns 0.078 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 1.60 % 1.48 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 5.18 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 5.17 ns 5.16 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.100 ns 0.128 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.94 % 2.47 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 8.27 ns 8.27 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 8.33 ns 8.27 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.140 ns 0.121 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 1.70 % 1.46 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 8.17 ns 8.15 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 8.16 ns 8.20 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.121 ns 0.087 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.47 % 1.07 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 8.43 ns 8.41 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 8.44 ns 8.46 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.114 ns 0.167 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 1.35 % 1.98 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 9.98 ns 9.94 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 10.0 ns 9.94 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.287 ns 0.270 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.88 % 2.72 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 11.2 ns 11.1 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 11.2 ns 11.2 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.176 ns 0.244 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.58 % 2.20 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 98.0 ns 97.8 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 98.6 ns 98.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 1.72 ns 2.63 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 1.75 % 2.69 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 128 ns 126 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 127 ns 126 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 2.44 ns 1.40 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.91 % 1.10 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 189 ns 189 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 1.85 ns 1.92 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 0.98 % 1.02 % 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 ----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.3 ns 31.3 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.3 ns 31.5 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.646 ns 0.922 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.07 % 2.94 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 13.6 ns 13.6 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 13.6 ns 13.7 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.462 ns 0.536 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 3.41 % 3.95 % 4 -stringa s = "123456789"; int res = s.to_int_mean 13.4 ns 13.3 ns 4 -stringa s = "123456789"; int res = s.to_int_median 13.4 ns 13.3 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.138 ns 0.181 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 1.03 % 1.36 % 4 -ssa s = "123456789"; int res = s.to_int_mean 12.5 ns 12.6 ns 4 -ssa s = "123456789"; int res = s.to_int_median 12.5 ns 12.6 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.062 ns 0.000 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 0.49 % 0.00 % 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.3 ns 13.2 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.318 ns 0.314 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.38 % 2.35 % 4 +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 +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 ----- Convert to unsigned 'abcDef' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_mean 33.4 ns 33.3 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 33.4 ns 33.3 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.240 ns 0.463 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 0.72 % 1.39 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.21 ns 8.20 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.24 ns 8.20 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.220 ns 0.285 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.68 % 3.47 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 12.3 ns 12.4 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 12.3 ns 12.3 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.324 ns 0.234 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 2.63 % 1.89 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 7.49 ns 7.50 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 7.52 ns 7.59 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.193 ns 0.247 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 2.57 % 3.29 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 11.8 ns 11.8 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 11.8 ns 11.8 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.075 ns 0.141 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.63 % 1.19 % 4 +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);_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 ----- 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 44.0 ns 43.8 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 44.0 ns 43.8 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.829 ns 0.544 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.89 % 1.24 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 16.3 ns 16.2 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 16.2 ns 16.1 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.313 ns 0.192 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.92 % 1.18 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 13.0 ns 12.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 13.0 ns 12.9 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.293 ns 0.395 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 2.26 % 3.05 % 4 +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 ----- 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.7 ns 97.8 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 98.1 ns 98.4 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 1.79 ns 1.05 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 1.84 % 1.07 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 60.5 ns 60.3 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 60.4 ns 60.0 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 1.90 ns 1.76 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.14 % 2.91 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 36.2 ns 35.7 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 35.3 ns 35.3 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 1.89 ns 2.66 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 5.23 % 7.45 % 4 +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 -- 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 4713 ns 4708 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 4677 ns 4656 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 117 ns 148 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 2.48 % 3.14 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1083 ns 1078 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1084 ns 1078 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 3.73 ns 12.1 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 0.34 % 1.12 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 824 ns 824 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 826 ns 820 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 7.06 ns 8.72 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 0.86 % 1.06 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 391 ns 391 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 388 ns 389 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 10.1 ns 14.3 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.58 % 3.65 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 254 ns 253 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 254 ns 251 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 1.06 ns 2.79 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 0.42 % 1.10 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 134 ns 133 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 134 ns 133 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 0.915 ns 1.81 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 0.68 % 1.36 % 4 +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 -- 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 4606 ns 4578 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 4610 ns 4551 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 148 ns 216 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 3.21 % 4.71 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3825 ns 3836 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3785 ns 3793 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 131 ns 123 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 3.41 % 3.21 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 746 ns 746 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 751 ns 750 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 27.6 ns 36.0 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.70 % 4.82 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 468 ns 466 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 468 ns 466 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 7.70 ns 6.04 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.64 % 1.30 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 303 ns 304 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 303 ns 304 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 3.27 ns 3.62 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.08 % 1.19 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 184 ns 183 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 183 ns 182 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.55 ns 4.01 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 2.48 % 2.19 % 4 +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 -- 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 224278 ns 223625 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 224319 ns 224933 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 2538 ns 2616 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.13 % 1.17 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 192363 ns 191572 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 192618 ns 192705 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3975 ns 4341 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.07 % 2.27 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 20974 ns 20970 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 21025 ns 20856 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 121 ns 227 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.58 % 1.08 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16889 ns 16846 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16724 ns 16950 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 503 ns 401 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.98 % 2.38 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16287 ns 16305 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16185 ns 16218 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 675 ns 596 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 4.15 % 3.65 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 16280 ns 16113 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 16181 ns 15904 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 454 ns 419 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.79 % 2.60 % 4 +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 -- 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 4491 ns 4449 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 4500 ns 4473 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 136 ns 90.2 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 3.02 % 2.03 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 4048 ns 4026 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 4079 ns 4002 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 65.4 ns 90.2 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 1.62 % 2.24 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 813 ns 815 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 815 ns 820 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 6.32 ns 8.72 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 0.78 % 1.07 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 526 ns 523 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 529 ns 523 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 11.7 ns 9.02 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.23 % 1.72 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 398 ns 397 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 397 ns 397 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 8.73 ns 5.03 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 2.19 % 1.27 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 295 ns 295 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 296 ns 295 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 4.26 ns 5.13 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 1.44 % 1.74 % 4 +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 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 10555 ns 10559 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 10543 ns 10498 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 149 ns 122 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 1.41 % 1.16 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1061 ns 1062 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1059 ns 1062 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 15.9 ns 14.1 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 1.50 % 1.33 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2843 ns 2816 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2871 ns 2816 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 69.1 ns 85.6 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.43 % 3.04 % 4 -std::string str = std::format("test = {} times", k);_mean 1908 ns 1909 ns 4 -std::string str = std::format("test = {} times", k);_median 1913 ns 1918 ns 4 -std::string str = std::format("test = {} times", k);_stddev 24.0 ns 19.2 ns 4 -std::string str = std::format("test = {} times", k);_cv 1.26 % 1.01 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2056 ns 2063 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2047 ns 2040 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 23.2 ns 45.3 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 1.13 % 2.20 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1029 ns 1025 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1037 ns 1032 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 23.6 ns 14.0 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 2.30 % 1.36 % 4 -lstringa<8> str = "test = " + k + " times";_mean 832 ns 833 ns 4 -lstringa<8> str = "test = " + k + " times";_median 827 ns 828 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 30.1 ns 29.8 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 3.61 % 3.58 % 4 -lstringa<32> str = "test = " + k + " times";_mean 138 ns 138 ns 4 -lstringa<32> str = "test = " + k + " times";_median 137 ns 138 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 3.46 ns 3.60 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 2.51 % 2.61 % 4 -stringa str = "test = " + k + " times";_mean 123 ns 123 ns 4 -stringa str = "test = " + k + " times";_median 122 ns 122 ns 4 -stringa str = "test = " + k + " times";_stddev 3.14 ns 3.66 ns 4 -stringa str = "test = " + k + " times";_cv 2.56 % 2.99 % 4 +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 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 549 ns 544 ns 4 -std::string::find + substr + std::strtol_median 544 ns 544 ns 4 -std::string::find + substr + std::strtol_stddev 13.7 ns 11.4 ns 4 -std::string::find + substr + std::strtol_cv 2.50 % 2.09 % 4 -ssa::splitter + ssa::as_int_mean 164 ns 164 ns 4 -ssa::splitter + ssa::as_int_median 164 ns 165 ns 4 -ssa::splitter + ssa::as_int_stddev 1.48 ns 1.92 ns 4 -ssa::splitter + ssa::as_int_cv 0.90 % 1.17 % 4 -ssa::splitf + functor_mean 188 ns 187 ns 4 -ssa::splitf + functor_median 187 ns 186 ns 4 -ssa::splitf + functor_stddev 2.06 ns 2.27 ns 4 -ssa::splitf + functor_cv 1.10 % 1.21 % 4 +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 -- 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 1161 ns 1151 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1161 ns 1158 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 25.1 ns 26.7 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 2.16 % 2.32 % 4 -replace symbols with std::string find_first_of + replace_mean 2012 ns 2009 ns 4 -replace symbols with std::string find_first_of + replace_median 2012 ns 2009 ns 4 -replace symbols with std::string find_first_of + replace_stddev 40.9 ns 34.2 ns 4 -replace symbols with std::string find_first_of + replace_cv 2.03 % 1.70 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2385 ns 2372 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2381 ns 2372 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 17.9 ns 32.2 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 0.75 % 1.36 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1607 ns 1604 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1592 ns 1604 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 48.8 ns 57.0 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 3.04 % 3.55 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1371 ns 1360 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1378 ns 1360 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 31.0 ns 40.3 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.26 % 2.96 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1229 ns 1207 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1230 ns 1200 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 24.0 ns 14.0 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.96 % 1.16 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1149 ns 1147 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1156 ns 1160 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 21.8 ns 34.5 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 1.90 % 3.01 % 4 +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 -- 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 307 ns 305 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 307 ns 303 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 6.19 ns 6.68 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 2.01 % 2.19 % 4 -Short replace symbols with std::string find_first_of + replace_mean 358 ns 357 ns 4 -Short replace symbols with std::string find_first_of + replace_median 361 ns 361 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 9.95 ns 13.9 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 2.78 % 3.89 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 313 ns 311 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 314 ns 311 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.86 ns 5.41 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 0.91 % 1.74 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 276 ns 277 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 276 ns 279 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 8.82 ns 8.89 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 3.20 % 3.21 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 345 ns 343 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 346 ns 345 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 1.97 ns 4.01 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 0.57 % 1.17 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 212 ns 211 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 209 ns 210 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 6.03 ns 6.14 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 2.85 % 2.91 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 294 ns 293 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 294 ns 292 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 0.944 ns 3.84 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 0.32 % 1.31 % 4 +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 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 219 ns 219 ns 4 -replace bb to ---- in std::string|64_median 219 ns 217 ns 4 -replace bb to ---- in std::string|64_stddev 4.02 ns 4.67 ns 4 -replace bb to ---- in std::string|64_cv 1.84 % 2.14 % 4 -replace bb to ---- in std::string|256_mean 750 ns 750 ns 4 -replace bb to ---- in std::string|256_median 754 ns 750 ns 4 -replace bb to ---- in std::string|256_stddev 27.5 ns 31.8 ns 4 -replace bb to ---- in std::string|256_cv 3.66 % 4.25 % 4 -replace bb to ---- in std::string|512_mean 1352 ns 1353 ns 4 -replace bb to ---- in std::string|512_median 1360 ns 1367 ns 4 -replace bb to ---- in std::string|512_stddev 23.4 ns 27.9 ns 4 -replace bb to ---- in std::string|512_cv 1.73 % 2.06 % 4 -replace bb to ---- in std::string|1024_mean 3028 ns 3032 ns 4 -replace bb to ---- in std::string|1024_median 3028 ns 3048 ns 4 -replace bb to ---- in std::string|1024_stddev 31.3 ns 33.1 ns 4 -replace bb to ---- in std::string|1024_cv 1.03 % 1.09 % 4 -replace bb to ---- in std::string|2048_mean 7680 ns 7629 ns 4 -replace bb to ---- in std::string|2048_median 7610 ns 7499 ns 4 -replace bb to ---- in std::string|2048_stddev 197 ns 262 ns 4 -replace bb to ---- in std::string|2048_cv 2.57 % 3.43 % 4 -replace bb to ---- in lstringa<8>|64_mean 217 ns 215 ns 4 -replace bb to ---- in lstringa<8>|64_median 219 ns 218 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 7.25 ns 7.85 ns 4 -replace bb to ---- in lstringa<8>|64_cv 3.34 % 3.65 % 4 -replace bb to ---- in lstringa<8>|256_mean 609 ns 609 ns 4 -replace bb to ---- in lstringa<8>|256_median 611 ns 609 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 15.0 ns 18.0 ns 4 -replace bb to ---- in lstringa<8>|256_cv 2.47 % 2.96 % 4 -replace bb to ---- in lstringa<8>|512_mean 1052 ns 1056 ns 4 -replace bb to ---- in lstringa<8>|512_median 1054 ns 1050 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 30.2 ns 36.6 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.87 % 3.47 % 4 -replace bb to ---- in lstringa<8>|1024_mean 1878 ns 1873 ns 4 -replace bb to ---- in lstringa<8>|1024_median 1881 ns 1904 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 59.8 ns 79.2 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 3.18 % 4.23 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3548 ns 3510 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3519 ns 3449 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 118 ns 120 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 3.32 % 3.43 % 4 -replace bb to ---- by init stringa|64_mean 162 ns 162 ns 4 -replace bb to ---- by init stringa|64_median 162 ns 164 ns 4 -replace bb to ---- by init stringa|64_stddev 3.71 ns 3.49 ns 4 -replace bb to ---- by init stringa|64_cv 2.29 % 2.15 % 4 -replace bb to ---- by init stringa|256_mean 363 ns 363 ns 4 -replace bb to ---- by init stringa|256_median 363 ns 365 ns 4 -replace bb to ---- by init stringa|256_stddev 4.53 ns 7.68 ns 4 -replace bb to ---- by init stringa|256_cv 1.25 % 2.12 % 4 -replace bb to ---- by init stringa|512_mean 789 ns 789 ns 4 -replace bb to ---- by init stringa|512_median 795 ns 793 ns 4 -replace bb to ---- by init stringa|512_stddev 13.0 ns 16.7 ns 4 -replace bb to ---- by init stringa|512_cv 1.65 % 2.12 % 4 -replace bb to ---- by init stringa|1024_mean 1587 ns 1578 ns 4 -replace bb to ---- by init stringa|1024_median 1580 ns 1569 ns 4 -replace bb to ---- by init stringa|1024_stddev 47.3 ns 43.9 ns 4 -replace bb to ---- by init stringa|1024_cv 2.98 % 2.78 % 4 -replace bb to ---- by init stringa|2048_mean 2912 ns 2916 ns 4 -replace bb to ---- by init stringa|2048_median 2914 ns 2916 ns 4 -replace bb to ---- by init stringa|2048_stddev 31.5 ns 0.000 ns 4 -replace bb to ---- by init stringa|2048_cv 1.08 % 0.00 % 4 +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 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 All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 181 ns 181 ns 4 -replace bb to -- in std::string|64_median 181 ns 180 ns 4 -replace bb to -- in std::string|64_stddev 2.34 ns 1.92 ns 4 -replace bb to -- in std::string|64_cv 1.29 % 1.06 % 4 -replace bb to -- in std::string|256_mean 480 ns 479 ns 4 -replace bb to -- in std::string|256_median 482 ns 481 ns 4 -replace bb to -- in std::string|256_stddev 16.6 ns 15.7 ns 4 -replace bb to -- in std::string|256_cv 3.47 % 3.28 % 4 -replace bb to -- in std::string|512_mean 826 ns 821 ns 4 -replace bb to -- in std::string|512_median 827 ns 816 ns 4 -replace bb to -- in std::string|512_stddev 18.6 ns 31.4 ns 4 -replace bb to -- in std::string|512_cv 2.25 % 3.82 % 4 -replace bb to -- in std::string|1024_mean 1598 ns 1593 ns 4 -replace bb to -- in std::string|1024_median 1594 ns 1601 ns 4 -replace bb to -- in std::string|1024_stddev 14.1 ns 15.7 ns 4 -replace bb to -- in std::string|1024_cv 0.88 % 0.99 % 4 -replace bb to -- in std::string|2048_mean 3822 ns 3788 ns 4 -replace bb to -- in std::string|2048_median 3798 ns 3767 ns 4 -replace bb to -- in std::string|2048_stddev 98.9 ns 105 ns 4 -replace bb to -- in std::string|2048_cv 2.59 % 2.78 % 4 -replace bb to -- in lstringa<8>|64_mean 174 ns 174 ns 4 -replace bb to -- in lstringa<8>|64_median 175 ns 173 ns 4 -replace bb to -- in lstringa<8>|64_stddev 4.46 ns 4.83 ns 4 -replace bb to -- in lstringa<8>|64_cv 2.56 % 2.78 % 4 -replace bb to -- in lstringa<8>|256_mean 429 ns 431 ns 4 -replace bb to -- in lstringa<8>|256_median 426 ns 431 ns 4 -replace bb to -- in lstringa<8>|256_stddev 8.03 ns 5.24 ns 4 -replace bb to -- in lstringa<8>|256_cv 1.87 % 1.22 % 4 -replace bb to -- in lstringa<8>|512_mean 733 ns 732 ns 4 -replace bb to -- in lstringa<8>|512_median 734 ns 732 ns 4 -replace bb to -- in lstringa<8>|512_stddev 10.9 ns 14.2 ns 4 -replace bb to -- in lstringa<8>|512_cv 1.48 % 1.94 % 4 -replace bb to -- in lstringa<8>|1024_mean 1377 ns 1374 ns 4 -replace bb to -- in lstringa<8>|1024_median 1381 ns 1381 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 25.4 ns 26.7 ns 4 -replace bb to -- in lstringa<8>|1024_cv 1.84 % 1.94 % 4 -replace bb to -- in lstringa<8>|2048_mean 2655 ns 2665 ns 4 -replace bb to -- in lstringa<8>|2048_median 2658 ns 2679 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 47.7 ns 27.9 ns 4 -replace bb to -- in lstringa<8>|2048_cv 1.80 % 1.05 % 4 -replace bb to -- by init stringa|64_mean 150 ns 148 ns 4 -replace bb to -- by init stringa|64_median 150 ns 151 ns 4 -replace bb to -- by init stringa|64_stddev 0.971 ns 4.71 ns 4 -replace bb to -- by init stringa|64_cv 0.65 % 3.17 % 4 -replace bb to -- by init stringa|256_mean 325 ns 324 ns 4 -replace bb to -- by init stringa|256_median 327 ns 326 ns 4 -replace bb to -- by init stringa|256_stddev 7.08 ns 7.01 ns 4 -replace bb to -- by init stringa|256_cv 2.18 % 2.16 % 4 -replace bb to -- by init stringa|512_mean 519 ns 520 ns 4 -replace bb to -- by init stringa|512_median 518 ns 516 ns 4 -replace bb to -- by init stringa|512_stddev 11.3 ns 7.81 ns 4 -replace bb to -- by init stringa|512_cv 2.18 % 1.50 % 4 -replace bb to -- by init stringa|1024_mean 1010 ns 1004 ns 4 -replace bb to -- by init stringa|1024_median 1004 ns 984 ns 4 -replace bb to -- by init stringa|1024_stddev 33.7 ns 41.9 ns 4 -replace bb to -- by init stringa|1024_cv 3.33 % 4.17 % 4 -replace bb to -- by init stringa|2048_mean 1741 ns 1746 ns 4 -replace bb to -- by init stringa|2048_median 1744 ns 1746 ns 4 -replace bb to -- by init stringa|2048_stddev 29.7 ns 22.2 ns 4 -replace bb to -- by init stringa|2048_cv 1.71 % 1.27 % 4 +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 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 4020366 ns 3993541 ns 4 -hashStrMapA emplace & find stringa;_median 4027278 ns 3971718 ns 4 -hashStrMapA emplace & find stringa;_stddev 58686 ns 83574 ns 4 -hashStrMapA emplace & find stringa;_cv 1.46 % 2.09 % 4 -std::unordered_map emplace & find std::string;_mean 5598760 ns 5625000 ns 4 -std::unordered_map emplace & find std::string;_median 5570685 ns 5625000 ns 4 -std::unordered_map emplace & find std::string;_stddev 117108 ns 127578 ns 4 -std::unordered_map emplace & find std::string;_cv 2.09 % 2.27 % 4 -hashStrMapA emplace & find ssa;_mean 3439706 ns 3445513 ns 4 -hashStrMapA emplace & find ssa;_median 3443476 ns 3445513 ns 4 -hashStrMapA emplace & find ssa;_stddev 17159 ns 0.000 ns 4 -hashStrMapA emplace & find ssa;_cv 0.50 % 0.00 % 4 -std::unordered_map emplace & find std::string_view;_mean 7068855 ns 7031250 ns 4 -std::unordered_map emplace & find std::string_view;_median 7075086 ns 7031250 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 78812 ns 100234 ns 4 -std::unordered_map emplace & find std::string_view;_cv 1.11 % 1.43 % 4 +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 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1506 ns 1508 ns 4 -Build func full name std::string;_median 1515 ns 1517 ns 4 -Build func full name std::string;_stddev 26.4 ns 33.4 ns 4 -Build func full name std::string;_cv 1.75 % 2.21 % 4 -Build func full name std::string 1;_mean 1582 ns 1578 ns 4 -Build func full name std::string 1;_median 1577 ns 1569 ns 4 -Build func full name std::string 1;_stddev 27.0 ns 52.3 ns 4 -Build func full name std::string 1;_cv 1.71 % 3.31 % 4 -Build func full name std::stream;_mean 8167 ns 8161 ns 4 -Build func full name std::stream;_median 8225 ns 8266 ns 4 -Build func full name std::stream;_stddev 207 ns 296 ns 4 -Build func full name std::stream;_cv 2.53 % 3.63 % 4 -Build func full name stringa;_mean 790 ns 793 ns 4 -Build func full name stringa;_median 793 ns 793 ns 4 -Build func full name stringa;_stddev 23.0 ns 30.2 ns 4 -Build func full name stringa;_cv 2.91 % 3.81 % 4 -Build func full name stringa 1;_mean 877 ns 874 ns 4 -Build func full name stringa 1;_median 882 ns 879 ns 4 -Build func full name stringa 1;_stddev 24.9 ns 31.4 ns 4 -Build func full name stringa 1;_cv 2.83 % 3.59 % 4 +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 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 1526 ns 1522 ns 4 -To upper case std::wstring_median 1528 ns 1522 ns 4 -To upper case std::wstring_stddev 40.3 ns 40.5 ns 4 -To upper case std::wstring_cv 2.64 % 2.66 % 4 -To upper case lstringw<15>_mean 40.3 ns 40.3 ns 4 -To upper case lstringw<15>_median 40.1 ns 40.0 ns 4 -To upper case lstringw<15>_stddev 0.578 ns 0.902 ns 4 -To upper case lstringw<15>_cv 1.43 % 2.24 % 4 +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 diff --git a/bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt b/bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt similarity index 56% rename from bench/results/003-Xeon E5-2682 v4, Windows 10, MSVC-19.txt rename to bench/results/004-Xeon E5-2682 v4, Windows 10, MSVC-19.txt index 5df7fa3..3f9e545 100644 --- a/bench/results/003-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.1 +Benchmarks of simstr, version 1.7.2 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html - -2026-02-21T15:52:40+03:00 +Compiler MSVC 19.44.35213.0 +2026-02-27T17:41:31+03:00 Running benchStr.exe Run on (32 X 2494 MHz CPU s) CPU Caches: @@ -14,970 +14,974 @@ CPU Caches: Benchmark Time CPU Iterations -------------------------------------------------------------------------------------------------------------------------------------------------------- ----- Concatenate email ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat email std::format_mean 254 ns 253 ns 4 -Concat email std::format_median 255 ns 255 ns 4 -Concat email std::format_stddev 5.59 ns 7.46 ns 4 -Concat email std::format_cv 2.20 % 2.94 % 4 -Concat email std::stringstream_mean 934 ns 926 ns 4 -Concat email std::stringstream_median 928 ns 921 ns 4 -Concat email std::stringstream_stddev 22.9 ns 26.3 ns 4 -Concat email std::stringstream_cv 2.46 % 2.84 % 4 -Concat email stringzilla append_mean 268 ns 268 ns 4 -Concat email stringzilla append_median 269 ns 267 ns 4 -Concat email stringzilla append_stddev 7.86 ns 7.46 ns 4 -Concat email stringzilla append_cv 2.93 % 2.78 % 4 -Concat email stringzilla concat_mean 129 ns 128 ns 4 -Concat email stringzilla concat_median 128 ns 127 ns 4 -Concat email stringzilla concat_stddev 2.39 ns 4.77 ns 4 -Concat email stringzilla concat_cv 1.86 % 3.73 % 4 -Concat email std::string append_mean 197 ns 196 ns 4 -Concat email std::string append_median 197 ns 195 ns 4 -Concat email std::string append_stddev 2.15 ns 2.27 ns 4 -Concat email std::string append_cv 1.09 % 1.16 % 4 -Concat email std::string by strexpr_mean 110 ns 108 ns 4 -Concat email std::string by strexpr_median 110 ns 109 ns 4 -Concat email std::string by strexpr_stddev 0.592 ns 2.34 ns 4 -Concat email std::string by strexpr_cv 0.54 % 2.16 % 4 -Concat email stringa_mean 99.5 ns 99.5 ns 4 -Concat email stringa_median 98.8 ns 98.9 ns 4 -Concat email stringa_stddev 2.19 ns 2.34 ns 4 -Concat email stringa_cv 2.20 % 2.35 % 4 +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 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 337 ns 337 ns 4 -Concat std::string and number by std to std::string_median 336 ns 337 ns 4 -Concat std::string and number by std to std::string_stddev 11.3 ns 8.46 ns 4 -Concat std::string and number by std to std::string_cv 3.37 % 2.51 % 4 -Concat std::string and number by StrExpr to std::string_mean 219 ns 219 ns 4 -Concat std::string and number by StrExpr to std::string_median 217 ns 220 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 10.4 ns 9.35 ns 4 -Concat std::string and number by StrExpr to std::string_cv 4.74 % 4.27 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 111 ns 110 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 110 ns 110 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 1.53 ns 1.22 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 1.38 % 1.10 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 116 ns 116 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 115 ns 117 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 2.84 ns 2.44 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 2.46 % 2.11 % 4 +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 ----- 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 1037 ns 1038 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 37.5 ns 41.7 ns 4 -Concat std::string and format hex number and literal to std::string_cv 3.60 % 3.99 % 4 -std::format std::string and hex number by literal to std::string_mean 1859 ns 1862 ns 4 -std::format std::string and hex number by literal to std::string_median 1870 ns 1883 ns 4 -std::format std::string and hex number by literal to std::string_stddev 58.4 ns 80.1 ns 4 -std::format std::string and hex number by literal to std::string_cv 3.14 % 4.30 % 4 -Concat std::string and std::to_chars and string to std::string_mean 256 ns 255 ns 4 -Concat std::string and std::to_chars and string to std::string_median 257 ns 254 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 4.89 ns 5.34 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 1.91 % 2.09 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 136 ns 134 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 135 ns 135 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 5.50 ns 6.47 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 4.06 % 4.82 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 105 ns 106 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 105 ns 106 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 1.32 ns 1.21 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.26 % 1.14 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 103 ns 103 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 104 ns 104 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 1.94 ns 2.00 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 1.88 % 1.94 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 176 ns 176 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 176 ns 176 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 2.14 ns 1.92 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 1.22 % 1.09 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 362 ns 363 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 13.2 ns 10.1 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 3.66 % 2.78 % 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 ---- 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 701 ns 698 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 703 ns 698 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 31.4 ns 31.8 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 4.48 % 4.56 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 798 ns 802 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 800 ns 802 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 19.7 ns 20.1 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.46 % 2.51 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1111 ns 1111 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1110 ns 1099 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 38.5 ns 42.3 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 3.46 % 3.81 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 1617 ns 1613 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 1609 ns 1604 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 42.6 ns 43.9 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 2.64 % 2.72 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 1440 ns 1436 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 1445 ns 1444 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 34.0 ns 39.5 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.36 % 2.75 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 1885 ns 1882 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 1889 ns 1882 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 45.4 ns 58.5 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.41 % 3.11 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 1957 ns 1946 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 1960 ns 1946 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 10.9 ns 24.2 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 0.55 % 1.24 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 7169 ns 7150 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 7125 ns 7150 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 236 ns 285 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.29 % 3.98 % 4 +"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 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 59.3 ns 59.3 ns 4 -Concat std::string by std to std::string_median 59.2 ns 59.3 ns 4 -Concat std::string by std to std::string_stddev 0.316 ns 0.805 ns 4 -Concat std::string by std to std::string_cv 0.53 % 1.36 % 4 -Concat std::string by StrExpr to std::string_mean 77.1 ns 77.2 ns 4 -Concat std::string by StrExpr to std::string_median 77.0 ns 76.7 ns 4 -Concat std::string by StrExpr to std::string_stddev 1.98 ns 2.62 ns 4 -Concat std::string by StrExpr to std::string_cv 2.57 % 3.39 % 4 -Concat stringa by StrExpr to stringa_mean 51.4 ns 51.3 ns 4 -Concat stringa by StrExpr to stringa_median 51.2 ns 50.9 ns 4 -Concat stringa by StrExpr to stringa_stddev 0.859 ns 1.34 ns 4 -Concat stringa by StrExpr to stringa_cv 1.67 % 2.61 % 4 +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 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 212 ns 212 ns 4 -Find concat three std::string_median 210 ns 212 ns 4 -Find concat three std::string_stddev 3.40 ns 6.30 ns 4 -Find concat three std::string_cv 1.60 % 2.97 % 4 -Find concat three strexpr_mean 123 ns 122 ns 4 -Find concat three strexpr_median 124 ns 122 ns 4 -Find concat three strexpr_stddev 2.58 ns 2.56 ns 4 -Find concat three strexpr_cv 2.10 % 2.09 % 4 -Find concat three simstr_mean 28.3 ns 28.3 ns 4 -Find concat three simstr_median 28.3 ns 28.5 ns 4 -Find concat three simstr_stddev 0.799 ns 0.994 ns 4 -Find concat three simstr_cv 2.82 % 3.51 % 4 -Find concat three stringzilla string_mean 231 ns 231 ns 4 -Find concat three stringzilla string_median 227 ns 227 ns 4 -Find concat three stringzilla string_stddev 14.6 ns 12.8 ns 4 -Find concat three stringzilla string_cv 6.33 % 5.57 % 4 +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 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 17.3 ns 17.2 ns 4 -BuildTypeNameStr 0/0_median 17.3 ns 17.3 ns 4 -BuildTypeNameStr 0/0_stddev 0.650 ns 0.596 ns 4 -BuildTypeNameStr 0/0_cv 3.77 % 3.47 % 4 -BuildTypeNameExp 0/0_mean 13.5 ns 13.5 ns 4 -BuildTypeNameExp 0/0_median 13.5 ns 13.5 ns 4 -BuildTypeNameExp 0/0_stddev 0.446 ns 0.573 ns 4 -BuildTypeNameExp 0/0_cv 3.31 % 4.25 % 4 -BuildTypeNameSim 0/0_mean 15.2 ns 15.1 ns 4 -BuildTypeNameSim 0/0_median 15.3 ns 15.2 ns 4 -BuildTypeNameSim 0/0_stddev 0.464 ns 0.334 ns 4 -BuildTypeNameSim 0/0_cv 3.05 % 2.21 % 4 -BuildTypeNameStr 10/10_mean 80.4 ns 80.2 ns 4 -BuildTypeNameStr 10/10_median 79.3 ns 79.3 ns 4 -BuildTypeNameStr 10/10_stddev 3.13 ns 2.47 ns 4 -BuildTypeNameStr 10/10_cv 3.89 % 3.07 % 4 -BuildTypeNameExp 10/10_mean 39.4 ns 39.5 ns 4 -BuildTypeNameExp 10/10_median 39.5 ns 39.7 ns 4 -BuildTypeNameExp 10/10_stddev 0.661 ns 0.768 ns 4 -BuildTypeNameExp 10/10_cv 1.68 % 1.94 % 4 -BuildTypeNameSim 10/10_mean 37.3 ns 37.3 ns 4 -BuildTypeNameSim 10/10_median 37.3 ns 37.1 ns 4 -BuildTypeNameSim 10/10_stddev 0.420 ns 0.835 ns 4 -BuildTypeNameSim 10/10_cv 1.13 % 2.24 % 4 +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 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 359 ns 361 ns 4 -Concat with replace str_median 355 ns 357 ns 4 -Concat with replace str_stddev 14.6 ns 16.6 ns 4 -Concat with replace str_cv 4.05 % 4.60 % 4 -Concat with replace exp_mean 220 ns 220 ns 4 -Concat with replace exp_median 219 ns 220 ns 4 -Concat with replace exp_stddev 2.01 ns 3.99 ns 4 -Concat with replace exp_cv 0.91 % 1.81 % 4 +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 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 2.60 ns 2.58 ns 4 -std::string e;_median 2.60 ns 2.58 ns 4 -std::string e;_stddev 0.037 ns 0.034 ns 4 -std::string e;_cv 1.41 % 1.33 % 4 -std::string_view e;_mean 1.84 ns 1.84 ns 4 -std::string_view e;_median 1.84 ns 1.81 ns 4 -std::string_view e;_stddev 0.034 ns 0.045 ns 4 -std::string_view e;_cv 1.84 % 2.47 % 4 -ssa e;_mean 1.87 ns 1.86 ns 4 -ssa e;_median 1.87 ns 1.86 ns 4 -ssa e;_stddev 0.034 ns 0.022 ns 4 -ssa e;_cv 1.80 % 1.19 % 4 -stringa e;_mean 2.21 ns 2.21 ns 4 -stringa e;_median 2.21 ns 2.22 ns 4 -stringa e;_stddev 0.042 ns 0.047 ns 4 -stringa e;_cv 1.90 % 2.12 % 4 -lstringa<20> e;_mean 2.59 ns 2.58 ns 4 -lstringa<20> e;_median 2.57 ns 2.55 ns 4 -lstringa<20> e;_stddev 0.067 ns 0.103 ns 4 -lstringa<20> e;_cv 2.59 % 3.98 % 4 -lstringa<40> e;_mean 2.59 ns 2.56 ns 4 -lstringa<40> e;_median 2.59 ns 2.58 ns 4 -lstringa<40> e;_stddev 0.028 ns 0.057 ns 4 -lstringa<40> e;_cv 1.07 % 2.21 % 4 +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 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 2.61 ns 2.61 ns 4 -std::string e = "Test text";_median 2.60 ns 2.59 ns 4 -std::string e = "Test text";_stddev 0.040 ns 0.053 ns 4 -std::string e = "Test text";_cv 1.54 % 2.05 % 4 -std::string_view e = "Test text";_mean 1.84 ns 1.84 ns 4 +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_view e = "Test text";_median 1.84 ns 1.84 ns 4 -std::string_view e = "Test text";_stddev 0.034 ns 0.034 ns 4 -std::string_view e = "Test text";_cv 1.85 % 1.86 % 4 -ssa e = "Test text";_mean 1.87 ns 1.85 ns 4 -ssa e = "Test text";_median 1.87 ns 1.86 ns 4 -ssa e = "Test text";_stddev 0.044 ns 0.040 ns 4 -ssa e = "Test text";_cv 2.35 % 2.16 % 4 -stringa e = "Test text";_mean 2.59 ns 2.58 ns 4 -stringa e = "Test text";_median 2.57 ns 2.57 ns 4 -stringa e = "Test text";_stddev 0.055 ns 0.070 ns 4 -stringa e = "Test text";_cv 2.11 % 2.72 % 4 -lstringa<20> e = "Test text";_mean 2.65 ns 2.62 ns 4 -lstringa<20> e = "Test text";_median 2.65 ns 2.64 ns 4 -lstringa<20> e = "Test text";_stddev 0.052 ns 0.057 ns 4 -lstringa<20> e = "Test text";_cv 1.98 % 2.16 % 4 -lstringa<40> e = "Test text";_mean 2.58 ns 2.58 ns 4 -lstringa<40> e = "Test text";_median 2.56 ns 2.58 ns 4 -lstringa<40> e = "Test text";_stddev 0.084 ns 0.077 ns 4 -lstringa<40> e = "Test text";_cv 3.24 % 2.97 % 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 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 80.5 ns 80.6 ns 4 -std::string e = "123456789012345678901234567890";_median 80.6 ns 80.9 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.02 ns 0.698 ns 4 -std::string e = "123456789012345678901234567890";_cv 1.27 % 0.87 % 4 -std::string_view e = "123456789012345678901234567890";_mean 1.80 ns 1.79 ns 4 -std::string_view e = "123456789012345678901234567890";_median 1.79 ns 1.79 ns 4 -std::string_view e = "123456789012345678901234567890";_stddev 0.026 ns 0.026 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 1.42 % 1.46 % 4 -ssa e = "123456789012345678901234567890";_mean 1.87 ns 1.87 ns 4 -ssa e = "123456789012345678901234567890";_median 1.86 ns 1.88 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.015 ns 0.021 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.80 % 1.12 % 4 -stringa e = "123456789012345678901234567890";_mean 2.89 ns 2.87 ns 4 -stringa e = "123456789012345678901234567890";_median 2.89 ns 2.89 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.029 ns 0.031 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.00 % 1.09 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 76.2 ns 75.9 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 76.3 ns 75.3 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 2.43 ns 2.63 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 3.19 % 3.47 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 3.40 ns 3.39 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 3.40 ns 3.41 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.076 ns 0.070 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 2.23 % 2.07 % 4 +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 ----- 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.98 ns 6.02 ns 4 -std::string e = "Test text"; auto c{e};_median 6.00 ns 6.09 ns 4 -std::string e = "Test text"; auto c{e};_stddev 0.091 ns 0.156 ns 4 -std::string e = "Test text"; auto c{e};_cv 1.52 % 2.60 % 4 -std::string_view e = "Test text"; auto c{e};_mean 3.49 ns 3.49 ns 4 -std::string_view e = "Test text"; auto c{e};_median 3.48 ns 3.49 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.025 ns 0.044 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 0.71 % 1.27 % 4 -ssa e = "Test text"; auto c{e};_mean 3.51 ns 3.49 ns 4 -ssa e = "Test text"; auto c{e};_median 3.51 ns 3.45 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.057 ns 0.077 ns 4 -ssa e = "Test text"; auto c{e};_cv 1.61 % 2.20 % 4 -stringa e = "Test text"; auto c{e};_mean 4.07 ns 4.07 ns 4 -stringa e = "Test text"; auto c{e};_median 4.07 ns 4.10 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.121 ns 0.090 ns 4 -stringa e = "Test text"; auto c{e};_cv 2.97 % 2.21 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.75 ns 4.73 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.76 ns 4.76 ns 4 -lstringa<20> e = "Test text"; auto c{e};_stddev 0.072 ns 0.100 ns 4 -lstringa<20> e = "Test text"; auto c{e};_cv 1.52 % 2.12 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 4.91 ns 4.92 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 4.89 ns 4.92 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.072 ns 0.090 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.47 % 1.83 % 4 +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 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890"; auto c{e};_mean 77.8 ns 77.4 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 78.1 ns 78.1 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 0.841 ns 1.40 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 1.08 % 1.80 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.85 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_median 1.86 ns 1.82 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_stddev 0.029 ns 0.054 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.58 % 2.97 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 1.85 ns 1.84 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 1.85 ns 1.84 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.014 ns 0.031 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 0.74 % 1.70 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 3.01 ns 3.00 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 3.01 ns 2.98 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.078 ns 0.033 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 2.59 % 1.10 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 82.2 ns 82.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 82.2 ns 82.0 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 2.39 ns 2.85 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 2.91 % 3.47 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 7.97 ns 7.93 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 7.99 ns 7.93 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.060 ns 0.101 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 0.75 % 1.27 % 4 +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 ----- Find 9 symbols text in end of 99 symbols text ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -sz::string::find;_mean 116 ns 115 ns 4 -sz::string::find;_median 116 ns 114 ns 4 -sz::string::find;_stddev 1.34 ns 1.40 ns 4 -sz::string::find;_cv 1.15 % 1.21 % 4 -std::string::find;_mean 40.4 ns 40.3 ns 4 -std::string::find;_median 40.2 ns 40.5 ns 4 -std::string::find;_stddev 0.355 ns 0.835 ns 4 -std::string::find;_cv 0.88 % 2.07 % 4 -std::string_view::find;_mean 39.5 ns 39.4 ns 4 -std::string_view::find;_median 39.2 ns 39.0 ns 4 -std::string_view::find;_stddev 0.820 ns 0.907 ns 4 -std::string_view::find;_cv 2.07 % 2.30 % 4 -ssa::find;_mean 22.2 ns 22.2 ns 4 -ssa::find;_median 22.2 ns 22.2 ns 4 -ssa::find;_stddev 0.145 ns 0.000 ns 4 -ssa::find;_cv 0.65 % 0.00 % 4 -stringa::find;_mean 31.4 ns 31.4 ns 4 -stringa::find;_median 31.4 ns 31.4 ns 4 -stringa::find;_stddev 0.586 ns 0.805 ns 4 -stringa::find;_cv 1.87 % 2.57 % 4 -lstringa<20>::find;_mean 22.4 ns 22.2 ns 4 -lstringa<20>::find;_median 22.4 ns 22.0 ns 4 -lstringa<20>::find;_stddev 0.211 ns 0.488 ns 4 -lstringa<20>::find;_cv 0.94 % 2.20 % 4 -lstringa<40>::find;_mean 22.0 ns 22.0 ns 4 -lstringa<40>::find;_median 21.9 ns 21.7 ns 4 -lstringa<40>::find;_stddev 0.509 ns 0.691 ns 4 -lstringa<40>::find;_cv 2.31 % 3.14 % 4 +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 ------- 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.26 ns 5.20 ns 4 -std::string copy{str_with_len_N};/15_median 5.26 ns 5.23 ns 4 -std::string copy{str_with_len_N};/15_stddev 0.147 ns 0.150 ns 4 -std::string copy{str_with_len_N};/15_cv 2.80 % 2.88 % 4 -std::string copy{str_with_len_N};/16_mean 83.1 ns 83.0 ns 4 -std::string copy{str_with_len_N};/16_median 81.4 ns 80.9 ns 4 -std::string copy{str_with_len_N};/16_stddev 4.54 ns 4.19 ns 4 -std::string copy{str_with_len_N};/16_cv 5.45 % 5.04 % 4 -std::string copy{str_with_len_N};/23_mean 82.5 ns 82.1 ns 4 -std::string copy{str_with_len_N};/23_median 83.2 ns 82.7 ns 4 -std::string copy{str_with_len_N};/23_stddev 2.59 ns 2.00 ns 4 -std::string copy{str_with_len_N};/23_cv 3.14 % 2.44 % 4 -std::string copy{str_with_len_N};/24_mean 82.7 ns 82.7 ns 4 -std::string copy{str_with_len_N};/24_median 81.2 ns 81.6 ns 4 -std::string copy{str_with_len_N};/24_stddev 3.78 ns 3.62 ns 4 -std::string copy{str_with_len_N};/24_cv 4.57 % 4.38 % 4 -std::string copy{str_with_len_N};/32_mean 83.9 ns 84.1 ns 4 -std::string copy{str_with_len_N};/32_median 83.7 ns 83.7 ns 4 -std::string copy{str_with_len_N};/32_stddev 0.839 ns 0.872 ns 4 -std::string copy{str_with_len_N};/32_cv 1.00 % 1.04 % 4 -std::string copy{str_with_len_N};/64_mean 85.2 ns 84.8 ns 4 -std::string copy{str_with_len_N};/64_median 85.5 ns 85.8 ns 4 -std::string copy{str_with_len_N};/64_stddev 2.74 ns 3.62 ns 4 -std::string copy{str_with_len_N};/64_cv 3.22 % 4.28 % 4 -std::string copy{str_with_len_N};/128_mean 86.3 ns 85.8 ns 4 -std::string copy{str_with_len_N};/128_median 86.2 ns 85.8 ns 4 -std::string copy{str_with_len_N};/128_stddev 1.11 ns 1.71 ns 4 -std::string copy{str_with_len_N};/128_cv 1.29 % 1.99 % 4 -std::string copy{str_with_len_N};/256_mean 88.9 ns 88.5 ns 4 -std::string copy{str_with_len_N};/256_median 88.6 ns 88.1 ns 4 -std::string copy{str_with_len_N};/256_stddev 2.84 ns 2.98 ns 4 -std::string copy{str_with_len_N};/256_cv 3.20 % 3.37 % 4 -std::string copy{str_with_len_N};/512_mean 93.3 ns 93.3 ns 4 -std::string copy{str_with_len_N};/512_median 93.4 ns 93.3 ns 4 -std::string copy{str_with_len_N};/512_stddev 2.49 ns 2.25 ns 4 -std::string copy{str_with_len_N};/512_cv 2.67 % 2.41 % 4 -std::string copy{str_with_len_N};/1024_mean 99.3 ns 99.5 ns 4 -std::string copy{str_with_len_N};/1024_median 97.8 ns 97.7 ns 4 -std::string copy{str_with_len_N};/1024_stddev 4.44 ns 3.66 ns 4 -std::string copy{str_with_len_N};/1024_cv 4.47 % 3.68 % 4 -std::string copy{str_with_len_N};/2048_mean 131 ns 130 ns 4 +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};/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};/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 4.08 ns 4.19 ns 4 -std::string copy{str_with_len_N};/2048_cv 3.11 % 3.21 % 4 -std::string copy{str_with_len_N};/4096_mean 184 ns 184 ns 4 -std::string copy{str_with_len_N};/4096_median 184 ns 184 ns 4 -std::string copy{str_with_len_N};/4096_stddev 4.50 ns 3.42 ns 4 -std::string copy{str_with_len_N};/4096_cv 2.44 % 1.86 % 4 -stringa copy{str_with_len_N};/15_mean 4.06 ns 4.02 ns 4 -stringa copy{str_with_len_N};/15_median 4.06 ns 4.02 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.012 ns 0.068 ns 4 -stringa copy{str_with_len_N};/15_cv 0.28 % 1.70 % 4 -stringa copy{str_with_len_N};/16_mean 4.11 ns 4.08 ns 4 -stringa copy{str_with_len_N};/16_median 4.12 ns 4.14 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.061 ns 0.165 ns 4 -stringa copy{str_with_len_N};/16_cv 1.49 % 4.05 % 4 -stringa copy{str_with_len_N};/23_mean 3.97 ns 3.96 ns 4 -stringa copy{str_with_len_N};/23_median 3.94 ns 3.96 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.085 ns 0.077 ns 4 -stringa copy{str_with_len_N};/23_cv 2.14 % 1.94 % 4 -stringa copy{str_with_len_N};/24_mean 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/24_median 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.190 ns 0.000 ns 4 -stringa copy{str_with_len_N};/24_cv 1.03 % 0.00 % 4 -stringa copy{str_with_len_N};/32_mean 19.0 ns 18.9 ns 4 -stringa copy{str_with_len_N};/32_median 19.0 ns 18.8 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.782 ns 0.935 ns 4 -stringa copy{str_with_len_N};/32_cv 4.12 % 4.94 % 4 -stringa copy{str_with_len_N};/64_mean 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/64_median 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.245 ns 0.342 ns 4 -stringa copy{str_with_len_N};/64_cv 1.33 % 1.86 % 4 -stringa copy{str_with_len_N};/128_mean 18.9 ns 18.7 ns 4 -stringa copy{str_with_len_N};/128_median 18.6 ns 18.6 ns 4 -stringa copy{str_with_len_N};/128_stddev 0.677 ns 0.715 ns 4 -stringa copy{str_with_len_N};/128_cv 3.58 % 3.82 % 4 -stringa copy{str_with_len_N};/256_mean 18.5 ns 18.5 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 +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};/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.173 ns 0.209 ns 4 -stringa copy{str_with_len_N};/256_cv 0.93 % 1.13 % 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.6 ns 18.4 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.187 ns 0.342 ns 4 -stringa copy{str_with_len_N};/512_cv 1.01 % 1.86 % 4 -stringa copy{str_with_len_N};/1024_mean 18.8 ns 18.6 ns 4 -stringa copy{str_with_len_N};/1024_median 18.8 ns 18.8 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.332 ns 0.419 ns 4 -stringa copy{str_with_len_N};/1024_cv 1.77 % 2.25 % 4 -stringa copy{str_with_len_N};/2048_mean 18.5 ns 18.3 ns 4 -stringa copy{str_with_len_N};/2048_median 18.5 ns 18.4 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.053 ns 0.527 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.28 % 2.88 % 4 -stringa copy{str_with_len_N};/4096_mean 18.7 ns 18.5 ns 4 -stringa copy{str_with_len_N};/4096_median 18.7 ns 18.4 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.218 ns 0.209 ns 4 -stringa copy{str_with_len_N};/4096_cv 1.17 % 1.13 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.59 ns 4.58 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.57 ns 4.60 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.080 ns 0.097 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 1.75 % 2.12 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 9.69 ns 9.63 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 9.69 ns 9.73 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.099 ns 0.296 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 1.03 % 3.07 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 9.56 ns 9.57 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 9.57 ns 9.52 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.057 ns 0.200 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 0.59 % 2.09 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 81.8 ns 80.6 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 82.4 ns 80.6 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 3.40 ns 2.70 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 4.16 % 3.35 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 85.0 ns 84.2 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 84.5 ns 83.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 1.42 ns 2.63 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 1.67 % 3.13 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 83.6 ns 83.7 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 84.3 ns 84.6 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 3.31 ns 3.77 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 3.96 % 4.50 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 89.7 ns 90.0 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 88.7 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 4.40 ns 4.52 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 4.90 % 5.02 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 89.5 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 89.9 ns 88.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 1.18 ns 1.21 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 1.32 % 1.36 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 90.5 ns 90.5 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 90.0 ns 91.0 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 1.67 ns 2.00 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 1.85 % 2.21 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 99.9 ns 98.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 99.9 ns 98.9 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 3.98 ns 3.15 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 3.98 % 3.19 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 129 ns 129 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 130 ns 130 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 4.82 ns 4.77 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 3.73 % 3.69 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 189 ns 190 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 189 ns 190 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 2.15 ns 2.22 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 1.14 % 1.17 % 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.41 ns 4.39 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.071 ns 0.080 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 1.62 % 1.81 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 9.33 ns 9.31 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 9.31 ns 9.31 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.053 ns 0.121 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 0.56 % 1.30 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 9.47 ns 9.47 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 9.51 ns 9.52 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.145 ns 0.200 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 1.53 % 2.12 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 9.35 ns 9.37 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 9.36 ns 9.42 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.114 ns 0.087 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 1.22 % 0.93 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 12.4 ns 12.2 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 12.4 ns 12.2 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.107 ns 0.199 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 0.87 % 1.63 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 12.4 ns 12.4 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.453 ns 0.483 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 3.64 % 3.89 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 12.8 ns 12.7 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 12.8 ns 12.7 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.262 ns 0.360 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 2.05 % 2.84 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 13.9 ns 13.9 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 13.9 ns 14.0 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.192 ns 0.301 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 1.39 % 2.16 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 15.6 ns 15.6 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 15.7 ns 15.7 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.104 ns 0.174 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 0.67 % 1.12 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 99.7 ns 99.9 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 97.7 ns 98.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 5.83 ns 6.48 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 5.85 % 6.48 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 128 ns 129 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 129 ns 129 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 2.08 ns 2.56 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 1.62 % 1.99 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 190 ns 190 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 191 ns 193 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 3.15 ns 4.19 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 1.66 % 2.20 % 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 +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 ----- Convert to int '1234567' ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_mean 31.8 ns 31.7 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_median 31.7 ns 31.7 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_stddev 0.184 ns 0.403 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 0.58 % 1.27 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 12.0 ns 12.0 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 12.0 ns 11.9 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.143 ns 0.157 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.20 % 1.31 % 4 -stringa s = "123456789"; int res = s.to_int_mean 17.3 ns 17.1 ns 4 -stringa s = "123456789"; int res = s.to_int_median 17.0 ns 16.9 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 0.832 ns 0.493 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 4.81 % 2.89 % 4 -ssa s = "123456789"; int res = s.to_int_mean 15.4 ns 15.3 ns 4 -ssa s = "123456789"; int res = s.to_int_median 15.3 ns 15.3 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.262 ns 0.000 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.70 % 0.00 % 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.7 ns 14.8 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.315 ns 0.314 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.13 % 2.15 % 4 +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 ----- 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 35.1 ns 35.1 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 35.1 ns 34.9 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 0.755 ns 0.735 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 2.15 % 2.09 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 8.95 ns 8.98 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 8.96 ns 8.98 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.259 ns 0.225 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 2.90 % 2.51 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 14.5 ns 14.4 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 14.5 ns 14.4 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 0.197 ns 0.000 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 1.36 % 0.00 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 12.3 ns 12.3 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 12.1 ns 12.1 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.375 ns 0.395 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 3.04 % 3.21 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 13.1 ns 13.1 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 13.0 ns 13.0 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.279 ns 0.301 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 2.13 % 2.29 % 4 +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 ----- 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 46.9 ns 47.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 46.9 ns 47.0 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 0.842 ns 0.624 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 1.79 % 1.33 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 22.2 ns 22.2 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 22.2 ns 22.2 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.407 ns 0.302 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 1.83 % 1.36 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 18.8 ns 18.8 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 18.9 ns 18.8 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.373 ns 0.483 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 1.98 % 2.57 % 4 +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 ----- 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 100 ns 100 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 2.49 ns 1.71 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.49 % 1.70 % 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_mean 87.4 ns 87.4 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_median 87.5 ns 86.8 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_stddev 2.69 ns 2.00 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 3.07 % 2.29 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 38.0 ns 37.6 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 38.0 ns 37.6 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.840 ns 1.17 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 2.21 % 3.11 % 4 +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 -- 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 5729 ns 5742 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 5679 ns 5703 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 174 ns 267 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 3.04 % 4.65 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 1363 ns 1367 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 1362 ns 1367 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 13.1 ns 0.000 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 0.96 % 0.00 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 970 ns 952 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 966 ns 952 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 61.2 ns 27.0 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 6.31 % 2.84 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 542 ns 541 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_median 541 ns 544 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_stddev 6.01 ns 6.98 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 1.11 % 1.29 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 369 ns 369 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 368 ns 369 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 7.80 ns 6.55 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.11 % 1.77 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 230 ns 229 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 229 ns 230 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 2.33 ns 2.62 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 1.01 % 1.14 % 4 +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 -- 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 5840 ns 5790 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 5862 ns 5790 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 127 ns 180 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.18 % 3.11 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 3841 ns 3831 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 3824 ns 3809 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 81.4 ns 114 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 2.12 % 2.98 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 856 ns 854 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 855 ns 854 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 12.1 ns 14.2 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.42 % 1.67 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 542 ns 544 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 539 ns 537 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.0 ns 19.7 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 3.14 % 3.63 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 391 ns 391 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 386 ns 385 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 18.7 ns 17.8 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.77 % 4.55 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 288 ns 286 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 288 ns 288 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 2.72 ns 5.68 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.95 % 1.98 % 4 +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 +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 -- 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 288424 ns 287201 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 287662 ns 285632 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 5681 ns 6010 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 1.97 % 2.09 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 189131 ns 185904 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 187276 ns 188171 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 6887 ns 6412 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.64 % 3.45 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 24955 ns 24833 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 24978 ns 25112 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 449 ns 558 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.80 % 2.25 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 21987 ns 21973 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22008 ns 21973 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 281 ns 399 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.28 % 1.81 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 22099 ns 22095 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 22048 ns 21973 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 372 ns 614 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.68 % 2.78 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 23376 ns 23411 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 23176 ns 23280 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 644 ns 893 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.76 % 3.82 % 4 +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 -- 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 5471 ns 5476 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 5512 ns 5580 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 135 ns 209 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 2.46 % 3.82 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 4091 ns 4033 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 4105 ns 4011 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 39.7 ns 43.6 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 0.97 % 1.08 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 933 ns 926 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 921 ns 921 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 30.2 ns 46.4 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.24 % 5.01 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 641 ns 632 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 636 ns 637 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 13.6 ns 16.7 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 2.12 % 2.64 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 483 ns 481 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 482 ns 487 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 5.77 ns 10.8 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.19 % 2.25 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 389 ns 382 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 392 ns 384 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 9.84 ns 9.65 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 2.53 % 2.53 % 4 +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 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 12668 ns 12695 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 12625 ns 12695 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 1072 ns 1031 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 8.47 % 8.12 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1270 ns 1270 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1278 ns 1283 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 47.4 ns 48.3 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.73 % 3.81 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 2806 ns 2802 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 2805 ns 2787 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 85.0 ns 88.9 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 3.03 % 3.17 % 4 -std::string str = std::format("test = {} times", k);_mean 2376 ns 2372 ns 4 -std::string str = std::format("test = {} times", k);_median 2376 ns 2372 ns 4 -std::string str = std::format("test = {} times", k);_stddev 20.9 ns 32.2 ns 4 -std::string str = std::format("test = {} times", k);_cv 0.88 % 1.36 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 2630 ns 2624 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 2631 ns 2638 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 35.8 ns 56.8 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 1.36 % 2.16 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 1546 ns 1535 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 1546 ns 1517 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 24.0 ns 49.3 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.56 % 3.21 % 4 -lstringa<8> str = "test = " + k + " times";_mean 925 ns 926 ns 4 -lstringa<8> str = "test = " + k + " times";_median 926 ns 931 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 13.6 ns 20.0 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 1.47 % 2.16 % 4 -lstringa<32> str = "test = " + k + " times";_mean 173 ns 172 ns 4 -lstringa<32> str = "test = " + k + " times";_median 173 ns 172 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 1.09 ns 3.42 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 0.63 % 1.99 % 4 -stringa str = "test = " + k + " times";_mean 180 ns 179 ns 4 -stringa str = "test = " + k + " times";_median 179 ns 180 ns 4 -stringa str = "test = " + k + " times";_stddev 2.02 ns 2.09 ns 4 -stringa str = "test = " + k + " times";_cv 1.13 % 1.17 % 4 +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 +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 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 556 ns 551 ns 4 -std::string::find + substr + std::strtol_median 557 ns 551 ns 4 -std::string::find + substr + std::strtol_stddev 8.24 ns 8.05 ns 4 -std::string::find + substr + std::strtol_cv 1.48 % 1.46 % 4 -ssa::splitter + ssa::as_int_mean 302 ns 298 ns 4 -ssa::splitter + ssa::as_int_median 300 ns 296 ns 4 -ssa::splitter + ssa::as_int_stddev 7.11 ns 6.68 ns 4 -ssa::splitter + ssa::as_int_cv 2.35 % 2.24 % 4 -ssa::splitf + functor_mean 216 ns 216 ns 4 -ssa::splitf + functor_median 216 ns 217 ns 4 -ssa::splitf + functor_stddev 4.09 ns 4.67 ns 4 -ssa::splitf + functor_cv 1.90 % 2.16 % 4 +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 -- 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 1259 ns 1256 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 1264 ns 1256 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 34.3 ns 22.8 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 2.72 % 1.81 % 4 -replace symbols with std::string find_first_of + replace_mean 2262 ns 2223 ns 4 -replace symbols with std::string find_first_of + replace_median 2279 ns 2223 ns 4 -replace symbols with std::string find_first_of + replace_stddev 47.6 ns 67.5 ns 4 -replace symbols with std::string find_first_of + replace_cv 2.10 % 3.04 % 4 -replace symbols with std::string_view find_first_of + copy_mean 2618 ns 2623 ns 4 -replace symbols with std::string_view find_first_of + copy_median 2609 ns 2623 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 51.2 ns 45.6 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 1.96 % 1.74 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 1689 ns 1692 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 1687 ns 1692 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 34.4 ns 45.0 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 2.04 % 2.66 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 1490 ns 1491 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 1487 ns 1482 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 43.2 ns 59.6 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.90 % 3.99 % 4 -replace const symbols with string expressions and without remembering all search results_mean 1255 ns 1251 ns 4 -replace const symbols with string expressions and without remembering all search results_median 1247 ns 1245 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 21.4 ns 12.2 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 1.70 % 0.98 % 4 -replace const symbols with string expressions and memorization of all search results_mean 1217 ns 1221 ns 4 -replace const symbols with string expressions and memorization of all search results_median 1205 ns 1208 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 36.0 ns 34.5 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 2.96 % 2.83 % 4 +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 -- 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 330 ns 330 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 333 ns 333 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 9.90 ns 10.4 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 3.00 % 3.14 % 4 -Short replace symbols with std::string find_first_of + replace_mean 423 ns 422 ns 4 -Short replace symbols with std::string find_first_of + replace_median 422 ns 425 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 7.83 ns 9.35 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.85 % 2.21 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 350 ns 345 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 348 ns 345 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 8.01 ns 6.26 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 2.29 % 1.81 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 312 ns 310 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 309 ns 307 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 7.64 ns 6.98 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 2.45 % 2.25 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 418 ns 417 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 418 ns 414 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 2.68 ns 4.71 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 0.64 % 1.13 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 252 ns 250 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 251 ns 251 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 4.44 ns 2.62 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 1.76 % 1.05 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 325 ns 326 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 325 ns 326 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 5.25 ns 4.43 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 1.62 % 1.36 % 4 +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 ----- 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 239 ns 4 -replace bb to ---- in std::string|64_median 237 ns 238 ns 4 -replace bb to ---- in std::string|64_stddev 8.97 ns 8.93 ns 4 -replace bb to ---- in std::string|64_cv 3.76 % 3.73 % 4 -replace bb to ---- in std::string|256_mean 796 ns 789 ns 4 -replace bb to ---- in std::string|256_median 800 ns 793 ns 4 -replace bb to ---- in std::string|256_stddev 19.0 ns 16.7 ns 4 -replace bb to ---- in std::string|256_cv 2.39 % 2.12 % 4 -replace bb to ---- in std::string|512_mean 1522 ns 1508 ns 4 -replace bb to ---- in std::string|512_median 1521 ns 1500 ns 4 -replace bb to ---- in std::string|512_stddev 24.6 ns 17.4 ns 4 -replace bb to ---- in std::string|512_cv 1.61 % 1.16 % 4 -replace bb to ---- in std::string|1024_mean 3121 ns 3113 ns 4 -replace bb to ---- in std::string|1024_median 3124 ns 3113 ns 4 -replace bb to ---- in std::string|1024_stddev 62.0 ns 42.3 ns 4 -replace bb to ---- in std::string|1024_cv 1.99 % 1.36 % 4 -replace bb to ---- in std::string|2048_mean 7894 ns 7891 ns 4 -replace bb to ---- in std::string|2048_median 7831 ns 7847 ns 4 -replace bb to ---- in std::string|2048_stddev 163 ns 219 ns 4 -replace bb to ---- in std::string|2048_cv 2.07 % 2.78 % 4 -replace bb to ---- in lstringa<8>|64_mean 230 ns 229 ns 4 -replace bb to ---- in lstringa<8>|64_median 230 ns 230 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 4.16 ns 2.62 ns 4 -replace bb to ---- in lstringa<8>|64_cv 1.81 % 1.14 % 4 -replace bb to ---- in lstringa<8>|256_mean 671 ns 673 ns 4 -replace bb to ---- in lstringa<8>|256_median 672 ns 670 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 20.3 ns 20.9 ns 4 -replace bb to ---- in lstringa<8>|256_cv 3.02 % 3.11 % 4 -replace bb to ---- in lstringa<8>|512_mean 1119 ns 1123 ns 4 -replace bb to ---- in lstringa<8>|512_median 1126 ns 1135 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 42.5 ns 34.5 ns 4 -replace bb to ---- in lstringa<8>|512_cv 3.80 % 3.07 % 4 -replace bb to ---- in lstringa<8>|1024_mean 2032 ns 2029 ns 4 -replace bb to ---- in lstringa<8>|1024_median 2036 ns 2040 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 45.3 ns 57.1 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 2.23 % 2.81 % 4 -replace bb to ---- in lstringa<8>|2048_mean 3867 ns 3858 ns 4 -replace bb to ---- in lstringa<8>|2048_median 3861 ns 3836 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 92.9 ns 110 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 2.40 % 2.84 % 4 -replace bb to ---- by init stringa|64_mean 200 ns 199 ns 4 +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 5.09 ns 3.70 ns 4 -replace bb to ---- by init stringa|64_cv 2.55 % 1.86 % 4 -replace bb to ---- by init stringa|256_mean 463 ns 463 ns 4 -replace bb to ---- by init stringa|256_median 464 ns 465 ns 4 -replace bb to ---- by init stringa|256_stddev 2.78 ns 5.06 ns 4 -replace bb to ---- by init stringa|256_cv 0.60 % 1.09 % 4 -replace bb to ---- by init stringa|512_mean 1075 ns 1074 ns 4 -replace bb to ---- by init stringa|512_median 1080 ns 1086 ns 4 -replace bb to ---- by init stringa|512_stddev 33.4 ns 34.5 ns 4 -replace bb to ---- by init stringa|512_cv 3.11 % 3.21 % 4 -replace bb to ---- by init stringa|1024_mean 2167 ns 2161 ns 4 -replace bb to ---- by init stringa|1024_median 2185 ns 2173 ns 4 -replace bb to ---- by init stringa|1024_stddev 38.1 ns 46.7 ns 4 -replace bb to ---- by init stringa|1024_cv 1.76 % 2.16 % 4 -replace bb to ---- by init stringa|2048_mean 4357 ns 4368 ns 4 -replace bb to ---- by init stringa|2048_median 4361 ns 4342 ns 4 -replace bb to ---- by init stringa|2048_stddev 79.5 ns 100 ns 4 -replace bb to ---- by init stringa|2048_cv 1.82 % 2.29 % 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 All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 201 ns 200 ns 4 -replace bb to -- in std::string|64_median 201 ns 198 ns 4 -replace bb to -- in std::string|64_stddev 5.09 ns 6.91 ns 4 -replace bb to -- in std::string|64_cv 2.53 % 3.45 % 4 -replace bb to -- in std::string|256_mean 517 ns 512 ns 4 -replace bb to -- in std::string|256_median 518 ns 508 ns 4 -replace bb to -- in std::string|256_stddev 6.85 ns 15.0 ns 4 -replace bb to -- in std::string|256_cv 1.32 % 2.92 % 4 -replace bb to -- in std::string|512_mean 924 ns 922 ns 4 -replace bb to -- in std::string|512_median 921 ns 916 ns 4 -replace bb to -- in std::string|512_stddev 27.9 ns 41.7 ns 4 -replace bb to -- in std::string|512_cv 3.02 % 4.52 % 4 -replace bb to -- in std::string|1024_mean 1771 ns 1765 ns 4 -replace bb to -- in std::string|1024_median 1772 ns 1765 ns 4 -replace bb to -- in std::string|1024_stddev 15.3 ns 31.3 ns 4 -replace bb to -- in std::string|1024_cv 0.86 % 1.77 % 4 -replace bb to -- in std::string|2048_mean 3511 ns 3516 ns 4 -replace bb to -- in std::string|2048_median 3496 ns 3516 ns 4 -replace bb to -- in std::string|2048_stddev 51.6 ns 59.8 ns 4 -replace bb to -- in std::string|2048_cv 1.47 % 1.70 % 4 -replace bb to -- in lstringa<8>|64_mean 189 ns 187 ns 4 -replace bb to -- in lstringa<8>|64_median 189 ns 184 ns 4 -replace bb to -- in lstringa<8>|64_stddev 6.53 ns 8.58 ns 4 -replace bb to -- in lstringa<8>|64_cv 3.46 % 4.59 % 4 -replace bb to -- in lstringa<8>|256_mean 434 ns 430 ns 4 -replace bb to -- in lstringa<8>|256_median 434 ns 430 ns 4 -replace bb to -- in lstringa<8>|256_stddev 4.24 ns 5.84 ns 4 -replace bb to -- in lstringa<8>|256_cv 0.98 % 1.36 % 4 -replace bb to -- in lstringa<8>|512_mean 779 ns 772 ns 4 -replace bb to -- in lstringa<8>|512_median 776 ns 776 ns 4 -replace bb to -- in lstringa<8>|512_stddev 17.2 ns 29.8 ns 4 -replace bb to -- in lstringa<8>|512_cv 2.21 % 3.86 % 4 -replace bb to -- in lstringa<8>|1024_mean 1465 ns 1465 ns 4 -replace bb to -- in lstringa<8>|1024_median 1465 ns 1465 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 41.6 ns 63.7 ns 4 -replace bb to -- in lstringa<8>|1024_cv 2.84 % 4.35 % 4 -replace bb to -- in lstringa<8>|2048_mean 2810 ns 2778 ns 4 -replace bb to -- in lstringa<8>|2048_median 2820 ns 2762 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 39.1 ns 31.4 ns 4 -replace bb to -- in lstringa<8>|2048_cv 1.39 % 1.13 % 4 -replace bb to -- by init stringa|64_mean 166 ns 165 ns 4 -replace bb to -- by init stringa|64_median 165 ns 164 ns 4 -replace bb to -- by init stringa|64_stddev 3.49 ns 1.74 ns 4 -replace bb to -- by init stringa|64_cv 2.11 % 1.06 % 4 -replace bb to -- by init stringa|256_mean 375 ns 373 ns 4 -replace bb to -- by init stringa|256_median 374 ns 373 ns 4 -replace bb to -- by init stringa|256_stddev 11.1 ns 10.4 ns 4 -replace bb to -- by init stringa|256_cv 2.95 % 2.78 % 4 -replace bb to -- by init stringa|512_mean 621 ns 617 ns 4 -replace bb to -- by init stringa|512_median 621 ns 614 ns 4 -replace bb to -- by init stringa|512_stddev 3.82 ns 6.98 ns 4 -replace bb to -- by init stringa|512_cv 0.62 % 1.13 % 4 -replace bb to -- by init stringa|1024_mean 1112 ns 1111 ns 4 -replace bb to -- by init stringa|1024_median 1117 ns 1111 ns 4 -replace bb to -- by init stringa|1024_stddev 11.6 ns 14.1 ns 4 -replace bb to -- by init stringa|1024_cv 1.04 % 1.27 % 4 -replace bb to -- by init stringa|2048_mean 2125 ns 2106 ns 4 -replace bb to -- by init stringa|2048_median 2128 ns 2119 ns 4 -replace bb to -- by init stringa|2048_stddev 69.6 ns 50.1 ns 4 -replace bb to -- by init stringa|2048_cv 3.28 % 2.38 % 4 +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 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 4428253 ns 4447477 ns 4 -hashStrMapA emplace & find stringa;_median 4425980 ns 4471009 ns 4 -hashStrMapA emplace & find stringa;_stddev 60684 ns 90119 ns 4 -hashStrMapA emplace & find stringa;_cv 1.37 % 2.03 % 4 -std::unordered_map emplace & find std::string;_mean 5898002 ns 5894252 ns 4 -std::unordered_map emplace & find std::string;_median 5950855 ns 5929129 ns 4 -std::unordered_map emplace & find std::string;_stddev 185040 ns 133570 ns 4 -std::unordered_map emplace & find std::string;_cv 3.14 % 2.27 % 4 -hashStrMapA emplace & find ssa;_mean 4082178 ns 4052473 ns 4 -hashStrMapA emplace & find ssa;_median 4126593 ns 4052473 ns 4 -hashStrMapA emplace & find ssa;_stddev 142057 ns 107871 ns 4 -hashStrMapA emplace & find ssa;_cv 3.48 % 2.66 % 4 -std::unordered_map emplace & find std::string_view;_mean 6303534 ns 6312779 ns 4 -std::unordered_map emplace & find std::string_view;_median 6278181 ns 6277902 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 94031 ns 69754 ns 4 -std::unordered_map emplace & find std::string_view;_cv 1.49 % 1.10 % 4 +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 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 1604 ns 1604 ns 4 -Build func full name std::string;_median 1594 ns 1587 ns 4 -Build func full name std::string;_stddev 53.1 ns 49.3 ns 4 -Build func full name std::string;_cv 3.31 % 3.07 % 4 -Build func full name std::string 1;_mean 1697 ns 1698 ns 4 -Build func full name std::string 1;_median 1704 ns 1688 ns 4 -Build func full name std::string 1;_stddev 24.3 ns 19.2 ns 4 -Build func full name std::string 1;_cv 1.43 % 1.13 % 4 -Build func full name std::stream;_mean 10054 ns 9949 ns 4 -Build func full name std::stream;_median 10012 ns 10010 ns 4 -Build func full name std::stream;_stddev 297 ns 503 ns 4 -Build func full name std::stream;_cv 2.95 % 5.06 % 4 -Build func full name stringa;_mean 879 ns 881 ns 4 -Build func full name stringa;_median 880 ns 881 ns 4 -Build func full name stringa;_stddev 19.5 ns 22.5 ns 4 -Build func full name stringa;_cv 2.22 % 2.56 % 4 -Build func full name stringa 1;_mean 982 ns 984 ns 4 -Build func full name stringa 1;_median 987 ns 994 ns 4 -Build func full name stringa 1;_stddev 29.7 ns 29.6 ns 4 -Build func full name stringa 1;_cv 3.03 % 3.01 % 4 +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 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 1424 ns 1420 ns 4 -To upper case std::wstring_median 1436 ns 1428 ns 4 -To upper case std::wstring_stddev 35.9 ns 53.6 ns 4 -To upper case std::wstring_cv 2.52 % 3.77 % 4 -To upper case lstringw<15>_mean 50.5 ns 50.4 ns 4 -To upper case lstringw<15>_median 50.4 ns 50.0 ns 4 -To upper case lstringw<15>_stddev 0.369 ns 0.781 ns 4 -To upper case lstringw<15>_cv 0.73 % 1.55 % 4 +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 diff --git a/bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt b/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt similarity index 51% rename from bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt rename to bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt index ae24931..e2345fa 100644 --- a/bench/results/004-Xeon E5-2682 v4, WASM Chrome 143, Clang-21.txt +++ b/bench/results/005-Xeon E5-2682 v4, WASM Chrome 143, Clang-22.txt @@ -1,976 +1,982 @@ -Benchmarks of simstr, version 1.7.1 +Benchmarks of simstr, version 1.7.2 Sources: https://github.com/orefkov/simstr Results: https://orefkov.github.io/simstr/results.html +Compiler Clang 22.0.0, use libc++ Run on (32 X 2513.96 MHz CPU s) 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 529 ns 529 ns 4 -Concat email std::format_median 517 ns 517 ns 4 -Concat email std::format_stddev 26.1 ns 26.1 ns 4 -Concat email std::format_cv 4.94 % 4.94 % 4 -Concat email std::stringstream_mean 1155 ns 1155 ns 4 -Concat email std::stringstream_median 1154 ns 1154 ns 4 -Concat email std::stringstream_stddev 13.1 ns 13.1 ns 4 -Concat email std::stringstream_cv 1.13 % 1.13 % 4 -Concat email stringzilla append_mean 249 ns 249 ns 4 -Concat email stringzilla append_median 249 ns 249 ns 4 -Concat email stringzilla append_stddev 4.04 ns 4.04 ns 4 -Concat email stringzilla append_cv 1.62 % 1.62 % 4 -Concat email stringzilla concat_mean 95.2 ns 95.2 ns 4 -Concat email stringzilla concat_median 95.3 ns 95.3 ns 4 -Concat email stringzilla concat_stddev 0.859 ns 0.859 ns 4 -Concat email stringzilla concat_cv 0.90 % 0.90 % 4 -Concat email std::string append_mean 324 ns 324 ns 4 -Concat email std::string append_median 325 ns 325 ns 4 -Concat email std::string append_stddev 10.9 ns 10.9 ns 4 -Concat email std::string append_cv 3.36 % 3.36 % 4 -Concat email std::string by strexpr_mean 92.7 ns 92.7 ns 4 -Concat email std::string by strexpr_median 92.5 ns 92.5 ns 4 -Concat email std::string by strexpr_stddev 2.55 ns 2.55 ns 4 -Concat email std::string by strexpr_cv 2.75 % 2.75 % 4 -Concat email stringa_mean 71.3 ns 71.3 ns 4 -Concat email stringa_median 71.6 ns 71.6 ns 4 -Concat email stringa_stddev 2.17 ns 2.17 ns 4 -Concat email stringa_cv 3.04 % 3.04 % 4 +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 ----- Concatenate string + Number + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string and number by std to std::string_mean 1115 ns 1115 ns 4 -Concat std::string and number by std to std::string_median 1126 ns 1126 ns 4 -Concat std::string and number by std to std::string_stddev 39.9 ns 39.9 ns 4 -Concat std::string and number by std to std::string_cv 3.58 % 3.58 % 4 -Concat std::string and number by StrExpr to std::string_mean 530 ns 530 ns 4 -Concat std::string and number by StrExpr to std::string_median 530 ns 530 ns 4 -Concat std::string and number by StrExpr to std::string_stddev 9.27 ns 9.27 ns 4 -Concat std::string and number by StrExpr to std::string_cv 1.75 % 1.75 % 4 -Concat stringa and number by StrExpr to simstr::stringa_mean 227 ns 227 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_median 227 ns 227 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_stddev 5.35 ns 5.35 ns 4 -Concat stringa and number by StrExpr to simstr::stringa_cv 2.36 % 2.36 % 4 -Concat stringa and number by e_concat to simstr::stringa_mean 258 ns 258 ns 4 -Concat stringa and number by e_concat to simstr::stringa_median 249 ns 249 ns 4 -Concat stringa and number by e_concat to simstr::stringa_stddev 30.2 ns 30.2 ns 4 -Concat stringa and number by e_concat to simstr::stringa_cv 11.74 % 11.74 % 4 +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 ----- 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 2114 ns 2114 ns 4 -Concat std::string and format hex number and literal to std::string_median 2116 ns 2116 ns 4 -Concat std::string and format hex number and literal to std::string_stddev 54.3 ns 54.3 ns 4 -Concat std::string and format hex number and literal to std::string_cv 2.57 % 2.57 % 4 -std::format std::string and hex number by literal to std::string_mean 2763 ns 2763 ns 4 -std::format std::string and hex number by literal to std::string_median 2754 ns 2754 ns 4 -std::format std::string and hex number by literal to std::string_stddev 52.0 ns 52.0 ns 4 -std::format std::string and hex number by literal to std::string_cv 1.88 % 1.88 % 4 -Concat std::string and std::to_chars and string to std::string_mean 743 ns 743 ns 4 -Concat std::string and std::to_chars and string to std::string_median 739 ns 739 ns 4 -Concat std::string and std::to_chars and string to std::string_stddev 24.9 ns 24.9 ns 4 -Concat std::string and std::to_chars and string to std::string_cv 3.35 % 3.35 % 4 -Concat std::string and hex number and literal by StrExpr to std::string_mean 547 ns 547 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_median 549 ns 549 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_stddev 18.6 ns 18.6 ns 4 -Concat std::string and hex number and literal by StrExpr to std::string_cv 3.39 % 3.39 % 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_mean 220 ns 220 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_median 220 ns 220 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_stddev 2.46 ns 2.46 ns 4 -Concat stringa and hex number and literal by StrExpr to simstr::stringa_cv 1.12 % 1.12 % 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_mean 211 ns 211 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_median 211 ns 211 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_stddev 5.79 ns 5.79 ns 4 -Concat stringa and hex number and literal by e_concat to simstr::stringa_cv 2.74 % 2.74 % 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_mean 354 ns 354 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_median 348 ns 348 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_stddev 28.1 ns 28.1 ns 4 -Subst stringa and hex number by e_subst literal to simstr::stringa_cv 7.94 % 7.94 % 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_mean 936 ns 936 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_median 939 ns 939 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_stddev 8.59 ns 8.59 ns 4 -Subst stringa and hex number by e_vsubst stra to simstr::stringa_cv 0.92 % 0.92 % 4 +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 ---- 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 434 ns 434 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_median 438 ns 438 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_stddev 26.6 ns 26.6 ns 4 -"abcdefghihklmopqr "_ss + i / 0x8a010_fmt + " end"_cv 6.14 % 6.14 % 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_mean 634 ns 634 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_median 637 ns 637 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_stddev 15.2 ns 15.2 ns 4 -e_subst("abcdefghihklmopqr {} end", i / 0x8a010_fmt)_cv 2.40 % 2.40 % 4 -e_vsubst(pattern, i / 0x8a010_fmt)_mean 1530 ns 1530 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_median 1509 ns 1509 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_stddev 72.4 ns 72.4 ns 4 -e_vsubst(pattern, i / 0x8a010_fmt)_cv 4.73 % 4.73 % 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_mean 2320 ns 2320 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_median 2321 ns 2321 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_stddev 11.2 ns 11.2 ns 4 -fmt::format(FMT_COMPILE("abcdefghihklmopqr {:#010o} end"), i)_cv 0.48 % 0.48 % 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_mean 3086 ns 3086 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_median 3100 ns 3100 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_stddev 73.0 ns 73.0 ns 4 -fmt::format("abcdefghihklmopqr {:#010o} end", i)_cv 2.37 % 2.37 % 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_mean 3154 ns 3154 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_median 3158 ns 3158 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_stddev 39.5 ns 39.5 ns 4 -std::format("abcdefghihklmopqr {:#010o} end", i)_cv 1.25 % 1.25 % 4 -std::vformat(pattern, std::make_format_args(i))_mean 3173 ns 3173 ns 4 -std::vformat(pattern, std::make_format_args(i))_median 3174 ns 3174 ns 4 -std::vformat(pattern, std::make_format_args(i))_stddev 7.12 ns 7.13 ns 4 -std::vformat(pattern, std::make_format_args(i))_cv 0.22 % 0.22 % 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_mean 8797 ns 8797 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_median 8857 ns 8857 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_stddev 285 ns 285 ns 4 -strm << "abcdefghihklmopqr 0" << std::oct << std::setw(9) << std::setfill('0') << i << " end"_cv 3.24 % 3.24 % 4 +"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 ----- Concatenate string + "Literal" ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat std::string by std to std::string_mean 115 ns 115 ns 4 +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.26 ns 5.26 ns 4 -Concat std::string by std to std::string_cv 4.56 % 4.56 % 4 -Concat std::string by StrExpr to std::string_mean 128 ns 128 ns 4 -Concat std::string by StrExpr to std::string_median 127 ns 127 ns 4 -Concat std::string by StrExpr to std::string_stddev 6.71 ns 6.71 ns 4 -Concat std::string by StrExpr to std::string_cv 5.23 % 5.23 % 4 -Concat stringa by StrExpr to stringa_mean 110 ns 110 ns 4 -Concat stringa by StrExpr to stringa_median 110 ns 110 ns 4 -Concat stringa by StrExpr to stringa_stddev 5.78 ns 5.78 ns 4 -Concat stringa by StrExpr to stringa_cv 5.27 % 5.27 % 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 ----- Find three concatenated string in string_view -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Find concat three std::string_mean 226 ns 226 ns 4 -Find concat three std::string_median 226 ns 226 ns 4 -Find concat three std::string_stddev 1.94 ns 1.94 ns 4 -Find concat three std::string_cv 0.86 % 0.86 % 4 -Find concat three strexpr_mean 117 ns 117 ns 4 -Find concat three strexpr_median 117 ns 117 ns 4 -Find concat three strexpr_stddev 2.79 ns 2.79 ns 4 -Find concat three strexpr_cv 2.38 % 2.38 % 4 -Find concat three simstr_mean 71.5 ns 71.5 ns 4 -Find concat three simstr_median 71.2 ns 71.2 ns 4 -Find concat three simstr_stddev 0.844 ns 0.843 ns 4 -Find concat three simstr_cv 1.18 % 1.18 % 4 -Find concat three stringzilla string_mean 288 ns 288 ns 4 -Find concat three stringzilla string_median 288 ns 288 ns 4 -Find concat three stringzilla string_stddev 4.41 ns 4.41 ns 4 -Find concat three stringzilla string_cv 1.53 % 1.53 % 4 +Find concat three std::string_mean 214 ns 214 ns 4 +Find concat three std::string_median 214 ns 214 ns 4 +Find concat three std::string_stddev 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 ----- Build Type Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -BuildTypeNameStr 0/0_mean 23.4 ns 23.4 ns 4 -BuildTypeNameStr 0/0_median 23.4 ns 23.4 ns 4 -BuildTypeNameStr 0/0_stddev 0.561 ns 0.561 ns 4 -BuildTypeNameStr 0/0_cv 2.40 % 2.40 % 4 -BuildTypeNameExp 0/0_mean 27.3 ns 27.3 ns 4 -BuildTypeNameExp 0/0_median 27.3 ns 27.3 ns 4 -BuildTypeNameExp 0/0_stddev 0.510 ns 0.510 ns 4 -BuildTypeNameExp 0/0_cv 1.87 % 1.87 % 4 -BuildTypeNameSim 0/0_mean 20.9 ns 20.9 ns 4 -BuildTypeNameSim 0/0_median 20.6 ns 20.6 ns 4 -BuildTypeNameSim 0/0_stddev 0.834 ns 0.834 ns 4 -BuildTypeNameSim 0/0_cv 3.98 % 3.98 % 4 -BuildTypeNameStr 10/10_mean 403 ns 403 ns 4 -BuildTypeNameStr 10/10_median 403 ns 403 ns 4 -BuildTypeNameStr 10/10_stddev 23.1 ns 23.1 ns 4 -BuildTypeNameStr 10/10_cv 5.73 % 5.73 % 4 -BuildTypeNameExp 10/10_mean 122 ns 122 ns 4 -BuildTypeNameExp 10/10_median 122 ns 122 ns 4 -BuildTypeNameExp 10/10_stddev 3.95 ns 3.95 ns 4 -BuildTypeNameExp 10/10_cv 3.24 % 3.24 % 4 -BuildTypeNameSim 10/10_mean 75.6 ns 75.6 ns 4 -BuildTypeNameSim 10/10_median 77.4 ns 77.4 ns 4 -BuildTypeNameSim 10/10_stddev 4.32 ns 4.32 ns 4 -BuildTypeNameSim 10/10_cv 5.71 % 5.71 % 4 +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 ----- Replace string by copy -----/repeats:1 0.000 ns 0.000 ns 1000000000000 -Concat with replace str_mean 544 ns 544 ns 4 +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 18.8 ns 18.8 ns 4 -Concat with replace str_cv 3.45 % 3.45 % 4 -Concat with replace exp_mean 258 ns 258 ns 4 -Concat with replace exp_median 256 ns 256 ns 4 -Concat with replace exp_stddev 16.4 ns 16.4 ns 4 -Concat with replace exp_cv 6.36 % 6.36 % 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 ----- Create Empty Str ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e;_mean 2.28 ns 2.28 ns 4 -std::string e;_median 2.29 ns 2.29 ns 4 -std::string e;_stddev 0.139 ns 0.139 ns 4 -std::string e;_cv 6.09 % 6.09 % 4 -std::string_view e;_mean 0.732 ns 0.732 ns 4 -std::string_view e;_median 0.731 ns 0.731 ns 4 -std::string_view e;_stddev 0.008 ns 0.008 ns 4 -std::string_view e;_cv 1.12 % 1.12 % 4 -ssa e;_mean 0.368 ns 0.368 ns 4 -ssa e;_median 0.368 ns 0.368 ns 4 -ssa e;_stddev 0.010 ns 0.010 ns 4 -ssa e;_cv 2.60 % 2.60 % 4 -stringa e;_mean 2.14 ns 2.14 ns 4 -stringa e;_median 2.14 ns 2.14 ns 4 -stringa e;_stddev 0.006 ns 0.006 ns 4 -stringa e;_cv 0.28 % 0.28 % 4 -lstringa<20> e;_mean 2.17 ns 2.17 ns 4 -lstringa<20> e;_median 2.17 ns 2.17 ns 4 -lstringa<20> e;_stddev 0.017 ns 0.017 ns 4 -lstringa<20> e;_cv 0.77 % 0.77 % 4 -lstringa<40> e;_mean 2.48 ns 2.48 ns 4 -lstringa<40> e;_median 2.43 ns 2.43 ns 4 -lstringa<40> e;_stddev 0.131 ns 0.131 ns 4 -lstringa<40> e;_cv 5.29 % 5.29 % 4 +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 ----- Create Str from short literal (9 symbols) --------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "Test text";_mean 2.43 ns 2.43 ns 4 -std::string e = "Test text";_median 2.43 ns 2.43 ns 4 -std::string e = "Test text";_stddev 0.028 ns 0.028 ns 4 -std::string e = "Test text";_cv 1.15 % 1.15 % 4 -std::string_view e = "Test text";_mean 1.09 ns 1.09 ns 4 -std::string_view e = "Test text";_median 1.09 ns 1.09 ns 4 -std::string_view e = "Test text";_stddev 0.016 ns 0.016 ns 4 -std::string_view e = "Test text";_cv 1.48 % 1.48 % 4 -ssa e = "Test text";_mean 0.726 ns 0.726 ns 4 -ssa e = "Test text";_median 0.726 ns 0.726 ns 4 -ssa e = "Test text";_stddev 0.011 ns 0.011 ns 4 -ssa e = "Test text";_cv 1.53 % 1.53 % 4 -stringa e = "Test text";_mean 2.19 ns 2.19 ns 4 -stringa e = "Test text";_median 2.18 ns 2.18 ns 4 -stringa e = "Test text";_stddev 0.044 ns 0.044 ns 4 -stringa e = "Test text";_cv 2.03 % 2.03 % 4 -lstringa<20> e = "Test text";_mean 2.62 ns 2.62 ns 4 -lstringa<20> e = "Test text";_median 2.63 ns 2.63 ns 4 -lstringa<20> e = "Test text";_stddev 0.030 ns 0.030 ns 4 -lstringa<20> e = "Test text";_cv 1.13 % 1.13 % 4 -lstringa<40> e = "Test text";_mean 2.59 ns 2.59 ns 4 -lstringa<40> e = "Test text";_median 2.61 ns 2.61 ns 4 -lstringa<40> e = "Test text";_stddev 0.074 ns 0.074 ns 4 -lstringa<40> e = "Test text";_cv 2.86 % 2.86 % 4 +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 ----- Create Str from long literal (30 symbols) ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890";_mean 26.1 ns 26.1 ns 4 -std::string e = "123456789012345678901234567890";_median 25.6 ns 25.6 ns 4 -std::string e = "123456789012345678901234567890";_stddev 1.19 ns 1.19 ns 4 -std::string e = "123456789012345678901234567890";_cv 4.56 % 4.56 % 4 +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.055 ns 0.055 ns 4 -std::string_view e = "123456789012345678901234567890";_cv 4.75 % 4.75 % 4 -ssa e = "123456789012345678901234567890";_mean 0.737 ns 0.737 ns 4 -ssa e = "123456789012345678901234567890";_median 0.737 ns 0.737 ns 4 -ssa e = "123456789012345678901234567890";_stddev 0.006 ns 0.006 ns 4 -ssa e = "123456789012345678901234567890";_cv 0.82 % 0.82 % 4 -stringa e = "123456789012345678901234567890";_mean 2.21 ns 2.21 ns 4 -stringa e = "123456789012345678901234567890";_median 2.22 ns 2.22 ns 4 -stringa e = "123456789012345678901234567890";_stddev 0.031 ns 0.031 ns 4 -stringa e = "123456789012345678901234567890";_cv 1.41 % 1.41 % 4 -lstringa<20> e = "123456789012345678901234567890";_mean 24.2 ns 24.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_median 24.2 ns 24.2 ns 4 -lstringa<20> e = "123456789012345678901234567890";_stddev 0.162 ns 0.162 ns 4 -lstringa<20> e = "123456789012345678901234567890";_cv 0.67 % 0.67 % 4 -lstringa<40> e = "123456789012345678901234567890";_mean 2.92 ns 2.92 ns 4 -lstringa<40> e = "123456789012345678901234567890";_median 2.91 ns 2.91 ns 4 -lstringa<40> e = "123456789012345678901234567890";_stddev 0.054 ns 0.054 ns 4 -lstringa<40> e = "123456789012345678901234567890";_cv 1.84 % 1.84 % 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 ----- 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 3.78 ns 3.78 ns 4 -std::string e = "Test text"; auto c{e};_median 3.77 ns 3.77 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 2.51 % 2.51 % 4 -std::string_view e = "Test text"; auto c{e};_mean 1.08 ns 1.08 ns 4 -std::string_view e = "Test text"; auto c{e};_median 1.08 ns 1.08 ns 4 -std::string_view e = "Test text"; auto c{e};_stddev 0.014 ns 0.014 ns 4 -std::string_view e = "Test text"; auto c{e};_cv 1.25 % 1.25 % 4 -ssa e = "Test text"; auto c{e};_mean 1.21 ns 1.21 ns 4 -ssa e = "Test text"; auto c{e};_median 1.19 ns 1.19 ns 4 -ssa e = "Test text"; auto c{e};_stddev 0.057 ns 0.057 ns 4 -ssa e = "Test text"; auto c{e};_cv 4.76 % 4.76 % 4 -stringa e = "Test text"; auto c{e};_mean 2.70 ns 2.70 ns 4 -stringa e = "Test text"; auto c{e};_median 2.73 ns 2.73 ns 4 -stringa e = "Test text"; auto c{e};_stddev 0.109 ns 0.109 ns 4 -stringa e = "Test text"; auto c{e};_cv 4.04 % 4.04 % 4 -lstringa<20> e = "Test text"; auto c{e};_mean 4.86 ns 4.86 ns 4 -lstringa<20> e = "Test text"; auto c{e};_median 4.89 ns 4.89 ns 4 +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.86 % 1.86 % 4 -lstringa<40> e = "Test text"; auto c{e};_mean 4.84 ns 4.84 ns 4 -lstringa<40> e = "Test text"; auto c{e};_median 4.84 ns 4.84 ns 4 -lstringa<40> e = "Test text"; auto c{e};_stddev 0.091 ns 0.091 ns 4 -lstringa<40> e = "Test text"; auto c{e};_cv 1.88 % 1.88 % 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 ----- Create copy of Str with 30 symbols ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string e = "123456789012345678901234567890"; auto c{e};_mean 53.4 ns 53.4 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_median 53.2 ns 53.2 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_stddev 2.16 ns 2.16 ns 4 -std::string e = "123456789012345678901234567890"; auto c{e};_cv 4.05 % 4.05 % 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_mean 1.12 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.015 ns 0.015 ns 4 -std::string_view e = "123456789012345678901234567890"; auto c{e};_cv 1.36 % 1.36 % 4 -ssa e = "123456789012345678901234567890"; auto c{e};_mean 0.746 ns 0.746 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_median 0.747 ns 0.747 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_stddev 0.019 ns 0.019 ns 4 -ssa e = "123456789012345678901234567890"; auto c{e};_cv 2.54 % 2.54 % 4 -stringa e = "123456789012345678901234567890"; auto c{e};_mean 2.18 ns 2.18 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_median 2.18 ns 2.18 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_stddev 0.025 ns 0.025 ns 4 -stringa e = "123456789012345678901234567890"; auto c{e};_cv 1.15 % 1.15 % 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_mean 22.5 ns 22.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_median 22.5 ns 22.5 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_stddev 0.194 ns 0.194 ns 4 -lstringa<20> e = "123456789012345678901234567890"; auto c{e};_cv 0.87 % 0.86 % 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_mean 17.0 ns 17.0 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_median 17.2 ns 17.2 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_stddev 0.674 ns 0.674 ns 4 -lstringa<40> e = "123456789012345678901234567890"; auto c{e};_cv 3.97 % 3.98 % 4 +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 ----- 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 123 ns 123 ns 4 -sz::string::find;_stddev 0.690 ns 0.689 ns 4 -sz::string::find;_cv 0.56 % 0.56 % 4 -std::string::find;_mean 40.4 ns 40.4 ns 4 -std::string::find;_median 40.4 ns 40.4 ns 4 -std::string::find;_stddev 0.622 ns 0.622 ns 4 -std::string::find;_cv 1.54 % 1.54 % 4 -std::string_view::find;_mean 43.8 ns 43.8 ns 4 -std::string_view::find;_median 41.7 ns 41.7 ns 4 -std::string_view::find;_stddev 5.19 ns 5.18 ns 4 -std::string_view::find;_cv 11.84 % 11.84 % 4 -ssa::find;_mean 41.7 ns 41.7 ns 4 -ssa::find;_median 42.1 ns 42.1 ns 4 -ssa::find;_stddev 1.51 ns 1.51 ns 4 -ssa::find;_cv 3.61 % 3.61 % 4 -stringa::find;_mean 41.7 ns 41.7 ns 4 -stringa::find;_median 41.1 ns 41.1 ns 4 -stringa::find;_stddev 2.28 ns 2.28 ns 4 -stringa::find;_cv 5.47 % 5.47 % 4 -lstringa<20>::find;_mean 39.4 ns 39.4 ns 4 -lstringa<20>::find;_median 39.6 ns 39.6 ns 4 -lstringa<20>::find;_stddev 0.913 ns 0.913 ns 4 -lstringa<20>::find;_cv 2.32 % 2.31 % 4 -lstringa<40>::find;_mean 39.6 ns 39.6 ns 4 -lstringa<40>::find;_median 39.4 ns 39.4 ns 4 -lstringa<40>::find;_stddev 0.856 ns 0.856 ns 4 -lstringa<40>::find;_cv 2.16 % 2.16 % 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 +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 ------- 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 54.0 ns 54.0 ns 4 -std::string copy{str_with_len_N};/15_median 53.2 ns 53.2 ns 4 -std::string copy{str_with_len_N};/15_stddev 2.26 ns 2.26 ns 4 -std::string copy{str_with_len_N};/15_cv 4.18 % 4.18 % 4 -std::string copy{str_with_len_N};/16_mean 50.8 ns 50.8 ns 4 -std::string copy{str_with_len_N};/16_median 50.4 ns 50.4 ns 4 -std::string copy{str_with_len_N};/16_stddev 1.26 ns 1.26 ns 4 -std::string copy{str_with_len_N};/16_cv 2.47 % 2.47 % 4 -std::string copy{str_with_len_N};/23_mean 50.7 ns 50.7 ns 4 -std::string copy{str_with_len_N};/23_median 50.5 ns 50.5 ns 4 -std::string copy{str_with_len_N};/23_stddev 1.72 ns 1.72 ns 4 -std::string copy{str_with_len_N};/23_cv 3.40 % 3.40 % 4 -std::string copy{str_with_len_N};/24_mean 51.0 ns 51.0 ns 4 -std::string copy{str_with_len_N};/24_median 51.3 ns 51.3 ns 4 -std::string copy{str_with_len_N};/24_stddev 1.31 ns 1.31 ns 4 -std::string copy{str_with_len_N};/24_cv 2.56 % 2.56 % 4 -std::string copy{str_with_len_N};/32_mean 57.8 ns 57.8 ns 4 -std::string copy{str_with_len_N};/32_median 56.2 ns 56.2 ns 4 -std::string copy{str_with_len_N};/32_stddev 4.71 ns 4.71 ns 4 -std::string copy{str_with_len_N};/32_cv 8.14 % 8.14 % 4 -std::string copy{str_with_len_N};/64_mean 57.0 ns 57.0 ns 4 -std::string copy{str_with_len_N};/64_median 56.7 ns 56.7 ns 4 -std::string copy{str_with_len_N};/64_stddev 0.770 ns 0.770 ns 4 -std::string copy{str_with_len_N};/64_cv 1.35 % 1.35 % 4 -std::string copy{str_with_len_N};/128_mean 57.2 ns 57.2 ns 4 -std::string copy{str_with_len_N};/128_median 56.5 ns 56.5 ns 4 -std::string copy{str_with_len_N};/128_stddev 2.79 ns 2.79 ns 4 -std::string copy{str_with_len_N};/128_cv 4.87 % 4.87 % 4 -std::string copy{str_with_len_N};/256_mean 68.5 ns 68.5 ns 4 -std::string copy{str_with_len_N};/256_median 62.9 ns 62.9 ns 4 -std::string copy{str_with_len_N};/256_stddev 12.2 ns 12.2 ns 4 -std::string copy{str_with_len_N};/256_cv 17.80 % 17.80 % 4 -std::string copy{str_with_len_N};/512_mean 65.9 ns 65.9 ns 4 -std::string copy{str_with_len_N};/512_median 65.2 ns 65.2 ns 4 -std::string copy{str_with_len_N};/512_stddev 2.55 ns 2.55 ns 4 -std::string copy{str_with_len_N};/512_cv 3.87 % 3.87 % 4 -std::string copy{str_with_len_N};/1024_mean 88.6 ns 88.6 ns 4 -std::string copy{str_with_len_N};/1024_median 89.4 ns 89.4 ns 4 -std::string copy{str_with_len_N};/1024_stddev 9.38 ns 9.38 ns 4 -std::string copy{str_with_len_N};/1024_cv 10.58 % 10.58 % 4 -std::string copy{str_with_len_N};/2048_mean 113 ns 113 ns 4 -std::string copy{str_with_len_N};/2048_median 113 ns 113 ns 4 -std::string copy{str_with_len_N};/2048_stddev 9.63 ns 9.63 ns 4 -std::string copy{str_with_len_N};/2048_cv 8.55 % 8.55 % 4 -std::string copy{str_with_len_N};/4096_mean 159 ns 159 ns 4 -std::string copy{str_with_len_N};/4096_median 166 ns 166 ns 4 -std::string copy{str_with_len_N};/4096_stddev 16.4 ns 16.4 ns 4 -std::string copy{str_with_len_N};/4096_cv 10.32 % 10.32 % 4 -stringa copy{str_with_len_N};/15_mean 2.40 ns 2.40 ns 4 -stringa copy{str_with_len_N};/15_median 2.41 ns 2.41 ns 4 -stringa copy{str_with_len_N};/15_stddev 0.033 ns 0.033 ns 4 -stringa copy{str_with_len_N};/15_cv 1.38 % 1.38 % 4 -stringa copy{str_with_len_N};/16_mean 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/16_median 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/16_stddev 0.007 ns 0.007 ns 4 -stringa copy{str_with_len_N};/16_cv 0.16 % 0.16 % 4 -stringa copy{str_with_len_N};/23_mean 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/23_median 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/23_stddev 0.077 ns 0.077 ns 4 -stringa copy{str_with_len_N};/23_cv 1.59 % 1.59 % 4 -stringa copy{str_with_len_N};/24_mean 4.86 ns 4.86 ns 4 -stringa copy{str_with_len_N};/24_median 4.89 ns 4.89 ns 4 -stringa copy{str_with_len_N};/24_stddev 0.079 ns 0.079 ns 4 -stringa copy{str_with_len_N};/24_cv 1.62 % 1.62 % 4 -stringa copy{str_with_len_N};/32_mean 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/32_median 4.81 ns 4.81 ns 4 -stringa copy{str_with_len_N};/32_stddev 0.009 ns 0.009 ns 4 -stringa copy{str_with_len_N};/32_cv 0.20 % 0.20 % 4 -stringa copy{str_with_len_N};/64_mean 5.13 ns 5.13 ns 4 -stringa copy{str_with_len_N};/64_median 5.05 ns 5.05 ns 4 -stringa copy{str_with_len_N};/64_stddev 0.362 ns 0.362 ns 4 -stringa copy{str_with_len_N};/64_cv 7.05 % 7.05 % 4 -stringa copy{str_with_len_N};/128_mean 5.28 ns 5.28 ns 4 -stringa copy{str_with_len_N};/128_median 5.30 ns 5.30 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.13 % 1.13 % 4 -stringa copy{str_with_len_N};/256_mean 5.19 ns 5.19 ns 4 -stringa copy{str_with_len_N};/256_median 5.26 ns 5.26 ns 4 -stringa copy{str_with_len_N};/256_stddev 0.183 ns 0.183 ns 4 -stringa copy{str_with_len_N};/256_cv 3.54 % 3.54 % 4 -stringa copy{str_with_len_N};/512_mean 4.80 ns 4.80 ns 4 -stringa copy{str_with_len_N};/512_median 4.82 ns 4.82 ns 4 -stringa copy{str_with_len_N};/512_stddev 0.100 ns 0.100 ns 4 -stringa copy{str_with_len_N};/512_cv 2.08 % 2.08 % 4 -stringa copy{str_with_len_N};/1024_mean 4.86 ns 4.86 ns 4 -stringa copy{str_with_len_N};/1024_median 4.87 ns 4.87 ns 4 -stringa copy{str_with_len_N};/1024_stddev 0.138 ns 0.138 ns 4 -stringa copy{str_with_len_N};/1024_cv 2.85 % 2.85 % 4 -stringa copy{str_with_len_N};/2048_mean 4.82 ns 4.82 ns 4 -stringa copy{str_with_len_N};/2048_median 4.82 ns 4.82 ns 4 -stringa copy{str_with_len_N};/2048_stddev 0.027 ns 0.027 ns 4 -stringa copy{str_with_len_N};/2048_cv 0.56 % 0.56 % 4 -stringa copy{str_with_len_N};/4096_mean 4.82 ns 4.82 ns 4 -stringa copy{str_with_len_N};/4096_median 4.82 ns 4.82 ns 4 -stringa copy{str_with_len_N};/4096_stddev 0.028 ns 0.028 ns 4 -stringa copy{str_with_len_N};/4096_cv 0.57 % 0.57 % 4 -lstringa<16> copy{str_with_len_N};/15_mean 4.09 ns 4.09 ns 4 -lstringa<16> copy{str_with_len_N};/15_median 4.06 ns 4.06 ns 4 -lstringa<16> copy{str_with_len_N};/15_stddev 0.084 ns 0.084 ns 4 -lstringa<16> copy{str_with_len_N};/15_cv 2.05 % 2.05 % 4 -lstringa<16> copy{str_with_len_N};/16_mean 16.1 ns 16.1 ns 4 -lstringa<16> copy{str_with_len_N};/16_median 16.3 ns 16.3 ns 4 -lstringa<16> copy{str_with_len_N};/16_stddev 0.925 ns 0.925 ns 4 -lstringa<16> copy{str_with_len_N};/16_cv 5.75 % 5.75 % 4 -lstringa<16> copy{str_with_len_N};/23_mean 38.4 ns 38.4 ns 4 -lstringa<16> copy{str_with_len_N};/23_median 38.4 ns 38.4 ns 4 -lstringa<16> copy{str_with_len_N};/23_stddev 0.327 ns 0.327 ns 4 -lstringa<16> copy{str_with_len_N};/23_cv 0.85 % 0.85 % 4 -lstringa<16> copy{str_with_len_N};/24_mean 39.6 ns 39.6 ns 4 -lstringa<16> copy{str_with_len_N};/24_median 39.8 ns 39.8 ns 4 -lstringa<16> copy{str_with_len_N};/24_stddev 0.772 ns 0.771 ns 4 -lstringa<16> copy{str_with_len_N};/24_cv 1.95 % 1.95 % 4 -lstringa<16> copy{str_with_len_N};/32_mean 41.7 ns 41.7 ns 4 -lstringa<16> copy{str_with_len_N};/32_median 41.4 ns 41.4 ns 4 -lstringa<16> copy{str_with_len_N};/32_stddev 0.916 ns 0.915 ns 4 -lstringa<16> copy{str_with_len_N};/32_cv 2.20 % 2.20 % 4 -lstringa<16> copy{str_with_len_N};/64_mean 42.5 ns 42.5 ns 4 -lstringa<16> copy{str_with_len_N};/64_median 42.3 ns 42.3 ns 4 -lstringa<16> copy{str_with_len_N};/64_stddev 0.740 ns 0.740 ns 4 -lstringa<16> copy{str_with_len_N};/64_cv 1.74 % 1.74 % 4 -lstringa<16> copy{str_with_len_N};/128_mean 46.0 ns 46.0 ns 4 -lstringa<16> copy{str_with_len_N};/128_median 45.4 ns 45.4 ns 4 -lstringa<16> copy{str_with_len_N};/128_stddev 2.64 ns 2.64 ns 4 -lstringa<16> copy{str_with_len_N};/128_cv 5.74 % 5.74 % 4 -lstringa<16> copy{str_with_len_N};/256_mean 56.1 ns 56.1 ns 4 -lstringa<16> copy{str_with_len_N};/256_median 51.9 ns 51.9 ns 4 -lstringa<16> copy{str_with_len_N};/256_stddev 10.2 ns 10.2 ns 4 -lstringa<16> copy{str_with_len_N};/256_cv 18.21 % 18.21 % 4 -lstringa<16> copy{str_with_len_N};/512_mean 54.9 ns 54.9 ns 4 -lstringa<16> copy{str_with_len_N};/512_median 54.4 ns 54.4 ns 4 -lstringa<16> copy{str_with_len_N};/512_stddev 2.45 ns 2.45 ns 4 -lstringa<16> copy{str_with_len_N};/512_cv 4.45 % 4.45 % 4 -lstringa<16> copy{str_with_len_N};/1024_mean 68.5 ns 68.5 ns 4 -lstringa<16> copy{str_with_len_N};/1024_median 66.1 ns 66.1 ns 4 -lstringa<16> copy{str_with_len_N};/1024_stddev 9.58 ns 9.58 ns 4 -lstringa<16> copy{str_with_len_N};/1024_cv 14.00 % 14.00 % 4 -lstringa<16> copy{str_with_len_N};/2048_mean 97.6 ns 97.6 ns 4 -lstringa<16> copy{str_with_len_N};/2048_median 96.2 ns 96.2 ns 4 -lstringa<16> copy{str_with_len_N};/2048_stddev 11.3 ns 11.3 ns 4 -lstringa<16> copy{str_with_len_N};/2048_cv 11.62 % 11.62 % 4 -lstringa<16> copy{str_with_len_N};/4096_mean 143 ns 143 ns 4 -lstringa<16> copy{str_with_len_N};/4096_median 149 ns 149 ns 4 -lstringa<16> copy{str_with_len_N};/4096_stddev 14.2 ns 14.2 ns 4 -lstringa<16> copy{str_with_len_N};/4096_cv 9.95 % 9.95 % 4 -lstringa<512> copy{str_with_len_N};/15_mean 4.74 ns 4.74 ns 4 -lstringa<512> copy{str_with_len_N};/15_median 4.68 ns 4.68 ns 4 -lstringa<512> copy{str_with_len_N};/15_stddev 0.360 ns 0.360 ns 4 -lstringa<512> copy{str_with_len_N};/15_cv 7.60 % 7.60 % 4 -lstringa<512> copy{str_with_len_N};/16_mean 16.3 ns 16.3 ns 4 -lstringa<512> copy{str_with_len_N};/16_median 16.1 ns 16.1 ns 4 -lstringa<512> copy{str_with_len_N};/16_stddev 0.688 ns 0.688 ns 4 -lstringa<512> copy{str_with_len_N};/16_cv 4.21 % 4.21 % 4 -lstringa<512> copy{str_with_len_N};/23_mean 16.0 ns 16.0 ns 4 -lstringa<512> copy{str_with_len_N};/23_median 16.0 ns 16.0 ns 4 -lstringa<512> copy{str_with_len_N};/23_stddev 0.048 ns 0.048 ns 4 -lstringa<512> copy{str_with_len_N};/23_cv 0.30 % 0.30 % 4 -lstringa<512> copy{str_with_len_N};/24_mean 16.2 ns 16.2 ns 4 -lstringa<512> copy{str_with_len_N};/24_median 16.2 ns 16.2 ns 4 -lstringa<512> copy{str_with_len_N};/24_stddev 0.529 ns 0.529 ns 4 -lstringa<512> copy{str_with_len_N};/24_cv 3.27 % 3.27 % 4 -lstringa<512> copy{str_with_len_N};/32_mean 19.5 ns 19.5 ns 4 -lstringa<512> copy{str_with_len_N};/32_median 19.4 ns 19.4 ns 4 -lstringa<512> copy{str_with_len_N};/32_stddev 0.290 ns 0.290 ns 4 -lstringa<512> copy{str_with_len_N};/32_cv 1.49 % 1.49 % 4 -lstringa<512> copy{str_with_len_N};/64_mean 19.3 ns 19.3 ns 4 -lstringa<512> copy{str_with_len_N};/64_median 19.3 ns 19.3 ns 4 -lstringa<512> copy{str_with_len_N};/64_stddev 0.297 ns 0.297 ns 4 -lstringa<512> copy{str_with_len_N};/64_cv 1.53 % 1.53 % 4 -lstringa<512> copy{str_with_len_N};/128_mean 19.5 ns 19.5 ns 4 -lstringa<512> copy{str_with_len_N};/128_median 19.5 ns 19.5 ns 4 -lstringa<512> copy{str_with_len_N};/128_stddev 0.795 ns 0.795 ns 4 -lstringa<512> copy{str_with_len_N};/128_cv 4.07 % 4.07 % 4 -lstringa<512> copy{str_with_len_N};/256_mean 22.1 ns 22.1 ns 4 -lstringa<512> copy{str_with_len_N};/256_median 22.2 ns 22.2 ns 4 -lstringa<512> copy{str_with_len_N};/256_stddev 0.640 ns 0.639 ns 4 -lstringa<512> copy{str_with_len_N};/256_cv 2.89 % 2.89 % 4 -lstringa<512> copy{str_with_len_N};/512_mean 23.7 ns 23.7 ns 4 -lstringa<512> copy{str_with_len_N};/512_median 23.8 ns 23.8 ns 4 -lstringa<512> copy{str_with_len_N};/512_stddev 0.448 ns 0.448 ns 4 -lstringa<512> copy{str_with_len_N};/512_cv 1.89 % 1.89 % 4 -lstringa<512> copy{str_with_len_N};/1024_mean 73.4 ns 73.4 ns 4 -lstringa<512> copy{str_with_len_N};/1024_median 71.1 ns 71.1 ns 4 -lstringa<512> copy{str_with_len_N};/1024_stddev 8.73 ns 8.73 ns 4 -lstringa<512> copy{str_with_len_N};/1024_cv 11.90 % 11.90 % 4 -lstringa<512> copy{str_with_len_N};/2048_mean 102 ns 102 ns 4 -lstringa<512> copy{str_with_len_N};/2048_median 102 ns 102 ns 4 -lstringa<512> copy{str_with_len_N};/2048_stddev 11.7 ns 11.7 ns 4 -lstringa<512> copy{str_with_len_N};/2048_cv 11.42 % 11.42 % 4 -lstringa<512> copy{str_with_len_N};/4096_mean 150 ns 150 ns 4 -lstringa<512> copy{str_with_len_N};/4096_median 154 ns 154 ns 4 -lstringa<512> copy{str_with_len_N};/4096_stddev 17.8 ns 17.8 ns 4 -lstringa<512> copy{str_with_len_N};/4096_cv 11.84 % 11.84 % 4 +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};/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};/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 +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 +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 ----- 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 91.8 ns 91.8 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 2.57 ns 2.57 ns 4 -std::string s = "123456789"; int res = std::strtol(s.c_str(), 0, 10);_cv 2.80 % 2.80 % 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_mean 0.732 ns 0.732 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_median 0.734 ns 0.734 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_stddev 0.010 ns 0.010 ns 4 -std::string_view s = "123456789"; std::from_chars(s.data(), s.data() + s.size(), res, 10);_cv 1.39 % 1.39 % 4 -stringa s = "123456789"; int res = s.to_int_mean 18.7 ns 18.7 ns 4 -stringa s = "123456789"; int res = s.to_int_median 18.6 ns 18.6 ns 4 -stringa s = "123456789"; int res = s.to_int_stddev 1.06 ns 1.06 ns 4 -stringa s = "123456789"; int res = s.to_int_cv 5.68 % 5.68 % 4 -ssa s = "123456789"; int res = s.to_int_mean 17.2 ns 17.2 ns 4 -ssa s = "123456789"; int res = s.to_int_median 17.2 ns 17.2 ns 4 -ssa s = "123456789"; int res = s.to_int_stddev 0.329 ns 0.329 ns 4 -ssa s = "123456789"; int res = s.to_int_cv 1.92 % 1.92 % 4 -lstringa<20> s = "123456789"; int res = s.to_int_mean 17.0 ns 17.0 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_median 17.1 ns 17.1 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_stddev 0.390 ns 0.390 ns 4 -lstringa<20> s = "123456789"; int res = s.to_int_cv 2.30 % 2.30 % 4 +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 ----- 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 66.6 ns 66.6 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_median 65.4 ns 65.4 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_stddev 3.08 ns 3.08 ns 4 -std::string s = "abcDef"; int res = std::strtol(s.c_str(), 0, 16);_cv 4.63 % 4.63 % 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_mean 18.0 ns 18.0 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_median 18.1 ns 18.1 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_stddev 0.551 ns 0.551 ns 4 -std::string_view s = "abcDef"; std::from_chars(s.data(), s.data() + s.size(), res, 16);_cv 3.06 % 3.06 % 4 -stringa s = "abcDef"; int res = s.to_int_mean 17.9 ns 17.9 ns 4 -stringa s = "abcDef"; int res = s.to_int_median 17.2 ns 17.2 ns 4 -stringa s = "abcDef"; int res = s.to_int_stddev 1.48 ns 1.48 ns 4 -stringa s = "abcDef"; int res = s.to_int_cv 8.28 % 8.28 % 4 -ssa s = "abcDef"; int res = s.to_int_mean 16.3 ns 16.3 ns 4 -ssa s = "abcDef"; int res = s.to_int_median 16.3 ns 16.3 ns 4 -ssa s = "abcDef"; int res = s.to_int_stddev 0.453 ns 0.453 ns 4 -ssa s = "abcDef"; int res = s.to_int_cv 2.78 % 2.78 % 4 -lstringa<20> s = "abcDef"; int res = s.to_int_mean 16.2 ns 16.2 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_median 16.2 ns 16.2 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_stddev 0.149 ns 0.149 ns 4 -lstringa<20> s = "abcDef"; int res = s.to_int_cv 0.92 % 0.92 % 4 +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 ----- 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 106 ns 106 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_median 103 ns 103 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_stddev 7.30 ns 7.30 ns 4 -std::string s = " 123456789"; int res = std::strtol(s.c_str(), 0, 0);_cv 6.90 % 6.90 % 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_mean 14.7 ns 14.7 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_median 14.7 ns 14.7 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_stddev 0.083 ns 0.083 ns 4 -stringa s = " 123456789"; int res = s.to_int; // Check overflow_cv 0.56 % 0.56 % 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_mean 15.5 ns 15.5 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_median 15.6 ns 15.6 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_stddev 0.480 ns 0.480 ns 4 -ssa s = " 123456789"; int res = s.to_int; // No check overflow_cv 3.11 % 3.11 % 4 +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 ----- 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 301 ns 301 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_median 301 ns 301 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_stddev 6.60 ns 6.60 ns 4 -std::string s = "1234.567e10"; double res = std::strtod(s.c_str(), nullptr);_cv 2.20 % 2.20 % 4 +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.35 ns 1.35 ns 4 -std::string_view s = "1234.567e10"; std::from_chars(s.data(), s.data() + s.size(), res);_cv 1.27 % 1.27 % 4 -ssa s = "1234.567e10"; double res = *s.to_double()_mean 41.1 ns 41.1 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_median 41.1 ns 41.1 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_stddev 0.733 ns 0.733 ns 4 -ssa s = "1234.567e10"; double res = *s.to_double()_cv 1.78 % 1.78 % 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 -- 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 6596 ns 6596 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_median 6609 ns 6609 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_stddev 129 ns 129 ns 4 -std::stringstream str; ... str << "abbaabbaabbaabba";_cv 1.95 % 1.95 % 4 -std::string str; ... str += "abbaabbaabbaabba";_mean 858 ns 858 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_median 846 ns 846 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_stddev 46.4 ns 46.4 ns 4 -std::string str; ... str += "abbaabbaabbaabba";_cv 5.41 % 5.41 % 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_mean 782 ns 782 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_median 783 ns 783 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_stddev 31.6 ns 31.6 ns 4 -lstringa<8> str; ... str += "abbaabbaabbaabba";_cv 4.05 % 4.05 % 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_mean 591 ns 591 ns 4 +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 17.7 ns 17.7 ns 4 -lstringa<128> str; ... str += "abbaabbaabbaabba";_cv 2.99 % 3.00 % 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_mean 461 ns 461 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_median 462 ns 462 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_stddev 11.2 ns 11.2 ns 4 -lstringa<512> str; ... str += "abbaabbaabbaabba";_cv 2.43 % 2.43 % 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_mean 372 ns 372 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_median 372 ns 372 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_stddev 8.55 ns 8.55 ns 4 -lstringa<1024> str; ... str += "abbaabbaabbaabba";_cv 2.30 % 2.30 % 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 -- 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 7324 ns 7324 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_median 7352 ns 7352 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_stddev 211 ns 211 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba";_cv 2.88 % 2.88 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_mean 2429 ns 2429 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_median 2381 ns 2381 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_stddev 176 ns 176 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba";_cv 7.25 % 7.25 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_mean 1035 ns 1035 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_median 1026 ns 1026 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_stddev 48.4 ns 48.4 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba";_cv 4.68 % 4.68 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_mean 886 ns 886 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_median 889 ns 889 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_stddev 17.4 ns 17.4 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.96 % 1.96 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_mean 745 ns 745 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_median 746 ns 746 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_stddev 4.82 ns 4.82 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba";_cv 0.65 % 0.65 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_mean 685 ns 685 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_median 685 ns 685 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_stddev 8.14 ns 8.14 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba";_cv 1.19 % 1.19 % 4 +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 -- 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 367555 ns 367556 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_median 368128 ns 368130 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_stddev 1873 ns 1871 ns 4 -std::stringstream str; ... str << str_var << "abbaabbaabbaabba"; 2048 times_cv 0.51 % 0.51 % 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 128555 ns 128557 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 128910 ns 128914 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1399 ns 1400 ns 4 -std::string str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 1.09 % 1.09 % 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 51145 ns 51145 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 51140 ns 51140 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 135 ns 135 ns 4 -lstringa<8> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 0.26 % 0.26 % 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 48871 ns 48871 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48254 ns 48254 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 1574 ns 1574 ns 4 -lstringa<128> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 3.22 % 3.22 % 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 49022 ns 49022 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 48139 ns 48139 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 3277 ns 3277 ns 4 -lstringa<512> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 6.69 % 6.69 % 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_mean 47869 ns 47869 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_median 47499 ns 47499 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_stddev 960 ns 960 ns 4 -lstringa<1024> str; ... str += str_var + "abbaabbaabbaabba"; 2048 times_cv 2.01 % 2.01 % 4 +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 -- 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 7371 ns 7371 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_median 7393 ns 7393 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_stddev 121 ns 121 ns 4 -std::stringstream str; ... str << str_var1 << str_var2;_cv 1.64 % 1.64 % 4 -std::string str; ... str += str_var1 + str_var2;_mean 2705 ns 2705 ns 4 -std::string str; ... str += str_var1 + str_var2;_median 2712 ns 2712 ns 4 -std::string str; ... str += str_var1 + str_var2;_stddev 57.0 ns 57.0 ns 4 -std::string str; ... str += str_var1 + str_var2;_cv 2.11 % 2.11 % 4 -lstringa<16> str; ... str += str_var1 + str_var2;_mean 1272 ns 1272 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_median 1277 ns 1277 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_stddev 49.9 ns 49.9 ns 4 -lstringa<16> str; ... str += str_var1 + str_var2;_cv 3.92 % 3.92 % 4 -lstringa<128> str; ... str += str_var1 + str_var2;_mean 1198 ns 1198 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_median 1191 ns 1191 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_stddev 15.8 ns 15.8 ns 4 -lstringa<128> str; ... str += str_var1 + str_var2;_cv 1.32 % 1.32 % 4 -lstringa<512> str; ... str += str_var1 + str_var2;_mean 1033 ns 1033 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_median 1029 ns 1029 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_stddev 14.7 ns 14.6 ns 4 -lstringa<512> str; ... str += str_var1 + str_var2;_cv 1.42 % 1.42 % 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_mean 960 ns 960 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_median 956 ns 956 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_stddev 47.8 ns 47.8 ns 4 -lstringa<1024> str; ... str += str_var1 + str_var2;_cv 4.98 % 4.98 % 4 +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 -- Append text, number, text --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::stringstream str; str << "test = " << k << " times";_mean 11807 ns 11807 ns 4 -std::stringstream str; str << "test = " << k << " times";_median 11757 ns 11757 ns 4 -std::stringstream str; str << "test = " << k << " times";_stddev 255 ns 255 ns 4 -std::stringstream str; str << "test = " << k << " times";_cv 2.16 % 2.16 % 4 -std::string str = "test = " + std::to_string(k) + " times";_mean 1850 ns 1850 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_median 1862 ns 1862 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_stddev 62.3 ns 62.3 ns 4 -std::string str = "test = " + std::to_string(k) + " times";_cv 3.36 % 3.37 % 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_mean 5459 ns 5459 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_median 5484 ns 5484 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_stddev 129 ns 129 ns 4 -char buf[100]; sprintf(buf, "test = %u times", k); std::string str = buf;_cv 2.36 % 2.36 % 4 -std::string str = std::format("test = {} times", k);_mean 2886 ns 2886 ns 4 -std::string str = std::format("test = {} times", k);_median 2897 ns 2897 ns 4 -std::string str = std::format("test = {} times", k);_stddev 38.2 ns 38.2 ns 4 -std::string str = std::format("test = {} times", k);_cv 1.32 % 1.32 % 4 -lstringa<8> str; str.format("test = {} times", k);_mean 4975 ns 4975 ns 4 -lstringa<8> str; str.format("test = {} times", k);_median 4991 ns 4991 ns 4 -lstringa<8> str; str.format("test = {} times", k);_stddev 186 ns 186 ns 4 -lstringa<8> str; str.format("test = {} times", k);_cv 3.73 % 3.73 % 4 -lstringa<32> str; str.format("test = {} times", k);_mean 4261 ns 4261 ns 4 -lstringa<32> str; str.format("test = {} times", k);_median 4253 ns 4253 ns 4 -lstringa<32> str; str.format("test = {} times", k);_stddev 79.6 ns 79.6 ns 4 -lstringa<32> str; str.format("test = {} times", k);_cv 1.87 % 1.87 % 4 -lstringa<8> str = "test = " + k + " times";_mean 592 ns 592 ns 4 -lstringa<8> str = "test = " + k + " times";_median 590 ns 590 ns 4 -lstringa<8> str = "test = " + k + " times";_stddev 16.1 ns 16.1 ns 4 -lstringa<8> str = "test = " + k + " times";_cv 2.72 % 2.72 % 4 -lstringa<32> str = "test = " + k + " times";_mean 376 ns 376 ns 4 -lstringa<32> str = "test = " + k + " times";_median 379 ns 379 ns 4 -lstringa<32> str = "test = " + k + " times";_stddev 16.3 ns 16.3 ns 4 -lstringa<32> str = "test = " + k + " times";_cv 4.33 % 4.33 % 4 -stringa str = "test = " + k + " times";_mean 573 ns 573 ns 4 -stringa str = "test = " + k + " times";_median 571 ns 571 ns 4 -stringa str = "test = " + k + " times";_stddev 7.80 ns 7.80 ns 4 -stringa str = "test = " + k + " times";_cv 1.36 % 1.36 % 4 +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 -- Split text and convert to int --/repeats:1 0.000 ns 0.000 ns 1000000000000 -std::string::find + substr + std::strtol_mean 693 ns 693 ns 4 -std::string::find + substr + std::strtol_median 693 ns 693 ns 4 -std::string::find + substr + std::strtol_stddev 9.62 ns 9.63 ns 4 -std::string::find + substr + std::strtol_cv 1.39 % 1.39 % 4 -ssa::splitter + ssa::as_int_mean 240 ns 240 ns 4 -ssa::splitter + ssa::as_int_median 237 ns 237 ns 4 -ssa::splitter + ssa::as_int_stddev 8.00 ns 8.00 ns 4 -ssa::splitter + ssa::as_int_cv 3.33 % 3.33 % 4 -ssa::splitf + functor_mean 281 ns 281 ns 4 -ssa::splitf + functor_median 281 ns 281 ns 4 -ssa::splitf + functor_stddev 8.99 ns 8.99 ns 4 -ssa::splitf + functor_cv 3.20 % 3.20 % 4 +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 -- 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 2875 ns 2875 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_median 2883 ns 2883 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_stddev 42.7 ns 42.7 ns 4 -Naive (and wrong) replace symbols with std::string find + replace_cv 1.49 % 1.49 % 4 -replace symbols with std::string find_first_of + replace_mean 5461 ns 5461 ns 4 -replace symbols with std::string find_first_of + replace_median 5451 ns 5451 ns 4 -replace symbols with std::string find_first_of + replace_stddev 112 ns 112 ns 4 -replace symbols with std::string find_first_of + replace_cv 2.06 % 2.06 % 4 -replace symbols with std::string_view find_first_of + copy_mean 3004 ns 3004 ns 4 -replace symbols with std::string_view find_first_of + copy_median 3026 ns 3027 ns 4 -replace symbols with std::string_view find_first_of + copy_stddev 59.0 ns 59.0 ns 4 -replace symbols with std::string_view find_first_of + copy_cv 1.96 % 1.96 % 4 -replace runtime symbols with string expressions and without remembering all search results_mean 2942 ns 2942 ns 4 -replace runtime symbols with string expressions and without remembering all search results_median 2959 ns 2959 ns 4 -replace runtime symbols with string expressions and without remembering all search results_stddev 177 ns 177 ns 4 -replace runtime symbols with string expressions and without remembering all search results_cv 6.03 % 6.03 % 4 -replace runtime symbols with simstr and memorization of all search results_mean 2367 ns 2367 ns 4 -replace runtime symbols with simstr and memorization of all search results_median 2362 ns 2362 ns 4 -replace runtime symbols with simstr and memorization of all search results_stddev 49.7 ns 49.7 ns 4 -replace runtime symbols with simstr and memorization of all search results_cv 2.10 % 2.10 % 4 -replace const symbols with string expressions and without remembering all search results_mean 2442 ns 2442 ns 4 -replace const symbols with string expressions and without remembering all search results_median 2411 ns 2411 ns 4 -replace const symbols with string expressions and without remembering all search results_stddev 96.3 ns 96.3 ns 4 -replace const symbols with string expressions and without remembering all search results_cv 3.94 % 3.94 % 4 -replace const symbols with string expressions and memorization of all search results_mean 2031 ns 2031 ns 4 -replace const symbols with string expressions and memorization of all search results_median 2029 ns 2029 ns 4 -replace const symbols with string expressions and memorization of all search results_stddev 30.1 ns 30.1 ns 4 -replace const symbols with string expressions and memorization of all search results_cv 1.48 % 1.48 % 4 +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 -- 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 516 ns 516 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_median 515 ns 515 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_stddev 24.6 ns 24.6 ns 4 -Short Naive (and wrong) replace symbols with std::string find + replace_cv 4.77 % 4.77 % 4 -Short replace symbols with std::string find_first_of + replace_mean 774 ns 774 ns 4 -Short replace symbols with std::string find_first_of + replace_median 775 ns 775 ns 4 -Short replace symbols with std::string find_first_of + replace_stddev 9.92 ns 9.91 ns 4 -Short replace symbols with std::string find_first_of + replace_cv 1.28 % 1.28 % 4 -Short replace symbols with std::string_view find_first_of + copy_mean 439 ns 439 ns 4 -Short replace symbols with std::string_view find_first_of + copy_median 439 ns 439 ns 4 -Short replace symbols with std::string_view find_first_of + copy_stddev 2.88 ns 2.88 ns 4 -Short replace symbols with std::string_view find_first_of + copy_cv 0.66 % 0.66 % 4 -Short replace runtime symbols with string expressions and without remembering all search results_mean 389 ns 389 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_median 389 ns 389 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_stddev 2.32 ns 2.32 ns 4 -Short replace runtime symbols with string expressions and without remembering all search results_cv 0.60 % 0.60 % 4 -Short replace runtime symbols with simstr and memorization of all search results_mean 439 ns 439 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_median 439 ns 439 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_stddev 8.89 ns 8.89 ns 4 -Short replace runtime symbols with simstr and memorization of all search results_cv 2.03 % 2.03 % 4 -Short replace const symbols with string expressions and without remembering all search results_mean 292 ns 292 ns 4 -Short replace const symbols with string expressions and without remembering all search results_median 290 ns 290 ns 4 -Short replace const symbols with string expressions and without remembering all search results_stddev 17.5 ns 17.5 ns 4 -Short replace const symbols with string expressions and without remembering all search results_cv 5.98 % 5.98 % 4 -Short replace const symbols with string expressions and memorization of all search results_mean 320 ns 320 ns 4 -Short replace const symbols with string expressions and memorization of all search results_median 320 ns 320 ns 4 -Short replace const symbols with string expressions and memorization of all search results_stddev 2.56 ns 2.56 ns 4 -Short replace const symbols with string expressions and memorization of all search results_cv 0.80 % 0.80 % 4 +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 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 ----- Replace All Str To Longer Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to ---- in std::string|64_mean 394 ns 394 ns 4 -replace bb to ---- in std::string|64_median 378 ns 378 ns 4 -replace bb to ---- in std::string|64_stddev 32.9 ns 32.9 ns 4 -replace bb to ---- in std::string|64_cv 8.33 % 8.33 % 4 -replace bb to ---- in std::string|256_mean 1197 ns 1197 ns 4 -replace bb to ---- in std::string|256_median 1181 ns 1181 ns 4 -replace bb to ---- in std::string|256_stddev 44.4 ns 44.4 ns 4 -replace bb to ---- in std::string|256_cv 3.71 % 3.71 % 4 -replace bb to ---- in std::string|512_mean 2361 ns 2361 ns 4 -replace bb to ---- in std::string|512_median 2360 ns 2361 ns 4 -replace bb to ---- in std::string|512_stddev 34.7 ns 34.5 ns 4 -replace bb to ---- in std::string|512_cv 1.47 % 1.46 % 4 -replace bb to ---- in std::string|1024_mean 4872 ns 4872 ns 4 -replace bb to ---- in std::string|1024_median 4719 ns 4719 ns 4 -replace bb to ---- in std::string|1024_stddev 344 ns 344 ns 4 -replace bb to ---- in std::string|1024_cv 7.07 % 7.07 % 4 -replace bb to ---- in std::string|2048_mean 11862 ns 11862 ns 4 -replace bb to ---- in std::string|2048_median 11883 ns 11883 ns 4 -replace bb to ---- in std::string|2048_stddev 409 ns 409 ns 4 -replace bb to ---- in std::string|2048_cv 3.45 % 3.45 % 4 -replace bb to ---- in lstringa<8>|64_mean 306 ns 306 ns 4 -replace bb to ---- in lstringa<8>|64_median 298 ns 298 ns 4 -replace bb to ---- in lstringa<8>|64_stddev 17.8 ns 17.8 ns 4 -replace bb to ---- in lstringa<8>|64_cv 5.83 % 5.83 % 4 -replace bb to ---- in lstringa<8>|256_mean 953 ns 953 ns 4 -replace bb to ---- in lstringa<8>|256_median 938 ns 938 ns 4 -replace bb to ---- in lstringa<8>|256_stddev 50.2 ns 50.2 ns 4 -replace bb to ---- in lstringa<8>|256_cv 5.27 % 5.27 % 4 -replace bb to ---- in lstringa<8>|512_mean 1732 ns 1732 ns 4 -replace bb to ---- in lstringa<8>|512_median 1728 ns 1728 ns 4 -replace bb to ---- in lstringa<8>|512_stddev 36.7 ns 36.7 ns 4 -replace bb to ---- in lstringa<8>|512_cv 2.12 % 2.12 % 4 -replace bb to ---- in lstringa<8>|1024_mean 3256 ns 3256 ns 4 -replace bb to ---- in lstringa<8>|1024_median 3267 ns 3267 ns 4 -replace bb to ---- in lstringa<8>|1024_stddev 90.1 ns 90.1 ns 4 -replace bb to ---- in lstringa<8>|1024_cv 2.77 % 2.77 % 4 -replace bb to ---- in lstringa<8>|2048_mean 6323 ns 6323 ns 4 -replace bb to ---- in lstringa<8>|2048_median 6272 ns 6272 ns 4 -replace bb to ---- in lstringa<8>|2048_stddev 132 ns 132 ns 4 -replace bb to ---- in lstringa<8>|2048_cv 2.09 % 2.09 % 4 -replace bb to ---- by init stringa|64_mean 162 ns 162 ns 4 -replace bb to ---- by init stringa|64_median 156 ns 156 ns 4 -replace bb to ---- by init stringa|64_stddev 14.5 ns 14.5 ns 4 -replace bb to ---- by init stringa|64_cv 8.97 % 8.97 % 4 -replace bb to ---- by init stringa|256_mean 527 ns 527 ns 4 -replace bb to ---- by init stringa|256_median 537 ns 537 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 5.42 % 5.42 % 4 -replace bb to ---- by init stringa|512_mean 1213 ns 1214 ns 4 -replace bb to ---- by init stringa|512_median 1205 ns 1205 ns 4 -replace bb to ---- by init stringa|512_stddev 59.2 ns 59.2 ns 4 -replace bb to ---- by init stringa|512_cv 4.88 % 4.88 % 4 -replace bb to ---- by init stringa|1024_mean 2565 ns 2565 ns 4 -replace bb to ---- by init stringa|1024_median 2523 ns 2523 ns 4 -replace bb to ---- by init stringa|1024_stddev 131 ns 131 ns 4 -replace bb to ---- by init stringa|1024_cv 5.12 % 5.12 % 4 -replace bb to ---- by init stringa|2048_mean 5315 ns 5315 ns 4 -replace bb to ---- by init stringa|2048_median 5285 ns 5285 ns 4 -replace bb to ---- by init stringa|2048_stddev 260 ns 260 ns 4 -replace bb to ---- by init stringa|2048_cv 4.90 % 4.90 % 4 +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 All Str To Same Size ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -replace bb to -- in std::string|64_mean 256 ns 256 ns 4 -replace bb to -- in std::string|64_median 258 ns 258 ns 4 -replace bb to -- in std::string|64_stddev 6.17 ns 6.17 ns 4 -replace bb to -- in std::string|64_cv 2.40 % 2.40 % 4 -replace bb to -- in std::string|256_mean 819 ns 819 ns 4 -replace bb to -- in std::string|256_median 823 ns 823 ns 4 -replace bb to -- in std::string|256_stddev 32.6 ns 32.6 ns 4 -replace bb to -- in std::string|256_cv 3.98 % 3.98 % 4 -replace bb to -- in std::string|512_mean 1546 ns 1546 ns 4 -replace bb to -- in std::string|512_median 1541 ns 1541 ns 4 -replace bb to -- in std::string|512_stddev 34.5 ns 34.5 ns 4 -replace bb to -- in std::string|512_cv 2.23 % 2.23 % 4 -replace bb to -- in std::string|1024_mean 2954 ns 2954 ns 4 -replace bb to -- in std::string|1024_median 2945 ns 2945 ns 4 -replace bb to -- in std::string|1024_stddev 84.8 ns 84.8 ns 4 -replace bb to -- in std::string|1024_cv 2.87 % 2.87 % 4 -replace bb to -- in std::string|2048_mean 5749 ns 5749 ns 4 -replace bb to -- in std::string|2048_median 5756 ns 5756 ns 4 -replace bb to -- in std::string|2048_stddev 103 ns 103 ns 4 -replace bb to -- in std::string|2048_cv 1.79 % 1.79 % 4 -replace bb to -- in lstringa<8>|64_mean 206 ns 206 ns 4 -replace bb to -- in lstringa<8>|64_median 203 ns 203 ns 4 -replace bb to -- in lstringa<8>|64_stddev 7.19 ns 7.19 ns 4 -replace bb to -- in lstringa<8>|64_cv 3.50 % 3.50 % 4 -replace bb to -- in lstringa<8>|256_mean 650 ns 650 ns 4 -replace bb to -- in lstringa<8>|256_median 652 ns 652 ns 4 -replace bb to -- in lstringa<8>|256_stddev 22.8 ns 22.8 ns 4 -replace bb to -- in lstringa<8>|256_cv 3.51 % 3.51 % 4 -replace bb to -- in lstringa<8>|512_mean 1202 ns 1202 ns 4 -replace bb to -- in lstringa<8>|512_median 1190 ns 1190 ns 4 -replace bb to -- in lstringa<8>|512_stddev 32.8 ns 32.8 ns 4 -replace bb to -- in lstringa<8>|512_cv 2.73 % 2.73 % 4 -replace bb to -- in lstringa<8>|1024_mean 2364 ns 2364 ns 4 -replace bb to -- in lstringa<8>|1024_median 2338 ns 2338 ns 4 -replace bb to -- in lstringa<8>|1024_stddev 123 ns 123 ns 4 -replace bb to -- in lstringa<8>|1024_cv 5.19 % 5.19 % 4 -replace bb to -- in lstringa<8>|2048_mean 4378 ns 4378 ns 4 -replace bb to -- in lstringa<8>|2048_median 4391 ns 4391 ns 4 -replace bb to -- in lstringa<8>|2048_stddev 54.5 ns 54.5 ns 4 -replace bb to -- in lstringa<8>|2048_cv 1.24 % 1.25 % 4 -replace bb to -- by init stringa|64_mean 147 ns 147 ns 4 -replace bb to -- by init stringa|64_median 146 ns 146 ns 4 -replace bb to -- by init stringa|64_stddev 4.16 ns 4.16 ns 4 -replace bb to -- by init stringa|64_cv 2.83 % 2.83 % 4 +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 474 ns 474 ns 4 -replace bb to -- by init stringa|256_stddev 14.4 ns 14.4 ns 4 -replace bb to -- by init stringa|256_cv 3.05 % 3.05 % 4 -replace bb to -- by init stringa|512_mean 912 ns 912 ns 4 -replace bb to -- by init stringa|512_median 903 ns 903 ns 4 -replace bb to -- by init stringa|512_stddev 35.7 ns 35.7 ns 4 -replace bb to -- by init stringa|512_cv 3.92 % 3.92 % 4 -replace bb to -- by init stringa|1024_mean 1712 ns 1712 ns 4 -replace bb to -- by init stringa|1024_median 1688 ns 1688 ns 4 -replace bb to -- by init stringa|1024_stddev 57.4 ns 57.4 ns 4 -replace bb to -- by init stringa|1024_cv 3.35 % 3.35 % 4 -replace bb to -- by init stringa|2048_mean 2832 ns 2832 ns 4 -replace bb to -- by init stringa|2048_median 2848 ns 2848 ns 4 -replace bb to -- by init stringa|2048_stddev 50.2 ns 50.2 ns 4 -replace bb to -- by init stringa|2048_cv 1.77 % 1.77 % 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 ----- Hash Map insert and find ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -hashStrMapA emplace & find stringa;_mean 3227313 ns 3227301 ns 4 -hashStrMapA emplace & find stringa;_median 3231739 ns 3231727 ns 4 -hashStrMapA emplace & find stringa;_stddev 13467 ns 13477 ns 4 -hashStrMapA emplace & find stringa;_cv 0.42 % 0.42 % 4 -std::unordered_map emplace & find std::string;_mean 3640106 ns 3640118 ns 4 -std::unordered_map emplace & find std::string;_median 3618259 ns 3618259 ns 4 -std::unordered_map emplace & find std::string;_stddev 92723 ns 92726 ns 4 -std::unordered_map emplace & find std::string;_cv 2.55 % 2.55 % 4 -hashStrMapA emplace & find ssa;_mean 3237505 ns 3237495 ns 4 -hashStrMapA emplace & find ssa;_median 3246561 ns 3246539 ns 4 -hashStrMapA emplace & find ssa;_stddev 21057 ns 21051 ns 4 -hashStrMapA emplace & find ssa;_cv 0.65 % 0.65 % 4 -std::unordered_map emplace & find std::string_view;_mean 4135414 ns 4135414 ns 4 -std::unordered_map emplace & find std::string_view;_median 4133486 ns 4133471 ns 4 -std::unordered_map emplace & find std::string_view;_stddev 39953 ns 39951 ns 4 -std::unordered_map emplace & find std::string_view;_cv 0.97 % 0.97 % 4 +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 ----- Build Full Func Name ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -Build func full name std::string;_mean 3605 ns 3605 ns 4 -Build func full name std::string;_median 3662 ns 3662 ns 4 -Build func full name std::string;_stddev 166 ns 166 ns 4 -Build func full name std::string;_cv 4.61 % 4.61 % 4 -Build func full name std::string 1;_mean 3610 ns 3610 ns 4 -Build func full name std::string 1;_median 3614 ns 3614 ns 4 -Build func full name std::string 1;_stddev 119 ns 119 ns 4 -Build func full name std::string 1;_cv 3.31 % 3.31 % 4 -Build func full name std::stream;_mean 12391 ns 12391 ns 4 -Build func full name std::stream;_median 12391 ns 12391 ns 4 -Build func full name std::stream;_stddev 112 ns 112 ns 4 -Build func full name std::stream;_cv 0.91 % 0.91 % 4 -Build func full name stringa;_mean 1610 ns 1610 ns 4 -Build func full name stringa;_median 1566 ns 1566 ns 4 -Build func full name stringa;_stddev 114 ns 114 ns 4 -Build func full name stringa;_cv 7.10 % 7.10 % 4 -Build func full name stringa 1;_mean 1874 ns 1874 ns 4 -Build func full name stringa 1;_median 1867 ns 1867 ns 4 -Build func full name stringa 1;_stddev 59.5 ns 59.5 ns 4 -Build func full name stringa 1;_cv 3.17 % 3.17 % 4 +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 ----- Make Upper ---------/repeats:1 0.000 ns 0.000 ns 1000000000000 -To upper case std::wstring_mean 203 ns 203 ns 4 -To upper case std::wstring_median 204 ns 204 ns 4 -To upper case std::wstring_stddev 4.67 ns 4.67 ns 4 -To upper case std::wstring_cv 2.30 % 2.30 % 4 -To upper case lstringw<15>_mean 63.5 ns 63.5 ns 4 -To upper case lstringw<15>_median 63.8 ns 63.8 ns 4 -To upper case lstringw<15>_stddev 0.601 ns 0.601 ns 4 -To upper case lstringw<15>_cv 0.95 % 0.95 % 4 +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! diff --git a/docs/Doxyfile b/docs/Doxyfile index 7950c38..d2157dd 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.1 +PROJECT_NUMBER = 1.7.2 # 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 4381fdc..7610540 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.1 +PROJECT_NUMBER = 1.7.2 # 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 f892f85..4216d52 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.1 + * ver. 1.7.2 */ #pragma once diff --git a/include/simstr/sstring.h b/include/simstr/sstring.h index bc754fe..0da2585 100644 --- a/include/simstr/sstring.h +++ b/include/simstr/sstring.h @@ -1,5 +1,5 @@ /* -* ver. 1.7.1 +* ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Классы для работы со строками * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -331,9 +331,9 @@ public: return {}; } #ifdef __linux__ - if constexpr(sizeof(K) == 1) { + if constexpr(sizeof(K) == 1 && requires {std::from_chars(std::declval(), std::declval(), std::declval()); }) { double d{}; - if (std::from_chars((const u8s*)ptr, (const u8s*)ptr + len, d).ec == std::errc{}) { + if (std::from_chars((const K*)ptr, (const K*)ptr + len, d).ec == std::errc{}) { return d; } return {}; diff --git a/include/simstr/strexpr.h b/include/simstr/strexpr.h index 0ea2d12..8d95614 100644 --- a/include/simstr/strexpr.h +++ b/include/simstr/strexpr.h @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * База для строковых конкатенаций через выражения времени компиляции * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -4158,7 +4158,9 @@ public: * @en @brief Convert string to double. * @return std::optional. */ - template requires (sizeof(K) == 1) + template + requires(sizeof(K) == 1 && + requires { std::from_chars(std::declval(), std::declval(), std::declval()); }) std::optional to_double() const noexcept { size_t len = _len(); const K* ptr = _str(); @@ -4177,9 +4179,11 @@ public: if (!len) { return {}; } - double d{}; - if (std::from_chars((const u8s*)ptr, (const u8s*)ptr + len, d).ec == std::errc{}) { - return d; + if constexpr (requires { std::from_chars(std::declval(), std::declval(), std::declval()); }) { + double d{}; + if (std::from_chars((const K*)ptr, (const K*)ptr + len, d).ec == std::errc{}) { + return d; + } } return {}; } @@ -4189,7 +4193,9 @@ public: * @en @brief Convert string in hex form to double. * @return std::optional. */ - template requires (sizeof(K) == 1) + template + requires(sizeof(K) == 1 && + requires { std::from_chars(std::declval(), std::declval(), std::declval()); }) std::optional to_double_hex() const noexcept { size_t len = _len(); const K* ptr = _str(); @@ -4200,9 +4206,11 @@ public: } } if (len) { - double d{}; - if (std::from_chars(ptr, ptr + len, d, std::chars_format::hex).ec == std::errc{}) { - return d; + if constexpr (requires { std::from_chars(std::declval(), std::declval(), std::declval()); }) { + double d{}; + if (std::from_chars((const K*)ptr, (const K*)ptr + len, d, std::chars_format::hex).ec == std::errc{}) { + return d; + } } } return {}; diff --git a/readme.md b/readme.md index 268bbec..0294c6e 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.1. +Version 1.7.2.

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

@@ -324,8 +324,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.7.1 # Specify the desired release - FIND_PACKAGE_ARGS NAMES simstr 1.7.1 + GIT_TAG tags/rel1.7.2 # Specify the desired release + FIND_PACKAGE_ARGS NAMES simstr 1.7.2 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/readme_ru.md b/readme_ru.md index d7714f6..04999c2 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.1. +Версия 1.7.2.

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

@@ -325,8 +325,8 @@ function(add_simstr) simstr GIT_REPOSITORY https://github.com/orefkov/simstr.git GIT_SHALLOW TRUE - GIT_TAG tags/rel1.7.1 # Укажите нужный релиз - FIND_PACKAGE_ARGS NAMES simstr 1.7.1 + GIT_TAG tags/rel1.7.2 # Укажите нужный релиз + FIND_PACKAGE_ARGS NAMES simstr 1.7.2 ) FetchContent_MakeAvailable(simstr) endfunction() diff --git a/src/sstring.cpp b/src/sstring.cpp index 1b1875d..efeecf7 100644 --- a/src/sstring.cpp +++ b/src/sstring.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Реализация строковых функций * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com diff --git a/tests/test_expr_only.cpp b/tests/test_expr_only.cpp index 35545fd..6b763d5 100644 --- a/tests/test_expr_only.cpp +++ b/tests/test_expr_only.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (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 0f1fb94..49e75b8 100644 --- a/tests/test_str.cpp +++ b/tests/test_str.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com @@ -1987,13 +1987,21 @@ TEST(SimStr, HexEpr) { std::u32string textuu = +U"val = 0X"sv + e_hex(0x12Au); EXPECT_EQ(textuu, U"val = 0X12A"); + if (sizeof(void*) == 8) { + text = +"ptr = "sv + (const void*)0xdeadbeefcafe01; + EXPECT_EQ(text, "ptr = 0x00DEADBEEFCAFE01"); - text = +"ptr = "sv + (const void*)0xdeadbeefcafe01; - EXPECT_EQ(text, "ptr = 0x00DEADBEEFCAFE01"); + const char* ptr = (const char*)0xdeadbeefcafe01; + std::u16string utext = ptr + +u" freed"sv; + EXPECT_EQ(utext, u"0x00DEADBEEFCAFE01 freed"); + } else { + text = +"ptr = "sv + (const void*)0xdeadbeef; + EXPECT_EQ(text, "ptr = 0xDEADBEEF"); - const char* ptr = (const char*)0xdeadbeefcafe01; - std::u16string utext = ptr + +u" freed"sv; - EXPECT_EQ(utext, u"0x00DEADBEEFCAFE01 freed"); + const char* ptr = (const char*)0xdeadbeef; + std::u16string utext = ptr + +u" freed"sv; + EXPECT_EQ(utext, u"0xDEADBEEF freed"); + } } TEST(SimStr, EFill) { diff --git a/tests/test_tostrexpr.cpp b/tests/test_tostrexpr.cpp index adfe1d2..32aa89a 100644 --- a/tests/test_tostrexpr.cpp +++ b/tests/test_tostrexpr.cpp @@ -1,5 +1,5 @@ /* - * ver. 1.7.1 + * ver. 1.7.2 * (c) Проект "SimStr", Александр Орефков orefkov@gmail.com * Тесты simstr * (c) Project "SimStr", Aleksandr Orefkov orefkov@gmail.com