Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Fedora
Desktop
3 years ago
Test name Executions per second
trunc 954240704.0 Ops/sec
round 949190464.0 Ops/sec
floor 955931520.0 Ops/sec
parseFloat to int 4533429.5 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;