예제 #1
0
func Benchmark_Post(b *testing.B) {
	var uuid, _ = utils.GenerateV4String()
	conn, _ := cli.CreateConnction("testfile")
	for i := 0; i < b.N; i++ {
		conn.Post(uuid, "tests")
	}
}
예제 #2
0
func Benchmark_Get(b *testing.B) {
	conn, _ := cli.CreateConnction("testfile")
	for i := 0; i < b.N; i++ {
		conn.Get("testuuid")
	}
}