Menu

1 / 2

Does Native AOT Pay Off on .NET 11? I Measured 120 Cold Starts

DEV Community: csharp·Mohammad Arbab Azmi·12 days ago
#zT250w8n
#devtocsharp#devto#dev#bench#docker
Long article (1451 words) — no AI summary yet.
Reading 0:00
15s threshold

I took one small Minimal API, published it four ways and started each one cold 30 times. Native AOT reached "ready" about 2.1–2.3× sooner than JIT and used about a third of the peak memory. The difference between .NET 10 and .NET 11 was smaller than the noise.

⚠️ Measured locally in Docker on one laptop. This is not an AWS result. No cloud run was made.

Full code and scripts:

.NET 11 Web Samples

Three small ASP.NET Core 11 projects that try what is new on the web side of .NET 11, and write down what worked, what surprised me and what did not. All data is synthetic.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.