Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36
Chrome 78
Linux
Desktop
3 years ago
Test name Executions per second
trunc 5091117.0 Ops/sec
round 5090364.0 Ops/sec
floor 5080380.5 Ops/sec
parseFloat to int 1784850.4 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;