Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.44 Safari/537.36
Chrome 71
Windows
Desktop
6 years ago
Test name Executions per second
trunc 2789448.2 Ops/sec
round 2804335.8 Ops/sec
floor 2781753.5 Ops/sec
parseFloat to int 965685.7 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;