List of objects

Benchmark created on


Setup

function createObj(name) {
	return { name, value: 12 }
}

function createObjWithFunc(name) {
	return { name, foo: () => {} }
}

Test runner

Ready to run.

Testing in
TestOps/sec
list of objects 1
[
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject"),
	createObj("MyObject")
]
ready
list of objects 2
[
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' },
	{ foo: () => {}, name: 'bar' }
]
ready
list of objects 3
[
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject"),
	createObjWithFunc("MyObject")
]
ready

Revisions

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