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

Unified Diff: benchmarks/run.js

Issue 8053: Improve error reporting in benchmarks. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « benchmarks/run.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmarks/run.js
===================================================================
--- benchmarks/run.js (revision 549)
+++ benchmarks/run.js (working copy)
@@ -33,17 +33,27 @@
load('raytrace.js');
load('earley-boyer.js');
+var success = true;
function PrintResult(name, result) {
print(name + ': ' + result);
}
+function PrintError(name, error) {
+ PrintResult(name, error);
+ success = false;
+}
+
+
function PrintScore(score) {
- print('----');
- print('Score (version ' + BenchmarkSuite.version + '): ' + score);
+ if (success) {
+ print('----');
+ print('Score (version ' + BenchmarkSuite.version + '): ' + score);
+ }
}
BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
+ NotifyError: PrintError,
NotifyScore: PrintScore });
« no previous file with comments | « benchmarks/run.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698