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

     
    var result = example.split(' ')
  • substring (hard coded)

     
    var result = [
      example.substring(0, 5),
      example.substring(6, 8),
      example.substring(9, 11),
      example.substring(12),
    ]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    split
    substring (hard coded)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Windows
View result in a separate tab
Test name Executions per second
split 7024341.5 Ops/sec
substring (hard coded) 4227114.0 Ops/sec