The Computer Language
Benchmarks Game

Dart programs versus Java

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Dart 27.51 49,836 1420 27.69 1% 1% 100% 1%
Java 21.50 27,240 1489 21.52 1% 1% 100% 0%
binary-trees
source secs mem gz cpu cpu load
Dart 36.49 356,988 503 45.11 38% 43% 24% 21%
Java 11.52 643,924 889 40.54 89% 92% 85% 89%
mandelbrot
source secs mem gz cpu cpu load
Dart 20.51 111,732 901 55.94 99% 38% 99% 38%
Java 5.89 89,504 796 23.08 98% 98% 98% 99%
spectral-norm
source secs mem gz cpu cpu load
Dart 15.92 49,920 457 16.04 1% 3% 2% 100%
Java 4.29 31,428 950 16.56 97% 96% 98% 97%
pidigits
source secs mem gz cpu cpu load
Dart 11.45 67,452 594 11.53 7% 8% 28% 68%
Java 3.06 31,088 938 3.16 0% 3% 9% 92%
fasta
source secs mem gz cpu cpu load
Dart 8.59 51,984 1386 8.67 4% 2% 87% 11%
Java 2.14 36,192 2457 5.68 71% 58% 62% 77%
k-nucleotide
source secs mem gz cpu cpu load
Dart 33.37 2,075,756 2455 91.46 83% 78% 59% 55%
Java 8.02 467,004 1802 25.57 76% 98% 73% 74%
fannkuch-redux
source secs mem gz cpu cpu load
Dart 91.63 48,584 495 92.20 1% 1% 100% 1%
Java 17.74 30,048 1282 69.90 98% 98% 100% 99%
reverse-complement
source secs mem gz cpu cpu load
Dart 22.98 1,728,640 551 28.28 18% 17% 23% 68%
Java 1.11 345,308 1661 2.44 33% 58% 54% 80%
regex-redux
source secs mem gz cpu cpu load
Dart   Bad Output
Java 0.69 46,096 929 1.58 85% 67% 53% 53%
Dart

Dart VM version: 1.22.0 (Mon Feb 13 17:43:03 2017) on "linux_x64"

Java

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)