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

Benchmarking REST APIs? #1432

Closed
ishepherd opened this issue Apr 27, 2020 · 2 comments
Closed

Benchmarking REST APIs? #1432

ishepherd opened this issue Apr 27, 2020 · 2 comments
Labels

Comments

@ishepherd
Copy link

Hi, new user here just want your opinion:

Is Benchmark.Net a sensible choice for performance testing of a REST API?

Most examples I see use it for tiny microbenchmarks. It looks quite suitable for benchmarking any kind of code, I am just wondering if I will hit any particular impedances with blackbox testing of an API.

One example: Can it run the tests in parallel? For code microbenchmarks this would be unhelpful and probably unnecessary. But for API calls that take several seconds each, and many iterations to do, it might be necessary and with your statistical guards in place it might be reasonable to do.

@ishepherd
Copy link
Author

Useful past issues:

#659 (comment)
#1314

@adamsitnik
Copy link
Member

Hi @ishepherd

BenchmarkDotNet was designed for very accurate micro-benchmarking. All the metrics that we report are specific to the process which is executing the benchmark. The architecture does not have a concept of multiple processes like client and server. So we can tell you have long it takes to send a web request, but we can't report how much memory the server has allocated to handle it.

Most probably https://github.com/aspnet/Benchmarks/ is what you are looking for. It has a client-server concept and can track metrics for both. And it was designed to run web server benchmarks.

Since there is nothing actionable on our side here, I am closing the issue.

Thanks,
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants