array slice vs spread

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
slice
var params = [ "hello", true, 7 ]
var other = params.slice()
ready
spread
var params = [ "hello", true, 7 ]
var other = [ ...params ]
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.