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; rv:137.0) Gecko/20100101 Firefox/137.0
Browser:
Firefox 137
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
Test name
Executions per second
Set
11319540.0 Ops/sec
For
23420428.0 Ops/sec
While
92968840.0 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(); }