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

Unified Diff: benchmarks/earley-boyer.js

Issue 4401: Introduce some checks to indicate that the benchmarks have run correctly.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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/crypto.js ('k') | benchmarks/raytrace.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: benchmarks/earley-boyer.js
===================================================================
--- benchmarks/earley-boyer.js (revision 362)
+++ benchmarks/earley-boyer.js (working copy)
@@ -4647,7 +4647,7 @@
return ((k = ((args === null)?(7):(args.car))), (BgL_runzd2benchmarkzd2("earley", (1), function() {
return (test(k));
}, function(result) {
- return ((sc_display(result)), (sc_newline()), true);
+ return ((sc_display(result)), (sc_newline()), result == 132);
})));
};
}
@@ -4675,6 +4675,9 @@
function RunBenchmark(name, count, run, warn) {
for (var n = 0; n < count; ++n) {
result = run();
+ if (!warn(result)) {
+ throw new Error("Earley or Boyer did incorrect number of rewrites");
+ }
}
}
« no previous file with comments | « benchmarks/crypto.js ('k') | benchmarks/raytrace.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698