X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebfa7ceaa468f67d73407eb768aa44115c3220a7..3c01c5951189e13b8b4a5d7b288b54d4a57a30f8:/tests/benchmarks/strings.cpp 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