pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.5k stars 1.04k forks source link

Add benchmark test for open_datatree #9100

Closed flamingbear closed 4 days ago

flamingbear commented 3 weeks ago

What is your issue?

To prevent regressions in the future, we should add a benchmark test for opening a deeply nested data tree.

This is to follow up on #9014 @aladinor's performance improvements.

You can see here how we benchmark opening and loading a single netCDF file

https://github.com/pydata/xarray/blob/447e5a3d16764a880387d33d0b5938393e167817/asv_bench/benchmarks/dataset_io.py#L125