Run details:
Mozilla/5.0 (X11; CrOS x86_64 15054.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Chrome OS 15054.98.0
Desktop
2 years ago
Test name Executions per second
trunc 2629253.8 Ops/sec
round 2646721.5 Ops/sec
floor 2652902.0 Ops/sec
parseFloat to int 1135536.2 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;