We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e0bf91 commit 4f57fa6Copy full SHA for 4f57fa6
Octane/gbemu-part2.js
@@ -9782,7 +9782,14 @@ var gameboy_rom='r+BPyZiEZwA+AeBPySAobeEq6gAgKlYj5WJv6SRmZjjhKuXqACDJ///////////
9782
setupGameboy();
9783
9784
class Benchmark {
9785
+ EXPECTED_RESULT_HASH = 0x1a2b3c4f;
9786
runIteration() {
9787
this.result = runGameboy();
9788
}
9789
+
9790
+ validate() {
9791
+ if (this.result != this.EXPECTED_RESULT_HASH)
9792
+ throw new Error(`Got unexpected result hash ${this.result} instead of ${this.EXPECTED_RESULT_HASH}`)
9793
9794
+ }
9795
0 commit comments