10000 BENCH: Add a relatable 2D benchmark for block by hmaarrfk · Pull Request #12001 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BENCH: Add a relatable 2D benchmark for block #12001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
BENCH: Add a relatable 2D benchmark for block
  • Loading branch information
hmaarrfk committed Oct 1, 2018
commit 114bf43b2eebaac39a1e0a301a24053f2960ab10
4 changes: 2 additions & 2 deletions benchmarks/benchmarks/bench_shape_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class Block2D(Benchmark):
def setup(self, shape, dtype, n_chunks):

self.block_list = [
[np.full(shape=[s//n_chunk for s, n_chunk in zip(shape, n_chunks)],
fill_value=1, dtype=dtype) for _ in range(n_chunks[1])]
[np.ones(shape=[s//n_chunk for s, n_chunk in zip(shape, n_chunks)],
dtype=dtype) for _ in range(n_chunks[1])]
for _ in range(n_chunks[0])
]

Expand Down
0