Tests:
  • Number

    AخA
     
    var number = Number(Math.random().toString());
  • Unary +

     
    var unary = +Math.random().toString();
  • parseFloat

     
    var parse = parseFloat(Math.random().toString());
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Number
    Unary +
    parseFloat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 days ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Mobile/15E148 Safari/604.1
Mobile Safari 18 on iOS 18.3.1
View result in a separate tab
Test name Executions per second
Number 24774126.0 Ops/sec
Unary + 22900414.0 Ops/sec
parseFloat 17138672.0 Ops/sec