Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Fedora
Desktop
one year ago
Test name Executions per second
toFixed(2) 723819.1 Ops/sec
Math.floor 8340625.0 Ops/sec
Script Preparation code:
Tests:
  • toFixed(2)

  • Math.floor