Script Preparation code:
AخA
 
var str = "Et inventore ut est. Illum dolorem similique odit. Velit necessitatibus unde nostrum sequi ut pariatur suscipit sit magnam. Cum esse sed quod aut id. Recusandae vel commodi."
Tests:
  • Multiple, regex

     
    str = str.replace(/a/g, '').replace(/e/g,'')
  • Single, regex

     
    str = str.replace(/a|e/g, '')
  • Single, group regex

     
    str = str.replace(/[ae]+/g, '')
  • No regex

     
    str = str.replace('a', '').replace('e','')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Multiple, regex
    Single, regex
    Single, group regex
    No regex

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 22 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Multiple, regex 7503514.0 Ops/sec
Single, regex 9426276.0 Ops/sec
Single, group regex 8925364.0 Ops/sec
No regex 9553709.0 Ops/sec