Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Ubuntu
Desktop
2 years ago
Test name Executions per second
Haversine Classic 6583463.5 Ops/sec
Haversine Optimized 8385694.0 Ops/sec
Haversine Mine ATan 8146701.5 Ops/sec
Haversine Mine ASin 8824937.0 Ops/sec
Spherical Law of Cosines 7404579.5 Ops/sec
Equirectangular (a little less accurate) 825390464.0 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)


;