Array Assignment vs Array Push (v8)

Revision 8 of this benchmark created by trivial-jquery-js-selector 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'];
ready
empty assignment, and push
var arrayB = [];
arrayB.push('email');
ready

Revisions

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