Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
trunc 4714436.0 Ops/sec
round 4704726.5 Ops/sec
floor 4741525.0 Ops/sec
parseFloat to int 1994222.0 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;