Closure price

Benchmark created on


Preparation HTML


Setup

let n;

function easy(arg) {
	arg.n++;
}

function peasy() {
	n++;
}

Teardown

console.log(n);

Test runner

Ready to run.

Testing in
TestOps/sec
easy
easy({n});
ready
peasy
peasy();
ready

Revisions

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