Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4412.3 Safari/537.36
Chrome 90
Windows
Desktop
3 years ago
Test name Executions per second
Array.split limit 986288.1 Ops/sec
Array.split 1289587.0 Ops/sec
Substring 1576086.4 Ops/sec
Array.split regex limit 1724867.6 Ops/sec
Array.split regex 1610281.6 Ops/sec
Script Preparation code:
Tests:
  • Array.split limit

  • Array.split

  • Substring

  • Array.split regex limit

  • Array.split regex