xburner is an experimental HTTP and gRPC load generator written in Zig.
xburner docs install.md
2.3 kB · 109 lines
Markdown
at main

Install Guide #

xburner can currently be used in two ways:

  • download a release archive
  • pull the container image
  • build from source

Release Archives #

Release archives are published for tagged releases.

Each archive contains:

  • xburner
  • xburner-bin
  • lib/ when platform-specific runtime libraries are bundled
  • README.md
  • CHANGELOG.md
  • LICENSE
  • NOTICE
  • INSTALL.md
  • licenses/

Typical flow:

tar -xzf xburner-<version>-<target>.tar.gz
cd xburner-<target>
./xburner --version

xburner is a launcher script. When bundled shared libraries are present, it arranges the runtime library path and then execs xburner-bin.

Container Image #

Release tags also publish a multi-architecture container image to GHCR:

docker pull ghcr.io/ucpr/xburner:<version>
docker run --rm ghcr.io/ucpr/xburner:<version> --version

To run a scenario, mount the config into the container:

docker run --rm \
  -v "$PWD:/configs:ro" \
  ghcr.io/ucpr/xburner:<version> run /configs/scenario.toml

Examples:

Build From Source #

Requirements:

  • Zig 0.15.2
  • Git
  • Go
  • CMake
  • Python 3
  • a working C/C++ toolchain
  • Homebrew grpc
  • Homebrew pkgconf

Setup:

brew install grpc pkgconf go
sh scripts/init.sh
zig build -Doptimize=ReleaseFast
./zig-out/bin/xburner --version

Workflow Guest Sample #

To rebuild the sample workflow guest after building the host binary:

sh scripts/build_workflow_sample_wasm.sh

Language-specific helpers are also available:

sh scripts/build_workflow_wasm.sh path/to/guest.c path/to/guest.wasm
sh scripts/build_workflow_rust_wasm.sh path/to/guest.rs path/to/guest.wasm
sh scripts/build_workflow_go_wasm.sh path/to/guest.go path/to/guest.wasm

Validation examples:

./zig-out/bin/xburner validate path/to/scenario.toml
./zig-out/bin/xburner validate --wasm-backend wasm3 path/to/go-scenario.toml

Current note:

  • the Go helper targets wasip1 and is validated with the wasm3 backend

Notes #

  • release archives are intended for running the host binary, not for rebuilding third-party dependencies
  • source builds remain the recommended path for development and CI