fix: Reword b.N comment
This commit is contained in:
parent
690eb8a1ac
commit
ca9c2e5e64
@ -72,8 +72,8 @@ func TestIntMinTableDriven(t *testing.T) {
|
|||||||
// executes each benchmark function several times, increasing
|
// executes each benchmark function several times, increasing
|
||||||
// `b.N` on each run until it collects a precise measurement.
|
// `b.N` on each run until it collects a precise measurement.
|
||||||
func BenchmarkIntMin(b *testing.B) {
|
func BenchmarkIntMin(b *testing.B) {
|
||||||
// To measure a benchmark, the `testing` runner calls the
|
// Typically the benchmark runs a function we're
|
||||||
// function in a loop `b.N` times.
|
// benchmarking in a loop `b.N` times
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
IntMin(1, 2)
|
IntMin(1, 2)
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
d3b047089cf762a8aa9778a8365a29eb31363288
|
c5907fe47b48851bc70a6aa754f35402c4b38ba2
|
||||||
HryvnW3zHYJ
|
U1pFrqtexa7
|
||||||
|
6
public/testing
generated
6
public/testing
generated
@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.</p>
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="code leading">
|
<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">
|
<pre class="chroma">
|
||||||
<span class="kn">package</span> <span class="nx">main</span>
|
<span class="kn">package</span> <span class="nx">main</span>
|
||||||
</pre>
|
</pre>
|
||||||
@ -200,8 +200,8 @@ executes each benchmark function several times, increasing
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="docs">
|
<td class="docs">
|
||||||
<p>To measure a benchmark, the <code>testing</code> runner calls the
|
<p>Typically the benchmark runs a function we’re
|
||||||
function in a loop <code>b.N</code> times.</p>
|
benchmarking in a loop <code>b.N</code> times</p>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="code">
|
<td class="code">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user