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
- Host: GitHub
- URL: https://github.com/windperson/demoaspnetcorebenchmark
- Owner: windperson
- License: mit
- Created: 2025-02-21T05:53:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T11:29:32.000Z (over 1 year ago)
- Last Synced: 2025-02-21T12:28:12.239Z (over 1 year ago)
- Topics: asp-net-core, benchmarkdotnet, net9
- Language: C#
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:

## 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:
