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

JuliaStats / Distances.jl / 309 / 2
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2018 09:55PM UTC
Files 8
Run time 1s
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

21 Feb 2018 09:48PM UTC coverage: 96.545% (-0.007%) from 96.552%
309.2

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%)

855.32 hits per line

Source Files on job 309.2
  • Tree
  • List 0
  • Changed 8
  • Source Changed 8
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 309.2
  • 8bf4ceda on github
  • Prev Job for on master (#300.2)
  • Next Job for on master (#310.1)
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