Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Chrome 89
Mac OS X 11.2.3
Desktop
3 years ago
Test name Executions per second
Destructuring all CONST 13184195.0 Ops/sec
Destructuring each CONST 3061087.2 Ops/sec
Destructuring all as CONST 13192246.0 Ops/sec
Destructuring each as CONST 3051980.0 Ops/sec
Variables CONST 3056340.2 Ops/sec
Destructuring all LET 13182819.0 Ops/sec
Destructuring each LET 3045201.0 Ops/sec
Destructuring all as LET 13139493.0 Ops/sec
Destructuring each as LET 3043201.8 Ops/sec
Variables LET 3036836.0 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


;