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 (...) 20133736.0 Ops/sec
Array.from() 19358736.0 Ops/sec
Spread operator (...) [2] 21550172.0 Ops/sec
Array.from() [2] 19277034.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