This commit is contained in:
songgl
2017-08-31 10:05:18 +08:00
committed by GitHub
parent 625a704d81
commit 1e79ccb9b0

View File

@@ -156,7 +156,7 @@ func Benchmark_TimeConsumingFunction(b *testing.B) {
我们执行命令`go test webbench_test.go -test.bench=".*"`,可以看到如下结果: 我们执行命令`go test webbench_test.go -test.bench=".*"`,可以看到如下结果:
``` ```
Benchmark_Division-4 500000000 7.76 ns/op 456 B/op 14 allocs/op Benchmark_Division-4 500000000 7.76 ns/op 456 B/op 14 allocs/op
Benchmark_TimeConsumingFunction-4 500000000 7.80 ns/op 224 B/op 4 allocs/op Benchmark_TimeConsumingFunction-4 500000000 7.80 ns/op 224 B/op 4 allocs/op
PASS PASS
ok gotest 9.364s ok gotest 9.364s
``` ```