Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
fill test
(version: 0)
Comparing performance of:
fill index vs fill from
Created:
one year ago
by:
Registered User
Jump to the latest result
Script Preparation code:
let i, length = 1_000
Tests:
fill index
const a = new Array(length) for(i = 0; i < length; i++) a[i] = 0
fill from
const a = Array.from({length}).fill(0)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
fill index
fill from
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
Browser/OS:
Chrome 119 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
fill index
1461358.1 Ops/sec
fill from
1704043.0 Ops/sec
Related benchmarks:
For Loop Different Approaches
more vs not equal
while vs do while
BigInt boolean operations
Comments
Confirm delete:
Do you really want to delete benchmark?