Array Assignment vs Array Push (v7)

Revision 7 of this benchmark created on


Description

You've heard the rumors - now here's the proof.

Test runner

Ready to run.

Testing in
TestOps/sec
direct assignment
var arrayA = ['email', 'password'];
ready
empty assignment, and push
var arrayB = [];
arrayB.push('email', 'password');
ready

Revisions

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