MCPcopy Create free account
hub / github.com/numpy/numpy / setup

Method setup

benchmarks/benchmarks/bench_io.py:71–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70class LoadNpyOverhead(Benchmark):
71 def setup(self):
72 self.buffer = BytesIO()
73 np.save(self.buffer, get_squares_()['float32'])
74
75 def time_loadnpy_overhead(self):
76 self.buffer.seek(0, SEEK_SET)

Callers

nothing calls this directly

Calls 1

get_squares_Function · 0.85

Tested by

no test coverage detected