Tests:

Historical Performance Data aggregated from 78 community runs

Desktop Results:
Chrome 55 runs
parseInt
3.5M/s
Math.floor
3.4M/s
View exact numbers
  • parseInt: 3,477,948 ops/sec
  • Math.floor: 3,358,488 ops/sec
Firefox 18 runs
parseInt
6.3M/s
Math.floor
6.3M/s
View exact numbers
  • parseInt: 6,333,359 ops/sec
  • Math.floor: 6,261,148 ops/sec
Safari 5 runs
parseInt
6.9M/s
Math.floor
6.9M/s
View exact numbers
  • parseInt: 6,941,066 ops/sec
  • Math.floor: 6,929,172 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
    parseInt
    Math.floor

    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:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Windows
View result in a separate tab
parseInt
9.3M/s
Math.floor
9.0M/s
View exact numbers
Test name Executions per second
parseInt 9,253,229 Ops/sec
Math.floor 8,994,235 Ops/sec