Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Ubuntu
Desktop
one year ago
Test name Executions per second
trunc 1015803840.0 Ops/sec
round 997104768.0 Ops/sec
floor 1018176512.0 Ops/sec
parseFloat to int 7425000.0 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;