Example

Benchmark created on


Setup

const getToto = () => true;

const toto = getToto();

Test runner

Ready to run.

Testing in
TestOps/sec
without reference
for(let i = 0;i < 100_000;i++) {
	if (getToto()) {
  	console.log('toto')
  }
}
ready
with reference
for(let i = 0;i < 100_000;i++) {
	if (toto) {
  	console.log('toto')
  }
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.