Skip to content

Instantly share code, notes, and snippets.

@blackavec
Created January 21, 2020 07:14
Show Gist options
  • Save blackavec/7087ffd1a87417fca18e5be2db5edac5 to your computer and use it in GitHub Desktop.
Save blackavec/7087ffd1a87417fca18e5be2db5edac5 to your computer and use it in GitHub Desktop.
module.exports.scenario = function() {
let runCycles = totalExecutionLimit // 1,000,000,000
setInitialTime()
for (;;) {
// do the calculation
add(2, 2)
if (!runCycles--)
break
}
return timeDiff()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment