Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Windows
Desktop
one month ago
Test name Executions per second
String.split 45904932.0 Ops/sec
Regex.match 14904537.0 Ops/sec
Script Preparation code:
AخA
 
string = "bet_me 444 444";
regex = /bet_me (\d+) (\d+)/;
Tests:
  • String.split

     
    string.split(" ")
  • Regex.match

     
    string.match(regex)