Skip to content

Commit 9da8680

Browse files
committed
Fix: Increase N for statistically significant performance benchmarking
1 parent 110d7fb commit 9da8680

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

challenges/medium/17_dot_product/challenge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ <h2>Constraints</h2>
2727
<li><code>A</code> and <code>B</code> have identical lengths</li>
2828
<li>1 ≤ <code>N</code> ≤ 100,000,000</li>
2929

30-
<li>Performance is measured with <code>N</code> = 5</li>
30+
<li>Performance is measured with <code>N</code> = 4194304</li>
3131
</ul>

challenges/medium/17_dot_product/challenge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def generate_functional_test(self) -> List[Dict[str, Any]]:
105105

106106
def generate_performance_test(self) -> Dict[str, Any]:
107107
dtype = torch.float32
108-
N = 5
108+
N = 4194304
109109
A = torch.empty(N, device="cuda", dtype=dtype).uniform_(-1.0, 1.0)
110110
B = torch.empty(N, device="cuda", dtype=dtype).uniform_(-1.0, 1.0)
111111
result = torch.zeros(1, device="cuda", dtype=dtype)

0 commit comments

Comments
 (0)