Skip to content

Use octet_length for ClickBench Q27/Q28 byte-length semantics#23475

Open
kosiew wants to merge 3 commits into
apache:mainfrom
kosiew:octet_length-01-23086
Open

Use octet_length for ClickBench Q27/Q28 byte-length semantics#23475
kosiew wants to merge 3 commits into
apache:mainfrom
kosiew:octet_length-01-23086

Conversation

@kosiew

@kosiew kosiew commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

ClickBench Q27 and Q28 are intended to aggregate the byte length of string values, while DataFusion intentionally defines length as an alias for character_length, which counts UTF-8 characters rather than bytes. This change updates the in-repo ClickBench SQL to use octet_length(...) explicitly, aligning these benchmark queries with ClickBench's intended semantics without changing DataFusion's SQL behavior.

What changes are included in this PR?

  • Updated ClickBench Q27 to use AVG(octet_length("URL")) instead of AVG(length("URL")) in:

    • benchmarks/queries/clickbench/queries/q27.sql
    • benchmarks/sql_benchmarks/clickbench/benchmarks/q27.benchmark
  • Updated ClickBench Q28 to use AVG(octet_length("Referer")) instead of AVG(length("Referer")) in:

    • benchmarks/queries/clickbench/queries/q28.sql
    • benchmarks/sql_benchmarks/clickbench/benchmarks/q28.benchmark
  • Updated the corresponding SQLLogicTest (clickbench.slt) queries and expected EXPLAIN output so the logical and physical plans reference octet_length(...) rather than character_length(...) or length(...).

  • Added brief comments in the benchmark SQL noting that length(...) in DataFusion counts characters and that octet_length(...) is used to preserve ClickBench byte-length semantics.

Are these changes tested?

The patch updates the expected SQLLogicTest (datafusion/sqllogictest/test_files/clickbench.slt) output for Q27 and Q28 to reflect the new octet_length(...) plans.

No test execution or benchmark results are included in this patch. Performance was not measured as part of this change.

Are there any user-facing changes?

There are no user-facing API or SQL semantic changes. This change only updates the in-repo ClickBench benchmark queries and their corresponding SQLLogicTest expectations to use explicit byte-length semantics.

LLM-generated code disclosure

This PR includes LLM-generated code and comments. All LLM-generated content has been manually reviewed.

kosiew added 3 commits July 11, 2026 13:30
- Updated Q27/Q28 SQL to utilize octet_length(...).
- Adjusted expected EXPLAIN output to remove character_length(hits.URL/Referer).
- Modified plan labels to reflect octet_length(...).
- Confirmed existing non-ASCII coverage with expr.slt containing SELECT octet_length('josé').
…ics clarification

- Updated comments in the following files:
- benchmarks/queries/clickbench/queries/q27.sql
- benchmarks/queries/clickbench/queries/q28.sql
- benchmarks/sql_benchmarks/clickbench/benchmarks/q27.benchmark
- benchmarks/sql_benchmarks/clickbench/benchmarks/q28.benchmark

- Added note: "DataFusion length(...) counts characters; use octet_length(...) for ClickBench byte-length semantics."
@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label Jul 11, 2026
@kosiew

kosiew commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_1

@apache apache deleted a comment from adriangbot Jul 11, 2026
@kosiew

