Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Linux
Desktop
2 years ago
Test name Executions per second
parseInt 31.0 Ops/sec
toFixed 30.8 Ops/sec
Tilde 32.3 Ops/sec
Bitwise 33.0 Ops/sec
Math.round 32.0 Ops/sec
Math.trunc 31.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parseInt

  • toFixed

  • Tilde

  • Bitwise

  • Math.round

  • Math.trunc