Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Firefox 9 runs
Bitwise invert2
7.1M/s
ParseInt
7.0M/s
Floor
7.0M/s
Trunc
7.0M/s
Number
6.7M/s
View exact numbers
  • Bitwise invert2: 7,058,054 ops/sec
  • ParseInt: 7,019,876 ops/sec
  • Floor: 7,013,434 ops/sec
  • Trunc: 7,007,416 ops/sec
  • Number: 6,718,808 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
    Trunc
    Floor
    Number
    ParseInt
    Bitwise invert2

    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:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Windows
View result in a separate tab
Bitwise invert2
7.1M/s
Floor
7.1M/s
Trunc
7.0M/s
ParseInt
6.8M/s
Number
6.7M/s
View exact numbers
Test name Executions per second
Bitwise invert2 7,092,045 Ops/sec
Floor 7,081,973 Ops/sec
Trunc 7,019,245 Ops/sec
ParseInt 6,824,254 Ops/sec
Number 6,718,808 Ops/sec