summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Whelan <topherwhelan@gmail.com>2019-03-23 14:50:35 -0700
committerChristopher Whelan <topherwhelan@gmail.com>2019-03-23 15:05:36 -0700
commit289d8048dc318de9c25e9b33ab8bc94498baa9e7 (patch)
tree2bd05de7f0989aaa6e78748e98a5eec74d7dd1fa
parent0eda21b06b9cf86802e25d636aa189e736a2cec9 (diff)
downloadnumpy-289d8048dc318de9c25e9b33ab8bc94498baa9e7.tar.gz
BENCH: fix Savez suite, previously was actually calling pickle.dump()
-rw-r--r--benchmarks/benchmarks/bench_io.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/benchmarks/bench_io.py b/benchmarks/benchmarks/bench_io.py
index 879f9b69e..439cd422f 100644
--- a/benchmarks/benchmarks/bench_io.py
+++ b/benchmarks/benchmarks/bench_io.py
@@ -66,7 +66,8 @@ class Savez(Benchmark):
self.squares = get_squares()
def time_vb_savez_squares(self):
- np.savez('tmp.npz', self.squares)
+ np.savez('tmp.npz', **self.squares)
+
class LoadtxtCSVComments(Benchmark):
# benchmarks for np.loadtxt comment handling