File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ func BenchmarkBufferPool(b *testing.B) {
21
21
22
22
m2 := new (runtime.MemStats )
23
23
runtime .ReadMemStats (m2 )
24
- b .Logf (
25
- "%-20s\t TotalAlloc=%5d\t StackInUse=%5d" ,
26
- name ,
27
- int64 (m2 .TotalAlloc )- int64 (m1 .TotalAlloc ),
28
- int64 (m2 .StackInuse )- int64 (m1 .StackInuse ),
29
- //int64(m2.HeapSys) - int64(m1.HeapSys),
30
- //int64(m2.HeapIdle) - int64(m1.HeapIdle),
31
- )
24
+ /*
25
+ b.Logf(
26
+ "%-20s\tTotalAlloc=%5d\tStackInUse=%5d",
27
+ name,
28
+ int64(m2.TotalAlloc)-int64(m1.TotalAlloc),
29
+ int64(m2.StackInuse)-int64(m1.StackInuse),
30
+ //int64(m2.HeapSys) - int64(m1.HeapSys),
31
+ //int64(m2.HeapIdle) - int64(m1.HeapIdle),
32
+ )
33
+ */
32
34
}
33
35
run ("default/8" , func (tb * testing.B ) {
34
36
tb .StopTimer ()
You can’t perform that action at this time.
0 commit comments