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

uber / h3-go / 36505723603
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: bench/typed-sinks
DEFAULT BRANCH: master
Ran 29 Sep 2026 01:01AM UTC
Jobs 1
Files 19
Run time 1min
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

29 Sep 2026 12:58AM UTC coverage: 100.0%. Remained the same
36505723603

Pull #144

github

justinhwang
bench: replace the interface sink with a typed noinline sink in paritytest

The cross-implementation benchmarks kept results alive by assigning them to a
package-level `any`. That boxes every Cell, float64, LatLng and int64 result on
its way into the interface, which adds a small heap allocation and several
nanoseconds to every row and reports 1 alloc/op for functions that do not
allocate. On the smallest operations the box was a third or more of the
measured time, and it masked allocation changes in the library.

Replace the sink with a generic, noinline function. The result is materialized
and passed in its own type, so the call cannot be eliminated and nothing is
boxed. No benchmark body changes beyond the sink call.

benchstat, Go implementation, old harness vs new, five interleaved full-suite
rounds on an Apple M3 Max (five samples is below benchstat's threshold for a
confidence interval, so only the p-values are shown). Selected rows; the PR
carries the full tables for both implementations:

                                       old       new   vs base
NewLatLng-16                       11.250n    1.959n   -82.59% (p=0.008 n=5)
CellToLatLng-16                     86.39n    70.77n   -18.08% (p=0.008 n=5)
CellToString-16                     32.96n    20.18n   -38.77% (p=0.008 n=5)
CellMarshalText-16                  52.26n    19.79n   -62.13% (p=0.008 n=5)
CellFromString-16                   33.62n    26.05n   -22.52% (p=0.008 n=5)
Resolution-16                       2.058n    1.964n   -4.57% (p=0.008 n=5)
NumCells-16                         8.674n    1.978n   -77.20% (p=0.008 n=5)
Parent-16                          13.650n    5.874n   -56.97% (p=0.008 n=5)
ImmediateParent-16                 11.470n    3.919n   -65.83% (p=0.008 n=5)
CenterChild-16                      9.530n    2.226n   -76.64% (p=0.008 n=5)
ChildPosToCell-16                  15.850n    8.004n   -49.50% (p=0.008 n=5)
CellAreaRads2-16                    500.2n    488.8n   -2.28% (... (continued)
Pull Request #144: bench: replace the interface sink with a typed noinline sink in paritytest

4309 of 4309 relevant lines covered (100.0%)

2903949.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go- - 36505723603.1 29 Sep 2026 01:01AM UTC 19
100.0
GitHub Action Run
Source Files on build 36505723603
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #144
  • PR Base - master (#36499045753)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc