Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Linux
Desktop
2 years ago
Test name Executions per second
Haversine Classic 16831536.0 Ops/sec
Haversine Optimized 20000364.0 Ops/sec
Haversine Mine ATan 18467620.0 Ops/sec
Haversine Mine ASin 21828532.0 Ops/sec
Spherical Law of Cosines 19969236.0 Ops/sec
Equirectangular (a little less accurate) 1467024896.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)


;