Object cost

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
No object
const x = {
	a: 1,
	b: 2,
	c: 3,
}
ready
Object created inside closure
const createObj = () => {
	return {
		a: 1,
		b: 2,
		c: 3,
	}
}
const x = createObj();
ready

Revisions

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