Skip to content

Commit

Permalink
CI: osx: run benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 10, 2024
1 parent 06ef213 commit 0d97e03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci/travis/osx/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ DYLD_LIBRARY_PATH=$PWD/build PYTHONPATH=$PWD/build/swig/python python3 -c "from

# Run all the Python autotests
(cd build && ctest -V -R autotest -j${NPROC})

# Use time.process_time for more reliability on VMs
# dist=no is needed because pytest-benchmark doesn't like other values of dist
# and in conftest.py/pytest.ini we set by default --dist=loadgroup
BENCHMARK_OPTIONS=(
"--dist=no" \
"--benchmark-timer=time.process_time" \
)
(cd build && python3 -m pytest autotest/benchmark "${BENCHMARK_OPTIONS[@]}" --capture=no -ra -vv)

0 comments on commit 0d97e03

Please sign in to comment.