The Computer Language
Benchmarks Game

C# Mono programs versus Java

by benchmark task performance

n-body
source secs KB gz cpu cpu load
C# Mono 23.36 38,684 1410 23.35 0% 100% 1% 0%
Java 24.31 24,156 1424 24.34 1% 1% 1% 100%
pidigits
source secs KB gz cpu cpu load
C# Mono 4.06 39,352 1026 4.06 1% 0% 0% 100%
Java 4.07 26,324 938 4.17 3% 3% 4% 96%
mandelbrot
source secs KB gz cpu cpu load
C# Mono 7.93 74,496 986 30.73 96% 99% 96% 96%
Java 7.12 87,832 796 27.79 97% 99% 97% 97%
reverse-complement
source secs KB gz cpu cpu load
C# Mono 1.70 195,304 1099 1.70 1% 4% 1% 99%
Java 1.44 308,060 1661 2.91 47% 31% 85% 43%
fasta-redux
source secs KB gz cpu cpu load
C# Mono 2.34 38,792 1438 2.34 0% 2% 99% 0%
Java 1.93 24,588 1443 1.99 98% 2% 4% 3%
fannkuch-redux
source secs KB gz cpu cpu load
C# Mono 30.40 38,128 1096 119.08 97% 99% 97% 99%
Java 17.13 25,804 1282 67.56 100% 98% 99% 98%
spectral-norm
source secs KB gz cpu cpu load
C# Mono 8.07 38,296 1063 31.20 97% 97% 96% 97%
Java 4.30 26,476 950 16.53 99% 96% 95% 96%
fasta
source secs KB gz cpu cpu load
C# Mono 4.17 83,264 1505 10.73 59% 77% 63% 61%
Java 1.82 31,600 2457 5.90 80% 83% 80% 82%
k-nucleotide
source secs KB gz cpu cpu load
C# Mono 24.56 505,208 1822 71.77 68% 65% 65% 95%
Java 10.61 1,199,184 1844 35.27 79% 78% 90% 88%
regex-dna
source secs KB gz cpu cpu load
C# Mono 30.15 436,508 594 85.26 61% 60% 64% 99%
Java 8.80 729,244 929 25.79 77% 80% 72% 66%
binary-trees
source secs KB gz cpu cpu load
C# Mono 20.29 116,456 654 21.33 20% 6% 39% 41%
Java 5.88 513,180 926 19.64 95% 79% 87% 76%
C# Mono

Mono JIT compiler version 4.3.0 (master/42456cd Mon Aug 10 20:27:36 PDT 2015)
LLVM: yes(3.6.0svn-mono-master/a92ada2)
GC: sgen

Java

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) Server VM (build 25.45-b02, mixed mode)