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
98 lines (81 loc) · 2.29 KB
/
Copy pathTaskfile.yml
File metadata and controls
98 lines (81 loc) · 2.29 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3"
vars:
BINARY: fyro_db
VERSION: v0.1.2
tasks:
run:
desc: Run the binary
cmds:
- task: build
- target/release/{{.BINARY}}
docs-build:
desc: Build the docs
cmds:
- cd docs && bun run build
docs-run:
desc: Run the docs
cmds:
- cd docs && bun run start
docs-dev:
desc: Run the docs in development mode
cmds:
- cd docs && bun run dev
build:
desc: Release build
cmds:
- cargo build --release
lint:
desc: Lint check
cmds:
- cargo clippy
test:
desc: Run tests with summary
cmds:
- ./scripts/test.sh {{.CLI_ARGS}}
bench-key-fyrodb:
desc: benchmark key operations on FyroDB
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-fyrodb:
desc: benchmark pub operations on FyroDB
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-fyrodb:
desc: benchmark FyroDB
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
- cd bench/redis-cluster && docker compose wait cluster-init
down:
desc: Stop Redis Cluster
cmds:
- cd bench/redis-cluster && docker compose down
fyro-dock:
desc: fyrodb runing under docker with 1 worker && 10K keys
cmds:
- docker build -t fyrodb .
- docker run -d --name fyrodb-1k -p 8000:8000 -e FYRODB_WORKERS=1 fyrodb
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