Skip to content

Commit 752d44d

Browse files
committed
updated readme
1 parent 3298dc7 commit 752d44d

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

js/ioredis/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pubsub-sub-bench (JavaScript Edition)
1+
# pubsub-sub-bench (ioredis Edition)
22

33
High-performance **Redis Pub/Sub benchmark tool**, written in Node.js.
44
Supports both **standalone** and **Redis OSS Cluster** modes, with support for `PUBLISH`, `SPUBLISH`, `SUBSCRIBE`, and `SSUBSCRIBE`.
@@ -10,5 +10,14 @@ Supports both **standalone** and **Redis OSS Cluster** modes, with support for `
1010
## 📦 Installation
1111

1212
```bash
13-
cd pubsub-sub-bench/js/ioredis
14-
npm install
13+
npm install
14+
```
15+
16+
## Usage
17+
18+
This version of the benchmark accepts the same arguments as the original go version
19+
There's a script that can be utilizaed to start multiple instances of the benchmark
20+
21+
Usage: ./run-multi-bench.sh <instances> [benchmark_args...]
22+
23+
Example: ./run-multi-bench.sh 3 --mode=publish --clients=100 --test-time=60

js/ioredis/scripts/run-multi-bench.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ run_instance() {
9393
# Run the benchmark instances
9494
for (( i=1; i<=$INSTANCES; i++ )); do
9595
run_instance $i "$*"
96-
# Add small delay to avoid startup conflicts
97-
sleep 0.5
9896
done
9997

10098
echo "All $INSTANCES benchmark instances have been started."

js/node-redis/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# pubsub-sub-bench (node-redis Edition)
2+
3+
High-performance **Redis Pub/Sub benchmark tool**, written in Node.js.
4+
Supports both **standalone** and **Redis OSS Cluster** modes, with support for `PUBLISH`, `SPUBLISH`, `SUBSCRIBE`, and `SSUBSCRIBE`.
5+
6+
> Part of the [redis-performance/pubsub-sub-bench](https://github.com/redis-performance/pubsub-sub-bench) suite.
7+
8+
---
9+
10+
## 📦 Installation
11+
12+
```bash
13+
npm install
14+
```
15+
16+
## Usage
17+
18+
This version of the benchmark accepts the same arguments as the original go version
19+
There's a script that can be utilizaed to start multiple instances of the benchmark
20+
21+
Usage: ./run-multi-bench.sh <instances> [benchmark_args...]
22+
23+
Example: ./run-multi-bench.sh 3 --mode=publish --clients=100 --test-time=60

0 commit comments

Comments
 (0)