Skip to content

🤖 Update Mock Benchmark Results#5970

Merged
thomhurst merged 1 commit into
mainfrom
automated-mock-benchmarks-update
May 20, 2026
Merged

🤖 Update Mock Benchmark Results#5970
thomhurst merged 1 commit into
mainfrom
automated-mock-benchmarks-update

Conversation

@thomhurst
Copy link
Copy Markdown
Owner

Automated Mock Benchmark Update

This PR updates the mock benchmark documentation with the latest results from the Mock Benchmarks workflow.

Benchmarks Produced

Individual benchmark artifacts are available for download:

  • mock-benchmark-MockCreation
  • mock-benchmark-Setup
  • mock-benchmark-Invocation
  • mock-benchmark-Verification
  • mock-benchmark-Callback
  • mock-benchmark-CombinedWorkflow
  • mock-benchmark-summary (aggregated overview)

Libraries Compared

Libraries are discovered dynamically from the benchmark output. See the generated summary.json for the full list.

Changes

  • Updated mock benchmark data in docs/static/benchmarks/mocks/latest.json
  • Regenerated mock benchmark documentation in docs/docs/benchmarks/mocks/
  • Updated mock benchmark summary in docs/static/benchmarks/mocks/summary.json

Workflow Run

  • Run ID: 26138977065
  • Triggered: schedule

🤖 This PR was automatically created and will be merged automatically once CI checks pass.

@thomhurst thomhurst added automated benchmarks documentation Improvements or additions to documentation ignore-for-release labels May 20, 2026
@thomhurst thomhurst merged commit ec2a89d into main May 20, 2026
13 checks passed
@thomhurst thomhurst deleted the automated-mock-benchmarks-update branch May 20, 2026 03:28
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This is an automated benchmark data refresh — the workflow machinery is solid and the changes are what you'd expect from a scheduled CI run. A few observations:

Schema Evolution in MockCreation.json

The most notable change here isn't the numbers — it's that ** now includes a new "Median" field** for every entry, while the other five benchmark JSON files (, , , , ) do not get this field in this run.

This creates a schema inconsistency across the benchmark data files. Two things to consider:

  1. Documentation lag: The markdown table still only renders — the new Median value is captured in the JSON but never surfaced to readers.
  2. Partial rollout: If the benchmark runner now produces Median for all categories, the other JSON files should have received it too. If it's category-specific, it'd be worth a comment in the generation script explaining why.

Suggested approach: Either update the markdown template to include a Median column (making the data useful), or strip Median from the JSON until all categories produce it and the docs are ready to display it. Inconsistent schemas across sibling files make the data harder to consume programmatically.

Benchmark Numbers

The numeric changes are within normal day-to-day variance — no surprising regressions or improvements. A few observations for context:

  • TUnit.Mocks Callback went from 595ns → 649ns (~9% slower), but the error bands overlap so this is noise.
  • CombinedWorkflow shows Moq improving significantly (408μs → 309μs) — this is a large swing for a single day; worth keeping an eye on in subsequent runs to see if it stabilises or reverts.
  • Memory allocations are stable across the board, which is the more meaningful signal.

Automation Quality

The PR description correctly tracks the workflow run ID, trigger type, and lists all artifact categories. The commit message is clean. The automation is working as intended.


Overall: good automated update. The schema inconsistency with Median is the only thing worth addressing before this pattern solidifies.

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This is an automated benchmark data refresh — the workflow machinery is solid and the changes are what you'd expect from a scheduled CI run. A few observations:

Schema Evolution in MockCreation.json

The most notable change here isn't the numbers — it's that MockCreation.json now includes a new "Median" field for every entry, while the other five benchmark JSON files (Callback, Invocation, CombinedWorkflow, Setup, Verification) do not get this field in this run.

This creates a schema inconsistency across the benchmark data files. Two things to consider:

  1. Documentation lag: The MockCreation.md markdown table still only renders Mean | Error | StdDev | Allocated — the new Median value is captured in the JSON but never surfaced to readers.
  2. Partial rollout: If the benchmark runner now produces Median for all categories, the other JSON files should have received it too. If it's category-specific, it'd be worth a comment in the generation script explaining why.

Suggested approach: Either update the markdown template to include a Median column (making the data useful), or strip Median from the JSON until all categories produce it and the docs are ready to display it. Inconsistent schemas across sibling files make the data harder to consume programmatically.

Benchmark Numbers

The numeric changes are within normal day-to-day variance — no surprising regressions. A few observations for context:

  • TUnit.Mocks Callback went from 595ns → 649ns (~9% slower), but the error bands overlap so this is noise.
  • CombinedWorkflow shows Moq improving significantly (408μs → 309μs) — this is a large swing for a single day; worth watching in subsequent runs to see if it stabilises or reverts.
  • Memory allocations are stable across the board, which is the more meaningful signal.

Automation Quality

The PR description correctly tracks the workflow run ID, trigger type, and lists all artifact categories. The commit message is clean. The automation is working as intended.


Overall: good automated update. The schema inconsistency with Median is the only thing worth addressing before this pattern solidifies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated benchmarks documentation Improvements or additions to documentation ignore-for-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant