Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Chrome Mobile 120
Android
Mobile
one year ago
Test name Executions per second
Array.flat 330850.2 Ops/sec
reduce + concat 1047174.0 Ops/sec
reduce + destructure 1572441.6 Ops/sec
reduce + push 2962890.2 Ops/sec
lodash.flatten 1450106.6 Ops/sec
destructuring 1468653.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.flat

  • reduce + concat

  • reduce + destructure

  • reduce + push

  • lodash.flatten

  • destructuring