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

uber / h3-go
100%

Build:
DEFAULT BRANCH: master
Repo Added 18 Sep 2018 05:56PM UTC
Files 1
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • bench-ranges
  • chore-upgrade-h3-core
  • feat-add-error-codes
  • feat/latlng-to-cells-batch
  • gilley/adopt-modules
  • gilley/test-str
  • gilley/travis
  • joegilley-patch-2
  • joegilley-patch-3
  • justinhwang/4.3
  • justinhwang/4.5
  • justinhwang/bindings
  • justinhwang/bit
  • justinhwang/bump
  • justinhwang/changelog
  • justinhwang/coverage
  • justinhwang/doc
  • justinhwang/docs
  • justinhwang/edge
  • justinhwang/err
  • justinhwang/from_string
  • justinhwang/generics
  • justinhwang/github
  • justinhwang/greatcircle
  • justinhwang/griddiskunsafe
  • justinhwang/gridring
  • justinhwang/indexdigit
  • justinhwang/intpow
  • justinhwang/numverts
  • justinhwang/readme
  • justinhwang/stack
  • justinhwang/tostring
  • justinhwang/unsafe
  • justinhwang/vertex
  • maintainer-banner
  • master
  • refs/tags/v3.7.0
  • refs/tags/v3.7.1
  • refs/tags/v4.0.0
  • refs/tags/v4.0.1
  • refs/tags/v4.1.0
  • refs/tags/v4.1.1
  • refs/tags/v4.1.2
  • refs/tags/v4.2.0
  • refs/tags/v4.2.1
  • refs/tags/v4.2.2
  • refs/tags/v4.2.3
  • refs/tags/v4.2.4
  • refs/tags/v4.3.0
  • refs/tags/v4.4.0
  • refs/tags/v4.4.1
  • refs/tags/v4.5.0
  • update-h3
  • upgrade-github-actions-node24
  • v3.0.0
  • v3.0.1
  • v3.0.2
  • v4
  • vscode
  • zcoleman/exposing-polygontocells-containment
  • zcoleman/issue-78

02 Jun 2026 09:52PM UTC coverage: 100.0%. Remained the same
26850241105

push

github

