Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# LICENSE file in the root directory of this source tree)
#######################################################################
import os
import sys

import pytest

Expand All @@ -14,6 +15,15 @@

def pytest_configure(config):
blosc2.print_versions()
if sys.platform != "emscripten":
# Using the defaults for nthreads can be very time consuming for tests.
# Fastest runtime (95 sec) for the whole test suite (Mac Mini M4 Pro)
# blosc2.set_nthreads(1)
# Second best runtime (101 sec), but still contained, and
# actually tests multithreading.
blosc2.set_nthreads(2)
# This makes the worst time (242 sec)
# blosc2.set_nthreads(blosc2.nthreads) # worst runtime ()


@pytest.fixture(scope="session")
Expand Down
Loading