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

feat: setup benchmark project for Antiforgery #2033

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DeagleGross
Copy link

@sebastienros
Copy link
Member

Finally!

scenarios/antiforgery.benchmarks.yml Outdated Show resolved Hide resolved
scenarios/antiforgery.benchmarks.yml Outdated Show resolved Hide resolved

await app.StartAsync();

Console.WriteLine("Application started.");
Copy link
Member

Choose a reason for hiding this comment

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

You'll need an endpoint that uses antiforgery. https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-9.0#antiforgery-with-minimal-apis

As well as a way to get an antiforgery token for the client to use in its requests.

Copy link
Member

Choose a reason for hiding this comment

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

WRK has ways to fetch a token on the first request and the reuse it for subsequent requests. Check the LUA scripts we have in this repos for auth.

Another option could be to use K6 but I am afraid its perf to be a bottleneck.

@DeagleGross
Copy link
Author

sorry for pushes, I am trying to make crank work on perf-machines, and so far only validating if I can confirm that crank run makes expected steps

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