Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Linux
Desktop
3 years ago
Test name Executions per second
Haversine Classic 220140.6 Ops/sec
Haversine Optimized 446588.1 Ops/sec
Haversine Mine ATan 206899.3 Ops/sec
Haversine Mine ASin 200020.6 Ops/sec
Spherical Law of Cosines 231548.2 Ops/sec
Equirectangular (a little less accurate) 360537.2 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)


;