array destructure alt

Benchmark created on


Setup

const arr = [...Array(1000).keys()];

Test runner

Ready to run.

Testing in
TestOps/sec
manual
const a = arr[0];
const b = arr[1];
const c = arr[2];
ready
fancy
const {"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.