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

mostafa / xk6-kafka / 34252756500
78%

Build:
DEFAULT BRANCH: main
Ran 08 Sep 2026 04:58PM UTC
Jobs 1
Files 27
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

08 Sep 2026 04:42PM UTC coverage: 78.382% (+0.08%) from 78.301%
34252756500

push

github

web-flow
perf: restore producer throughput in compat produce config decode (#415)

* perf: restore producer throughput in compat produce config decode

The protobuf serde PR (#389) replaced the produce config decode with a
mapstructure decoder using a per-field reflection hook. That double
reflection walk (export to map, then mapstructure decode) runs on every
produce() call and roughly halved writer throughput: the README
benchmark (scripts/test_json.js, 50 VUs, 60s) dropped from ~373k to
~208k msg/s. Found via git bisect.

Restore the fast JSON round-trip decode and keep the plain-string
payload fix from #389 by normalizing message key/value payloads in the
exported map first: strings and number arrays become []byte in place,
which round-trips losslessly through the base64 semantics encoding/json
applies to []byte fields. Handles both export shapes ([]any from
script-created values, []map[string]any from Go-created ones).

Benchmark on the same machine/container: ~208k -> ~372-382k msg/s,
matching the v2.0.0 tag's ~373k msg/s.

* docs: refresh benchmark results and note v2.1.0 regression

Re-measured scripts/test_json.js (50 VUs, 60s) on the reference machine:
372,484 msg/s (best observed today: 382,078 msg/s), matching the
documented v2.0.0 figure. Also fixes the stale v1.x.x/main framing and
adds a note about the v2.1.0 producer throughput regression.

23 of 40 new or added lines in 1 file covered. (57.5%)

1 existing line in 1 file now uncovered.

4068 of 5190 relevant lines covered (78.38%)

32.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
63.39
3.27% pkg/kafka/writer.go

Coverage Regressions

Lines Coverage ∆ File
1
63.39
3.27% pkg/kafka/writer.go
Jobs
ID Job ID Ran Files Coverage
1 34252756500.1 08 Sep 2026 04:58PM UTC 27
78.38
GitHub Action Run
Source Files on build 34252756500
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cab4c9da on github
  • Prev Build on main (#34237589309)
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