Array.some vs for loop (v3)

Revision 3 of this benchmark created on


Setup

const testingArray = Array.from(Array(1000).keys())

Test runner

Ready to run.

Testing in
TestOps/sec
for loop
let test = false;
for (const el of testingArray) {
	test ||= false;
}
ready
array some
testingArray.some((i) => false)
ready

Revisions

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