+2012-03-01 Ryosuke Niwa <rniwa@webkit.org>
+
+ DOM tests take too long to run
+ https://bugs.webkit.org/show_bug.cgi?id=80082
+
+ Reviewed by Eric Seidel.
+
+ Reduce benchmark.timeToRun from 500ms to 100ms. Doesn't seem to affect test results much
+ (except DOM/DOMTable.html) but significantly reduces the runtime of tests.
+
+ * DOM/resources/dom-perf.js:
+ (BenchmarkSuite.prototype.RunSingle):
+
2012-02-26 Kentaro Hara <haraken@chromium.org>
[Performance Tests] [Chromium] Bindings/dom-attributes.html is timing out
function Benchmark(name, run, opt_setup, opt_cleanup, opt_shareSetup) {
this.name = name;
- this.timeToRun = 500; // ms
+ this.timeToRun = 100; // ms.
+ // Tests like DOM/DOMWalk.html are too fast and need to be ran multiple times.
+ // 100 ms was chosen since it was long enough to make DOMWalk and other fast tests stable
+ // but was short enough not to make other slow tests run multiple times.
this.run = run;
this.setup = opt_setup;
this.cleanup = opt_cleanup;
var nZeros = 0;
var error = null;
var profiler = GetProfiler();
+
for (var n = 0; !error && totalTime < benchmark.timeToRun; n++) {
if (this.benchmarkContent)
this.benchmarkContentHolder.removeChild(this.benchmarkContent);
error = e;
}
totalTime = new Date() - start;
- }
+ }
var result = new BenchmarkResult(benchmark, times, error, null);
if (this.benchmarkContent) {