v0.3.0
vpbgen
Prebuilt vpbgen binaries attached (linux-amd64, macos-arm64, macos-amd64).
The library itself installs from source: v install --git https://github.com/we-be/protobuf.v
protobuf.v benchmark report
- date: 2026-08-06 (UTC)
- cpu: AMD EPYC 9V74 80-Core Processor
- v: V 0.5.2 , harness compiled with -prod
- go: go1.26.5, google.golang.org/protobuf v1.36.11
Wire compatibility
- V and Go encode 1000 identical messages to byte-identical output
- Go decode of V bytes: IDENTICAL 105459 bytes, 1000 people
- V decode of Go bytes: IDENTICAL 105459 bytes, 1000 people
Throughput
| payload | op | V ns/op | V MB/s | Go ns/op | Go MB/s | V/Go time |
|---|---|---|---|---|---|---|
| 77 B | encode | 209 | 367.7 | 200 | 385.0 | 1.05 |
| 77 B | decode | 651 | 118.3 | 306 | 251.9 | 2.13 |
| 10.4 KB | encode | 32377 | 322.2 | 23188 | 449.9 | 1.40 |
| 10.4 KB | decode | 103675 | 100.6 | 39818 | 262.0 | 2.60 |
| 1.1 MB | encode | 4364242 | 247.5 | 3313899 | 326.0 | 1.32 |
| 1.1 MB | decode | 11266960 | 95.9 | 5540088 | 195.0 | 2.03 |
V/Go time: 1.00 = parity, below 1 = V faster. Schema: bench.proto (people with
nested phone messages, packed varint tags). Both harnesses build identical data
(splitmix64, seed 42) and time identically (iterations scaled to ~1s per cell).
Benchmarks ran on a shared CI runner — good for V-vs-Go ratios, noisy for absolute numbers.