PerformanceTests/TailBench9000/merge-sort.js does not actually sort any of the large...
authorrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Nov 2017 12:56:51 +0000 (12:56 +0000)
committerrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Nov 2017 12:56:51 +0000 (12:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178817

Reviewed by Saam Barati.

* TailBench9000/merge-sort.js:
(TEST_mergeSort):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@224485 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/TailBench9000/merge-sort.js

index ab2059a..84a2a96 100644 (file)
@@ -1,3 +1,13 @@
+2017-11-06  Robin Morisset  <rmorisset@apple.com>
+
+        PerformanceTests/TailBench9000/merge-sort.js does not actually sort any of the large arrays it allocates
+        https://bugs.webkit.org/show_bug.cgi?id=178817
+
+        Reviewed by Saam Barati.
+
+        * TailBench9000/merge-sort.js:
+        (TEST_mergeSort):
+
 2017-11-02  Jon Lee  <jonlee@apple.com>
 
         Add license for MotionMark
index 85835e7..4714b9c 100644 (file)
@@ -134,8 +134,6 @@ function TEST_mergeSort()
     let arrays = [
         buildArray(10, x => x),
         buildArray(10, x => -x),
-        buildArray(1000, x => x),
-        buildArray(10000, x => -x),
         buildArray(10000, x => random())
     ];
     
@@ -148,10 +146,11 @@ function TEST_mergeSort()
         let sorted = mergeSorted(array, (a, b) => a < b ? -1 : a > b ? 1 : 0);
         checkSorted(sorted);
         checkSpectrum(array, sorted);
+        test(index + 1)
     }
     
     test(0);
 }
 
-for (var i = 0; i < 3000; ++i)
+for (var i = 0; i < 100; ++i)
     TEST_mergeSort();