Script Preparation code:
Tests:

Historical Performance Data aggregated from 18 community runs

Desktop Results:
Chrome 18 runs
typeof === "number"
3.6M/s
isFinite
1.9M/s

Fastest: typeof === "number" (1.9x faster)

View exact numbers
  • typeof === "number": 3,568,091 ops/sec
  • isFinite: 1,868,112 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    isFinite
    typeof === "number"

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141 on Windows
View result in a separate tab
isFinite
20.9M/s
typeof === "number"
14.0M/s
View exact numbers
Test name Executions per second
isFinite 20,878,174 Ops/sec
typeof === "number" 14,001,101 Ops/sec