Closure price (v2)

Revision 2 of this benchmark created on


Preparation HTML


Setup

let a = {n: 0};

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

function peasy() {
	a.n++;
}

Teardown

console.log(a.n);

Test runner

Ready to run.

Testing in
TestOps/sec
easy 1
easy(a);
ready
peasy
peasy();
ready

Revisions

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