add txn_put_get benchmark for #18667 #20953
Open
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.
Ref: #18667 #20545
This PR adds a benchmark for txn_put_get, specifically tailored for issue #18667.
Regarding the original issue, there are some existing solutions. However, we are concerned that they might impact performance. The challenge is that we currently lack a dedicated benchmark case to quantify the extent of this potential impact. Some discussions in #20545
The key to this benchmark case is to perform both the PUT and GET within a single transaction while utilizing a prefix query. This way, when there is ahrtr@76ac23f, the GET/RANGE requests can not be skipped, which degraded performance, and vice versa.
I'll attach the benchmark results shortly.
cc @siyuanfoundation @serathius @ahrtr