Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Linux
Desktop
3 years ago
Test name Executions per second
trunc 1221541.0 Ops/sec
round 1321101.1 Ops/sec
floor 1274797.4 Ops/sec
parseFloat to int 512856.1 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;