Skip to content

Remove classification performance test - #106732

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:remove-classification-perf-test
Jun 8, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:remove-classification-perf-test

Conversation

@Algunenano

@Algunenano Algunenano commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

The classification perf test (detectLanguage, detectLanguageMixed, detectTonality, detectLanguageUnknown, detectCharset) has been a persistent source of CI noise — one of the top entries in #100759 — and several attempts to stabilize it (deterministic sampling, materialized subset) did not hold up.

The root cause isn't the queries: the detect* NLP functions are memory-bound (they build a per-phrase language model, ~1M heap allocations), which amplifies the persistent per-process placement asymmetry between the two perf-comparison servers. On the same machine, identical binary, identical data, one server runs the heavy queries ~4.5x slower than the other (4x CPU, 7x system time, identical SelectedRows/SelectedBytes), while light queries on the same servers stay balanced. No test-level change removes that, only reduces the amplification.

These NLP functions are rarely used, so a dedicated perf guard isn't worth the recurring noise. Remove the test.

Related: #100759

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Version info

  • Merged into: 26.6.1.519

The classification perf test (detectLanguage, detectLanguageMixed,
detectTonality, detectLanguageUnknown, detectCharset) has been a persistent
source of CI noise (one of the top noisy tests in ClickHouse#100759), and several
attempts to stabilize it did not hold up.

The root cause is not the test queries themselves: the detect* NLP functions
are memory-bound (they build a per-phrase language model with ~1M heap
allocations), which amplifies the persistent per-process placement asymmetry
between the two perf-comparison servers. On the same machine, with identical
binary and identical data, one server runs the heavy queries ~4.5x slower than
the other (4x CPU, 7x system time, same SelectedRows/SelectedBytes), while the
light queries on the same servers stay balanced. No test-level change removes
that, only reduces the amplification.

These NLP functions are rarely used, so a dedicated perf guard is not worth the
recurring noise it generates. Remove the test.
@clickhouse-gh

clickhouse-gh Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [410035b]

Summary: ✅


AI Review

Summary

This PR removes tests/performance/classification.xml, a dedicated performance test for detectLanguage, detectLanguageMixed, detectTonality, detectLanguageUnknown, and detectCharset. The linked tracking issue lists classification #1 as a noisy performance test on both AMD and ARM after the recent framework noise reductions, the PR is scoped to CI/performance-test coverage only, and existing stateless tests still exercise the classifier functions for correctness. I did not find an actionable regression in the current diff.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 8, 2026
@Algunenano
Algunenano added this pull request to the merge queue Jun 8, 2026
Merged via the queue into ClickHouse:master with commit 2ae1958 Jun 8, 2026
166 checks passed
@Algunenano
Algunenano deleted the remove-classification-perf-test branch June 8, 2026 20:25
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants