Skip to content

Commit 0f84ad6

Browse files
authored
PYTHON-4769 Avoid pytest collection overhead when running perf benchmarks (#1869)
1 parent 9df635f commit 0f84ad6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.evergreen/run-tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ if [ -n "$PERF_TEST" ]; then
224224
python -m pip install simplejson
225225
start_time=$(date +%s)
226226
TEST_SUITES="perf"
227+
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively
228+
# affects the benchmark results.
229+
TEST_ARGS="test/performance/perf_test.py $TEST_ARGS"
227230
fi
228231

229232
echo "Running $AUTH tests over $SSL with python $(which python)"

0 commit comments

Comments
 (0)