Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
set vs array iteration new
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one month ago
set
28.1M/s
array
4K/s
View exact numbers
Test name
Executions per second
✓
set
28,099,708 Ops/sec
array
3,705 Ops/sec
Script Preparation code:
var a = Array(100000); var b = new Set(a)
Tests:
array
for (const x of a) {}
set
for (const x of b) {}