Skip to content

Commit 15c6836

Browse files
authored
Add import ASV benchmark (#7176)
1 parent a7f7190 commit 15c6836

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

asv_bench/benchmarks/import.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class Import:
2+
"""Benchmark importing xarray"""
3+
4+
def timeraw_import_xarray(self):
5+
return """
6+
import xarray
7+
"""
8+
9+
def timeraw_import_xarray_plot(self):
10+
return """
11+
import xarray.plot
12+
"""
13+
14+
def timeraw_import_xarray_backends(self):
15+
return """
16+
from xarray.backends import list_engines
17+
list_engines()
18+
"""

0 commit comments

Comments
 (0)