Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off a bunch of optional features in the benchmark #2474

Merged
merged 2 commits into from Apr 23, 2024

Conversation

MihaZupan
Copy link
Member

Skips logic such as ASP.NET's auth middlewares, routing, .... Also skips some optional features like the X-Forwarded headers being added by default.

This way it more closely matches what we do in the proxy-httpclient scenario: https://github.com/aspnet/Benchmarks/blob/main/src/BenchmarksApps/HttpClient/Proxy/Program.cs

Net effect a is ~17 % RPS bump on the basic h1-h1 scenario.

@MihaZupan MihaZupan added this to the v.Next milestone Apr 11, 2024
@MihaZupan MihaZupan self-assigned this Apr 11, 2024
@@ -2,7 +2,7 @@
"profiles": {
"BenchmarkApp": {
"commandName": "Project",
"commandLineArgs": "--urls http://localhost:5000 --clusterUrls http://localhost:10010",
"commandLineArgs": "--urls http://localhost:5000 --clusterUrls http://httpbin.org",
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to commit that?

Copy link
Member Author

Choose a reason for hiding this comment

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

We already use httpbin in a few sample projects.
I find it easier to test with since you only have to start the proxy project instead of the test server as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you see any other problems with the change?

@MihaZupan MihaZupan merged commit f84b7d7 into microsoft:main Apr 23, 2024
7 checks passed
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.

None yet

2 participants