3proxy/bench/mix/build.sh
Vladimir Dubrovin f268755581 bench: TLS, mix and half-close scenarios, 13 October results
tls-term-* and tls-init-* measure TLS ended or begun by the proxy on a
TCP relay: 3proxy tcppm under ssl_serv/ssl_cli, nginx stream, haproxy
mode tcp and stunnel, with a certificate made for each run and an HTTPS
listener on the origin. nginx::halfclose turns on proxy_half_close.
bench/mix is the Go load generator and origin for the mix-* scenarios.
A run stops when the origin exits (e.g. killed by the OOM killer)
instead of recording failures for everything after it.

RESULTS.md gets the HTTPS and mix tables; data/ the full suite with 16
KB buffers and -s by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 10:38:57 +03:00

11 lines
427 B
Bash

#!/bin/sh
# Builds the mix load generator and origin for the machines the benchmark runs
# on: static Linux binaries for x86_64 and aarch64, next to this script, where
# bench.py looks for them. Needs Go 1.22 or later, on any system.
set -e
cd "$(dirname "$0")"
for arch in amd64 arm64; do
CGO_ENABLED=0 GOOS=linux GOARCH=$arch go build -trimpath -ldflags="-s -w" -o "mix-linux-$arch" .
echo "bench/mix/mix-linux-$arch"
done