Skip to content

Commit 442cd41

Browse files
committed
Set the number of threads to 2 to reduce the test suite runtime. Fixes #535.
1 parent a4a7b4c commit 442cd41

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
def pytest_configure(config):
1616
blosc2.print_versions()
17+
# Using the defaults for nthreads can be very time consuming for tests.
18+
# Fastest runtime (95 sec) for the whole test suite (Mac Mini M4 Pro)
19+
# blosc2.set_nthreads(1)
20+
# Second best runtime (101 sec), but still contained, and
21+
# actually tests multithreading.
22+
blosc2.set_nthreads(2)
23+
# This makes the worst time (242 sec)
24+
# blosc2.set_nthreads(blosc2.nthreads) # worst runtime ()
1725

1826

1927
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)