Skip to content

RedisJSON LOCAL/CI benchmarks kickoff based on https://oss.redislabs.com/redisjson/performance/ - #307

Merged
filipecosta90 merged 2 commits into
masterfrom
local.and.ci.benchmarks
Apr 22, 2021
Merged

filipecosta90 merged 2 commits into
masterfrom
local.and.ci.benchmarks

Conversation

@filipecosta90

@filipecosta90 filipecosta90 commented Apr 19, 2021 •

Copy link
Copy Markdown
Contributor

Context

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.

To be able to run local benchmarks you need redisbench_admin>=0.1.66 [tool repo for full details] and the benchmark tool specified on each configuration file . You can install redisbench-admin via PyPi as any other package.

pip3 install redisbench_admin>=0.1.66

Usage

  • Local benchmarks: make benchmark
  • Remote benchmarks: make benchmark REMOTE=1

Included benchmarks

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

Bellow you can find the ones included in this PR:

SPEC File / Status COMMAND
json_set_key_empty.yml JSON.SET {key} . {empty string size: 2 B}
json_get_key_empty.yml JSON.GET {key} .
json_set_fulldoc_pass_100_json.yml JSON.SET {key} . {pass-100.json size: 380 B}
json_get_fulldoc_pass_100_json.yml JSON.GET {key} .
json_get_sclr_pass_100_json.yml JSON.GET {key} sclr
json_set_sclr_1_pass_100_json.yml JSON.SET {key} sclr 1
json_get_sub_doc_pass_100_json.yml JSON.GET {key} sub_doc
json_get_sub_doc.sclr_pass_100_json.yml JSON.GET {key} sub_doc.sclr
json_get_array_of_docs_pass_100_json.yml JSON.GET {key} array_of_docs
json_get_array_of_docs[1]_pass_100_json.yml JSON.GET {key} array_of_docs[1]
json_get_array_of_docs[1]sclr_pass_100_json.yml JSON.GET {key} array_of_docs[1].sclr
json_set_sclr_pass_100_json.yml JSON.SET {key} . {pass-jsonsl-1.json size: 1.4 kB}
json_get_fulldoc_jsonsl-1.yml JSON.GET {key} .
json_get_[0]_jsonsl-1.yml JSON.GET {key} [0]
json_set_[0]_jsonsl-1.yml JSON.SET {key} [0] "foo"
json_get_[7]_jsonsl-1.yml JSON.GET {key} [7]
json_get_[8].zero_jsonsl-1.yml JSON.GET {key} [8].zero
NOT suitable for redis-benchmark as is JSON.SET {key} . {pass-json-parser-0000.json size: 3.5 kB}
json_get_fulldoc_json-parser-0000.yml JSON.GET {key} .
json_get_[web-app].servlet_json-parser-0000.yml JSON.GET {key} ["web-app"].servlet
json_get_[web-app].servlet[0]_json-parser-0000.yml JSON.GET {key} ["web-app"].servlet[0]
json_get_[web-app].servlet[0][servlet-name]_json-parser-0000.yml JSON.GET {key} ["web-app"].servlet[0]["servlet-name"]
json_set_[web-app].servlet[0][servlet-name]_bar_json-parser-0000.yml JSON.SET {key} ["web-app"].servlet[0]["servlet-name"] "bar"
NOT suitable for redis-benchmark as is JSON.SET {key} . {pass-jsonsl.yahoo2-json size: 18 kB}
json_get_fulldoc_jsonsl-yahoo2_json.yml JSON.GET {key} .
json_set_ResultSet.totalResultsAvailable_1_jsonsl-yahoo2_json.yml JSON.SET {key} ResultSet.totalResultsAvailable 1
json_get_ResultSet.totalResultsAvailable_jsonsl-yahoo2_json.yml JSON.GET {key} ResultSet.totalResultsAvailable
NOT suitable for redis-benchmark as is JSON.SET {key} . {pass-jsonsl-yelp.json size: 40 kB}
json_get_fulldoc_jsonsl-yelp_json.yml JSON.GET {key} .
json_set_message.code_1_jsonsl-yelp_json.yml JSON.SET {key} message.code 1
json_get_message.code_jsonsl-yelp_json.yml JSON.GET {key} message.code
json_set_num_0.yml [JSON.SET num . 0]
json_numicrby_num_1.yml [JSON.NUMINCRBY num . 1]
json_nummultby_num_2.yml [JSON.NUMMULTBY num . 2]

@CLAassistant

CLAassistant commented Apr 19, 2021 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@filipecosta90 filipecosta90 added the x:quality Code-Quality related (performance, test, etc. -not directly affecting functionality) label Apr 20, 2021
@filipecosta90
filipecosta90 force-pushed the local.and.ci.benchmarks branch from 7b3dcca to ad588d9 Compare April 22, 2021 10:12
@filipecosta90
filipecosta90 requested a review from rafie April 22, 2021 10:19
@filipecosta90 filipecosta90 changed the title [In-Progress] LOCAL/CI automated benchmarks kickoff RedisJSON LOCAL/CI benchmarks kickoff based on https://oss.redislabs.com/redisjson/performance/ Apr 22, 2021
@filipecosta90

Copy link
Copy Markdown
Contributor Author

Thank you for the review @rafie !

@filipecosta90
filipecosta90 merged commit 1a1d6a4 into master Apr 22, 2021
@filipecosta90
filipecosta90 deleted the local.and.ci.benchmarks branch June 9, 2021 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:quality Code-Quality related (performance, test, etc. -not directly affecting functionality)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants