Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Haversine Classic 1148407.0 Ops/sec
Haversine Optimized 2889872.2 Ops/sec
Haversine Mine ATan 1309329.8 Ops/sec
Haversine Mine ASin 1415501.1 Ops/sec
Spherical Law of Cosines 1477831.6 Ops/sec
Equirectangular (a little less accurate) 2421254.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)


;