Run details:
Mozilla/5.0 (Linux; Android 10; GM1910) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.134 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
2 years ago
Test name Executions per second
String indexOf 2226622.0 Ops/sec
String replace 1181490.0 Ops/sec
Script Preparation code:
Tests:
  • String indexOf

  • String replace