The Computer Language
Benchmarks Game

Dart programs versus Java

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Dart 27.50 48,620 1420 27.69 0% 1% 1% 100%
Java 21.54 27,092 1489 21.56 1% 1% 100% 1%
regex-redux
source secs mem gz cpu cpu load
Dart 31.14 469,064 656 33.15 6% 57% 1% 44%
Java 12.31 902,528 929 38.75 73% 76% 86% 81%
mandelbrot
source secs mem gz cpu cpu load
Dart 20.51 98,908 901 55.88 99% 39% 38% 99%
Java 7.10 90,588 796 27.92 99% 99% 98% 98%
spectral-norm
source secs mem gz cpu cpu load
Dart 15.91 48,096 457 16.00 99% 1% 2% 0%
Java 4.29 29,884 950 16.56 96% 97% 99% 95%
binary-trees
source secs mem gz cpu cpu load
Dart 41.89 484,776 457 55.98 25% 61% 32% 17%
Java 11.26 593,156 835 39.02 85% 88% 90% 88%
fasta
source secs mem gz cpu cpu load
Dart 8.60 51,496 1386 8.66 67% 20% 1% 14%
Java 2.13 36,036 2457 5.66 94% 58% 59% 60%
k-nucleotide
source secs mem gz cpu cpu load
Dart 33.38 2,045,004 2455 90.84 70% 61% 58% 86%
Java 7.93 465,372 1802 25.11 75% 75% 75% 93%
fannkuch-redux
source secs mem gz cpu cpu load
Dart 91.58 46,956 495 92.14 1% 100% 1% 0%
Java 13.74 30,368 1282 54.12 100% 98% 98% 99%
reverse-complement
source secs mem gz cpu cpu load
Dart 23.84 1,729,012 551 29.14 34% 59% 21% 11%
Java 1.10 345,352 1661 2.40 33% 82% 53% 54%
pidigits
source secs mem gz cpu cpu load
Dart   Failed
Java 0.23 784 938 0.24 48% 57% 9% 9%
Dart

Dart VM version: 1.22.1 (Tue Feb 21 14:27:26 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)