mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:41:42 +08:00
2d4872ba60
This adds a simple script that drives benchmarks, and a simple sample benchmark.
15 lines
278 B
Bash
Executable File
15 lines
278 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
|
|
echo $(basename "$benchmark")
|
|
${FISH_PATH} --print-rusage-self $benchmark > /dev/null
|
|
done
|
|
|