Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Linux
Desktop
one year ago
Test name Executions per second
Haversine Classic 10524408.0 Ops/sec
Haversine Optimized 12570645.0 Ops/sec
Haversine Mine ATan 10884546.0 Ops/sec
Haversine Mine ASin 13058416.0 Ops/sec
Spherical Law of Cosines 11506738.0 Ops/sec
Equirectangular (a little less accurate) 626379584.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)


;