Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
NextTick Implementation
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
While
61.2M/s
For
18.0M/s
Set
13.9M/s
View exact numbers
Test name
Executions per second
✓
While
61,211,872 Ops/sec
For
18,029,712 Ops/sec
Set
13,915,136 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const length = 100000; const arr = Array.from({length}, () => () => Math.random()); const set = new Set(arr);
Tests:
Set
for(const c of set){ c(); } set.clear();
For
arr.forEach((c) => c()); arr.length = 0;
While
while(true){ const c = arr.pop(); if(c === undefined) break; c(); }