mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 09:27:38 +00:00
17 lines
385 B
Bash
Executable file
17 lines
385 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "Usage: driver.sh /path/to/fish"
|
|
fi
|
|
|
|
FISH_PATH=$1
|
|
BENCHMARKS_DIR=$(dirname "$0")/benchmarks
|
|
|
|
for benchmark in "$BENCHMARKS_DIR"/*; do
|
|
basename "$benchmark"
|
|
${FISH_PATH} --print-rusage-self "$benchmark" > /dev/null
|
|
if command -v hyperfine >/dev/null 2>&1; then
|
|
hyperfine "${FISH_PATH} $benchmark > /dev/null"
|
|
fi
|
|
done
|
|
|