format
This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user