Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Set vs Array Privilege Check
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/129.0.0.0 Safari/537.36
Browser:
Chrome 129
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Has Performance
27.5M/s
Includes Performance
5.5M/s
View exact numbers
Test name
Executions per second
✓
Has Performance
27,483,918 Ops/sec
Includes Performance
5,520,210 Ops/sec
Script Preparation code:
var i = Math.floor(Math.random() * 500) + 1; var a = [...Array(500).keys()]; var b = new Set(a);
Tests:
Includes Performance
return a.includes(i);
Has Performance
return b.has(i);