Script Preparation code:
AخA
 
var str = "this is an example user supplied string of some length";
var search = "length";
Tests:
  • <= ES5 Split

     
    str.split('').reverse().join('').indexOf(search.split('').reverse().join('')) === 0
  • >= ES6 Spread

     
    [...str].reverse().join('').indexOf([...search].reverse().join('')) === 0
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    <= ES5 Split
    >= ES6 Spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
Chrome 83 on Windows
View result in a separate tab
Test name Executions per second
<= ES5 Split 371413.9 Ops/sec
>= ES6 Spread 369556.1 Ops/sec