Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
8 months ago
Test name Executions per second
trunc 4542609.0 Ops/sec
round 4881832.0 Ops/sec
floor 4889583.0 Ops/sec
parseFloat to int 1456860.0 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;