Script Preparation code:
Tests:
  • try (fail)

  • not if - parseFloat (fail)

  • not if - Number (fail)

  • try (pass)

  • not if - parseFloat (pass)

  • not if - Number (pass)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    try (fail)
    not if - parseFloat (fail)
    not if - Number (fail)
    try (pass)
    not if - parseFloat (pass)
    not if - Number (pass)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.42 Safari/537.36
Chrome 68 on Windows
View result in a separate tab
Test name Executions per second
try (fail) 3660950.5 Ops/sec
not if - parseFloat (fail) 1364872.5 Ops/sec
not if - Number (fail) 1194911.9 Ops/sec
try (pass) 4268517.5 Ops/sec
not if - parseFloat (pass) 780486.8 Ops/sec
not if - Number (pass) 992692.6 Ops/sec


;