Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
Home/C#/Performance
C#

C#

A productive, strongly typed language for the whole .NET platform.

Paradigm
OOP, functional features
Typing
Static, strong, nullable-aware
Memory
Generational GC
Runs
.NET runtime (JIT) or Native AOT
Concurrency
Tasks, async/await, channels

Performance

How C# runs, and what that means in practice.

Execution model

IL is JIT-compiled with tiered compilation and profile-guided optimisation; Native AOT is available for fast start-up.

Memory

Generational, compacting GC. Span, stackalloc and structs reduce allocations on hot paths.

Concurrency

Thread pool, Task Parallel Library, async/await, System.Threading.Channels.

In practice

Among the faster managed runtimes; ASP.NET Core typically scores well in web framework benchmarks.

Compare with the other five languages →

Saved in this browser only. Part of From code to production (0/5).