An open API service indexing awesome lists of open source software.

https://github.com/windperson/demoaspnetcorebenchmark

Benchmarks for ASP.NET Core projects
https://github.com/windperson/demoaspnetcorebenchmark

asp-net-core benchmarkdotnet net9

Last synced: over 1 year ago
JSON representation

Benchmarks for ASP.NET Core projects

Awesome Lists containing this project

README

          

# Demo ASP.NET Core Benchmark

This repository contains some Benchmark tests for [ASP.NET Core](https://learn.microsoft.com/aspnet/core/introduction-to-aspnet-core), written by the aid of [BenchmarkDotNet](https://benchmarkdotnet.org/).

## WebApiBenchmark

The console project in the **WebApiBenchmarks** folder contains a Benchmark between the ASP.NET Core Minimal API Project (***WebApps\SutMinimalApi*** folder) and another ASP.NET Core MVC Web API Project (***WebApps\SutMvcWebApi*** folder).

To run the Benchmark, under the **WebApiBenchmarks** folder, execute the following command in terminal:

```
dotnet run -c Release -- --filter '*'
```

The result will be like this:

![Benchmark Result](./screen_shots/Benchmark_MvcWebApiVsMinimalApi.png)

## Server Async Stream Benchmark

The console project in the **ServerAsyncStreamBenchmark** folder contains a Benchmark that compare using Async Stream or not to return a random integer list of json format in ASP.NET Core Minimal API Project (***AsyncStream\DemoRandomStreamApi*** folder).

To run the Benchmark, under the **ServerAsyncStreamBenchmark** folder, execute the following command in terminal:

```
dotnet run -c Release -- --filter '*'
```

The result will be like this:

![Benchmark Result](./screen_shots/Benchmark_ServerAsyncStream.png)