adding element via spread vs push

Benchmark publishedon

Setup

const a = ['a', 'b', 'c', 'd']

Test Runner

Initializing...

Testing in
Test CaseOps/sec
push
a.push('e')
ready
spread
[...a, 'e']
ready

Revisions

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

Revision 1
publishedon