diff --git a/examples/testing/main_test.go b/examples/testing/main_test.go index c085951..2f72ff0 100644 --- a/examples/testing/main_test.go +++ b/examples/testing/main_test.go @@ -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) } diff --git a/examples/testing/testing.hash b/examples/testing/testing.hash index ccce2ec..b9b3043 100644 --- a/examples/testing/testing.hash +++ b/examples/testing/testing.hash @@ -1,2 +1,2 @@ -d3b047089cf762a8aa9778a8365a29eb31363288 -HryvnW3zHYJ +c5907fe47b48851bc70a6aa754f35402c4b38ba2 +U1pFrqtexa7 diff --git a/public/testing b/public/testing index cf3c2a1..27309fc 100644 --- a/public/testing +++ b/public/testing @@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.

- +
 package main
 
@@ -200,8 +200,8 @@ executes each benchmark function several times, increasing -

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