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 8.4 Ops/sec
toFixed 9.7 Ops/sec
Tilde 10.5 Ops/sec
Bitwise 3.9 Ops/sec
Math.round 5.4 Ops/sec
Math.trunc 5.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parseInt

  • toFixed

  • Tilde

  • Bitwise

  • Math.round

  • Math.trunc


;