Additional queries for ClickBench by DeepSeek V4 Flash - #1489
Draft
4ertus2 wants to merge 1 commit into
Draft
Conversation
4ertus2
requested a deployment
to
benchmark-approval
August 19, 2026 21:40 — with
GitHub Actions
Waiting
4ertus2
marked this pull request as draft
August 19, 2026 21:40
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #1488
Timings for the 15 added queries (Q44–58), best-of-3, seconds:
RANK() OVER (ORDER BY EventTime)SELECT * ... ORDER BY ClientIP, EventTime LIMIT 100AVG(length(Referer)) ... HAVING count()>100000GROUP BY BrowserCountry, BrowserLanguageGROUP BY Title, URLcountIf(NOT match(URL,'^https'))countIf(position(URL,'google')>0)lagInFrame(EventTime) OVER (PARTITION BY CounterID)MIN(URL), MAX(URL)ORDER BY length(URL) DESC LIMIT 10GROUP BY substr(URL,1,8)quantilesExact(0.1,0.5,0.9)(ResponseEndTiming)quantileExact(0.99)(ResponseEndTiming)GROUP BY toHour(toDateTime(EventTime))GROUP BY EventTime ORDER BY count() DESCRatio >1 = DuckDB faster, <1 = ClickHouse faster.
Biggest discriminators: Q44 global window sort (7.7x DD), Q45 full-row multi-key sort (6.4x DD), Q48 two-string GROUP BY (3.0x DD), and Q55 multi-quantile (3.6x CH). Note Q44/45/48 cost 10–24s on ClickHouse, so they dominate total sweep time.