Repository navigation
Benchmarks: annotated generated rung, real-database parity and request journey - #268
Merged
Merged
Conversation
…t journey `GenRowDT10` and `GenRowDT20` are the typed twins with every column's ordinal declared, so their generated reader makes the same assumptions as a hand-written selector: constant ordinals, nothing about the result checked. `GenD_T` measures it on the synthetic reader and on the real databases, beside `Gen_T` (the same twin without annotations) and the hand-written controls. `RealParityBenchmarks` compares generated, hand-written and Dapper.AOT reads over SQL Server and SQLite at widths 10 and 20 and 1, 1,000 and 10,000 rows. Its setup compares every rung's rows before timing, and in a counters build requires the generated rungs to be served by generated code. `Gen_T` does not run on SQLite: SQLite stores a `Guid` as text, which the generated reader of an unannotated model leaves to the runtime map, so that rung would have measured the runtime map. `ControllerJourneyBenchmarks` measures query, JSON response and release with `ToArrayAsync`, `ToPooledBuffer` (awaiting `Items` or looping over `AsAsyncEnumerable()`) and `ToPooledBufferStream`, checking every response. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
GenRowDT10andGenRowDT20are the typed twins with every column's ordinaldeclared, so their generated reader makes the same assumptions as a hand-written
selector: constant ordinals, nothing about the result checked.
GenD_Tmeasuresit on the synthetic reader and on the real databases, beside
Gen_T(the sametwin without annotations) and the hand-written controls.
RealParityBenchmarkscompares generated, hand-written and Dapper.AOT reads overSQL Server and SQLite at widths 10 and 20 and 1, 1,000 and 10,000 rows. Its setup
compares every rung's rows before timing, and in a counters build requires the
generated rungs to be served by generated code.
Gen_Tdoes not run on SQLite: SQLite stores aGuidas text, which thegenerated reader of an unannotated model leaves to the runtime map, so that rung
would have measured the runtime map.
ControllerJourneyBenchmarksmeasures query, JSON response and release withToArrayAsync,ToPooledBuffer(awaitingItemsor looping overAsAsyncEnumerable()) andToPooledBufferStream, checking every response.🤖 Generated with Claude Code