Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Linux
Desktop
6 years ago
Test name Executions per second
Haversine Classic 8282684.0 Ops/sec
Haversine Optimized 22920098.0 Ops/sec
Haversine Mine ATan 8386262.0 Ops/sec
Haversine Mine ASin 10558186.0 Ops/sec
Spherical Law of Cosines 8284407.0 Ops/sec
Equirectangular (a little less accurate) 16430648.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)


;