We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a111cc + f7a18e6 commit 3e872c5Copy full SHA for 3e872c5
1 file changed
tests/conftest.py
@@ -6,6 +6,7 @@
6
# LICENSE file in the root directory of this source tree)
7
#######################################################################
8
import os
9
+import sys
10
11
import pytest
12
@@ -14,6 +15,15 @@
14
15
16
def pytest_configure(config):
17
blosc2.print_versions()
18
+ if sys.platform != "emscripten":
19
+ # Using the defaults for nthreads can be very time consuming for tests.
20
+ # Fastest runtime (95 sec) for the whole test suite (Mac Mini M4 Pro)
21
+ # blosc2.set_nthreads(1)
22
+ # Second best runtime (101 sec), but still contained, and
23
+ # actually tests multithreading.
24
+ blosc2.set_nthreads(2)
25
+ # This makes the worst time (242 sec)
26
+ # blosc2.set_nthreads(blosc2.nthreads) # worst runtime ()
27
28
29
@pytest.fixture(scope="session")
0 commit comments