Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
trunc 837523776.0 Ops/sec
round 840198528.0 Ops/sec
floor 833979328.0 Ops/sec
parseFloat to int 7675875.5 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;