Skip to content

Commit 4fac3bf

Browse files
committed
Match motor
1 parent d0b0dc3 commit 4fac3bf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.evergreen/scripts/setup_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ def handle_test_env() -> None:
450450
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively
451451
# affects the benchmark results.
452452
if sub_test_name == "sync":
453-
TEST_ARGS = f"test/performance/perf_test.py {TEST_ARGS}"
453+
TEST_ARGS = f"test/performance/perf_test.py {TEST_ARGS} -s"
454454
else:
455-
TEST_ARGS = f"test/performance/async_perf_test.py {TEST_ARGS}"
455+
TEST_ARGS = f"test/performance/async_perf_test.py {TEST_ARGS} -s"
456456

457457
# Add coverage if requested.
458458
# Only cover CPython. PyPy reports suspiciously low coverage.

test/performance/async_perf_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070

7171
# Spec says to use at least 1 minute cumulative execution time and up to 100 iterations or 5 minutes but that
7272
# makes the benchmarks too slow. Instead, we use at least 30 seconds and at most 60 seconds.
73-
NUM_ITERATIONS = 100
73+
NUM_ITERATIONS = 10
7474
MIN_ITERATION_TIME = 30
75-
MAX_ITERATION_TIME = 120
76-
NUM_DOCS = 10000
75+
MAX_ITERATION_TIME = 300
76+
NUM_DOCS = 1000
7777
# When debugging or prototyping it's often useful to run the benchmarks locally, set FASTBENCH=1 to run quickly.
7878
if bool(os.getenv("FASTBENCH")):
7979
NUM_ITERATIONS = 2

0 commit comments

Comments
 (0)