We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2efabe3 commit 7c6d321Copy full SHA for 7c6d321
examples/testing-and-benchmarking/main_test.go
@@ -62,8 +62,7 @@ func TestIntMinTableDriven(t *testing.T) {
62
// `testing` 运行器多次执行每个基准测试函数,并在每次运行时增加 `b.N`,
63
// 直到它收集到精确的测量值。
64
func BenchmarkIntMin(b *testing.B) {
65
- // Typically the benchmark runs a function we're
66
- // benchmarking in a loop `b.N` times.
+ // 通常,基准测试运行一个函数,我们在一个 `b.N` 次的循环内进行基准测试。
67
for i := 0; i < b.N; i++ {
68
IntMin(1, 2)
69
}
examples/testing-and-benchmarking/testing-and-benchmarking.hash
@@ -1,2 +1,2 @@
1
-cb7953373f2f5df81e3e1e40a35ca15ee4e4c81d
2
-NZzDRI7OOv0
+c165fa6a683ec3adf93deab67dbe19665778f421
+6_USpbeJGKP
0 commit comments