Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
typeof negative
178.9M/s
typeof positive
175.0M/s
Number.isInteger() positive
140.8M/s
Number.isInteger() negative
139.4M/s

Fastest: typeof negative (1.3x faster)

View exact numbers
  • typeof negative: 178,884,064 ops/sec
  • typeof positive: 174,995,712 ops/sec
  • Number.isInteger() positive: 140,822,112 ops/sec
  • Number.isInteger() negative: 139,442,560 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
    Number.isInteger() positive
    typeof positive
    Number.isInteger() negative
    typeof negative

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Linux
View result in a separate tab
typeof positive
1531.8M/s
typeof negative
1497.4M/s
Number.isInteger() negative
1445.3M/s
Number.isInteger() positive
1311.5M/s
View exact numbers
Test name Executions per second
typeof positive 1,531,819,392 Ops/sec
typeof negative 1,497,396,352 Ops/sec
Number.isInteger() negative 1,445,254,912 Ops/sec
Number.isInteger() positive 1,311,527,296 Ops/sec