Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
@techsavvytravvy - fill then map (with null/undefined/"") vs array.from
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 121
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
.fill(undefined).map()
1.1M/s
.fill(true).map()
1.1M/s
.fill("").map()
1.1M/s
.fill(null).map()
1.1M/s
View exact numbers
Test name
Executions per second
✓
.fill(undefined).map()
1,141,504 Ops/sec
.fill(true).map()
1,137,588 Ops/sec
.fill("").map()
1,109,655 Ops/sec
.fill(null).map()
1,087,131 Ops/sec
Tests:
.fill("").map()
Array(100).fill("").map((_, i) => i+i);
.fill(null).map()
Array(100).fill(null).map((_, i) => i+i);
.fill(undefined).map()
Array(100).fill(null).map((_, i) => i+i);
.fill(true).map()
Array(100).fill(true).map((_, i) => i+i);