Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
one year ago
Test name Executions per second
Haversine Classic 10508925.0 Ops/sec
Haversine Optimized 13968326.0 Ops/sec
Haversine Mine ATan 12354880.0 Ops/sec
Haversine Mine ASin 14876233.0 Ops/sec
Spherical Law of Cosines 13451943.0 Ops/sec
Equirectangular (a little less accurate) 683722048.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)


;