split vs for loop 2

2 years ago
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Test name Executions per second
split 1835794.0 Ops/sec
for loop 7551.7 Ops/sec
HTML Preparation code:
Tests:
  • split

  • for loop

Open this result on MeasureThat.net