Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
one year ago
Test name Executions per second
trunc 7451389.5 Ops/sec
round 7442934.0 Ops/sec
floor 7516170.0 Ops/sec
parseFloat to int 3039568.2 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;