Skip to content

Commit 57d7024

Browse files
committed
Inflate benchmark data to ensure laziness.
1 parent 9c6809e commit 57d7024

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

benchmarks/asv.conf.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"project_url": "https://github.com/SciTools/iris",
55
"repo": "..",
66
"environment_type": "conda-delegated",
7-
"conda_channels": ["conda-forge", "defaults"],
87
"show_commit_url": "http://github.com/scitools/iris/commit/",
98
"branches": ["upstream/main"],
109

benchmarks/asv_delegated_conda.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def __init__(
6666
ignored.append("`requirements`")
6767
if tagged_env_vars:
6868
ignored.append("`tagged_env_vars`")
69+
if conf.conda_channels:
70+
ignored.append("conda_channels")
6971
if conf.conda_environment_file:
7072
ignored.append("`conda_environment_file`")
7173
message = (
@@ -75,6 +77,8 @@ def __init__(
7577
log.warning(message)
7678
requirements = {}
7779
tagged_env_vars = {}
80+
# All that is required to create ASV's bare-bones environment.
81+
conf.conda_channels = ["defaults"]
7882
conf.conda_environment_file = None
7983

8084
super().__init__(conf, python, requirements, tagged_env_vars)

benchmarks/benchmarks/experimental/ugrid/regions_combine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class MixinCombineRegions:
3131
# Characterise time taken + memory-allocated, for various stages of combine
3232
# operations on cubesphere-like test data.
33-
params = [4, 500]
33+
params = [50, 500]
3434
param_names = ["cubesphere-N"]
3535

3636
def _parametrised_cache_filename(self, n_cubesphere, content_name):

benchmarks/benchmarks/load/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LoadAndRealise:
2727
# For data generation
2828
timeout = 600.0
2929
params = [
30-
[(2, 2, 2), (1280, 960, 5), (2, 2, 1000)],
30+
[(50, 50, 2), (1280, 960, 5), (2, 2, 1000)],
3131
[False, True],
3232
["FF", "PP", "NetCDF"],
3333
]

benchmarks/benchmarks/load/ugrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class DataRealisation:
7777
warmup_time = 0.0
7878
timeout = 300.0
7979

80-
params = [1, int(2e5)]
80+
params = [int(1e4), int(2e5)]
8181
param_names = ["number of faces"]
8282

8383
def setup_common(self, **kwargs):

benchmarks/benchmarks/save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
class NetcdfSave:
24-
params = [[1, 600], [False, True]]
24+
params = [[50, 600], [False, True]]
2525
param_names = ["cubesphere-N", "is_unstructured"]
2626

2727
def setup(self, n_cubesphere, is_unstructured):

0 commit comments

Comments
 (0)