Skip to content

Instantly share code, notes, and snippets.

@blackavec
Last active January 21, 2020 07:18
Show Gist options
  • Save blackavec/becdce095912d6675a5a118b7e705c2c to your computer and use it in GitHub Desktop.
Save blackavec/becdce095912d6675a5a118b7e705c2c to your computer and use it in GitHub Desktop.
module.exports.scenario = function() {
let runCycles = totalExecutionLimit // 1,000,000,000
setInitialTime()
while (true) {
// 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