Tests:
  • Number(intString)

  • +intString

  • parseInt(intString)

  • parseFloat(intString)

  • Number(floatString)

  • +floatString

  • parseInt(floatString)

  • parseFloat(floatString)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Number(intString)
    +intString
    parseInt(intString)
    parseFloat(intString)
    Number(floatString)
    +floatString
    parseInt(floatString)
    parseFloat(floatString)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Chrome 122 on Windows
View result in a separate tab
Test name Executions per second
Number(intString) 20652108.0 Ops/sec
+intString 301497728.0 Ops/sec
parseInt(intString) 20532782.0 Ops/sec
parseFloat(intString) 20020558.0 Ops/sec
Number(floatString) 20668078.0 Ops/sec
+floatString 310932736.0 Ops/sec
parseInt(floatString) 20330774.0 Ops/sec
parseFloat(floatString) 13724247.0 Ops/sec