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 4703757.5 Ops/sec
Destructuring each CONST 1262798.8 Ops/sec
Destructuring all as CONST 4754043.0 Ops/sec
Destructuring each as CONST 1264757.8 Ops/sec
Variables CONST 1285212.1 Ops/sec
Destructuring all LET 4746584.0 Ops/sec
Destructuring each LET 1262745.0 Ops/sec
Destructuring all as LET 4745531.5 Ops/sec
Destructuring each as LET 1263226.8 Ops/sec
Variables LET 1288486.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


;