Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 OPR/91.0.4516.10 (Edition beta)
Opera 91
Windows 8.1
Desktop
2 years ago
Test name Executions per second
trunc 1312893.5 Ops/sec
round 1365209.4 Ops/sec
floor 1326391.6 Ops/sec
parseFloat to int 568851.7 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;