mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 00:45:47 +00:00
22 lines
506 B
Bash
Executable file
22 lines
506 B
Bash
Executable file
#!/bin/bash
|
|
# Usage: run-perf.sh mlr-executable [mlr-executable ...]
|
|
# Run from scripts/perf/.
|
|
|
|
set -e
|
|
|
|
dir="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "Usage: $0 mlr-executable [mlr-executable ...]" >&2
|
|
echo "Example: $0 ~/bin/mlr-6.18.1 ~/bin/mlr-6.19.0" >&2
|
|
exit 1
|
|
fi
|
|
|
|
datfile="timings-$(date +%Y-%m-%d).dat"
|
|
|
|
echo "Collecting timings into $datfile ..."
|
|
python "$dir/time-verbs.py" "$@" | tee "$datfile"
|
|
|
|
echo ""
|
|
echo "Generating plots ..."
|
|
bash "$dir/plot-timings.sh" "$datfile"
|