Changeset 223956 in webkit


Ignore:
Timestamp:
Oct 25, 2017 9:58:57 AM (7 years ago)
Author:
rmorisset@apple.com
Message:

Support the TailBench9000 benchmark in run-jsc-benchmarks
https://bugs.webkit.org/show_bug.cgi?id=178451

Reviewed by Saam Barati.

PerformanceTests:

The separation between the definition of the benchmarks (in merge-sort.js and n-body.js) and their loops (in *-run.js)
was causing trouble since the load of the js files only succeeded from the same directory. So I chose to merge them, following
the example of the other benchmarks.

  • TailBench9000/merge-sort-run.js: Removed.
  • TailBench9000/merge-sort.js:
  • TailBench9000/n-body-run.js: Removed.
  • TailBench9000/n-body.js:

Tools:

  • Scripts/run-jsc-benchmarks:
Location:
trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r223733 r223956  
     12017-10-25  Robin Morisset  <rmorisset@apple.com>
     2
     3        Support the TailBench9000 benchmark in run-jsc-benchmarks
     4        https://bugs.webkit.org/show_bug.cgi?id=178451
     5
     6        Reviewed by Saam Barati.
     7
     8        The separation between the definition of the benchmarks (in merge-sort.js and n-body.js) and their loops (in *-run.js)
     9        was causing trouble since the load of the js files only succeeded from the same directory. So I chose to merge them, following
     10        the example of the other benchmarks.
     11
     12        * TailBench9000/merge-sort-run.js: Removed.
     13        * TailBench9000/merge-sort.js:
     14        * TailBench9000/n-body-run.js: Removed.
     15        * TailBench9000/n-body.js:
     16
    1172017-10-19  Michael Catanzaro  <mcatanzaro@igalia.com>
    218
  • trunk/PerformanceTests/TailBench9000/merge-sort.js

    r221685 r223956  
    153153    test(0);
    154154}
     155
     156for (var i = 0; i < 3000; ++i)
     157    TEST_mergeSort();
  • trunk/PerformanceTests/TailBench9000/n-body.js

    r221685 r223956  
    236236        throw "ERROR: bad result: expected " + expected + " but got " + ret;
    237237}
     238
     239for (var i = 0; i < 300; ++i)
     240    TEST_nBody();
  • trunk/Tools/ChangeLog

    r223953 r223956  
     12017-10-25  Robin Morisset  <rmorisset@apple.com>
     2
     3        Support the TailBench9000 benchmark in run-jsc-benchmarks
     4        https://bugs.webkit.org/show_bug.cgi?id=178451
     5
     6        Reviewed by Saam Barati.
     7
     8        * Scripts/run-jsc-benchmarks:
     9
    1102017-10-25  Adrian Perez de Castro  <aperez@igalia.com>
    211
  • trunk/Tools/Scripts/run-jsc-benchmarks

    r217124 r223956  
    4949LONGSPIDER_PATH = PERFORMANCETESTS_PATH + "LongSpider"
    5050V8_PATH = PERFORMANCETESTS_PATH + "SunSpider" + "tests" + "v8-v6"
     51TAILBENCH_PATH = PERFORMANCETESTS_PATH + "TailBench9000"
    5152MICROBENCHMARKS_PATH = OPENSOURCE_PATH + "JSTests" + "microbenchmarks"
    5253OCTANE_WRAPPER_PATH = PERFORMANCETESTS_PATH + "Octane" + "wrappers"
     
    227228$includeCompressionBench = true
    228229$includeSixSpeed = true
     230$includeTailBench = true
    229231$measureGC=false
    230232$benchmarkPattern=nil
     
    318320  puts "--browsermark-dom    Only run browsermark-dom."
    319321  puts "--octane             Only run Octane."
     322  puts "--tail-bench         Only run TailBench"
    320323  puts "--compression-bench  Only run compression bench"
    321324  puts "                     The default is to run all benchmarks. The above options can"
     
    16251628end
    16261629
     1630class TailBenchBenchmark
     1631  include Benchmark
     1632
     1633  def initialize(name)
     1634    @name = name
     1635  end
     1636
     1637  def emitRunCode(plan)
     1638    emitBenchRunCode(fullname, plan, SingleFileTimedBenchmarkParameters.new(ensureFile("TailBench-#{@name}", "#{TAILBENCH_PATH}/#{@name}.js")))
     1639  end
     1640end
     1641
    16271642class MicrobenchmarksBenchmark
    16281643  include Benchmark
     
    26722687      $includeCompressionBench = false
    26732688      $includeSixSpeed = false
     2689      $includeTailBench = false;
    26742690      $sawBenchOptions = true
    26752691    end
     
    26972713                 ['--compression-bench', GetoptLong::NO_ARGUMENT],
    26982714                 ['--six-speed', GetoptLong::NO_ARGUMENT],
     2715                 ['--tail-bench', GetoptLong::NO_ARGUMENT],
    26992716                 ['--benchmarks', GetoptLong::REQUIRED_ARGUMENT],
    27002717                 ['--measure-gc', GetoptLong::OPTIONAL_ARGUMENT],
     
    27762793      resetBenchOptionsIfNecessary
    27772794      $includeJSBench = true
     2795    when '--tail-bench'
     2796      resetBenchOptionsIfNecessary
     2797      $includeTailBench = true
    27782798    when '--microbenchmarks'
    27792799      resetBenchOptionsIfNecessary
     
    30163036    JSBENCH.add JSBenchBenchmark.new(*nameAndMode)
    30173037  }
    3018  
     3038
     3039  TAILBENCH = BenchmarkSuite.new("TailBench", :geometricMean, 0)
     3040  ["n-body", "merge-sort"].each {
     3041    | name |
     3042    TAILBENCH.add TailBenchBenchmark.new(name);
     3043  }
     3044
    30193045  MICROBENCHMARKS = BenchmarkSuite.new("Microbenchmarks", :geometricMean, 0)
    30203046  Dir.foreach(MICROBENCHMARKS_PATH) {
     
    31553181  end
    31563182 
     3183  if $includeTailBench and not TAILBENCH.empty?
     3184    $suites << TAILBENCH
     3185  end
     3186
    31573187  if $includeMicrobenchmarks and not MICROBENCHMARKS.empty?
    31583188    $suites << MICROBENCHMARKS
    31593189  end
    3160  
     3190
    31613191  if $includeAsmBench and not ASMBENCH.empty?
    31623192    if ASMBENCH_PATH
Note: See TracChangeset for help on using the changeset viewer.