111

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
222
const foo = []
for (let i = 0; i < 2000; i++) {
	foo.push(i.toString())
}

const result = foo.findIndex(i => i === '873')
ready
333
const foo = new Map()
for (let i = 0; i < 2000; i++) {
	foo.set(i.toString(), i)
}

const result = foo.get('873')
ready

Revisions

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