- Notifications
You must be signed in to change notification settings - Fork311
Tidy up performance tests#3230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
paulmedynski commentedMar 19, 2025
- Tidied up the existing Performance benchmarks.
- Added environment variables to specify config files.
- Removed Newtonsoft.Json as a dependency.
- Simplified csproj a bit.
- Tidied up the existing Performance benchmarks.- Added environment variables to specify config files.- Removed Newtonsoft.Json as a dependency.- Simplified csproj a bit.
There was a problem hiding this 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 tidies up the performance tests by refactoring configuration loading, removing the Newtonsoft.Json dependency, and simplifying project files.
- Introduces a new JSON configuration loader using System.Text.Json.
- Updates performance test configuration for benchmarks and data types across several files.
- Revises the BUILDGUIDE to include instructions for setting up the runner configuration and an empty database.
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/Microsoft.Data.SqlClient/tests/PerformanceTests/Config/Loader.cs | Adds a utility to load JSON configs with environment variable overrides. |
BUILDGUIDE.md | Updates usage instructions for benchmarks and configuration management. |
src/Microsoft.Data.SqlClient/tests/PerformanceTests/Config/DataTypes.cs | Introduces a Load() method to load data types configuration. |
src/Microsoft.Data.SqlClient/tests/PerformanceTests/Config/Config.cs | Adds a Load() method for benchmark configuration. |
src/Microsoft.Data.SqlClient/tests/PerformanceTests/Program.cs | Refactors config loading and benchmark execution from a static context to an instance context. |
src/Microsoft.Data.SqlClient/tests/PerformanceTests/BenchmarkRunners/BaseRunner.cs | Replaces Newtonsoft.Json deserialization with the new Loader API. |
Files not reviewed (2)
- src/Microsoft.Data.SqlClient/tests/PerformanceTests/Microsoft.Data.SqlClient.PerformanceTests.csproj: Language not supported
- tools/props/Versions.props: Language not supported
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
codecovbot commentedMar 19, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #3230 +/- ##==========================================+ Coverage 72.73% 72.92% +0.18%========================================== Files 288 303 +15 Lines 59527 59527 ==========================================+ Hits 43298 43409 +111+ Misses 16229 16118 -111
Flags with carried forward coverage won't be shown.Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Uh oh!
There was an error while loading.Please reload this page.
- Improved benchmark running instructions.
04b0a8d
intomainUh oh!
There was an error while loading.Please reload this page.