Skip to content

Analyze the response time of several packages with statistic.

Notifications You must be signed in to change notification settings

hanjuTsai/csharpApiAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Api Analysis

Api Tool in nuget packages

  1. HTTP Client
  2. Refit
  3. RestSharp

APi Server

Execute the local server before running the csharp project

./atir

How to run the project

  1. Download the dotnet command line tool
  2. Run the server mentioned above.
  3. Type the command below into command line
dotnet run --project APITest <http|restsharp|refit> <num-of-byte>

Analysis

Note that:

  1. Each testing runs for 1000 times
  2. The result may differs depends on the server's reponse time
Statistical Analysis

API Tool \bytes 5 10 20 100 500 1024 2048 4096
HTTP 0.063 0.002 0.002 0 0 0.001 0 0.001
Restsharp 0.103 0.002 0 0.008 0.004 0 0.003 0.001
Refit 0.079 0.001 0 0 0.003 0.011 0.003 0.001

About

Analyze the response time of several packages with statistic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published