Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ setup
Method
setup
benchmarks/benchmarks/bench_reduce.py:7–8 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5
6
class
AddReduce(Benchmark):
7
def
setup(self):
8
self.squares = get_squares().values()
9
10
def
time_axis_0(self):
11
[np.add.reduce(a, axis=0)
for
a in self.squares]
Callers
nothing calls this directly
Calls
2
get_squares
Function · 0.85
values
Method · 0.80
Tested by
no test coverage detected