Skip to content

Commit fe4c64a

Browse files
Fixes for CI benchmarks: iteration 2 (RedisJSON#352)
* [fix] Including module artifact check on benchmarks. Included extra dev docs explaining benchmark triggering. * [fix] Fixed wrong ci benchmark name. Increased JSON.ARRAPPEND test duration now that major regression is fixed * [fix] Fixed terraform fetch script * [wip] Updated readies * [fix] fixed test naming issue on json_get_ResultSet.totalResultsAvailable_jsonsl-yahoo2_json * [wip] using readies getterraform script
1 parent 2422b20 commit fe4c64a

11 files changed

Lines changed: 30 additions & 27 deletions

‎.circleci/config.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ commands:
167167
- run:
168168
name: Install remote benchmark tool dependencies
169169
command: |
170-
mkdir -p /workspace
171-
TF_EXE_FILE_NAME=/workspace/terraform ./tests/benchmarks/remote/install_deps.sh
170+
VERSION=0.14.8 ./deps/readies/bin/getterraform
172171
- run:
173172
name: Install remote benchmark python dependencies
174173
command: python3 -m pip install -r ./tests/benchmarks/requirements.txt
@@ -184,7 +183,7 @@ commands:
184183
export EC2_PRIVATE_PEM=$PERFORMANCE_EC2_PRIVATE_PEM
185184
186185
redisbench-admin run-remote \
187-
--terraform_bin_path /workspace/terraform \
186+
--required-module ReJSON \
188187
--module_path << parameters.module_path >> \
189188
--github_actor << parameters.github_actor >> \
190189
--github_repo $CIRCLE_PROJECT_REPONAME \

‎Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ ifneq ($(REMOTE),)
127127
BENCHMARK_ARGS = redisbench-admin run-remote
128128
endif
129129

130-
BENCHMARK_ARGS += --module_path $(realpath $(TARGET))
130+
BENCHMARK_ARGS += --module_path $(realpath $(TARGET)) \
131+
--required-module ReJSON
131132
ifneq ($(BENCHMARK),)
132133
BENCHMARK_ARGS += --test $(BENCHMARK)
133134
endif

‎deps/readies‎

‎tests/benchmarks/Readme.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Context
2+
3+
The automated benchmark definitions included within `tests/benchmarks` folder, provides a framework for evaluating and comparing feature branches and catching regressions prior to letting them into the master branch.
4+
5+
To be able to run local benchmarks you need `redisbench_admin>=0.1.74` [[tool repo for full details](https://github.com/RedisLabsModules/redisbench-admin)] and the benchmark tool specified on each configuration file. You can install `redisbench-admin` via PyPi as any other package.
6+
```
7+
pip3 install redisbench_admin>=0.1.74
8+
```
9+
10+
## Usage
11+
12+
- Local benchmarks: `make benchmark`
13+
- Remote benchmarks: `make benchmark REMOTE=1`
14+
15+
16+
## Included benchmarks
17+
18+
Each benchmark requires a benchmark definition yaml file to present on the current directory. The benchmark spec file is fully explained on the following link: https://github.com/RedisLabsModules/redisbench-admin/tree/master/docs
19+

‎tests/benchmarks/json_arrappend_geojson.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ clientconfig:
1111
- min-tool-version: "6.2.0"
1212
- parameters:
1313
- clients: 16
14-
- requests: 10000
14+
- requests: 1000000
1515
- threads: 2
1616
- pipeline: 1
1717
- command: 'JSON.ARRAPPEND path:sonde:foo .properties.coordinateProperties "{\"type\": \"Feature\", \"geometry\": {\"type\": \"Point\", \"coordinates\": [26.2153, 60.34085, 417.0]}, \"properties\": {\"temp\": 3.6, \"serial\": \"S0730589\", \"humidity\": 64.6, \"vel_h\": 16.0, \"uploader_callsign\": \"Lahti 24h raspberry\", \"time\": 1617220020, \"uploader\": {\"callsign\": \"Lahti 24h raspberry\"}}}"'

‎tests/benchmarks/json_get_ResultSet.totalResultsAvailable_jsonsl-yahoo2_json.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 0.2
2-
name: "json_set_ResultSet.totalResultsAvailable_1_jsonsl-yahoo2_json"
2+
name: "json_get_ResultSet.totalResultsAvailable_jsonsl-yahoo2_json"
33
description: "JSON.GET jsonsl-yahoo2 ResultSet.totalResultsAvailable || https://oss.redislabs.com/redisjson/performance/"
44
remote:
55
- type: oss-standalone

‎tests/benchmarks/json_get_array_of_docs[1]sclr_pass_100_json.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 0.2
2-
name: "json_get_array_of_docs[1]_pass_100_json"
2+
name: "json_get_array_of_docs[1]sclr_pass_100_json"
33
description: "JSON.GET pass-100 array_of_docs[1] || {Full document: pass-100.json https://oss.redislabs.com/redisjson/performance/"
44
remote:
55
- type: oss-standalone

‎tests/benchmarks/json_numincrby_num_1.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 0.2
2-
name: "json_set_num_0"
2+
name: "json_numincrby_num_1"
33
description: "JSON.NUMINCRBY num . 1 || https://oss.redislabs.com/redisjson/performance/"
44
remote:
55
- type: oss-standalone

‎tests/benchmarks/json_nummultby_num_2.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 0.2
2-
name: "json_set_num_0"
2+
name: "json_nummultby_num_2"
33
description: "JSON.SET num . 2 || https://oss.redislabs.com/redisjson/performance/"
44
remote:
55
- type: oss-standalone

‎tests/benchmarks/remote/install_deps.sh‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)