Run details:
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
Haversine Classic 270659.6 Ops/sec
Haversine Optimized 687425.2 Ops/sec
Haversine Mine ATan 310338.8 Ops/sec
Haversine Mine ASin 315065.8 Ops/sec
Spherical Law of Cosines 341348.2 Ops/sec
Equirectangular (a little less accurate) 549807.4 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)


;