Execute the local server before running the csharp project
./atir
- Download the dotnet command line tool
- Run the server mentioned above.
- Type the command below into command line
dotnet run --project APITest <http|restsharp|refit> <num-of-byte>
- Each testing runs for 1000 times
- The result may differs depends on the server's reponse time
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 |