Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Windows 7
Other
2025 years ago
Test name Executions per second
Haversine Classic 0.0 Ops/sec
Haversine Optimized 599006.1 Ops/sec
Haversine Mine ATan 251844.9 Ops/sec
Haversine Mine ASin 272388.5 Ops/sec
Script Preparation code:
Tests:
  • Haversine Classic

  • Haversine Optimized

  • Haversine Mine ATan

  • Haversine Mine ASin

  • Spherical Law of Cosines

  • Equirectangular (a little less accurate)


;