Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36
Chrome 103
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
trunc 4261027.0 Ops/sec
round 4277830.0 Ops/sec
floor 4299681.0 Ops/sec
parseFloat to int 1860770.0 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int