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
7 months ago
Test name Executions per second
trunc 1878453.9 Ops/sec
round 1899926.0 Ops/sec
floor 1920465.9 Ops/sec
parseFloat to int 759271.3 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;