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 52,272 1420 27.64 1% 1% 0% 100%
Java 22.56 35,208 1424 22.65 99% 1% 1% 1%
regex-redux
source secs mem gz cpu cpu load
Dart 29.93 460,276 656 32.08 27% 7% 39% 37%
Java 10.38 634,548 929 29.48 70% 64% 69% 82%
mandelbrot
source secs mem gz cpu cpu load
Dart 20.54 101,064 901 56.00 99% 39% 99% 38%
Java 6.08 77,056 796 23.61 97% 97% 99% 97%
fasta
source secs mem gz cpu cpu load
Dart 8.11 54,704 1386 8.20 1% 2% 98% 2%
Java 2.32 46,816 2457 6.37 61% 60% 96% 60%
pidigits
source secs mem gz cpu cpu load
Dart 11.62 69,416 594 11.77 17% 8% 94% 12%
Java 3.12 37,444 938 3.30 2% 5% 98% 4%
spectral-norm
source secs mem gz cpu cpu load
Dart 15.92 51,380 457 16.04 1% 100% 1% 1%
Java 4.25 36,364 950 16.30 97% 96% 95% 97%
k-nucleotide
source secs mem gz cpu cpu load
Dart 32.73 2,115,796 2455 90.04 63% 66% 72% 77%
Java 8.38 375,988 1802 26.25 73% 97% 70% 74%
binary-trees
source secs mem gz cpu cpu load
Dart 37.72 555,108 457 48.13 25% 22% 56% 26%
Java 8.58 966,808 835 28.98 86% 84% 90% 81%
fannkuch-redux
source secs mem gz cpu cpu load
Dart 91.24 50,668 495 91.60 36% 1% 0% 65%
Java 15.09 34,764 1282 59.26 99% 98% 98% 100%
reverse-complement
source secs mem gz cpu cpu load
Dart 23.60 1,717,368 551 29.00 25% 22% 24% 54%
Java 1.13 199,672 2124 2.76 48% 74% 70% 54%
Dart

Dart VM version: 1.24.2 (Thu Jun 22 08:43:26 2017) on "linux_x64"

Java

java 9
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)