INNER CODE UNIT · Go

totalD2

hb-chen/micro-starter · benchmark/_backup/micro_mclient.go:129

	totalD2 := make([]float64, 0, n*m)
	for _, k := range totalD {
		totalD2 = append(totalD2, float64(k))
	}

	mean, _ := stats.Mean(totalD2)
	median, _ := stats.Median(totalD2)
	max, _ := stats.Max(totalD2)
	min, _ := stats.Min(totalD2)
	p99, _ := stats.Percentile(totalD2, 99.9)

	log.Logf("sent     requests    : %d\n", n*m)
	log.Logf("received requests    : %d\n", atomic.LoadUint64(&trans))
	log.Logf("received requests_OK : %d\n", atomic.LoadUint64(&transOK))
	log.Logf("throughput  (TPS)    : %d\n", int64(n*m)*1000/totalT)
	log.Logf("mean: %.f ns, median: %.f ns, max: %.f ns, min: %.f ns, p99: %.f ns\n", mean, median, max, min, p99)
	log.Logf("mean: %d ms, median: %d ms, max: %d ms, min: %d ms, p99: %d ms\n", int64(mean/1000000), int64(median/1000000), int64(max/1000000), int64(min/1000000), int64(p99/1000000))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…