mirror of
https://github.com/vale981/ray
synced 2025-03-10 13:26:39 -04:00
26 lines
1 KiB
Bash
26 lines
1 KiB
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
# Show explicitly which commands are currently running.
|
||
|
set -ex
|
||
|
|
||
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
||
|
|
||
|
pushd "$ROOT_DIR"
|
||
|
|
||
|
python -m pip install pytest-benchmark
|
||
|
|
||
|
pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-0.7.0.dev3-cp27-cp27mu-manylinux1_x86_64.whl
|
||
|
python -m pytest --benchmark-autosave --benchmark-min-rounds=10 --benchmark-columns="min, max, mean" $ROOT_DIR/../../../python/ray/tests/perf_integration_tests/test_perf_integration.py
|
||
|
|
||
|
pushd $ROOT_DIR/../../../python
|
||
|
python -m pip install -e .
|
||
|
popd
|
||
|
|
||
|
python -m pytest --benchmark-compare --benchmark-min-rounds=10 --benchmark-compare-fail=min:5% --benchmark-columns="min, max, mean" $ROOT_DIR/../../../python/ray/tests/perf_integration_tests/test_perf_integration.py
|
||
|
|
||
|
# This is how Modin stores the values in an S3 bucket
|
||
|
#sha_tag=`git rev-parse --verify --short HEAD`
|
||
|
# save the results to S3
|
||
|
#aws s3 cp .benchmarks/*/*.json s3://modin-jenkins-result/${sha_tag}-perf-${BUCKET_SUFFIX}/ --acl public-read
|
||
|
#rm -rf .benchmarks
|