zarr-developers / zarr-python

An implementation of chunked, compressed, N-dimensional arrays for Python.
http://zarr.readthedocs.io/
MIT License
1.41k stars 267 forks source link

[v3] slow tests #1966

Open d-v-b opened 1 month ago

d-v-b commented 1 month ago

from my workstation:

================================================================================================================== slowest 10 durations ==================================================================================================================
9.17s call     tests/v3/test_indexing.py::test_set_orthogonal_selection_3d
1.98s call     tests/v3/test_indexing.py::test_set_orthogonal_selection_2d
0.71s call     tests/v3/test_indexing.py::test_set_orthogonal_selection_1d
0.61s call     tests/v3/test_indexing.py::test_get_orthogonal_selection_3d
0.49s call     tests/v3/test_store/test_remote.py::TestRemoteStoreS3::test_get[use_str-byte_range3--c/0]
0.46s call     tests/v3/test_indexing.py::test_set_coordinate_selection_2d
0.43s setup    tests/v3/test_store/test_remote.py::TestRemoteStoreS3::test_get[use_str-byte_range2-\x01\x02\x03\x04-foo/c/0.0]
0.43s call     tests/v3/test_store/test_remote.py::TestRemoteStoreS3::test_get[use_str-byte_range2--c/0]
0.42s setup    tests/v3/test_store/test_remote.py::TestRemoteStoreS3::test_get[use_str-None--foo/0/0]
0.42s setup    tests/v3/test_store/test_remote.py::TestRemoteStoreS3::test_get[use_str-None--foo/c/0.0]

We should alter test_set_orthogonal_selection_3d so that it runs faster. Not clear to me if this requires just changing the test suite or boosting zarr-python performance, or both.