Refit is a framework for easily calling Web API endpoints from C#.
This project intends to answer the question:
What is the performance overhead added by Refit?
Refit is adding an overhead of around half a millisecond.
RefitPerformance.WebApi - The web server containing two endpoints:
POST /dummy/{id}/test1- Endpoint with a model populated from request body.
POST /dummy/{id}/test2- Request type:
multipart/form-data - Model populated from the request parts.
- Request type:
RefitPerformance.Client.Cli - A console application to manually call the two endpoints.
RefitPerformance.Benchmark - A console application that uses BenchmarkDotNet to call the two endpoints with and without using Refit. It results 4 benchmark tests:
- Call the normal endpoint without
Refit. - Call the normal endpoint with
Refit. - Call the multipart endpoint without
Refit. - Call the multipart endpoint with
Refit.