Repository navigation
It builds on colibri v0.22.0, at 3ac8c7bc, and on stdx v0.4.0, at fdfbb709, the commit that
colibri pins, and Rotor at af06860.
Changed
- Breaking. A TLS client takes the program's one
stdx.crypto.Context, of its CPU features
and a secure random source (colibri decision 175). Add stdx to yourbuild.zig.zonat the
commit and hash connect-zig pins, ask it for.target,.releaseand.crypto = true, and
replace.cpu = cpuwith.crypto = stdx.crypto.init(cpu_features, secure.random()), as
examples/quickstart does (decision 34).tls.Cpu
is gone. - Breaking.
colibri.Servertakes no.cpu. It makes its context ofengine.cpu_features
and the system's entropy, or takes yours in.crypto. - Breaking. A program that drives colibri's pool or engine itself passes no random source:
start_tcp,start_quicandEngine.initdraw from the context intls. - examples/validate states a
patternfor each tag, and the full-stack
check's span rules state one for each attribute key, so its validation numbers include a
regular expression.
Benchmarks since the previous tag
connect-zig's values against v0.6.0: 4 better and 10 worse by 5% or more, of 58. Each compares the value its chart draws.
| Chart | Value | Previous | This tag | Change |
|---|---|---|---|---|
| call-vs-go-arm64 | small, Connect unary call, speed in multiples of connect-go's | 9.45 | 9.98 | ▲ 6% better |
| call-vs-go | medium, Connect unary call, speed in multiples of connect-go's | 11.74 | 10.70 | ▼ 9% worse |
| call-vs-go | medium, gRPC unary call, speed in multiples of connect-go's | 11.77 | 10.72 | ▼ 9% worse |
| fullstack-arm64 | connect-zig, spans a second over TLS | 707,579 | 743,128 | ▲ 5% better |
| fullstack-compression-arm64 | gzip, spans a second as a share of uncompressed over TLS | 113.00 | 107.00 | ▼ 5% worse |
| fullstack-validate-arm64 | connect-zig, spans a second over TLS | 707,579 | 743,128 | ▲ 5% better |
| fullstack-validate-arm64 | connect-zig + protovalidate, spans a second over TLS | 600,779 | 525,107 | ▼ 13% worse |
| fullstack-validate | connect-zig + protovalidate, spans a second over TLS | 529,528 | 451,208 | ▼ 15% worse |
| speed-vs-go-arm64 | deep, JSON encode, speed in multiples of Go's | 18.72 | 20.94 | ▲ 12% better |
| speed-vs-go | small, binary decode+walk, speed in multiples of Go's | 6.87 | 6.51 | ▼ 5% worse |
| speed-vs-go | large, binary decode+walk, speed in multiples of Go's | 4.72 | 4.43 | ▼ 6% worse |
| speed-vs-go | small, JSON encode, speed in multiples of Go's | 11.09 | 10.48 | ▼ 6% worse |
| speed-vs-go | small, JSON decode+walk, speed in multiples of Go's | 13.19 | 11.74 | ▼ 11% worse |
| validate-vs-go-arm64 | small invalid, speed in multiples of protovalidate-go's | 64.39 | 59.30 | ▼ 8% worse |
These charts ran on another CPU model than v0.6.0's, so they compare nothing: fullstack-compression, validate-vs-go.
Every value
| Chart | Value | Previous | This tag | Change |
|---|---|---|---|---|
| call-vs-go-arm64 | small, Connect unary call, speed in multiples of connect-go's | 9.45 | 9.98 | ▲ 6% better |
| call-vs-go-arm64 | medium, Connect unary call, speed in multiples of connect-go's | 12.16 | 12.31 | ≈ +1.2% |
| call-vs-go-arm64 | small, gRPC unary call, speed in multiples of connect-go's | 10.69 | 11.17 | ≈ +4.5% |
| call-vs-go-arm64 | medium, gRPC unary call, speed in multiples of connect-go's | 12.23 | 12.56 | ≈ +2.7% |
| call-vs-go | small, Connect unary call, speed in multiples of connect-go's | 8.43 | 8.17 | ≈ -3.1% |
| call-vs-go | medium, Connect unary call, speed in multiples of connect-go's | 11.74 | 10.70 | ▼ 9% worse |
| call-vs-go | small, gRPC unary call, speed in multiples of connect-go's | 9.10 | 8.75 | ≈ -3.8% |
| call-vs-go | medium, gRPC unary call, speed in multiples of connect-go's | 11.77 | 10.72 | ▼ 9% worse |
| fullstack-arm64 | connect-zig, spans a second over TLS | 707,579 | 743,128 | ▲ 5% better |
| fullstack-compression-arm64 | gzip, spans a second as a share of uncompressed over TLS | 113.00 | 107.00 | ▼ 5% worse |
| fullstack-compression-arm64 | gzip, calls a second at peak as a share of uncompressed over TLS | 117.89 | 118.74 | ≈ +0.7% |
| fullstack-compression-arm64 | zstd, spans a second as a share of uncompressed over TLS | 115.00 | 110.00 | ≈ -4.3% |
| fullstack-compression-arm64 | zstd, calls a second at peak as a share of uncompressed over TLS | 119.17 | 119.56 | ≈ +0.3% |
| fullstack-compression-arm64 | brotli, spans a second as a share of uncompressed over TLS | 92.00 | 90.00 | ≈ -2.2% |
| fullstack-compression-arm64 | brotli, calls a second at peak as a share of uncompressed over TLS | 105.45 | 104.65 | ≈ -0.8% |
| fullstack-validate-arm64 | connect-zig, spans a second over TLS | 707,579 | 743,128 | ▲ 5% better |
| fullstack-validate-arm64 | connect-zig + protovalidate, spans a second over TLS | 600,779 | 525,107 | ▼ 13% worse |
| fullstack-validate | connect-zig, spans a second over TLS | 582,979 | 607,418 | ≈ +4.2% |
| fullstack-validate | connect-zig + protovalidate, spans a second over TLS | 529,528 | 451,208 | ▼ 15% worse |
| fullstack | connect-zig, spans a second over TLS | 582,979 | 607,418 | ≈ +4.2% |
| speed-vs-go-arm64 | small, binary encode, speed in multiples of Go's | 10.29 | 10.34 | ≈ +0.5% |
| speed-vs-go-arm64 | medium, binary encode, speed in multiples of Go's | 11.29 | 11.75 | ≈ +4.1% |
| speed-vs-go-arm64 | large, binary encode, speed in multiples of Go's | 3.21 | 3.21 | ≈ +0.0% |
| speed-vs-go-arm64 | deep, binary encode, speed in multiples of Go's | 3.38 | 3.42 | ≈ +1.2% |
| speed-vs-go-arm64 | small, binary decode+walk, speed in multiples of Go's | 7.18 | 7.36 | ≈ +2.5% |
| speed-vs-go-arm64 | medium, binary decode+walk, speed in multiples of Go's | 10.83 | 10.74 | ≈ -0.8% |
| speed-vs-go-arm64 | large, binary decode+walk, speed in multiples of Go's | 5.43 | 5.41 | ≈ -0.4% |
| speed-vs-go-arm64 | deep, binary decode+walk, speed in multiples of Go's | 6.63 | 6.59 | ≈ -0.6% |
| speed-vs-go-arm64 | small, JSON encode, speed in multiples of Go's | 9.96 | 10.35 | ≈ +3.9% |
| speed-vs-go-arm64 | medium, JSON encode, speed in multiples of Go's | 10.22 | 10.69 | ≈ +4.6% |
| speed-vs-go-arm64 | large, JSON encode, speed in multiples of Go's | 7.64 | 7.91 | ≈ +3.5% |
| speed-vs-go-arm64 | deep, JSON encode, speed in multiples of Go's | 18.72 | 20.94 | ▲ 12% better |
| speed-vs-go-arm64 | small, JSON decode+walk, speed in multiples of Go's | 11.73 | 12.12 | ≈ +3.3% |
| speed-vs-go-arm64 | medium, JSON decode+walk, speed in multiples of Go's | 14.74 | 14.97 | ≈ +1.6% |
| speed-vs-go-arm64 | large, JSON decode+walk, speed in multiples of Go's | 11.83 | 11.92 | ≈ +0.8% |
| speed-vs-go-arm64 | deep, JSON decode+walk, speed in multiples of Go's | 12.35 | 12.73 | ≈ +3.1% |
| speed-vs-go | small, binary encode, speed in multiples of Go's | 10.49 | 10.05 | ≈ -4.2% |
| speed-vs-go | medium, binary encode, speed in multiples of Go's | 11.24 | 11.12 | ≈ -1.1% |
| speed-vs-go | large, binary encode, speed in multiples of Go's | 3.23 | 3.32 | ≈ +2.8% |
| speed-vs-go | deep, binary encode, speed in multiples of Go's | 3.42 | 3.50 | ≈ +2.3% |
| speed-vs-go | small, binary decode+walk, speed in multiples of Go's | 6.87 | 6.51 | ▼ 5% worse |
| speed-vs-go | medium, binary decode+walk, speed in multiples of Go's | 10.53 | 10.07 | ≈ -4.4% |
| speed-vs-go | large, binary decode+walk, speed in multiples of Go's | 4.72 | 4.43 | ▼ 6% worse |
| speed-vs-go | deep, binary decode+walk, speed in multiples of Go's | 4.95 | 4.91 | ≈ -0.8% |
| speed-vs-go | small, JSON encode, speed in multiples of Go's | 11.09 | 10.48 | ▼ 6% worse |
| speed-vs-go | medium, JSON encode, speed in multiples of Go's | 9.25 | 9.40 | ≈ +1.6% |
| speed-vs-go | large, JSON encode, speed in multiples of Go's | 8.27 | 8.15 | ≈ -1.5% |
| speed-vs-go | deep, JSON encode, speed in multiples of Go's | 18.73 | 17.80 | ≈ -5.0% |
| speed-vs-go | small, JSON decode+walk, speed in multiples of Go's | 13.19 | 11.74 | ▼ 11% worse |
| speed-vs-go | medium, JSON decode+walk, speed in multiples of Go's | 14.98 | 14.57 | ≈ -2.7% |
| speed-vs-go | large, JSON decode+walk, speed in multiples of Go's | 12.25 | 11.95 | ≈ -2.4% |
| speed-vs-go | deep, JSON decode+walk, speed in multiples of Go's | 13.42 | 13.04 | ≈ -2.8% |
| validate-vs-go-arm64 | small valid, speed in multiples of protovalidate-go's | 19.07 | 18.50 | ≈ -3.0% |
| validate-vs-go-arm64 | small invalid, speed in multiples of protovalidate-go's | 64.39 | 59.30 | ▼ 8% worse |
| validate-vs-go-arm64 | medium valid, speed in multiples of protovalidate-go's | 14.64 | 14.41 | ≈ -1.6% |
| validate-vs-go-arm64 | medium invalid, speed in multiples of protovalidate-go's | 33.63 | 34.13 | ≈ +1.5% |
| validate-vs-go-arm64 | rules valid, speed in multiples of protovalidate-go's | 62.56 | 64.93 | ≈ +3.8% |
| validate-vs-go-arm64 | rules invalid, speed in multiples of protovalidate-go's | 68.85 | 66.31 | ≈ -3.7% |