Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a benchmark that will be used to measure compression performance for different algorithms. The results will be used to replace current data in this documentation section:
https://www.tarantool.io/en/enterprise_doc/appendix/parameters/#tuple-compression-performance
Here are raw results for the benchmark:
none
:Insert RPS: 11402.200085316
Full scan RPS: 3943688.2334922
Select RPS: 1213900.4075561
Replace RPS: 10804.614238394
Space size: 41168548
zstd
:Insert RPS: 8339.2376595329
Full scan RPS: 345413.83089763
Select RPS: 282008.49348114
Replace RPS: 9087.9631912889
Space size: 21368548
lz4
:Insert RPS: 13818.036744271
Full scan RPS: 1224199.9403503
Select RPS: 682655.13252673
Replace RPS: 13915.025661323
Space size: 25268548
zlib
:Insert RPS: 10582.710660237
Full scan RPS: 138963.73630138
Select RPS: 127156.35077488
Replace RPS: 10350.445266105
Space size: 20768548
The strange thing is that the
Select RPS / Replace RPS
ratio in my benchmark is much higher than in the current docs:https://www.tarantool.io/en/enterprise_doc/appendix/parameters/#tuple-compression-performance
For example, for
lz4
:What reasons might cause such a difference?