Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pubsub-sub-bench
ehthumbs.db
Thumbs.db

package-lock.json

# Coverage Results #
####################
Expand All @@ -92,3 +91,4 @@ coverage.txt
# Profiler Results #
####################
*.pprof
/out/*
1 change: 0 additions & 1 deletion js/ioredis/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ yarn-error.log*
*.out
*.tmp
*.pid
*.json

# OS junk
.DS_Store
Expand Down
15 changes: 12 additions & 3 deletions js/ioredis/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pubsub-sub-bench (JavaScript Edition)
# pubsub-sub-bench (ioredis Edition)

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

```bash
cd pubsub-sub-bench/js/ioredis
npm install
npm install
```

## Usage

This version of the benchmark accepts the same arguments as the original go version
There's a script that can be utilizaed to start multiple instances of the benchmark

Usage: ./run-multi-bench.sh <instances> [benchmark_args...]

Example: ./run-multi-bench.sh 3 --mode=publish --clients=100 --test-time=60
4 changes: 0 additions & 4 deletions js/ioredis/lib/redisManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ async function runBenchmark(argv) {
console.log(`Reconnect interval for ${subscriberName}: ${reconnectInterval}ms`);
}

if (clientId % 100 === 0 || clientId === argv.clients) {
console.log(`${subscriberName} subscribing to ${channels.length} channels.`);
}

promises.push(
subscriberRoutine(
subscriberName,
Expand Down
4 changes: 0 additions & 4 deletions js/ioredis/lib/subscriber.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
function safeBigIntUs() {
return Date.now();
}

async function subscriberRoutine(
clientName,
mode,
Expand Down
Loading