Skip to content

Benchmarks: a cost-per-column table with every typed method on one row class - #278

Merged
electricessence merged 2 commits into
masterfrom
bench/cost-per-column
Dec 1, 2026
Merged

electricessence merged 2 commits into
masterfrom
bench/cost-per-column

Conversation

@electricessence

@electricessence electricessence commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

A cost-per-column benchmark in which every typed method builds the same row class. No library code changes.

  • CostPerColumnBenchmarks: the same read at 1 and 20 columns over the synthetic reader in default access: the hand-written selector (baseline), its identical copy as the noise control, the annotated generated reader, object arrays (AsObjectArrays()) and Dapper Query<T>, all but the arrays building GenRowD1 or GenRowD20. The cost of one more cell is the 20-column time less the 1-column time, over the cells added.
  • Each timed process sets up and checks only its own rung against plain ADO.NET; --verify-gate covers the new table, and in a counters build it proves the generated rung is served by generated code.
  • The Dapper.AOT advice to add Dapper's column attribute is listed with the project's other suppressed advice: Dapper matches these columns by name.

Published conditions: ODX_GATE_SOURCES=synthetic ODX_GATE_ROWS=1000.

🤖 Generated with Claude Code

electricessence and others added 2 commits December 1, 2026 07:46
…w class

A cost-per-column benchmark in which every typed method builds the same row class. No library code changes.

- `CostPerColumnBenchmarks`: the same read at 1 and 20 columns over the synthetic reader in default access: the hand-written selector (baseline), its identical copy as the noise control, the annotated generated reader, object arrays and Dapper `Query<T>`, all but the arrays building `GenRowD1` or `GenRowD20`. The cost of one more cell is the 20-column time less the 1-column time, over the cells added.
- Each timed process sets up and checks only its own rung against plain ADO.NET; `--verify-gate` covers the new table, and in a counters build it proves the generated rung is served by generated code.
- The Dapper.AOT advice to add Dapper's column attribute is listed with the project's other suppressed advice: Dapper matches these columns by name.

Published conditions: `ODX_GATE_SOURCES=synthetic ODX_GATE_ROWS=1000`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…jectArrays()

The 20-column hand selector no longer adds a call per row, and the object-array rung reads the way the library reads rows without a model.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 6b0cc88 into master Dec 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant