Skip to content

[performance][benchmark] Typed read, queryAll, POJO insert and compressed decode #3516

Backlog

Description

@utvaxling

Description

The JMH suite in performance/ has no benchmark for four paths of client V2 that applications use. Their cost cannot be measured, and a change cannot be compared with the code before it.

  • A read through the typed getters only (getLong, getDouble, getString and so on). QueryClient.queryV2 takes each value with readValue. QueryClient.queryV2WithTypes takes each value two times: with readValue and with the getter.
  • Client.queryAll, into a list of GenericRecord and into a list of POJOs of a registered class.
  • Client.insert(table, List<?>) with POJOs of a registered class.
  • The decode of a compressed response together with its values. Compression.queryV2NativeLz4 reads a compressed response but decodes no value. Deserializers.DeserializerOutputStreamV2 decodes the values of a response that is not compressed.

Wanted: a benchmark for each of these paths that runs alone by its name, with the datasets that the suite has.

Related: #3324.

Activity

  1. polyglotAI-bot commented on Dec 3, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — PR #3517 in review
    PR #3517 closes this issue: it adds a JMH benchmark for each of the four paths, and changes no existing class or build file. A maintainer approved it, then asked to correct one review finding: DataSetPojo.checkFilled takes null, false, and 0 as values that were not set.

    • Category: Other
    • Classification: impact: none · area: Docs & project (benchmarks)
    • Status on main: Not applicable — read main (1b33bf6d): the performance/ module has no benchmark for the four paths, as the issue says.
    • Breaking change: No
    • Duplicates / related: No others.

    Analysis: Confirmed on main: QueryClient.queryV2 reads each value only with readValue (QueryClient.java:52), and queryV2WithTypes reads it with readValue and the getter (QueryClient.java:91-94). Compression.queryV2 only drains the response stream (Compression.java:249). Deserializers.DeserializerOutputStreamV2 decodes a RowBinary buffer that is not compressed (Deserializers.java:65-75). The module calls Client.queryAll only to set up data (BenchmarkBase.java:175), and has no insert(table, List).

    Automated triage by Polyglot AI. A maintainer makes the final decision.

  2. added
    tests
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions