#!/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