From 19462f3cb698888d90ffebda0651668db6774c46 Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Tue, 3 Apr 2018 13:15:06 +0300 Subject: [PATCH] Bug 1450907 - Spend less time benchmarking HasRTLChars. r=jfkthame This sets a new baseline for these benchmarks. MozReview-Commit-ID: 1BotMvQ8Rjg --HG-- extra : rebase_source : 5dd8f6004dd477ce57f94d5af072859b280d30f8 --- xpcom/tests/gtest/TestStrings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xpcom/tests/gtest/TestStrings.cpp b/xpcom/tests/gtest/TestStrings.cpp index 1bebf4a93dd6..2798e42862d8 100644 --- a/xpcom/tests/gtest/TestStrings.cpp +++ b/xpcom/tests/gtest/TestStrings.cpp @@ -1582,35 +1582,35 @@ MOZ_GTEST_BENCH_F(Strings, PerfIsASCIIExample3, [this] { }); MOZ_GTEST_BENCH_F(Strings, PerfHasRTLCharsExample3, [this] { - for (int i = 0; i < 100000; i++) { + for (int i = 0; i < 5000; i++) { bool b = HasRTLChars(*BlackBox(&mExample3Utf16)); BlackBox(&b); } }); MOZ_GTEST_BENCH_F(Strings, PerfHasRTLCharsDE, [this] { - for (int i = 0; i < 100000; i++) { + for (int i = 0; i < 5000; i++) { bool b = HasRTLChars(*BlackBox(&mDeUtf16)); BlackBox(&b); } }); MOZ_GTEST_BENCH_F(Strings, PerfHasRTLCharsRU, [this] { - for (int i = 0; i < 100000; i++) { + for (int i = 0; i < 5000; i++) { bool b = HasRTLChars(*BlackBox(&mRuUtf16)); BlackBox(&b); } }); MOZ_GTEST_BENCH_F(Strings, PerfHasRTLCharsTH, [this] { - for (int i = 0; i < 100000; i++) { + for (int i = 0; i < 5000; i++) { bool b = HasRTLChars(*BlackBox(&mThUtf16)); BlackBox(&b); } }); MOZ_GTEST_BENCH_F(Strings, PerfHasRTLCharsJA, [this] { - for (int i = 0; i < 100000; i++) { + for (int i = 0; i < 5000; i++) { bool b = HasRTLChars(*BlackBox(&mJaUtf16)); BlackBox(&b); }