gpool updates

This commit is contained in:
John
2019-01-23 17:27:30 +08:00
parent c27bc0023f
commit b02205f7cd
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import (
"sync"
)
var pool = New(99999999)
var pool = New(99999999, nil)
var syncp = sync.Pool{}
func BenchmarkGPoolPut(b *testing.B) {

View File

@ -10,7 +10,7 @@ func main() {
interval := time.Second
gtimer.AddSingleton(interval, func() {
glog.Println("doing")
time.Sleep(2*time.Second)
time.Sleep(5*time.Second)
})
select { }