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 331516.5 Ops/sec
reduce + concat 1050882.2 Ops/sec
reduce + destructure 1678055.4 Ops/sec
reduce + push 2987491.5 Ops/sec
lodash.flatten 1431141.4 Ops/sec
destructuring 1487233.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.flat

  • reduce + concat

  • reduce + destructure

  • reduce + push

  • lodash.flatten

  • destructuring