Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Firefox 74
Ubuntu
Desktop
4 years ago
Test name Executions per second
Haversine Classic 9844738.0 Ops/sec
Haversine Optimized 36350076.0 Ops/sec
Haversine Mine ATan 8775472.0 Ops/sec
Haversine Mine ASin 11215833.0 Ops/sec
Spherical Law of Cosines 6320995.5 Ops/sec
Equirectangular (a little less accurate) 19783030.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)


;