[pypy-commit] lang-js default: reverted 0374ce112d8a

stepahn noreply at buildbot.pypy.org
Fri May 13 13:45:14 CEST 2011


Author: Stephan <stephan at stzal.com>
Branch: 
Changeset: r42:297e0c6b935e
Date: 2011-05-08 21:17 +0200
http://bitbucket.org/pypy/lang-js/changeset/297e0c6b935e/

Log:	reverted 0374ce112d8a

diff --git a/js/bench/v8/v1/base.js b/js/bench/v8/v1/base.js
--- a/js/bench/v8/v1/base.js
+++ b/js/bench/v8/v1/base.js
@@ -62,8 +62,7 @@
   this.name = name;
   this.reference = reference;
   this.benchmarks = benchmarks;
-  // XXX BenchmarkSuite.suites.push(this);
-  BenchmarkSuite.suites[BenchmarkSuite.suites.length] = this;
+  BenchmarkSuite.suites.push(this);
 }
 
 
@@ -135,8 +134,7 @@
 // Notifies the runner that we're done running a single benchmark in
 // the benchmark suite. This can be useful to report progress.
 BenchmarkSuite.prototype.NotifyStep = function(result) {
-  // XXX this.results.push(result);
-  this.results[this.results.length] = result;
+  this.results.push(result);
   if (this.runner.NotifyStep) this.runner.NotifyStep(result.benchmark.name);
 };
 
@@ -146,8 +144,7 @@
 BenchmarkSuite.prototype.NotifyResult = function() {
   var mean = BenchmarkSuite.GeometricMean(this.results);
   var score = this.reference / mean;
-  // BenchmarkSuite.scores.push(score);
-  BenchmarkSuite.scores[BenchmarkSuite.scores.length] = score;
+  BenchmarkSuite.scores.push(score);
   if (this.runner.NotifyResult) {
     this.runner.NotifyResult(this.name, Math.round(100 * score));
   }


More information about the pypy-commit mailing list