Skip to content

Commit fe75347

Browse files
committed
Add a param for running large benchmarks
1 parent 11584f1 commit fe75347

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bench/ndarray/compute_dists2.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
import numexpr as ne
1818
import matplotlib.pyplot as plt
1919
import seaborn as sns
20+
import sys
21+
2022

2123
# Bench params
2224
N = 10_000
@@ -29,6 +31,11 @@
2931
#expr = "cos(a)**2 + sin(b)**2 - 1"
3032
#expr = "sum(cos(a)**2 + sin(b)**2 - 1)"
3133

34+
# Params for large memory machines
35+
if len(sys.argv) > 1 and sys.argv[1] == "large":
36+
N = 30_000 # For large memory machines
37+
distributions = ["constant", "arange", "linspace"]
38+
3239
# Set default compression params
3340
cparams = blosc2.CParams(clevel=1, codec=blosc2.Codec.BLOSCLZ)
3441
blosc2.cparams_dflts["codec"] = cparams.codec

0 commit comments

Comments
 (0)