Array.of vs spread operator (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array.of
Array.of(1,2,3,4);
ready
Spread
const array_of = (...args) => [...args];
array_of(1,2,3,4);
ready

Revisions

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