Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Linux
Desktop
4 years ago
Test name Executions per second
Haversine Classic 316292.5 Ops/sec
Haversine Optimized 901701.9 Ops/sec
Haversine Mine ATan 428469.4 Ops/sec
Haversine Mine ASin 422374.8 Ops/sec
Spherical Law of Cosines 428778.9 Ops/sec
Equirectangular (a little less accurate) 697516.7 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)


;