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

KarpelesLab / pktkit / 24003830068
53%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2026 02:46PM UTC
Jobs 1
Files 80
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

05 Apr 2026 02:45PM UTC coverage: 44.621% (-0.03%) from 44.647%
24003830068

push

github

MagicalTux
Add zero-allocation WireGuard encrypt/decrypt path (8x faster)

New EncryptTo(dst, data, peerKey) writes into a caller-provided buffer,
and EncryptPooled returns a buffer from the global packet pool. Both
achieve 0 allocs/op on the encrypt path.

The nonce [12]byte array was escaping to the heap because Seal/Open take
[]byte. Fixed with an unsafe noescape wrapper that hides the pointer from
escape analysis, keeping the nonce on the stack.

Combined encrypt+decrypt at 1420B: 1142 ns/op, 1.24 GB/s, 0 allocs
(was 6970 ns/op, 204 MB/s, 5 allocs — 6.1x improvement).

The existing Encrypt() API is unchanged and still allocates 1 buffer for
the returned []byte (backward compatible).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

27 of 43 new or added lines in 1 file covered. (62.79%)

5 existing lines in 1 file now uncovered.

5869 of 13153 relevant lines covered (44.62%)

21.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
76.34
-5.48% wg/transport.go

Coverage Regressions

Lines Coverage ∆ File
5
51.39
-0.93% slirp/usernat.go
Jobs
ID Job ID Ran Files Coverage
1 24003830068.1 05 Apr 2026 02:46PM UTC 80
44.62
GitHub Action Run
Source Files on build 24003830068
  • Tree
  • List 80
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24003830068
  • 9d95a32c on github
  • Prev Build on master (#24003533694)
  • Next Build on master (#24003982542)
  • Delete
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