Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 12865: Benchmark precision (Closed)

Created:
12 years ago by Christian Plesner Hansen
Modified:
9 years, 7 months ago
Reviewers:
sandholm, asandholm
CC:
v8-dev
Visibility:
Public.

Description

Changed benchmark runners to always display at least three significant digits in the results.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M benchmarks/base.js View 3 chunks +13 lines, -2 lines 1 comment Download
M benchmarks/run.html View 2 chunks +2 lines, -2 lines 0 comments Download
M benchmarks/run.js View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Christian Plesner Hansen
12 years ago (2008-12-02 12:17:44 UTC) #1
sandholm
12 years ago (2008-12-02 12:54:16 UTC) #2
LGTM. 
One proposal to make the change even simpler, though. 
(Maybe too simple...)

http://codereview.chromium.org/12865/diff/1/2
File benchmarks/base.js (left):

http://codereview.chromium.org/12865/diff/1/2#oldcode123
Line 123: runner.NotifyScore(Math.round(100 * score));
Just wondering if it would make sense to always simply do toPrecision(3) instead
of Math.round here in base.js. Then we would neither need the formatScore
function nor the changes in run.{html,js} files.

Powered by Google App Engine
This is Rietveld 408576698