X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebfa7ceaa468f67d73407eb768aa44115c3220a7..bced985eb03eb774a1e5337ed8b1fa7d662d11a3:/tests/benchmarks/strings.cpp?ds=inline diff --git a/tests/benchmarks/strings.cpp b/tests/benchmarks/strings.cpp index 9449f49110..cc09a35418 100644 --- a/tests/benchmarks/strings.cpp +++ b/tests/benchmarks/strings.cpp @@ -281,6 +281,18 @@ BENCHMARK_FUNC(ReplaceAll) return str.Replace("x", "y") != 0; } +BENCHMARK_FUNC(ReplaceLonger) +{ + wxString str('x', ASCIISTR_LEN); + return str.Replace("x", "yy") != 0; +} + +BENCHMARK_FUNC(ReplaceShorter) +{ + wxString str('x', ASCIISTR_LEN); + return str.Replace("xx", "y") != 0; +} + // ---------------------------------------------------------------------------- // string buffers: wx[W]CharBuffer