Insert value at certain index in array (version: 0)
The goal is to test which is faster - combinations between Array.prototype.slice and Array.prototype.push methods or custom for-loop alternative in the context of inserting value at given index
Comparing performance of: For-loop approach test vs Native functions test
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
For-loop approach test
Native functions test
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36