19 lines
509 B
Bash
Executable File
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
|