Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Object iterating
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/132.0.0.0 Safari/537.36
Browser:
Chrome 132
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
forEach
0.0 Ops/sec
For Of
0.0 Ops/sec
ForIN
84479.9 Ops/sec
Object. entries
59420.5 Ops/sec
Script Preparation code:
var items = { "userId": 1, "id": 1, "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "subTitle": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto" }
Tests:
forEach
items. forEach(item => console.log(item))
For Of
for (const item of items) {console.log(item)}
ForIN
for (const item in items) { console.log(item) }
Object. entries
Object.entries(items).map(item => { console.log(item) })