Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array.includes vs set.has for medium n
array.includes vs set.has for medium n
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 YaBrowser/25.6.0.0 Safari/537.36
Browser:
Yandex Browser 25
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
array includes
15967539.0 Ops/sec
set has
189191376.0 Ops/sec
Script Preparation code:
var a = Array.from({ length: 1000 }, (_, i) => i) var b = new Set(a)
Tests:
array includes
return a.includes(490)
set has
return b.has(510)