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);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    substring
    substr

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
Test name Executions per second
slice 107965752.0 Ops/sec
substring 113919712.0 Ops/sec
substr 107779144.0 Ops/sec