Array destructuring

Benchmark created on


Setup

var arr = ['aa','bb','cc']

Test runner

Ready to run.

Testing in
TestOps/sec
as arr
var [a,b,c] = arr
ready
as obj
var {0:a,1:b,2:c} = arr
ready
as arr
var [a,b,c] = arr
ready
as obj
var {0:a,1:b,2:c} = arr
ready

Revisions

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