Run details:
Mozilla/5.0 (Linux; Android 13; SM-G985F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36
Chrome Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Using indexOf 52.0 Ops/sec
Using lastIndexOf 43.5 Ops/sec
Using a Set 357.2 Ops/sec
Script Preparation code:
Tests:
  • Using indexOf

  • Using lastIndexOf

  • Using a Set


;