gf/geg/other/test.go
2018-01-15 22:42:58 +08:00

20 lines
380 B
Go

package main
import (
"gitee.com/johng/gf/g/os/gtime"
"fmt"
"gitee.com/johng/gf/g/container/glist"
)
func main() {
t1 := gtime.Microsecond()
c := make(chan func(), 10)
c <- func(){}
fmt.Println(gtime.Microsecond() - t1)
t2 := gtime.Microsecond()
l := glist.NewSafeList()
l.PushBack(func() {})
fmt.Println(gtime.Microsecond() - t2)
}