func BenchmarkAlphazeroRedisSet(b *testing.B) { var err error for i := 0; i < b.N; i++ { err = alphazeroRedisClient.Set("hello", to.Bytes(1)) if err != nil { b.Fatalf(err.Error()) break } } }
func BenchmarkAlphazeroRedisLPush(b *testing.B) { var err error alphazeroRedisClient.Del("hello") for i := 0; i < b.N; i++ { err = alphazeroRedisClient.Lpush("hello", to.Bytes(i)) if err != nil { b.Fatalf(err.Error()) break } } }