Add and modernize Go hot-path benchmarks#100
Open
Uzer007-admin wants to merge 1 commit into
Open
Conversation
MadSchemas
reviewed
Jul 21, 2026
| } | ||
| } | ||
|
|
||
| func legacyWhereExpressionsFunctions(q *Query, left legacyFlatArrayLen, condition int, right legacyNow) { |
Contributor
There was a problem hiding this comment.
Do not think, that all those 'legacy' things should be in our benchmarks set. This measurements may be relevant for the specific PR, but not as a part of regular codebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR expands and modernizes the Go benchmark coverage for Reindexer hot paths.
All changes are limited to benchmark files and do not modify the production API or runtime behavior.
Changes
b.Nloops tob.Loop().Serializer.PutValuemicrobenchmarks for:WhereExpressionsquery builder benchmarks for:Field/Values;FlatArrayLen/Now;ResetTimercalls where timing is already managed byb.Loop.writeIntBitsbenchmark to avoid allocations proportional tob.N.b.N.Scope
All changes are contained in
_test.gobenchmark files. There are no production code, public API, or runtime behavior changes.