Skip to content

Commit

Permalink
Add a couple of repr benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Nov 14, 2024
1 parent d749b02 commit 22d315c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dkist/tests/test_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,13 @@ def test_slice_dataset(benchmark, large_visp_dataset):
@benchmark
def slice_dataset(dataset=large_visp_dataset, idx = np.s_[:2, 10:15, 0]):
sliced = dataset[idx]


@pytest.mark.benchmark
def test_dataset_repr(benchmark, large_visp_dataset):
benchmark(repr, large_visp_dataset)


@pytest.mark.benchmark
def test_tileddataset_repr(benchmark, simple_tiled_dataset):
benchmark(repr, simple_tiled_dataset)

0 comments on commit 22d315c

Please sign in to comment.