The Computer Language
Benchmarks Game

C# .NET versus C# aot fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

mandelbrot
source secs mem gz busy cpu load
C# .NET 3.14 64,940 1974 12.30 99% 98% 97% 97%
C# aot 3.15 65,056 1974 12.30 99% 97% 97% 97%
k-nucleotide
source secs mem gz busy cpu load
C# .NET 3.29 182,860 2044 11.20 99% 86% 66% 90%
C# aot 3.30 183,524 2044 11.20 91% 95% 89% 66%
binary-trees
source secs mem gz busy cpu load
C# .NET 4.81 1,881,564 676 15.47 81% 74% 83% 83%
C# aot 4.82 1,661,716 705 15.56 79% 77% 83% 85%
regex-redux
source secs mem gz busy cpu load
C# .NET 1.42 280,892 1869 2.69 30% 39% 86% 35%
C# aot 1.42 291,104 1869 2.68 32% 24% 85% 48%
pidigits
source secs mem gz busy cpu load
C# .NET 0.92 35,404 977 0.96 98% 3% 2% 1%
C# aot 0.92 35,896 977 0.93 3% 0% 0% 98%
fannkuch-redux
source secs mem gz busy cpu load
C# .NET 8.40 30,848 1225 33.29 99% 100% 99% 99%
C# aot 8.40 31,128 1225 33.30 99% 99% 99% 100%
n-body
source secs mem gz busy cpu load
C# .NET 4.83 32,756 1704 4.85 0% 0% 0% 100%
C# aot 4.82 32,908 1704 5.08 0% 0% 100% 5%
spectral-norm
source secs mem gz busy cpu load
C# .NET 0.82 35,048 764 2.99 89% 96% 89% 89%
C# aot 0.82 34,720 764 3.00 96% 90% 89% 89%
reverse-complement
source secs mem gz busy cpu load
C# .NET 1.50 950,648 1310 4.29 93% 63% 93% 38%
C# aot 1.48 957,104 1310 4.20 37% 95% 93% 59%
fasta
source secs mem gz busy cpu load
C# .NET 1.21 152,684 1691 4.58 96% 97% 92% 93%
C# aot 1.15 133,136 1691 4.38 94% 98% 95% 93%
C# .NET

.NET SDK 5.0.201
Host Version: 5.0.4; Commit: f27d337295
<ServerGarbageCollection>true</ServerGarbageCollection>

C# aot

.NET SDK 5.0.201
Host Version: 5.0.4; Commit: f27d337295
<ServerGarbageCollection>true</ServerGarbageCollection>