Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36
Chrome 101
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
parseInt 42.0 Ops/sec
toFixed 42.6 Ops/sec
Tilde 49.1 Ops/sec
Bitwise 46.5 Ops/sec
Math.round 39.6 Ops/sec
Math.trunc 41.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parseInt

  • toFixed

  • Tilde

  • Bitwise

  • Math.round

  • Math.trunc