Commit c15c23c8 authored by 王明明's avatar 王明明

vy 0321

parent fdf195c2
...@@ -2,13 +2,13 @@ package main ...@@ -2,13 +2,13 @@ package main
import ( import (
"encoding/json" "encoding/json"
"flag"
"fmt" "fmt"
http "github.com/bogdanfinn/fhttp" http "github.com/bogdanfinn/fhttp"
tls_client "github.com/bogdanfinn/tls-client" tls_client "github.com/bogdanfinn/tls-client"
"io" "io"
"io/ioutil" "io/ioutil"
"net/url" "net/url"
"os"
"strings" "strings"
"sync" "sync"
"test/model" "test/model"
...@@ -83,7 +83,7 @@ func actU2() { ...@@ -83,7 +83,7 @@ func actU2() {
} }
func actVY() { func actVY() {
px := "http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600" px := "http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
if len(os.Args) > 0 { if *Debug {
px = "http://127.0.0.1:8890" px = "http://127.0.0.1:8890"
} }
t1 := time.Now() t1 := time.Now()
...@@ -101,7 +101,11 @@ func actVY() { ...@@ -101,7 +101,11 @@ func actVY() {
fmt.Println("abck cost", time.Since(t1).String()) fmt.Println("abck cost", time.Since(t1).String())
testVY(px, body) testVY(px, body)
} }
var Debug *bool
func main() { func main() {
Debug = flag.Bool("debug", true, "本地调试")
for i := 0; i < 1; i++ { for i := 0; i < 1; i++ {
t1 := time.Now() t1 := time.Now()
fmt.Println(t1) fmt.Println(t1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment