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

KarpelesLab / pktkit / 24003398688
53%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2026 02:20PM UTC
Jobs 1
Files 79
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:19PM UTC coverage: 44.552% (-0.03%) from 44.58%
24003398688

push

github

MagicalTux
Optimize NAT hot path: 28x throughput improvement (1.3 → 36 GB/s)

Three changes eliminate all per-packet allocation and syscall overhead:

- sync.Pool for packet buffers: removes the 1536-byte make() per packet
  that was driving ~29% of CPU into GC
- Coarse 250ms cached clock for lastActive timestamps: replaces
  time.Now() syscall on every packet with an atomic load
- Atomic helper count: skips mutex acquisition in helperOutbound/
  helperInbound/handleLocal when no helpers are registered

Result: 0 allocs/op, 40 ns/op for TCP NAT (was 1140 ns/op, 1 alloc).

Also adds benchmarks for wg and ovpn packages covering handshake,
encrypt/decrypt, replay filters, PRF, and options parsing.

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

52 of 63 new or added lines in 2 files covered. (82.54%)

27 existing lines in 5 files now uncovered.

5847 of 13124 relevant lines covered (44.55%)

21.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
64.49
1.46% nat/nat.go
1
17.61
-6.31% nat/helper.go

Coverage Regressions

Lines Coverage ∆ File
15
17.61
-6.31% nat/helper.go
5
51.39
-0.93% slirp/usernat.go
3
52.03
-1.22% vclient/client.go
3
33.97
0.0% vclient/tcp.go
1
88.15
-0.47% wg/server.go
Jobs
ID Job ID Ran Files Coverage
1 24003398688.1 05 Apr 2026 02:20PM UTC 79
44.55
GitHub Action Run
Source Files on build 24003398688
  • Tree
  • List 79
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24003398688
  • 140a14af on github
  • Prev Build on master (#24002717821)
  • Next Build on master (#24003533694)
  • 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