We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11584f1 commit fe75347Copy full SHA for fe75347
bench/ndarray/compute_dists2.py
@@ -17,6 +17,8 @@
17
import numexpr as ne
18
import matplotlib.pyplot as plt
19
import seaborn as sns
20
+import sys
21
+
22
23
# Bench params
24
N = 10_000
@@ -29,6 +31,11 @@
29
31
#expr = "cos(a)**2 + sin(b)**2 - 1"
30
32
#expr = "sum(cos(a)**2 + sin(b)**2 - 1)"
33
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
39
# Set default compression params
40
cparams = blosc2.CParams(clevel=1, codec=blosc2.Codec.BLOSCLZ)
41
blosc2.cparams_dflts["codec"] = cparams.codec
0 commit comments