Skip to content

Conversation

@jakebailey
Copy link
Member

b.Loop shouldn't itself be called multiple times. Invert this test loop.

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 fixes the BenchmarkGetNormalizedAbsolutePath by inverting the loop order so that b.Loop is called only once per benchmark iteration instead of repeatedly inside the test loop.

  • Inverts the loop order so that b.Loop wraps the test iterations.
  • Ensures all test cases are run within a single b.Loop iteration for accurate benchmark measurements.

@jakebailey jakebailey enabled auto-merge April 3, 2025 16:47
@jakebailey jakebailey added this pull request to the merge queue Apr 3, 2025
Merged via the queue into main with commit d6c0867 Apr 3, 2025
23 checks passed
@jakebailey jakebailey deleted the jabaile/fix-benchmark branch April 3, 2025 17:02
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.

3 participants