Files
fastwc/benchmarks/bench-busybox.sh
T
huntedbytheirs c4d4f0b713 first: setup
setting up repo.
2026-08-29 13:48:15 -04:00

19 lines
509 B
Bash
Executable File

#!/usr/bin/env bash
# bench-busybox.sh — benchmark the busybox wc applet against the release
# build of fastwc. Fails fast: the moment fastwc is slower than (or
# disagrees with) busybox wc, a human readable report is written to
# FAILED-benchmark.txt and this script exits non-zero.
#
# usage: ./bench-busybox.sh
set -u
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=std.sh
source "$SCRIPT_DIR/std.sh"
checkfastwc
checkwc busybox
BENCH_NAME="busybox"
run_benchmark_suite