Skip to content

[00090] Fix BenchmarkConfig not applied when CLI args override#26

Merged
rorychatt merged 1 commit into
mainfrom
plan-00090-Ivy.NativeJsonDiff
Apr 12, 2026
Merged

[00090] Fix BenchmarkConfig not applied when CLI args override#26
rorychatt merged 1 commit into
mainfrom
plan-00090-Ivy.NativeJsonDiff

Conversation

@rorychatt

Copy link
Copy Markdown
Collaborator

Summary

Added [Config(typeof(CiBenchmarkConfig))] attribute to all three benchmark classes (EndToEndDiffBenchmarks, PreParsedDiffBenchmarks, JsonApplyBenchmarks) so that BenchmarkSwitcher.Run(args) applies the CI config (ShortRun job, JSON and Markdown exporters) even when CLI args are passed. Removed the unused BenchmarkConfig class from BenchmarkConfig.cs.

API Changes

None.

Files Modified

  • Benchmark classes — Added [Config] attribute and using Ivy.NativeJsonDiff.Benchmarks;:
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/EndToEndDiffBenchmarks.cs
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/PreParsedDiffBenchmarks.cs
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/JsonApplyBenchmarks.cs
  • Config — Removed unused BenchmarkConfig class:
    • src/Ivy.NativeJsonDiff.Benchmarks/BenchmarkConfig.cs

Commits

  • d44d8cd [00090] Wire CiBenchmarkConfig to benchmark classes via [Config] attribute

@rorychatt
rorychatt merged commit deddd32 into main Apr 12, 2026
2 checks passed
@rorychatt
rorychatt deleted the plan-00090-Ivy.NativeJsonDiff branch April 12, 2026 11:46
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