Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
7 months ago
Test name Executions per second
Array.flat 1880545.5 Ops/sec
reduce + concat 906729.4 Ops/sec
reduce + destructure 840495.9 Ops/sec
reduce + push 988102.6 Ops/sec
lodash.flatten 2671974.5 Ops/sec
destructuring 2134282.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.flat

  • reduce + concat

  • reduce + destructure

  • reduce + push

  • lodash.flatten

  • destructuring


;