Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
find vs includes
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:137.0) Gecko/20100101 Firefox/137.0
Browser:
Firefox 137
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
find
306.4M/s
includes
19.0M/s
View exact numbers
Test name
Executions per second
✓
find
306,359,840 Ops/sec
includes
19,015,680 Ops/sec
Script Preparation code:
var array = ['banana', 'sausage', 'jesus']
Tests:
find
array.find(f => f == 'banana' );
includes
array.includes('banana');