forked from Rana718/FyroDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
72 lines (59 loc) · 1.65 KB
/
Copy pathTaskfile.yml
File metadata and controls
72 lines (59 loc) · 1.65 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
vars:
BINARY: flash_db
VERSION: v0.1.0
tasks:
run:
desc: Run the binary
cmds:
- task: build
- target/release/{{.BINARY}}
build:
desc: Release build
cmds:
- cargo build --release
test:
desc: Run tests
cmds:
- cargo test
bench-key-flash:
desc: benchmark key operations on flash db
cmds:
- cd bench && go run . -m key
bench-key-redis:
desc: benchmark key operations on redis
cmds:
- cd bench && go run . -p 6379 -m key
bench-pub-flash:
desc: benchmark pub operations on flash db
cmds:
- cd bench && go run . -m pub
bench-pub-redis:
desc: benchmark pub operations on redis
cmds:
- cd bench && go run . -p 6379 -m pub
bench-flash:
desc: benchmark flash db
cmds:
- cd bench && go run .
bench-redis:
desc: benchmark redis
cmds:
- cd bench && go run . -p 6379
bench-redis-cluster:
desc: benchmark redis cluster (6 masters, 0 replicas — fair 6-core vs 6-core)
cmds:
- cd bench && go run . -cluster 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003,127.0.0.1:7004,127.0.0.1:7005,127.0.0.1:7006
up:
desc: Start Redis Cluster
cmds:
- cd bench/redis-cluster && docker compose up -d
down:
desc: Stop Redis Cluster
cmds:
- cd bench/redis-cluster && docker compose down
redis-clean:
desc: Flush all data from every Redis Cluster master node
cmds:
- for: ["7001", "7002", "7003", "7004", "7005", "7006"]
cmd: redis-cli -p {{.ITEM}} FLUSHALL