mem

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
ref
const cb = () => {
	let x = i * i;
	let y = i + i;
	let z = x + y;
}
for (let i = 0; i <= 1000; i++) {
	const x = { a: 1, b: 2, cb }
}
ready
contained
for (let i = 0; i <= 1000; i++) {
	const x = { a: 1, b: 2, cb: () => {
		let x = i * i;
		let y = i + i;
		let z = x + y;
	}}
}
ready

Revisions

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