Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Ubuntu
Desktop
one year ago
Test name Executions per second
Haversine Classic 9553919.0 Ops/sec
Haversine Optimized 15268408.0 Ops/sec
Haversine Mine ATan 12869177.0 Ops/sec
Haversine Mine ASin 14333980.0 Ops/sec
Spherical Law of Cosines 11855362.0 Ops/sec
Equirectangular (a little less accurate) 1005105536.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)


;