Skip to content

Commit 7c6d321

Browse files
mahuihuangeveryx
authored andcommitted
fix: complete the translation of the benchmarking
1 parent 2efabe3 commit 7c6d321

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/testing-and-benchmarking/main_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ func TestIntMinTableDriven(t *testing.T) {
6262
// `testing` 运行器多次执行每个基准测试函数,并在每次运行时增加 `b.N`,
6363
// 直到它收集到精确的测量值。
6464
func BenchmarkIntMin(b *testing.B) {
65-
// Typically the benchmark runs a function we're
66-
// benchmarking in a loop `b.N` times.
65+
// 通常,基准测试运行一个函数,我们在一个 `b.N` 次的循环内进行基准测试。
6766
for i := 0; i < b.N; i++ {
6867
IntMin(1, 2)
6968
}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
cb7953373f2f5df81e3e1e40a35ca15ee4e4c81d
2-
NZzDRI7OOv0
1+
c165fa6a683ec3adf93deab67dbe19665778f421
2+
6_USpbeJGKP

0 commit comments

Comments
 (0)