Script Preparation code:
Tests:

Historical Performance Data aggregated from 18 community runs

Desktop Results:
Chrome 18 runs
Trunc
6.5M/s
parseInt
6.2M/s
View exact numbers
  • Trunc: 6,527,950 ops/sec
  • parseInt: 6,224,532 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
    parseInt

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Chrome 142 on Windows
View result in a separate tab
Trunc
104.3M/s
parseInt
79.1M/s
View exact numbers
Test name Executions per second
Trunc 104,348,992 Ops/sec
parseInt 79,106,632 Ops/sec