Bug 1450907 - Spend less time benchmarking HasRTLChars. r=jfkthame
authorHenri Sivonen <hsivonen@hsivonen.fi>
Tue, 03 Apr 2018 13:15:06 +0300
changeset 411543 3d4b1e4c8b1d7b172a8fde7001f522621eff007a
parent 411542 1fdafd3608520632998622f1a3a855298696e924
child 411544 b32e3d1b5d9faf2d5b352f9b480f603d79584a79
push id101686
push useraciure@mozilla.com
push dateTue, 03 Apr 2018 21:59:31 +0000
treeherdermozilla-inbound@8d846598d35d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1450907
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1450907 - Spend less time benchmarking HasRTLChars. r=jfkthame This sets a new baseline for these benchmarks. MozReview-Commit-ID: 1BotMvQ8Rjg
xpcom/tests/gtest/TestStrings.cpp
--- a/xpcom/tests/gtest/TestStrings.cpp
+++ b/xpcom/tests/gtest/TestStrings.cpp
@@ -1577,43 +1577,43 @@ MOZ_GTEST_BENCH_F(Strings, PerfIsASCIIHu
 MOZ_GTEST_BENCH_F(Strings, PerfIsASCIIExample3, [this] {
     for (int i = 0; i < 100000; i++) {
       bool b = IsASCII(*BlackBox(&mExample3Utf8));
       BlackBox(&b);
     }
 });
 
 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);
     }
 });
 
 } // namespace TestStrings