Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Chrome 75
Windows
Desktop
5 years ago
Test name Executions per second
Destructuring all CONST 6500226.0 Ops/sec
Destructuring each CONST 1699239.1 Ops/sec
Destructuring all as CONST 6560267.0 Ops/sec
Destructuring each as CONST 1692197.1 Ops/sec
Variables CONST 1715992.2 Ops/sec
Destructuring all LET 6513665.5 Ops/sec
Destructuring each LET 1707825.1 Ops/sec
Destructuring all as LET 6545150.0 Ops/sec
Destructuring each as LET 1704910.9 Ops/sec
Variables LET 1726764.4 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


;