kosiew commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_partitioned

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4943253066-971-mkmpl 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing octet_length-01-23086 (08d730a) to 3e058f0 (merge-base) diff using: clickbench_1
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4943253066-972-2p9c4 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing octet_length-01-23086 (08d730a) to 3e058f0 (merge-base) diff using: 27
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4943279827-973-25tz8 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing octet_length-01-23086 (08d730a) to 3e058f0 (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@apache apache deleted a comment from adriangbot Jul 11, 2026
@apache apache deleted a comment from adriangbot Jul 11, 2026
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and octet_length-01-23086
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                 octet_length-01-23086 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.24 / 4.11 ±5.56 / 15.22 ms │          1.30 / 4.22 ±5.69 / 15.59 ms │     no change │
│ QQuery 1  │        13.25 / 13.82 ±0.35 / 14.33 ms │        13.04 / 13.78 ±0.48 / 14.40 ms │     no change │
│ QQuery 2  │        37.38 / 37.62 ±0.19 / 37.85 ms │        36.99 / 37.29 ±0.42 / 38.11 ms │     no change │
│ QQuery 3  │        31.85 / 32.91 ±0.74 / 34.16 ms │        31.87 / 32.18 ±0.36 / 32.89 ms │     no change │
│ QQuery 4  │     242.89 / 247.86 ±6.12 / 259.72 ms │     241.86 / 247.47 ±4.13 / 253.66 ms │     no change │
│ QQuery 5  │     288.21 / 290.80 ±2.37 / 295.16 ms │     287.02 / 291.06 ±2.97 / 294.08 ms │     no change │
│ QQuery 6  │           1.29 / 1.46 ±0.23 / 1.91 ms │           1.32 / 1.46 ±0.23 / 1.92 ms │     no change │
│ QQuery 7  │        14.90 / 17.32 ±4.13 / 25.57 ms │        15.13 / 18.93 ±6.80 / 32.51 ms │  1.09x slower │
│ QQuery 8  │     345.54 / 353.86 ±5.99 / 363.11 ms │     343.00 / 353.60 ±8.37 / 365.14 ms │     no change │
│ QQuery 9  │     487.96 / 494.23 ±3.63 / 498.73 ms │    499.76 / 513.66 ±14.93 / 542.42 ms │     no change │
│ QQuery 10 │        73.67 / 75.46 ±1.16 / 76.94 ms │       74.92 / 81.73 ±9.91 / 101.33 ms │  1.08x slower │
│ QQuery 11 │        86.64 / 87.77 ±1.06 / 89.05 ms │       87.44 / 92.11 ±8.38 / 108.84 ms │     no change │
│ QQuery 12 │     279.91 / 290.16 ±5.24 / 294.46 ms │     290.87 / 302.59 ±7.84 / 313.35 ms │     no change │
│ QQuery 13 │    387.08 / 405.83 ±14.02 / 423.19 ms │     393.54 / 402.22 ±7.91 / 416.54 ms │     no change │
│ QQuery 14 │     303.36 / 306.32 ±2.95 / 311.67 ms │    294.78 / 312.85 ±10.81 / 324.57 ms │     no change │
│ QQuery 15 │     307.26 / 314.46 ±5.26 / 322.39 ms │    302.81 / 314.89 ±10.45 / 330.17 ms │     no change │
│ QQuery 16 │    646.18 / 674.88 ±18.18 / 695.27 ms │    659.26 / 679.95 ±15.29 / 700.79 ms │     no change │
│ QQuery 17 │     671.01 / 679.48 ±5.93 / 689.43 ms │    688.15 / 705.06 ±11.84 / 719.38 ms │     no change │
│ QQuery 18 │ 1319.05 / 1364.37 ±27.71 / 1401.62 ms │ 1360.78 / 1378.25 ±22.24 / 1420.81 ms │     no change │
│ QQuery 19 │        29.32 / 31.11 ±2.49 / 36.02 ms │        29.48 / 35.67 ±7.27 / 45.67 ms │  1.15x slower │
│ QQuery 20 │     522.97 / 530.55 ±6.92 / 543.53 ms │     519.61 / 529.01 ±8.70 / 545.30 ms │     no change │
│ QQuery 21 │     520.91 / 529.30 ±7.33 / 540.25 ms │     523.83 / 528.42 ±6.62 / 541.45 ms │     no change │
│ QQuery 22 │  1013.21 / 1026.42 ±9.12 / 1039.70 ms │ 1032.60 / 1044.67 ±10.68 / 1058.91 ms │     no change │
│ QQuery 23 │ 3191.92 / 3236.95 ±27.54 / 3267.96 ms │ 3258.26 / 3279.50 ±17.49 / 3305.32 ms │     no change │
│ QQuery 24 │        42.63 / 44.24 ±2.69 / 49.61 ms │        42.73 / 48.90 ±6.86 / 61.26 ms │  1.11x slower │
│ QQuery 25 │     114.99 / 120.10 ±6.85 / 133.41 ms │     114.30 / 115.71 ±1.36 / 118.00 ms │     no change │
│ QQuery 26 │        42.87 / 43.49 ±0.41 / 43.96 ms │        43.18 / 47.16 ±4.43 / 54.34 ms │  1.08x slower │
│ QQuery 27 │     674.88 / 682.22 ±7.51 / 696.26 ms │     682.77 / 687.47 ±4.00 / 694.69 ms │     no change │
│ QQuery 28 │ 3090.69 / 3139.62 ±35.35 / 3186.48 ms │ 3124.35 / 3153.87 ±28.94 / 3201.66 ms │     no change │
│ QQuery 29 │       43.63 / 55.02 ±14.60 / 79.43 ms │        42.63 / 43.12 ±0.38 / 43.78 ms │ +1.28x faster │
│ QQuery 30 │     333.63 / 338.78 ±5.07 / 345.50 ms │     333.60 / 340.62 ±8.02 / 354.88 ms │     no change │
│ QQuery 31 │    307.52 / 318.44 ±10.67 / 336.69 ms │    294.74 / 312.41 ±12.28 / 326.17 ms │     no change │
│ QQuery 32 │  993.47 / 1038.94 ±34.19 / 1082.85 ms │ 1047.27 / 1082.10 ±23.69 / 1115.91 ms │     no change │
│ QQuery 33 │ 1570.50 / 1603.62 ±17.47 / 1620.46 ms │ 1574.14 / 1609.84 ±34.19 / 1674.99 ms │     no change │
│ QQuery 34 │ 1571.88 / 1624.86 ±51.98 / 1699.34 ms │ 1560.49 / 1610.80 ±29.37 / 1652.12 ms │     no change │
│ QQuery 35 │    315.58 / 336.26 ±19.69 / 362.72 ms │    326.95 / 364.16 ±38.47 / 431.02 ms │  1.08x slower │
│ QQuery 36 │        69.27 / 74.39 ±3.84 / 80.18 ms │        71.75 / 86.36 ±9.56 / 96.27 ms │  1.16x slower │
│ QQuery 37 │        37.53 / 45.48 ±6.95 / 58.24 ms │        37.69 / 39.35 ±2.63 / 44.54 ms │ +1.16x faster │
│ QQuery 38 │        45.22 / 46.95 ±2.58 / 52.08 ms │        41.57 / 43.07 ±1.07 / 44.37 ms │ +1.09x faster │
│ QQuery 39 │     153.21 / 162.81 ±5.46 / 170.05 ms │     155.13 / 167.14 ±6.08 / 171.16 ms │     no change │
│ QQuery 40 │        15.42 / 16.33 ±1.05 / 18.39 ms │        14.99 / 15.88 ±0.94 / 17.29 ms │     no change │
│ QQuery 41 │        14.93 / 15.32 ±0.23 / 15.54 ms │        15.06 / 15.36 ±0.22 / 15.71 ms │     no change │
│ QQuery 42 │        14.24 / 14.55 ±0.22 / 14.93 ms │        13.94 / 14.40 ±0.25 / 14.64 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                    ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                    │ 20768.48ms │
│ Total Time (octet_length-01-23086)   │ 20998.27ms │
│ Average Time (HEAD)                  │   482.99ms │
│ Average Time (octet_length-01-23086) │   488.33ms │
│ Queries Faster                       │          3 │
│ Queries Slower                       │          7 │
│ Queries with No Change               │         33 │
│ Queries with Failure                 │          0 │
└──────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 11.1 GiB
Avg memory 4.3 GiB
CPU user 1070.6s
CPU sys 75.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 110.0s
Peak memory 11.9 GiB
Avg memory 4.4 GiB
CPU user 1069.1s
CPU sys 80.6s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and octet_length-01-23086
--------------------
Benchmark clickbench_1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                 octet_length-01-23086 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           0.67 / 1.43 ±1.45 / 4.33 ms │           0.68 / 1.44 ±1.46 / 4.36 ms │     no change │
│ QQuery 1  │        14.14 / 14.44 ±0.40 / 15.22 ms │        13.43 / 13.89 ±0.48 / 14.69 ms │     no change │
│ QQuery 2  │        40.92 / 41.28 ±0.40 / 42.03 ms │        40.60 / 40.92 ±0.22 / 41.20 ms │     no change │
│ QQuery 3  │        36.80 / 37.41 ±0.78 / 38.94 ms │        36.61 / 36.99 ±0.23 / 37.33 ms │     no change │
│ QQuery 4  │     243.21 / 245.33 ±1.50 / 246.93 ms │     242.00 / 246.85 ±4.96 / 255.63 ms │     no change │
│ QQuery 5  │     425.38 / 434.34 ±5.84 / 440.97 ms │     429.23 / 435.39 ±5.10 / 442.08 ms │     no change │
│ QQuery 6  │           0.73 / 0.86 ±0.15 / 1.15 ms │           0.75 / 0.85 ±0.16 / 1.17 ms │     no change │
│ QQuery 7  │        16.13 / 16.30 ±0.23 / 16.73 ms │        15.46 / 15.58 ±0.08 / 15.69 ms │     no change │
│ QQuery 8  │     355.36 / 363.01 ±5.31 / 370.22 ms │    351.43 / 371.23 ±13.57 / 391.78 ms │     no change │
│ QQuery 9  │    534.84 / 550.42 ±12.82 / 572.49 ms │    528.35 / 546.71 ±14.97 / 570.17 ms │     no change │
│ QQuery 10 │        87.06 / 89.98 ±5.01 / 99.97 ms │        85.11 / 87.14 ±1.93 / 90.51 ms │     no change │
│ QQuery 11 │     100.13 / 102.05 ±1.72 / 104.76 ms │       98.65 / 99.57 ±0.81 / 100.59 ms │     no change │
│ QQuery 12 │    442.11 / 454.46 ±14.74 / 483.45 ms │    440.56 / 455.08 ±21.64 / 497.65 ms │     no change │
│ QQuery 13 │    448.46 / 478.12 ±15.23 / 491.29 ms │    466.90 / 496.15 ±22.92 / 525.08 ms │     no change │
│ QQuery 14 │     444.91 / 458.90 ±8.84 / 469.82 ms │    451.69 / 471.82 ±18.24 / 501.71 ms │     no change │
│ QQuery 15 │    288.59 / 308.16 ±19.51 / 342.08 ms │    292.29 / 306.00 ±13.20 / 327.07 ms │     no change │
│ QQuery 16 │    630.19 / 645.91 ±10.31 / 658.98 ms │    642.96 / 661.05 ±11.37 / 675.13 ms │     no change │
│ QQuery 17 │    639.94 / 654.77 ±15.03 / 680.43 ms │     646.53 / 653.06 ±5.30 / 660.90 ms │     no change │
│ QQuery 18 │ 1252.01 / 1284.82 ±22.16 / 1314.98 ms │ 1272.43 / 1308.26 ±28.07 / 1355.26 ms │     no change │
│ QQuery 19 │        34.85 / 37.51 ±4.52 / 46.54 ms │        34.44 / 34.84 ±0.28 / 35.21 ms │ +1.08x faster │
│ QQuery 20 │    626.57 / 647.07 ±11.86 / 660.01 ms │    625.78 / 644.83 ±21.45 / 686.10 ms │     no change │
│ QQuery 21 │     628.14 / 640.88 ±9.58 / 656.82 ms │    631.53 / 647.50 ±11.25 / 661.67 ms │     no change │
│ QQuery 22 │ 1316.76 / 1337.72 ±24.38 / 1385.45 ms │ 1324.60 / 1336.46 ±11.84 / 1357.84 ms │     no change │
│ QQuery 23 │ 3121.10 / 3147.06 ±18.93 / 3174.97 ms │ 3108.99 / 3159.49 ±38.28 / 3203.87 ms │     no change │
│ QQuery 24 │    122.04 / 129.92 ±11.24 / 151.51 ms │     121.45 / 125.07 ±3.47 / 131.69 ms │     no change │
│ QQuery 25 │     181.67 / 189.40 ±5.57 / 197.78 ms │     183.81 / 189.13 ±4.94 / 196.49 ms │     no change │
│ QQuery 26 │     123.11 / 124.89 ±2.77 / 130.41 ms │     123.41 / 125.49 ±1.54 / 127.55 ms │     no change │
│ QQuery 27 │     756.29 / 765.65 ±8.62 / 779.83 ms │    764.77 / 780.35 ±14.24 / 801.93 ms │     no change │
│ QQuery 28 │ 3496.01 / 3518.59 ±16.94 / 3546.22 ms │ 3480.49 / 3523.93 ±25.20 / 3557.33 ms │     no change │
│ QQuery 29 │       44.56 / 52.69 ±11.40 / 74.54 ms │       44.69 / 55.95 ±16.22 / 87.61 ms │  1.06x slower │
│ QQuery 30 │    410.94 / 428.78 ±10.17 / 438.58 ms │    415.10 / 434.94 ±16.09 / 450.25 ms │     no change │
│ QQuery 31 │    380.04 / 399.55 ±13.31 / 416.58 ms │    369.37 / 400.77 ±24.98 / 435.92 ms │     no change │
│ QQuery 32 │   960.70 / 985.04 ±22.78 / 1025.43 ms │   926.70 / 971.60 ±42.38 / 1044.09 ms │     no change │
│ QQuery 33 │  1520.18 / 1529.35 ±8.87 / 1540.89 ms │ 1489.29 / 1505.41 ±13.81 / 1528.23 ms │     no change │
│ QQuery 34 │ 1514.84 / 1550.70 ±23.90 / 1584.54 ms │ 1521.03 / 1553.00 ±31.74 / 1608.39 ms │     no change │
│ QQuery 35 │     315.88 / 322.14 ±3.74 / 326.81 ms │    310.47 / 348.40 ±40.18 / 401.50 ms │  1.08x slower │
│ QQuery 36 │     128.28 / 142.27 ±9.85 / 157.30 ms │    132.46 / 147.73 ±16.75 / 177.85 ms │     no change │
│ QQuery 37 │        54.39 / 58.08 ±3.70 / 64.44 ms │        54.27 / 57.41 ±2.87 / 62.77 ms │     no change │
│ QQuery 38 │        82.09 / 89.77 ±4.34 / 93.71 ms │        86.68 / 90.96 ±3.74 / 97.18 ms │     no change │
│ QQuery 39 │    243.07 / 268.15 ±12.85 / 277.95 ms │     262.20 / 272.90 ±7.26 / 279.62 ms │     no change │
│ QQuery 40 │        20.70 / 23.06 ±2.07 / 26.78 ms │        20.04 / 20.94 ±1.03 / 22.94 ms │ +1.10x faster │
│ QQuery 41 │        19.01 / 25.27 ±7.66 / 39.58 ms │        18.44 / 21.96 ±4.17 / 30.10 ms │ +1.15x faster │
│ QQuery 42 │        18.26 / 18.82 ±0.50 / 19.41 ms │        18.20 / 18.80 ±0.66 / 20.04 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                    ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                    │ 22614.36ms │
│ Total Time (octet_length-01-23086)   │ 22715.86ms │
│ Average Time (HEAD)                  │   525.92ms │
│ Average Time (octet_length-01-23086) │   528.28ms │
│ Queries Faster                       │          3 │
│ Queries Slower                       │          2 │
│ Queries with No Change               │         38 │
│ Queries with Failure                 │          0 │
└──────────────────────────────────────┴────────────┘

Resource Usage

clickbench_1 — base (merge-base)

Metric Value
Wall time 115.0s
Peak memory 12.1 GiB
Avg memory 3.7 GiB
CPU user 1044.9s
CPU sys 71.4s
Peak spill 0 B

clickbench_1 — branch

Metric Value
Wall time 115.0s
Peak memory 10.3 GiB
Avg memory 3.8 GiB
CPU user 1042.6s
CPU sys 71.4s
Peak spill 0 B

File an issue against this benchmark runner

@kosiew

kosiew commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

clickbench_partitioned:

│ QQuery 27 │     674.88 / 682.22 ±7.51 / 696.26 ms │     682.77 / 687.47 ±4.00 / 694.69 ms │     no change │
│ QQuery 28 │ 3090.69 / 3139.62 ±35.35 / 3186.48 ms │ 3124.35 / 3153.87 ±28.94 / 3201.66 ms │     no change │

clickbench_1

│ QQuery 27 │     756.29 / 765.65 ±8.62 / 779.83 ms │    764.77 / 780.35 ±14.24 / 801.93 ms │     no change │
│ QQuery 28 │ 3496.01 / 3518.59 ±16.94 / 3546.22 ms │ 3480.49 / 3523.93 ±25.20 / 3557.33 ms │     no change │

@kosiew

kosiew commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

run benchmark clickbench_1 clickbench_partitioned

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4943549427-975-4prxj 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing octet_length-01-23086 (08d730a) to 3e058f0 (merge-base) diff using: clickbench_1
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4943549427-976-tlsj8 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing octet_length-01-23086 (08d730a) to 3e058f0 (merge-base) diff using: clickbench_partitioned
Results will be posted here when complete


File an issue against this benchmark runner

@kosiew kosiew marked this pull request as ready for review July 11, 2026 07:35
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and octet_length-01-23086
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                   HEAD ┃                  octet_length-01-23086 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           1.20 / 3.87 ±5.25 / 14.36 ms │           1.22 / 3.99 ±5.43 / 14.84 ms │     no change │
│ QQuery 1  │         13.26 / 13.54 ±0.16 / 13.68 ms │         12.72 / 12.97 ±0.15 / 13.20 ms │     no change │
│ QQuery 2  │         36.68 / 37.18 ±0.46 / 37.94 ms │         36.48 / 36.70 ±0.25 / 37.18 ms │     no change │
│ QQuery 3  │         31.29 / 31.94 ±0.75 / 33.32 ms │         30.85 / 31.19 ±0.17 / 31.32 ms │     no change │
│ QQuery 4  │      225.95 / 229.11 ±2.48 / 231.83 ms │     221.78 / 234.15 ±14.05 / 261.00 ms │     no change │
│ QQuery 5  │     272.01 / 294.56 ±13.01 / 307.19 ms │     277.15 / 290.51 ±11.22 / 305.72 ms │     no change │
│ QQuery 6  │            1.47 / 1.61 ±0.18 / 1.96 ms │            1.25 / 1.42 ±0.25 / 1.90 ms │ +1.13x faster │
│ QQuery 7  │         15.19 / 16.05 ±0.64 / 16.84 ms │         13.81 / 14.38 ±0.85 / 16.07 ms │ +1.12x faster │
│ QQuery 8  │     331.61 / 345.64 ±14.35 / 372.72 ms │     333.13 / 350.79 ±10.81 / 366.17 ms │     no change │
│ QQuery 9  │      454.47 / 461.71 ±6.23 / 470.61 ms │      456.15 / 462.23 ±6.22 / 472.22 ms │     no change │
│ QQuery 10 │         71.72 / 75.79 ±6.10 / 87.95 ms │         71.82 / 72.71 ±0.89 / 74.39 ms │     no change │
│ QQuery 11 │         84.31 / 84.73 ±0.35 / 85.21 ms │         83.01 / 84.69 ±2.56 / 89.75 ms │     no change │
│ QQuery 12 │      266.45 / 272.80 ±4.16 / 278.90 ms │      265.29 / 272.72 ±5.86 / 281.33 ms │     no change │
│ QQuery 13 │      381.22 / 392.18 ±8.83 / 403.41 ms │     358.88 / 378.13 ±15.73 / 401.04 ms │     no change │
│ QQuery 14 │      282.89 / 291.20 ±6.23 / 301.30 ms │     282.28 / 292.45 ±13.30 / 318.48 ms │     no change │
│ QQuery 15 │      271.92 / 276.10 ±3.97 / 282.40 ms │     264.91 / 278.51 ±12.69 / 300.12 ms │     no change │
│ QQuery 16 │      603.83 / 617.87 ±9.39 / 633.15 ms │     617.76 / 629.27 ±10.77 / 649.61 ms │     no change │
│ QQuery 17 │     698.49 / 713.85 ±11.47 / 733.66 ms │     623.31 / 661.14 ±34.65 / 714.66 ms │ +1.08x faster │
│ QQuery 18 │  1275.31 / 1365.80 ±71.42 / 1451.90 ms │  1233.47 / 1263.87 ±26.90 / 1302.46 ms │ +1.08x faster │
│ QQuery 19 │         28.85 / 29.20 ±0.44 / 30.06 ms │         28.02 / 28.33 ±0.26 / 28.80 ms │     no change │
│ QQuery 20 │     517.92 / 528.09 ±11.71 / 545.40 ms │      515.76 / 525.12 ±6.48 / 534.23 ms │     no change │
│ QQuery 21 │      514.58 / 518.59 ±4.34 / 524.57 ms │      518.47 / 526.53 ±7.32 / 540.38 ms │     no change │
│ QQuery 22 │   985.60 / 1006.86 ±24.24 / 1052.18 ms │   1052.09 / 1062.85 ±7.14 / 1070.38 ms │  1.06x slower │
│ QQuery 23 │  3059.20 / 3128.76 ±46.58 / 3181.98 ms │  3093.35 / 3158.70 ±59.08 / 3252.16 ms │     no change │
│ QQuery 24 │         41.62 / 44.93 ±3.88 / 52.47 ms │         41.31 / 43.31 ±2.86 / 48.92 ms │     no change │
│ QQuery 25 │      112.07 / 116.37 ±4.38 / 124.59 ms │      113.50 / 117.46 ±3.69 / 123.22 ms │     no change │
│ QQuery 26 │         41.92 / 43.79 ±2.10 / 47.80 ms │         42.41 / 42.95 ±0.31 / 43.34 ms │     no change │
│ QQuery 27 │      670.61 / 675.43 ±4.14 / 680.41 ms │      674.36 / 684.38 ±6.04 / 692.21 ms │     no change │
│ QQuery 28 │  3051.67 / 3085.80 ±41.64 / 3167.82 ms │  3048.94 / 3074.91 ±24.51 / 3116.97 ms │     no change │
│ QQuery 29 │         41.46 / 43.10 ±2.26 / 47.36 ms │         41.49 / 52.85 ±9.22 / 60.62 ms │  1.23x slower │
│ QQuery 30 │      301.18 / 314.63 ±7.89 / 324.58 ms │      305.25 / 311.77 ±4.20 / 316.31 ms │     no change │
│ QQuery 31 │     286.54 / 301.59 ±13.47 / 320.48 ms │      279.45 / 290.70 ±6.56 / 298.35 ms │     no change │
│ QQuery 32 │   956.33 / 1086.08 ±97.38 / 1258.85 ms │    947.49 / 982.59 ±24.85 / 1016.63 ms │ +1.11x faster │
│ QQuery 33 │ 1486.63 / 1622.80 ±105.51 / 1753.46 ms │  1448.35 / 1486.55 ±35.37 / 1546.56 ms │ +1.09x faster │
│ QQuery 34 │  1502.44 / 1538.97 ±53.36 / 1644.71 ms │ 1478.64 / 1632.17 ±120.98 / 1783.99 ms │  1.06x slower │
│ QQuery 35 │     281.74 / 319.49 ±33.46 / 358.05 ms │     349.90 / 371.40 ±28.67 / 427.23 ms │  1.16x slower │
│ QQuery 36 │         65.91 / 68.77 ±4.00 / 76.67 ms │         66.63 / 72.64 ±5.04 / 78.80 ms │  1.06x slower │
│ QQuery 37 │         37.10 / 42.03 ±3.09 / 46.17 ms │         35.87 / 38.65 ±3.09 / 43.05 ms │ +1.09x faster │
│ QQuery 38 │         41.39 / 46.93 ±7.47 / 61.69 ms │         40.15 / 46.52 ±4.26 / 51.49 ms │     no change │
│ QQuery 39 │      143.66 / 150.71 ±4.49 / 157.02 ms │     134.24 / 152.60 ±11.01 / 166.27 ms │     no change │
│ QQuery 40 │         14.18 / 16.70 ±2.24 / 19.83 ms │         14.29 / 14.46 ±0.27 / 14.99 ms │ +1.16x faster │
│ QQuery 41 │         13.98 / 14.36 ±0.27 / 14.79 ms │         14.08 / 18.07 ±5.77 / 29.05 ms │  1.26x slower │
│ QQuery 42 │         13.53 / 16.55 ±3.89 / 23.28 ms │         13.10 / 15.10 ±3.64 / 22.37 ms │ +1.10x faster │
└───────────┴────────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                    ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                    │ 20286.04ms │
│ Total Time (octet_length-01-23086)   │ 20122.42ms │
│ Average Time (HEAD)                  │   471.77ms │
│ Average Time (octet_length-01-23086) │   467.96ms │
│ Queries Faster                       │          9 │
│ Queries Slower                       │          6 │
│ Queries with No Change               │         28 │
│ Queries with Failure                 │          0 │
└──────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 105.0s
Peak memory 11.4 GiB
Avg memory 4.4 GiB
CPU user 1037.9s
CPU sys 73.2s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 105.0s
Peak memory 12.3 GiB
Avg memory 4.4 GiB
CPU user 1031.8s
CPU sys 73.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

Comparing HEAD and octet_length-01-23086
--------------------
Benchmark clickbench_1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃                 octet_length-01-23086 ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │           0.68 / 1.55 ±1.62 / 4.79 ms │           0.67 / 1.43 ±1.45 / 4.33 ms │ +1.08x faster │
│ QQuery 1  │        13.83 / 14.21 ±0.56 / 15.29 ms │        13.53 / 13.87 ±0.51 / 14.86 ms │     no change │
│ QQuery 2  │        40.25 / 40.71 ±0.34 / 41.30 ms │        40.36 / 40.54 ±0.12 / 40.74 ms │     no change │
│ QQuery 3  │        36.07 / 36.82 ±0.94 / 38.66 ms │        35.85 / 36.20 ±0.30 / 36.62 ms │     no change │
│ QQuery 4  │     239.75 / 242.77 ±2.55 / 246.63 ms │     241.38 / 249.77 ±7.28 / 263.00 ms │     no change │
│ QQuery 5  │     426.44 / 436.38 ±5.57 / 442.34 ms │     431.01 / 441.04 ±6.52 / 447.76 ms │     no change │
│ QQuery 6  │           0.74 / 0.83 ±0.15 / 1.12 ms │           0.76 / 0.85 ±0.15 / 1.16 ms │     no change │
│ QQuery 7  │        15.47 / 15.63 ±0.13 / 15.80 ms │        15.29 / 15.40 ±0.09 / 15.55 ms │     no change │
│ QQuery 8  │     363.56 / 365.26 ±1.63 / 368.09 ms │    362.18 / 370.97 ±10.11 / 389.85 ms │     no change │
│ QQuery 9  │    537.63 / 557.09 ±14.19 / 574.70 ms │    531.71 / 549.75 ±12.97 / 571.02 ms │     no change │
│ QQuery 10 │        85.32 / 88.20 ±4.60 / 97.29 ms │      85.20 / 91.90 ±11.79 / 115.40 ms │     no change │
│ QQuery 11 │      99.52 / 103.49 ±6.98 / 117.43 ms │       99.12 / 99.56 ±0.49 / 100.18 ms │     no change │
│ QQuery 12 │     451.62 / 459.04 ±7.17 / 470.53 ms │     450.25 / 460.59 ±8.86 / 475.50 ms │     no change │
│ QQuery 13 │     473.72 / 483.32 ±9.15 / 499.95 ms │    471.25 / 489.32 ±13.38 / 511.92 ms │     no change │
│ QQuery 14 │     456.20 / 463.17 ±8.41 / 478.75 ms │    449.06 / 470.43 ±13.84 / 490.38 ms │     no change │
│ QQuery 15 │    293.88 / 311.05 ±15.05 / 336.17 ms │     286.22 / 302.29 ±9.42 / 314.92 ms │     no change │
│ QQuery 16 │    636.29 / 652.24 ±12.60 / 674.11 ms │    653.08 / 670.14 ±12.92 / 684.06 ms │     no change │
│ QQuery 17 │    642.08 / 657.75 ±14.57 / 681.79 ms │    638.35 / 658.52 ±12.04 / 673.24 ms │     no change │
│ QQuery 18 │ 1253.28 / 1290.50 ±46.18 / 1377.82 ms │ 1244.40 / 1290.22 ±48.46 / 1376.37 ms │     no change │
│ QQuery 19 │        34.03 / 36.32 ±4.15 / 44.63 ms │        33.94 / 34.43 ±0.33 / 34.81 ms │ +1.05x faster │
│ QQuery 20 │    621.13 / 637.67 ±11.15 / 649.49 ms │     616.93 / 627.58 ±6.14 / 633.89 ms │     no change │
│ QQuery 21 │     633.00 / 641.11 ±6.30 / 649.60 ms │     626.44 / 637.92 ±6.23 / 642.91 ms │     no change │
│ QQuery 22 │ 1325.73 / 1350.62 ±20.05 / 1386.33 ms │ 1309.93 / 1323.62 ±10.47 / 1336.56 ms │     no change │
│ QQuery 23 │ 3115.17 / 3144.89 ±30.23 / 3183.93 ms │ 3057.21 / 3125.08 ±38.20 / 3169.63 ms │     no change │
│ QQuery 24 │    121.06 / 129.25 ±14.28 / 157.80 ms │     119.79 / 124.00 ±5.68 / 135.11 ms │     no change │
│ QQuery 25 │     179.88 / 189.87 ±9.00 / 203.04 ms │     183.13 / 187.75 ±3.74 / 193.58 ms │     no change │
│ QQuery 26 │     121.10 / 124.82 ±3.59 / 129.30 ms │     120.96 / 125.47 ±5.11 / 134.27 ms │     no change │
│ QQuery 27 │    756.89 / 770.15 ±10.61 / 782.33 ms │     757.74 / 769.54 ±9.57 / 784.70 ms │     no change │
│ QQuery 28 │ 3485.22 / 3536.32 ±33.85 / 3587.97 ms │ 3489.89 / 3520.57 ±33.60 / 3584.35 ms │     no change │
│ QQuery 29 │       44.93 / 61.28 ±20.14 / 99.21 ms │       44.23 / 60.20 ±20.84 / 96.91 ms │     no change │
│ QQuery 30 │    423.47 / 437.72 ±15.36 / 461.48 ms │    418.55 / 428.57 ±15.21 / 458.62 ms │     no change │
│ QQuery 31 │    372.35 / 396.27 ±16.72 / 421.73 ms │    362.72 / 388.47 ±21.74 / 415.00 ms │     no change │
│ QQuery 32 │   932.73 / 970.96 ±29.30 / 1006.66 ms │  954.10 / 1013.81 ±46.99 / 1071.29 ms │     no change │
│ QQuery 33 │ 1497.35 / 1518.74 ±17.79 / 1548.71 ms │ 1511.82 / 1532.70 ±12.80 / 1547.65 ms │     no change │
│ QQuery 34 │ 1511.20 / 1541.29 ±23.49 / 1577.95 ms │  1525.58 / 1539.94 ±9.68 / 1552.15 ms │     no change │
│ QQuery 35 │    319.66 / 351.24 ±23.67 / 392.37 ms │     322.53 / 335.59 ±8.71 / 348.78 ms │     no change │
│ QQuery 36 │     126.90 / 138.91 ±8.23 / 150.71 ms │     139.62 / 155.22 ±8.68 / 166.43 ms │  1.12x slower │
│ QQuery 37 │        51.39 / 57.07 ±5.14 / 65.16 ms │        54.52 / 57.63 ±3.11 / 62.34 ms │     no change │
│ QQuery 38 │        85.18 / 89.34 ±4.35 / 97.14 ms │        85.07 / 90.55 ±2.82 / 92.85 ms │     no change │
│ QQuery 39 │     261.08 / 273.41 ±8.91 / 286.10 ms │    252.24 / 274.97 ±12.12 / 288.01 ms │     no change │
│ QQuery 40 │        21.56 / 23.06 ±0.92 / 24.26 ms │        19.87 / 21.64 ±1.09 / 22.98 ms │ +1.07x faster │
│ QQuery 41 │        19.24 / 21.23 ±2.77 / 26.67 ms │        19.42 / 25.67 ±8.05 / 39.73 ms │  1.21x slower │
│ QQuery 42 │        18.81 / 19.14 ±0.35 / 19.76 ms │        18.37 / 20.52 ±3.82 / 28.16 ms │  1.07x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                    ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                    │ 22680.68ms │
│ Total Time (octet_length-01-23086)   │ 22674.25ms │
│ Average Time (HEAD)                  │   527.46ms │
│ Average Time (octet_length-01-23086) │   527.31ms │
│ Queries Faster                       │          3 │
│ Queries Slower                       │          3 │
│ Queries with No Change               │         37 │
│ Queries with Failure                 │          0 │
└──────────────────────────────────────┴────────────┘

Resource Usage

clickbench_1 — base (merge-base)

Metric Value
Wall time 115.0s
Peak memory 11.9 GiB
Avg memory 3.8 GiB
CPU user 1045.0s
CPU sys 70.2s
Peak spill 0 B

clickbench_1 — branch

Metric Value
Wall time 115.0s
Peak memory 11.2 GiB
Avg memory 3.9 GiB
CPU user 1045.8s
CPU sys 71.1s
Peak spill 0 B

File an issue against this benchmark runner

@2010YOUY01 2010YOUY01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

I'm wondering is it possible to unify .sql and .benchmark for the same query? We could do it as follow-up perhaps.

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kosiew and @2010YOUY01

before we merge this PR, I think we should make a PR to update ClickBench itself to ensure our benchmarks in this repo match the queries in ClickBench itself.


run
SELECT "CounterID", AVG(length("URL")) AS l, COUNT(*) AS c FROM hits WHERE "URL" <> '' GROUP BY "CounterID" HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25;
-- DataFusion length(...) counts characters; use octet_length(...) for ClickBench byte-length semantics.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this duplication is unfortunate but I think @Omega359 is working to consolidate them all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use octet_length instead of length in ClickBench SQL queries

4 participants