Skip to content

Commit 3c7faf0

Browse files
Enable SSUBSCRIBE benchmark mode (#13)
* Using go-redis for SSUBSCRIBE benchmark mode * Using go > 1.18 for testing due to go-redis
1 parent 2d8c53c commit 3c7faf0

File tree

5 files changed

+73
-1580
lines changed

5 files changed

+73
-1580
lines changed

.github/workflows/unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x]
7+
go-version: [1.18.x, 1.19.x, 1.20.x]
88
os: [ubuntu-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ cd $GOPATH/src/github.com/redis-performance/pubsub-sub-bench
5252
make
5353
```
5454

55-
#### Limitations
56-
57-
There are know limitations on old go version due to the radix/v3 dependency, given that on old versions,
58-
the go command in GOPATH mode does not distinguish between major versions, meaning that it will look for the package `package github.com/mediocregopher/radix/v3` instead of v3 of `package github.com/mediocregopher/radix`.
59-
Therefore you should only use this tool on go >= 1.11.
60-
6155
## Usage of pubsub-sub-bench
6256

6357
```

go.mod

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ module github.com/RedisLabs/pubsub-sub-bench
33
go 1.13
44

55
require (
6-
github.com/golangci/golangci-lint v1.50.1 // indirect
7-
github.com/mediocregopher/radix/v3 v3.5.2
6+
github.com/kr/text v0.2.0 // indirect
87
github.com/mediocregopher/radix/v4 v4.1.2
8+
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
9+
github.com/redis/go-redis/v9 v9.0.3
10+
github.com/stretchr/testify v1.8.0 // indirect
11+
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
912
)
13+
14+
replace github.com/redis/go-redis/v9 => github.com/filipecosta90/go-redis/v9 v9.0.0-20230429203646-959c94037c1e

0 commit comments

Comments
 (0)