new array vs reverse : 2 elements

Benchmark created by bar vinograd on


Setup

var arr = ["a", "b"];

Test runner

Ready to run.

Testing in
TestOps/sec
new array
arr = [arr[1], arr[0]]
ready
reverse
arr.reverse()
ready

Revisions

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

  • Revision 1: published by bar vinograd on