Script Preparation code:
AخA
 
var example = 'there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon there is no spoon'
Tests:
  • slice

     
    var result = example.slice(100)
  • substr

     
    var result = example.substr(100)
  • substring

     
    var result = example.substring(100)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    substr
    substring

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99 on Linux
View result in a separate tab
Test name Executions per second
slice 107298600.0 Ops/sec
substr 99509824.0 Ops/sec
substring 92254600.0 Ops/sec