worth to note that the maximum callstack size is exceeded for the first test case (spread operator) with n = 1 million
Comparing the various ways to append to a large array
Compare the differing ways you can call a function with arbitrary arguments dynamically
spread vs concat vs unshift
Create Your benchmarks
FAQ: FAQ
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js
Facebook page: https://www.facebook.com/MeasureThat.Net
Python benchmarks support: Pyodide