Demo benchmark

From https://benchmarkjs.com/
8 years ago
User agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13G36 [FBAN/MessengerForiOS;FBAV/86.0.0.17.70;FBBV/37469989;FBRV/0;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iPhone OS;FBSV/9.3.5;FBSS/2;FBCR/Verizon;FBID/phone;FBLC/en_US;FBOP/5]
Test name Executions per second
RegExp#test 13768622.0 Ops/sec
String#indexOf 32265220.0 Ops/sec
String#match 6743653.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match

Open this result on MeasureThat.net