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
Go 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
fill from
1.7M/s
fill index
1.5M/s
View exact numbers
Test name
Executions per second
✓
fill from
1,704,043 Ops/sec
fill index
1,461,358 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?