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

19 lines
533 B
Bash
Executable File

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