1. 首页
  2. 会员
  3. michael_xu的信息
初级会员
  • 第 11990 位会员
  • michael_xu
  • 2017年09月06日 03:28:08
  • Offline
  • 19 91

最近发布的文章

    暂无

最近分享的资源

    暂无

最近发布的项目

    暂无

最近的评论

  • #2 @samsong8610 代码都贴上了,你可以测试一下啊。
  • ```go package main import ( "fmt" "time" "net/http" ) var netClient = &http.Client{} func init() { tr := &http.Transport{ MaxIdleConns: 100000000, MaxIdleConnsPerHost: 100000000, } netClient = &http.Client{Transport: tr} } func R(logid string){ timer_1 := time.Now().UnixNano() _, err := netClient.Get("http://127.0.0.1:8080/profile/encrypt?keys=1") timer_2 := time.Now().UnixNano() fmt.Println(logid, ((timer_2 - timer_1)/1000000), "ms", err) } func main() { for n := 0; n <= 500; n++ { //time.Sleep(time.Microsecond * 2) go R(fmt.Sprintf("%d-%d",n, time.Now().UnixNano())) } time.Sleep(15 * time.Second) } ```
  • #7 @polaris 恩恩,打扰了,我已经弄明白了。
  • #6 @channel 对不起 我不喜欢看说明。。。
  • #4 @channel 。。。。这么喜欢喷人么? 我是刚刚注册的用户。