Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/128.0.6613.98 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 128
iOS 17.6
Mobile
3 months ago
Test name Executions per second
Math.atan2 1057578.6 Ops/sec
fast approx. atan2 1807465.5 Ops/sec
cached Math.atan2 1379385.2 Ops/sec
Script Preparation code:
Tests:
  • Math.atan2

  • fast approx. atan2

  • cached Math.atan2