Skip to content

Core: Add JMH benchmarks for Variants#15629

Draft
steveloughran wants to merge 1 commit intoapache:mainfrom
steveloughran:pr/benchmark-variant
Draft

Core: Add JMH benchmarks for Variants#15629
steveloughran wants to merge 1 commit intoapache:mainfrom
steveloughran:pr/benchmark-variant

Conversation

@steveloughran
Copy link
Contributor

Fixes #15628

Separate benchmarks for

  • building
  • serializing a prebuilt object
  • deserializing

Variables are:

  • fields: [1000, 10000]
  • depth: [shallow, nested]
  • percentage of fields shed [0, 33, 67, 100]

Note: the current benchmark does NOT for the JVM, as it allows for fast iterative development. A final merge should switch to fork(1).

The benchmarks don't show any surprises, which is good

@github-actions github-actions bot added the core label Mar 13, 2026
@steveloughran steveloughran changed the title Add JMH benchmarks for Variants Core: Add JMH benchmarks for Variants Mar 13, 2026
Fixes apache#15628

Separate benchmarks for
* building
* serializing a prebuilt object
* deserializing

Variables are:
 - fields: [1000, 10000]
 - depth: [shallow, nested]
 - percentage of fields shed [0, 33, 67, 100]

Note: the current benchmark does NOT for the JVM, as it allows for fast iterative development.
A final merge should switch to fork(1).

The benchmarks don't show any surprises, which is good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core: Add JMH benchmarks for Variants

1 participant