Add benchmarks for topological queries #530
Merged
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.
The specification of the test environment is:
OS: Ubuntu 22.04.3 LTS x86_64
CPU: AMD EPYC 7282 (4) @ 2.794GHz
Memory: 7951MiB
Topological query benchmark results before series index optimization:
Metric Name, Min, Max, Mean, Median, P95
topology-0, 0.038543, 0.362319, 0.099407, 0.084507, 0.234849
Topological query benchmark results after series index optimization:
Metric Name, Min, Max, Mean, Median, P95
topology-0, 0.038886, 0.236007, 0.082450, 0.075451, 0.133140
Index query trace before optimization:
Index query trace after optimization:
As we can see, the topological query performance has improved, especially for p95. The index optimization proves effective, as expected.