Skip to content
Snippets Groups Projects
launch.sh 842 B
Newer Older
Boris Feld's avatar
Boris Feld committed
#!/bin/bash
set -euox pipefail
Boris Feld's avatar
Boris Feld committed

# Ensure asv now machine characteristics
Boris Feld's avatar
Boris Feld committed
asv machine --yes

echo check that system is ready for benchmark
echo "(use ASV_SKIP_SYSTEM_CHECK=1 to skip it)"

if [ -z "${ASV_SKIP_SYSTEM_CHECK:-}" ]; then
    # Check that the machine is ready for benchmark
    python -m perf system show
fi
Boris Feld's avatar
Boris Feld committed

# Ensure all repository are here

if [ ! -d mercurial ]; then
    hg clone https://www.mercurial-scm.org/repo/hg mercurial
fi

mkdir -p repos/
mkdir -p repos/.cache
make MAKE_VERBOSE=1 -f repos.make
./repo-scripts/rename-reference-directories repos
python create_skip_file.py
Boris Feld's avatar
Boris Feld committed

target="${1-1.9:: and tagged()}"
Boris Feld's avatar
Boris Feld committed
if [ "$#" -ge 1 ]; then
    shift
fi
Boris Feld's avatar
Boris Feld committed
# Launch asv
time HGRCPATH= taskset -c 2,3 asv run --verbose --show-stderr --skip-existing-successful "${target}" "$@"
Boris Feld's avatar
Boris Feld committed

# Publish results
asv publish --no-pull
Boris Feld's avatar
Boris Feld committed

echo "DONE"