The Computer Language
Benchmarks Game

Dart versus Java fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

regex-redux
source secs mem gz busy cpu load
Dart 4.95 881,344 1057 7.73 21% 63% 28% 44%
Java 5.70 656,328 929 18.25 89% 76% 79% 75%
n-body
source secs mem gz busy cpu load
Dart 9.44 124,912 1408 9.78 98% 1% 2% 3%
Java 6.75 35,200 1489 6.83 0% 0% 100% 1%
mandelbrot
source secs mem gz busy cpu load
Dart 11.94 233,372 907 32.15 37% 98% 37% 97%
Java 4.11 68,204 796 16.20 98% 99% 98% 99%
spectral-norm
source secs mem gz busy cpu load
Dart 5.59 129,020 489 5.74 1% 3% 2% 96%
Java 1.68 38,348 950 6.43 96% 96% 96% 95%
binary-trees
source secs mem gz busy cpu load
Dart 9.71 677,344 1386 31.43 79% 85% 81% 79%
Java 2.50 2,487,096 835 7.90 88% 75% 75% 79%
pidigits
source secs mem gz busy cpu load
Dart 3.37 148,780 500 3.56 11% 33% 23% 39%
Java 0.79 35,568 764 0.84 99% 3% 3% 1%
fasta
source secs mem gz busy cpu load
Dart 5.26 159,132 1402 5.44 3% 1% 3% 97%
Java 1.20 44,124 2543 3.61 79% 86% 69% 65%
k-nucleotide
source secs mem gz busy cpu load
Dart 23.50 527,696 1520 64.17 62% 70% 63% 78%
Java 5.00 408,040 1812 16.36 74% 81% 86% 86%
fannkuch-redux
source secs mem gz busy cpu load
Dart 57.09 121,204 499 57.52 0% 100% 0% 0%
Java 11.00 34,104 1282 43.42 99% 98% 98% 99%
reverse-complement
source secs mem gz busy cpu load
Dart 40.94 6,597,148 561 48.29 48% 11% 10% 49%
Java 1.54 702,332 2183 3.55 78% 46% 49% 57%
Dart

Dart SDK version: 2.12.0 (stable) (Thu Feb 25 19:50:53 2021 +0100) on "linux_x64"

Java

openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)