Run details:
Mozilla/5.0 (Linux; Android 10; Pixel 3 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4177.3 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
trunc 1791546.1 Ops/sec
round 1789336.9 Ops/sec
floor 1838569.1 Ops/sec
parseFloat to int 646835.7 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;