Benchmark Compares .NET Native AOT, JIT, R2R and Self-Contained on Linux
A developer published a detailed benchmark comparing four .NET 10 publishing models — Native AOT, JIT framework-dependent, JIT self-contained, and ReadyToRun — running the same workload on linux-x64. The experiment measures startup time, warmed throughput, p95/p99 latency, CPU, resident memory, and distribution size, rather than relying on labels like CLI or serverless. The author cautions that Native AOT's faster startup does not translate into a universal cold-start advantage on managed platforms such as AWS Lambda or Azure Functions, since provider-side factors are not captured in the lab. Removing the JIT eliminates runtime compilation overhead but does not eliminate GC pauses, OS scheduling, or page faults. The findings are presented as a decision matrix tied to measurable objectives and specific constraints, not as a one-size-fits-all recommendation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in