-
Notifications
You must be signed in to change notification settings - Fork 0
/
hash_online_storage_test.go
43 lines (32 loc) · 1.19 KB
/
hash_online_storage_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package research_online_redis_go
import (
"testing"
"github.com/redis/go-redis/v9"
)
var hashOnlineStorageConstructor = func(client *redis.Client) OnlineStorage {
return NewHashOnlineStorage(client)
}
func TestRedisHashOnlineStorage(t *testing.T) {
testOnlineStorage(t, "redis1:6379", hashOnlineStorageConstructor)
}
func TestKeydbHashOnlineStorage(t *testing.T) {
testOnlineStorage(t, "keydb1:6379", hashOnlineStorageConstructor)
}
func TestDragonflydbHashOnlineStorage(t *testing.T) {
testOnlineStorage(t, "dragonflydb1:6379", hashOnlineStorageConstructor)
}
func TestGarnetHashOnlineStorage(t *testing.T) {
testOnlineStorage(t, "garnet1:6379", hashOnlineStorageConstructor)
}
func BenchmarkRedisHashOnlineStorage(b *testing.B) {
benchmarkOnlineStorage(b, "redis1:6379", hashOnlineStorageConstructor)
}
func BenchmarkKeydbHashOnlineStorage(b *testing.B) {
benchmarkOnlineStorage(b, "keydb1:6379", hashOnlineStorageConstructor)
}
func BenchmarkDragonflydbHashOnlineStorage(b *testing.B) {
benchmarkOnlineStorage(b, "dragonflydb1:6379", hashOnlineStorageConstructor)
}
func BenchmarkGarnetHashOnlineStorage(b *testing.B) {
benchmarkOnlineStorage(b, "garnet1:6379", hashOnlineStorageConstructor)
}