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 21.84 37,216 1305 21.83 100% 0% 0% 1%
Java 22.53 28,212 1430 22.54 100% 7% 1% 1%
fasta-redux
source secs KB gz cpu cpu load
C# Mono 2.84 38,852 1438 2.83 0% 4% 100% 3%
Java 2.53 31,648 1443 2.59 3% 98% 1% 3%
mandelbrot
source secs KB gz cpu cpu load
C# Mono 8.13 80,696 872 31.59 98% 98% 97% 96%
Java 7.14 88,236 796 27.93 97% 98% 98% 99%
reverse-complement
source secs KB gz cpu cpu load
C# Mono 1.56 197,160 1099 1.56 3% 98% 4% 2%
Java 1.17 345,940 1661 2.42 41% 43% 57% 72%
spectral-norm
source secs KB gz cpu cpu load
C# Mono 5.77 39,324 1063 22.07 96% 96% 95% 97%
Java 4.26 32,244 950 16.41 96% 98% 95% 97%
k-nucleotide
source secs KB gz cpu cpu load
C# Mono 19.82 504,908 1822 56.76 64% 64% 65% 96%
Java 12.87 462,488 1602 44.44 98% 81% 85% 82%
fannkuch-redux
source secs KB gz cpu cpu load
C# Mono 22.14 37,808 1096 86.52 97% 98% 97% 99%
Java 13.65 31,996 1282 53.64 99% 98% 99% 98%
fasta
source secs KB gz cpu cpu load
C# Mono 4.20 84,108 1505 10.36 78% 56% 54% 63%
Java 2.20 37,072 2457 6.37 81% 68% 72% 72%
regex-dna
source secs KB gz cpu cpu load
C# Mono 26.48 472,060 898 82.46 81% 78% 75% 78%
Java 8.23 753,008 929 24.56 71% 78% 81% 70%
pidigits
source secs KB gz cpu cpu load
C# Mono 11.22 39,016 1026 11.22 1% 1% 1% 100%
Java 3.11 33,364 938 3.20 99% 2% 2% 2%
binary-trees
source secs KB gz cpu cpu load
C# Mono 53.86 454,112 650 57.51 100% 7% 1% 0%
Java 11.51 622,328 889 40.10 86% 86% 92% 87%
C# Mono

Mono JIT compiler version 4.5.1 (master/3e844dd Fri May 6 17:25:40 PDT 2016)
LLVM: yes(3.6.0svn-mono-master/9f79399)
GC: sgen

Java

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)