Repository navigation
A few improvements to ClickBench performance test - #94334
Conversation
|
Here's stability of
|
There was a problem hiding this comment.
Pull request overview
This PR modernizes and simplifies the ClickBench performance test configuration by renaming the test file for better discoverability, updating all queries to match the official ClickBench specification, and standardizing test execution to use only the hits_100m_single table.
Changes:
- Renamed test file from
website.xmltoclickbench.xmlfor clearer test identification in CI - Updated all 43 queries to match the official ClickBench query list with modern SQL syntax
- Standardized all queries to run on
hits_100m_singletable only, removing the mixedhits_10m_single/hits_100m_singleapproach
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/performance/website.xml | Removed old test configuration file |
| tests/performance/clickbench.xml | Added new test configuration with updated queries and simplified table substitution |
to match hits_10m_single name
|
@rienath How did you create the pretty chart? |
|
@rschu1ze I opened a random dashboard on play, like this one, and added my queries in the following section To generate the queries, I used import json
config = { "params": {}, "queries": [ { "title": f"ClickBench #{i}", "query": f"SELECT check_start_time::UInt64 as time, test_duration_ms FROM checks WHERE check_start_time >= now() - INTERVAL 14 DAY AND test_name LIKE '%website%#{i}:%old%' AND check_name like '%amd%' ORDER BY check_start_time" } for i in range(67) ] }
print(json.dumps(config, indent=2)) |
|
Unfortunately, our CI only runs a subset of the performance tests. This time, it ran 10/ 43 queries. We see that Q19 is slower than CI wants.
This doesn't make the CI red and we have a few long tests anyway, but it would be good to use a smaller dataset there. Here's the speed of all queries when I run them locally. Here's the distribution drawn on https://app.rawgraphs.io/: Q19 ( I will update the benchmark |
to keep CI times reasonable
|
Longer queries allow for much more reliable detection of the slowdowns. It is totally fine if the query runs for 1.5s. Maybe we just need to split the original set of queries into multiple files to make the script run all of them instead of a random selection. |
|
A related idea is to add a special hack to the performance framework which increases the timeout for a handful of benchmark queries (ClickBench). There are only so many of them. |
as we decided to keep longer tests for benchmarks
Although it is fas t enough and does not need increased time in CI, having all benchmarks in the list is more readable and consistent
as Q29 takes roughly 6 seconds to complete and we want to leave some overhead
|
Thanks for the comments! @rschu1ze I've increased the time limit from 2 to 8 seconds for "benchmark" tests. The only really long query is Q29 that takes a little less than 6 seconds. @nickitat Benchmarks would run all queries defined in the |




Renamed
website.xml→clickbench.xml. We've had ClickBench in our CI for a long time, but the test name wasn't immediately recognisable. Now when it fails, the name rings a bell.A lot of queries have slightly changed since the test was created. This PR updates all queries to match our official query list.
Benchmarks will have a limit of 8 seconds per query rather than 2 as with normal tests.
Previously, some queries ran on
hits_10m, others onhits_100m, and some on both. This is no longer necessary and simplifies the mapping between CI output and ClickBench query numbers.website #25→ ClickBench Q15 onhits_10m😵💫clickbench #25→ ClickBench Q26 (off-by-one since CI is 0-indexed)Changelog category (leave one):
Version info
26.1.1.672