Tests:
  • Regex Match

    AخA
     
    '100.1234'.match(/(\d+)\.?(\d+)?/)
    '56900.1499999234'.match(/(\d+)\.?(\d+)?/)
    '9912883.4440040400400234'.match(/(\d+)\.?(\d+)?/)
  • Split

     
    '100.1234'.split('.')
    '56900.1499999234'.split('.')
    '9912883.4440040400400234'.split('.')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Regex Match
    Split

    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:97.0) Gecko/20100101 Firefox/97.0
Firefox 97 on Linux
View result in a separate tab
Test name Executions per second
Regex Match 1834452.9 Ops/sec
Split 1729553.0 Ops/sec