Script Preparation code:
AخA
 
var string = "I am the god of hellfire, and I bring you..."
Tests:
  • slice

     
    var substring = string.slice(17, 25);
  • substring

     
    var substring = string.substring(17, 25);
  • substr

     
    var substring = string.substr(17, 25);
  • split

     
    var substring = string.split(',')[1];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    substring
    substr
    split

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 14 hours ago)
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128 on Linux
View result in a separate tab
Test name Executions per second
slice 2248180992.0 Ops/sec
substring 2192115712.0 Ops/sec
substr 2321874432.0 Ops/sec
split 13598420.0 Ops/sec