From 68c0cec5a68053770e16410f27b52faa93e163e7 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Wed, 18 Sep 2024 14:49:20 -0700 Subject: [PATCH] PYTHON-4769 Avoid pytest collection overhead when running perf benchmarks --- .evergreen/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.evergreen/run-tests.sh b/.evergreen/run-tests.sh index 66df6b26ca..8d7a9f082a 100755 --- a/.evergreen/run-tests.sh +++ b/.evergreen/run-tests.sh @@ -224,6 +224,9 @@ if [ -n "$PERF_TEST" ]; then python -m pip install simplejson start_time=$(date +%s) TEST_SUITES="perf" + # PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively + # affects the benchmark results. + TEST_ARGS="test/performance/perf_test.py $TEST_ARGS" fi echo "Running $AUTH tests over $SSL with python $(which python)"