v0.4.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-08 (UTC)
- cpu: AMD EPYC 7763 64-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 145109 bytes, 1000 people
- V decode of Go bytes: IDENTICAL 145109 bytes, 1000 people
Throughput
| payload | op | V ns/op | V MB/s | Go ns/op | Go MB/s | V/Go time |
|---|---|---|---|---|---|---|
| 86 B | encode | 309 | 278.2 | 644 | 133.5 | 0.48 |
| 86 B | decode | 922 | 93.2 | 759 | 113.3 | 1.21 |
| 14.2 KB | encode | 77864 | 182.9 | 138651 | 102.7 | 0.56 |
| 14.2 KB | decode | 172770 | 82.4 | 168136 | 84.7 | 1.03 |
| 1.5 MB | encode | 10426210 | 141.7 | 14455932 | 102.2 | 0.72 |
| 1.5 MB | decode | 19329849 | 76.4 | 18725273 | 78.9 | 1.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.