Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
26 days ago
Test name Executions per second
Spread operator (...) 21923884.0 Ops/sec
Array.from() 19789590.0 Ops/sec
Spread operator [2] 22467506.0 Ops/sec
Array.from() [2] 19474772.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Algorithm 1: Implementation 1

  • Algorithm 1: Implementation 2

  • Algorithm 1: Implementation 3

  • Algorithm 1: Implementation 4

  • Algorithm 1: Implementation 5