• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaStats / Distances.jl / 309
95%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2018 09:54PM UTC
Jobs 2
Files 8
Run time 55s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
309

push

travis-ci

KristofferC
Use a more performant formula for haversine (#90)

* Use a more performant formula for haversine

```julia
using BenchmarkTools
Main> using BenchmarkTools

Main> a = rand()
0.8809105663628993

Main> @benchmark asin(sqrt($a))
BenchmarkTools.Trial:
  memory estimate:  0 bytes
  allocs estimate:  0
  --------------
  minimum time:     15.790 ns (0.00% GC)
  median time:      16.579 ns (0.00% GC)
  mean time:        17.691 ns (0.00% GC)
  maximum time:     712.929 ns (0.00% GC)
  --------------
  samples:          10000
  evals/sample:     1000

Main> @benchmark atan2(sqrt($a), sqrt(1-$a))
BenchmarkTools.Trial:
  memory estimate:  0 bytes
  allocs estimate:  0
  --------------
  minimum time:     24.080 ns (0.00% GC)
  median time:      24.870 ns (0.00% GC)
  mean time:        25.987 ns (0.00% GC)
  maximum time:     417.257 ns (0.00% GC)
  --------------
  samples:          10000
  evals/sample:     1000
Main> asin(sqrt(a)) ≈ atan2(sqrt(a), sqrt(1-a))
true
```

* Take minimum after square root in haversine

531 of 550 relevant lines covered (96.55%)

1710.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 309.1 21 Feb 2018 09:54PM UTC 0
96.55
Travis Job 309.1
2 309.2 21 Feb 2018 09:55PM UTC 0
96.55
Travis Job 309.2
Source Files on build 309
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #309
  • 8bf4ceda on github
  • Prev Build on master (#300)
  • Next Build on master (#310)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc