ClickBench moves to drop pgrust over hand-written kernels and cached answers

Remove pgrust: the entry is cheating

A ClickBench pull request removes the pgrust entry, arguing its results come from machinery built for the 43 benchmark queries and its hot runs replay cached answers. The release binary embeds per-query kernels named q00 through q36, and EXPLAIN shows scans marked never executed. On a 96-core Graviton, Q20 drops from 10.8 seconds cold to 11 milliseconds on a second run. Trivially perturbed queries are refused outright.

The problem is not wrong results; it is that the results measure a lookup table of the benchmark, not a database.
  1. malisper

    Hi! I'm the creator of pgrust. Let me explain what happened.

    For the most part, the actual accusations are false. This submission was an earlier version of pgrust 0.4 called pgrust 0.4-preview. We just open-sourced a newer version called pgrust 0.4-beta yesterday, and you can fully audit it here[0]. Rather than contest the accusations on GitHub, we figured it would be easier to complete pgrust 0.4 and open-source it to show that we're being honest. You can also verify what I'm saying yourself against the 0.4-preview binary we submitted to ClickBench here[1]. I don't have a way to prove this is the exact binary submitted, but if ClickHouse provided the SHA of the binary they tested against, it would match.

    The three main accusations boil down to: 1) We used handwritten code optimized against each query in the benchmark, 2) We cached the results between query runs, and 3) We didn't support queries outside of the 43 ClickBench queries.

    First, we did not use handwritten queries. The code Alexey pointed out does not run during the benchmark. The design of 0.4 relies on a JIT compiler that compiles your SQL to a Lisp-based intermediate representation that we call Gravity IR that we then convert to x86 and ARM assembly. While developing 0.4, I wrote handwritten code against the IR for benchmarking purposes. The idea was that if queries written in our IR are fast, and we can compile good enough IR fast, then our new query engine will be fast. This is also the reason the directory tho […]

  2. drchaim

    2nd round: https://github.com/ClickHouse/ClickBench/pull/2751

  3. torben-friis

    This idea of "here's the beta, I'll release the code in a few weeks" sounds counter intuitive to me. is it normal in open source? Any reason for it?

  4. stemchar

    Oh lord. I thought pgrust was a serious project.

  5. bmacho

    ai;dr: a bench result is not randomized, and it returns cached result somewhere.

    My opinion: (some) bench results should run on randomized data.

  6. frevib

    These massive PR summaries. Is anyone really reading them?

  7. HackerThemAll

    I’ll sit out this drama until pgrust 0.5.

  8. teiferer

    For anybody not familiar with pgrust or ClickBench:

    Pgrust is a re-implememtation of postgresql in rust.

    ClickBench is a benchmark suite for databases.

    The link goes to a removal request of pgrust fromthat benchmark because of its alleged cheating.

More from this day

2026-10-23