Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Chrome 89
Mac OS X 11.2.2
Desktop
3 years ago
Test name Executions per second
Destructuring all CONST 6704944.5 Ops/sec
Destructuring each CONST 1704451.9 Ops/sec
Destructuring all as CONST 6406981.0 Ops/sec
Destructuring each as CONST 1637435.5 Ops/sec
Variables CONST 1633674.1 Ops/sec
Destructuring all LET 5869795.0 Ops/sec
Destructuring each LET 1597020.6 Ops/sec
Destructuring all as LET 5895281.5 Ops/sec
Destructuring each as LET 1543628.6 Ops/sec
Variables LET 1597140.8 Ops/sec
Script Preparation code:
Tests:
  • Destructuring all CONST

  • Destructuring each CONST

  • Destructuring all as CONST

  • Destructuring each as CONST

  • Variables CONST

  • Destructuring all LET

  • Destructuring each LET

  • Destructuring all as LET

  • Destructuring each as LET

  • Variables LET


;