Skip to content

Improve benchmarks#64

Merged
benaadams merged 1 commit intomainfrom
benchmarks
Dec 22, 2025
Merged

Improve benchmarks#64
benaadams merged 1 commit intomainfrom
benchmarks

Conversation

@benaadams
Copy link
Member

Increase variants and paths taken
Improve time taken

Copilot AI review requested due to automatic review settings December 22, 2025 15:46
@benaadams benaadams merged commit 34bf3cb into main Dec 22, 2025
16 checks passed
@benaadams benaadams deleted the benchmarks branch December 22, 2025 15:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the benchmark suite by optimizing execution time and increasing test coverage. The changes restructure the benchmark job configurations and expand test value variants to exercise more code paths.

Key changes include:

  • Reduced benchmark job iterations (launchCount: 1, warmupCount: 3, iterationCount: 5) and removed MemoryDiagnoser to speed up execution
  • Expanded test value variants from 2 to 5 different size categories (UInt256Max-1, UInt192Max-1, UInt128Max-1, TwoTo64-1, One) for better code path coverage
  • Converted to file-scoped namespace declaration

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
src/Nethermind.Int256.Benchmark/Nethermind.Int256.Benchmark.csproj Adds exclusion of BenchmarkDotNet.Artifacts directory from compilation to prevent build issues
src/Nethermind.Int256.Benchmark/Benchmarks.cs Refactors all benchmark classes with optimized job configurations, increased test value variants, file-scoped namespace, and restructured base class hierarchy

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants