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

tnewman / xk6-kafka
78%

Build:
DEFAULT BRANCH: main
Repo Added 24 Sep 2026 12:14PM UTC
Token a5VEKW1rhvhx1wFY1OpUnLFD59AFS6kUv regen
Build 1 Last
Files 27
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 main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • main

08 Sep 2026 04:42PM UTC coverage: 78.362%. First build
35996266829

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%)

4067 of 5190 relevant lines covered (78.36%)

31.69 hits per line

Relevant lines Covered
Build:
Build:
5190 RELEVANT LINES 4067 COVERED LINES
31.69 HITS PER LINE
Source Files on main
  • Tree
  • List 27
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
35996266829 main 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-... push 24 Sep 2026 12:14PM UTC web-flow github
78.36
See All Builds (1)

Badge your Repo: xk6-kafka

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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