Implementation
ASP.NET Core
ASP.NET Core 10.0.15 · C# · Full-stack frameworks · ranked
frameworks/aspnet-core on GitHub
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | 3–7 | 0.47 | ±8.4% |
| Database | 8–10 | 0.52* | ±22.3% |
| Application | 9–10 | 0.34* | ±16.0% |
| Memory (high-water mark) | 8 | 0.50 | ±3.2% |
| Startup | 1–13 | 1.00≈ | ±0.0% |
Runner CPUs: Xeon PLATINUM 8573C, Xeon PLATINUM 8573C, EPYC 7763
Settings
- Runtime
- .NET 10.0.15 (Release build, framework-dependent publish)
- Server
- Kestrel
- Workers
- .NET thread pool sized by the runtime for 2 vCPUs; Server GC (the ASP.NET Core default)
- Database layer
- Entity Framework Core 10.0 with the Npgsql provider, pool of 16 connections, Npgsql automatic preparation (Max Auto Prepare=20)
- Templates
- Razor Pages
- Logging
- none per request (Microsoft.AspNetCore and EF Core command logs at Warning); start-up log at Information
- Dependency source
- –
- Status
- measured
Application endpoints: mechanisms
- Validation
- Route constraint {id:int} (404); DataAnnotations: Minimal API validation (AddValidation) for /worlds and the PUT body, Razor Pages model binding (ModelState) for /form: 400, or the form re-rendered (200)
- CSRF
- token (built-in): ASP.NET Core antiforgery (cookie token + __RequestVerificationToken field, Data Protection), validated by Razor Pages
- Session store
- cookie-encrypted (built-in): Cookie authentication (AddCookie, SignInAsync), ticket encrypted with Data Protection
Tier 1 endpoints
| Endpoint | req/s | vs Axum | Efficiency (req/CPU-s) | p99 (ms) | Errors | Limits |
|---|---|---|---|---|---|---|
| /text | 102,352 (67,756–107,692) | 0.54 | 51,627 | 2.95 | 0 | |
| /json | 98,085 (67,089–104,198) | 0.55 | 49,484 | 3.24 | 0 | |
| /db-single | 6,811 (5,195–7,127) | 0.31 | 3,418 | 25.01 | 0 | |
| /html | 63,462 (34,070–65,799) | 0.34 | 31,960 | 4.20 | 0 | |
| /queries?queries=20 | 1,016 (586–1,066) | 0.76 | 510 | 145.83 | 0 | PostgreSQL-bound 15/15 |
| /fortunes | 6,798 (5,205–7,372) | 0.24 | 3,406 | 24.69 | 0 | |
| GET /world/{id} | 6,639 (5,131–7,064) | 0.32 | 3,334 | 24.84 | 0 | |
| GET /worlds | 5,680 (4,662–6,020) | 0.39 | 2,856 | 28.98 | 0 | |
| POST /form | 19,997 (11,580–21,216) | 0.22 | 10,075 | 10.61 | 0 | |
| GET /me | 5,146 (4,432–5,381) | 0.46 | 2,584 | 31.38 | 0 | |
| /updates?queries=20 | 697 (393–726) | 1.19 | 371 | 203.53 | 0 | PostgreSQL-bound 15/15 |
| PUT /world/{id} | 4,421 (3,624–4,642) | 0.26 | 2,223 | 35.58 | 0 |
Measured versions
BCrypt.Net-Next4.2.1Microsoft.AspNetCore.App10.0.15Microsoft.EntityFrameworkCore10.0.15Microsoft.EntityFrameworkCore.Relational10.0.15Npgsql10.0.3Npgsql.EntityFrameworkCore.PostgreSQL10.0.3
Runner jobs
| Job | CPU model | Rounds | Status |
|---|---|---|---|
| 1 | Xeon PLATINUM 8573C | 5 | measured |
| 2 | Xeon PLATINUM 8573C | 5 | measured |
| 3 | EPYC 7763 | 5 | measured |