The Computer Language
Benchmarks Game

C# Mono programs versus Java

by benchmark task performance

n-body
secs KB gz cpu cpu load
C# Mono 21.82 38,400 1305 21.81 0% 100% 0% 1%
Java 22.66 30,036 1424 22.68 97% 3% 0% 1%
fasta-redux
secs KB gz cpu cpu load
C# Mono 2.82 40,540 1438 2.82 99% 1% 1% 0%
Java 2.59 29,940 1443 2.65 1% 76% 1% 25%
reverse-complement
secs KB gz cpu cpu load
C# Mono 1.56 199,052 1099 1.56 3% 3% 1% 99%
Java 1.27 315,296 1661 2.68 41% 48% 34% 92%
fannkuch-redux
secs KB gz cpu cpu load
C# Mono 22.12 41,368 1096 86.55 97% 99% 97% 99%
Java 17.41 33,032 1282 68.64 98% 98% 99% 99%
mandelbrot
secs KB gz cpu cpu load
C# Mono 8.12 80,680 872 31.58 100% 97% 97% 97%
Java 6.27 88,992 796 24.24 96% 97% 97% 98%
spectral-norm
secs KB gz cpu cpu load
C# Mono 5.73 42,276 1063 22.04 96% 96% 98% 96%
Java 4.28 32,696 950 16.53 96% 96% 96% 99%
k-nucleotide
secs KB gz cpu cpu load
C# Mono 19.39 516,420 1822 55.33 87% 63% 65% 72%
Java 11.29 1,118,288 1844 38.66 83% 97% 82% 82%
fasta
secs KB gz cpu cpu load
C# Mono 4.19 87,892 1505 10.50 57% 78% 60% 57%
Java 2.19 39,368 2457 5.60 58% 72% 66% 61%
regex-dna
secs KB gz cpu cpu load
C# Mono 27.05 364,456 594 78.50 80% 84% 62% 66%
Java 8.24 761,724 929 24.70 68% 73% 77% 83%
pidigits
secs KB gz cpu cpu load
C# Mono 11.24 41,136 1026 11.23 0% 4% 97% 1%
Java 3.12 33,528 938 3.22 3% 2% 80% 21%
binary-trees
secs KB gz cpu cpu load
C# Mono 56.84 456,044 650 59.91 6% 0% 100% 1%
Java 13.33 519,948 603 18.61 38% 24% 17% 62%
C# Mono

Mono JIT compiler version 4.3.0 (master/906ff55 Sun Aug 9 22:49:27 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) 64-Bit Server VM (build 25.45-b02, mixed mode)