Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
Destructuring all CONST 6707009.5 Ops/sec
Destructuring each CONST 1668021.6 Ops/sec
Destructuring all as CONST 6775965.5 Ops/sec
Destructuring each as CONST 1677761.2 Ops/sec
Variables CONST 1662449.2 Ops/sec
Destructuring all LET 6731860.0 Ops/sec
Destructuring each LET 1663891.6 Ops/sec
Destructuring all as LET 6702148.0 Ops/sec
Destructuring each as LET 1657099.0 Ops/sec
Variables LET 1685163.5 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


;