v0.5.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 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 154752 bytes, 1000 people
- V decode of Go bytes: IDENTICAL 154752 bytes, 1000 people
Throughput
| payload | op | V ns/op | V MB/s | Go ns/op | Go MB/s | V/Go time |
|---|---|---|---|---|---|---|
| 86 B | encode | 380 | 226.6 | 536 | 160.6 | 0.71 |
| 86 B | decode | 932 | 92.2 | 634 | 135.7 | 1.47 |
| 15.5 KB | encode | 75178 | 206.0 | 138100 | 112.1 | 0.54 |
| 15.5 KB | decode | 193565 | 80.0 | 159740 | 96.9 | 1.21 |
| 1.6 MB | encode | 11306905 | 139.7 | 15113834 | 104.5 | 0.75 |
| 1.6 MB | decode | 23294131 | 67.8 | 19278453 | 81.9 | 1.21 |
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.