includes vs some

Benchmark created on


Preparation HTML

	

Setup

const source = Array.from(Array(1000000).keys());

Test runner

Ready to run.

Testing in
TestOps/sec
includes
source.includes(9999);
ready
some
source.some(n => n === 9999);
ready

Revisions

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