Script Preparation code:
AخA
 
var string = "en-US";
Tests:
  • string.split(RegExp);

     
    string.split(/-/);
  • string.split(string);

     
    string.split('-');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    string.split(RegExp);
    string.split(string);

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Ubuntu
View result in a separate tab
Test name Executions per second
string.split(RegExp); 10292577.0 Ops/sec
string.split(string); 16488803.0 Ops/sec