fix: Reword b.N comment

This commit is contained in:
jidicula 2021-12-02 09:29:17 -05:00
parent 690eb8a1ac
commit ca9c2e5e64
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View File

@ -72,8 +72,8 @@ func TestIntMinTableDriven(t *testing.T) {
// executes each benchmark function several times, increasing
// `b.N` on each run until it collects a precise measurement.
func BenchmarkIntMin(b *testing.B) {
// To measure a benchmark, the `testing` runner calls the
// function in a loop `b.N` times.
// Typically the benchmark runs a function we're
// benchmarking in a loop `b.N` times
for i := 0; i < b.N; i++ {
IntMin(1, 2)
}

View File

@ -1,2 +1,2 @@
d3b047089cf762a8aa9778a8365a29eb31363288
HryvnW3zHYJ
c5907fe47b48851bc70a6aa754f35402c4b38ba2
U1pFrqtexa7

6
public/testing generated
View File

@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.</p>
</td>
<td class="code leading">
<a href="http://play.golang.org/p/HryvnW3zHYJ"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
<a href="http://play.golang.org/p/U1pFrqtexa7"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />
<pre class="chroma">
<span class="kn">package</span> <span class="nx">main</span>
</pre>
@ -200,8 +200,8 @@ executes each benchmark function several times, increasing
<tr>
<td class="docs">
<p>To measure a benchmark, the <code>testing</code> runner calls the
function in a loop <code>b.N</code> times.</p>
<p>Typically the benchmark runs a function we&rsquo;re
benchmarking in a loop <code>b.N</code> times</p>
</td>
<td class="code">