Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
trunc 1867537.9 Ops/sec
round 1226666.1 Ops/sec
floor 2096659.2 Ops/sec
parseFloat to int 620701.7 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;