Skip to content

Add bare-bones int8 bulk operation benchmark#145173

Merged
ldematte merged 2 commits intoelastic:mainfrom
ldematte:benchmark/int8-bulk-operation
Mar 30, 2026
Merged

Add bare-bones int8 bulk operation benchmark#145173
ldematte merged 2 commits intoelastic:mainfrom
ldematte:benchmark/int8-bulk-operation

Conversation

@ldematte
Copy link
Copy Markdown
Contributor

@ldematte ldematte commented Mar 30, 2026

Summary

Adds VectorScorerInt8BulkOperationBenchmark — a bare-bones JMH benchmark that calls the native int8 bulk_offsets operation directly via VectorSimilarityFunctions.

Benchmarks:

  • scoreMultipleSequential / scoreMultipleRandom — single-call loop (useful as a baseline)
  • scoreMultipleSequentialBulk / scoreMultipleRandomBulk — native bulk_offsets path

Test plan

  • VectorScorerInt8BulkOperationBenchmarkTests — verifies single and bulk produce identical results
  • Tests pass on JDK 21 and JDK 25

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@elasticsearchmachine elasticsearchmachine added v9.4.0 needs:triage Requires assignment of a team area label labels Mar 30, 2026
@ldematte ldematte added :Search Relevance/Vectors Vector search >test Issues or PRs that are addressing/adding tests and removed needs:triage Requires assignment of a team area label labels Mar 30, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Mar 30, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Copy link
Copy Markdown
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@ldematte ldematte enabled auto-merge (squash) March 30, 2026 09:15
@ldematte ldematte merged commit bd58b04 into elastic:main Mar 30, 2026
36 checks passed
@ldematte ldematte deleted the benchmark/int8-bulk-operation branch March 30, 2026 09:17
felixbarny pushed a commit to felixbarny/elasticsearch that referenced this pull request Mar 30, 2026
Adds VectorScorerInt8BulkOperationBenchmark — a bare-bones JMH benchmark that calls the native int8 bulk_offsets operation directly via VectorSimilarityFunctions.
mamazzol pushed a commit to mamazzol/elasticsearch that referenced this pull request Mar 30, 2026
Adds VectorScorerInt8BulkOperationBenchmark — a bare-bones JMH benchmark that calls the native int8 bulk_offsets operation directly via VectorSimilarityFunctions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants