Run details:
Mozilla/5.0 (Linux; Android 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
2 years ago
Test name Executions per second
Haversine Classic 127620.6 Ops/sec
Haversine Optimized 321576.7 Ops/sec
Haversine Mine ATan 154471.7 Ops/sec
Haversine Mine ASin 164855.5 Ops/sec
Spherical Law of Cosines 167715.0 Ops/sec
Equirectangular (a little less accurate) 291137.8 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)


;