web-flow
feat: reimplement greatCircle* as pure Go (#121)

Eliminate CGo overhead by implementing the haversine formula directly
in Go. Benchstat shows ~66% faster execution and zero allocations.

Before (CGo):

```lang=bash
BenchmarkGreatCircleDistanceRads-16    	19489219	        62.82 ns/op	      32 B/op	       2 allocs/op
BenchmarkGreatCircleDistanceKm-16      	19358064	        62.81 ns/op	      32 B/op	       2 allocs/op
BenchmarkGreatCircleDistanceM-16       	18969169	        63.68 ns/op	      32 B/op	       2 allocs/op
```

After (pure Go):

```lang=bash
BenchmarkGreatCircleDistanceRads-16    	58551271	        20.70 ns/op	       0 B/op	       0 allocs/op
BenchmarkGreatCircleDistanceKm-16      	57732436	        21.12 ns/op	       0 B/op	       0 allocs/op
BenchmarkGreatCircleDistanceM-16       	56447564	        21.64 ns/op	       0 B/op	       0 allocs/op
```

Benchstat:

```lang=bash
                           │   old (CGo)   │         new (pure Go)          │
                           │    sec/op     │   sec/op     vs base           │
GreatCircleDistanceRads-16   62.82n ± 2%   20.70n ± 1%  -67.06% (p=0.000 n=10)
GreatCircleDistanceKm-16     62.81n ± 1%   21.12n ± 2%  -66.37% (p=0.000 n=10)
GreatCircleDistanceM-16      63.68n ± 0%   21.64n ± 2%  -66.01% (p=0.000 n=10)
geomean                      63.10n        21.15n       -66.48%

                           │  old (CGo)  │       new (pure Go)        │
                           │    B/op     │   B/op     vs base         │
GreatCircleDistanceRads-16   32.00 ± 0%   0.00 ± 0%  -100.00% (p=0.000 n=10)
GreatCircleDistanceKm-16     32.00 ± 0%   0.00 ± 0%  -100.00% (p=0.000 n=10)
GreatCircleDistanceM-16      32.00 ± 0%   0.00 ± 0%  -100.00% (p=0.000 n=10)

                           │  old (CGo)  │       new (pure Go)        │
                           │  allocs/op  │ allocs/op   vs base        │
GreatCircleDistanceRads-16   2.000 ± 0%   0.000 ± 0%  -100.00% (p=0.000 n=10)
GreatCircleDistanceKm-16     2.000 ... (continued)

12 of 12 new or added lines in 1 file covered. (100.0%)

871 of 871 relevant lines covered (100.0%)

284.03 hits per line

Relevant lines Covered
Build:
Build:
871 RELEVANT LINES 871 COVERED LINES
284.03 HITS PER LINE
Source Files on master
  • Tree
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26850241105 master feat: reimplement greatCircle* as pure Go (#121) Eliminate CGo overhead by implementing the haversine formula directly in Go. Benchstat shows ~66% faster execution and zero allocations. Before (CGo): ```lang=bash BenchmarkGreatCircleDistanceRad... push 02 Jun 2026 09:53PM UTC web-flow github
100.0
26835325248 justinhwang/greatcircle feat: reimplement greatCircle* as pure Go Eliminate CGo overhead by implementing the haversine formula directly in Go. Benchstat shows ~66% faster execution and zero allocations. Before (CGo): ```lang=bash BenchmarkGreatCircleDistanceRads-16 ... Pull #121 02 Jun 2026 05:03PM UTC justinhwang github
100.0
26835208759 master perf: reimplement bit-manipulation functions in pure Go (#120) Replace CGo calls with pure Go bit operations for Resolution, BaseCellNumber, IsResClassIII, IsPentagon, IsValid (Cell), and IsValidIndex. This eliminates the ~18ns CGo crossing overh... push 02 Jun 2026 05:00PM UTC web-flow github
100.0
26788608911 justinhwang/greatcircle feat: reimplement greatCircle* as pure Go Eliminate CGo overhead by implementing the haversine formula directly in Go. Benchstat shows ~66% faster execution and zero allocations. Before (CGo): ```lang=bash BenchmarkGreatCircleDistanceRads-16 ... Pull #121 01 Jun 2026 11:34PM UTC justinhwang github
100.0
26779964949 justinhwang/bit perf: reimplement bit-manipulation functions in pure Go Replace CGo calls with pure Go bit operations for Resolution, BaseCellNumber, IsResClassIII, IsPentagon, IsValid (Cell), and IsValidIndex. This eliminates the ~18ns CGo crossing overhead per... Pull #120 01 Jun 2026 08:26PM UTC justinhwang github
100.0
26779298661 justinhwang/bit perf: reimplement bit-manipulation functions in pure Go Replace CGo calls with pure Go bit operations for Resolution, BaseCellNumber, IsResClassIII, IsPentagon, IsValid (Cell), and IsValidIndex. This eliminates the ~18ns CGo crossing overhead per... push 01 Jun 2026 08:13PM UTC justinhwang github
100.0
26683177239 feat/latlng-to-cells-batch updated naming to singular LatLngToCellBatch Pull #119 01 Jun 2026 04:02AM UTC zoobst github
100.0
26518203565 feat/latlng-to-cells-batch updated benchmarks to align with benchmark format Pull #119 28 May 2026 06:56PM UTC zoobst github
100.0
26477072641 refs/tags/v4.5.0 chore: update changelog for v4.5.0, update readme ver in update script (#118) push 26 May 2026 09:47PM UTC web-flow github
100.0
26477017147 master chore: update changelog for v4.5.0, update readme ver in update script (#118) push 26 May 2026 09:46PM UTC web-flow github
100.0
See All Builds (304)
  • Repo on GitHub
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