Пример #1
0
func benchmarkHTTPImpl(N uint64) {
	driver.Parallel(N, procs, func() {
		t0 := time.Now()
		makeOneRequest()
		driver.LatencyNote(t0)
	})
}
Пример #2
0
func benchmarkN(N uint64) {
	driver.Parallel(N, 4, func() {
		var r Response
		if err := json.Unmarshal(jsonbytes, &r); err != nil {
			panic(err)
		}
		if _, err := json.Marshal(&jsondata); err != nil {
			panic(err)
		}
	})
}