Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G930W8 Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36
Chrome Mobile 69
Android 8.0.0
Mobile
6 years ago
Test name Executions per second
Haversine Classic 136733.0 Ops/sec
Haversine Optimized 341722.2 Ops/sec
Haversine Mine ATan 126434.2 Ops/sec
Haversine Mine ASin 163253.0 Ops/sec
Spherical Law of Cosines 190204.5 Ops/sec
Equirectangular (a little less accurate) 301538.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)


;