The Computer Language
Benchmarks Game

Dart programs versus Java

by benchmark task performance

n-body
source secs KB gz cpu cpu load
Dart 27.49 50,676 1420 27.66 100% 1% 1% 1%
Java 22.53 28,212 1430 22.54 100% 7% 1% 1%
mandelbrot
source secs KB gz cpu cpu load
Dart 20.48 101,328 901 55.86 99% 99% 39% 38%
Java 7.14 88,236 796 27.93 97% 98% 98% 99%
binary-trees
source secs KB gz cpu cpu load
Dart 37.96 357,096 503 50.96 70% 29% 18% 18%
Java 11.51 622,328 889 40.10 86% 86% 92% 87%
spectral-norm
source secs KB gz cpu cpu load
Dart 15.91 50,864 457 15.99 99% 1% 1% 1%
Java 4.26 32,244 950 16.41 96% 98% 95% 97%
fasta
source secs KB gz cpu cpu load
Dart 8.80 53,132 1386 8.88 4% 1% 2% 98%
Java 2.20 37,072 2457 6.37 81% 68% 72% 72%
fannkuch-redux
source secs KB gz cpu cpu load
Dart 91.67 47,912 495 92.20 60% 41% 1% 1%
Java 17.34 30,084 1282 68.20 97% 98% 99% 99%
regex-dna
source secs KB gz cpu cpu load
Dart 27.59 355,236 648 29.62 54% 8% 42% 6%
Java 4.56 667,820 1085 12.16 60% 66% 56% 87%
reverse-complement
source secs KB gz cpu cpu load
Dart 20.87 1,728,504 551 23.54 43% 10% 34% 28%
Java 1.17 345,940 1661 2.42 41% 43% 57% 72%
k-nucleotide
source secs KB gz cpu cpu load
Dart 306.05 443,364 595 309.10 12% 34% 6% 51%
Java 8.10 469,624 1802 25.75 97% 77% 76% 71%
pidigits
source secs KB gz cpu cpu load
Dart   Failed
Java 0.26 788 938 0.28 16% 37% 8% 54%
Dart

Dart VM version: 1.21.0 (Wed Dec 7 07:16:36 2016) on "linux_x64"

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)