1 : Are the Dart programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Dart program used compared to the fastest Java program.

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Dart programs faster? Approximately.

Each table row shows, for one named benchmark, how much the fastest Dart program used compared to the fastest Java program.

(Memory use is only compared for tasks that require memory to be allocated.)

 Dart used what fraction? used how many times more? 
Benchmark Time Memory Code
 spectral-norm± 1/2
 fannkuch-redux± 1/3
 binary-trees±1/2±
 n-body± ±
 fasta 1/2
 mandelbrot ±
 fasta-redux ±
 k-nucleotide1/41/3
 pidigits 1/3
 reverse-complement11×±
 regex-dna763×±1/2
 Dart used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±20×763×

± read the measurements and then read the program source code.

 3 : Are the Dart programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

For each named benchmark, measurements of the fastest Dart program are shown for comparison against measurements of the fastest Java program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 spectral-norm 
Dart15.9715.9815,932457  0% 1% 1% 100%
Java16.3116.3120,440950  1% 1% 0% 100%
 fannkuch-redux 
Dart77.6677.6814,788495  0% 1% 1% 100%
Java67.4867.5021,4481282  1% 1% 0% 100%
 binary-trees 
Dart23.0723.09280,428503  0% 1% 1% 100%
Java16.4116.44521,176584  0% 1% 1% 100%
 n-body 
Dart34.6834.6913,0001274  0% 1% 0% 100%
Java24.5024.5219,6361424  1% 0% 1% 100%
 fasta 
Dart8.668.6719,2121386  1% 1% 1% 100%
Java4.934.9327,6682457  0% 1% 0% 100%
 mandelbrot 
Dart55.3855.3960,820901  0% 1% 1% 100%
Java26.9626.9859,240796  1% 0% 0% 100%
 fasta-redux 
Dart4.874.8843,5801464  1% 0% 1% 100%
Java1.931.9321,6681443  3% 1% 1% 100%
 k-nucleotide 
Dart253.32253.46319,512595  0% 1% 1% 100%
Java31.1831.211,189,8121844  1% 1% 0% 100%
 pidigits 
Dart38.6638.6921,340321  0% 2% 1% 100%
Java4.144.1421,844938  1% 0% 1% 100%
 reverse-complement 
Dart18.4218.43980,108551  0% 1% 1% 100%
Java1.691.69519,612745  0% 1% 0% 100%
 regex-dna 
Dart2,148.282,150.0679,200648  0% 1% 1% 100%
Java2.822.8275,7081377  1% 1% 0% 100%

 4 : Are there other Dart programs for these benchmarks?

Remember - those are just the fastest Dart and Java programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Dart.

Maybe one of those other Dart programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Dart and Java programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Dart : structured web app engineering 

Dart VM version: 1.8.0 (Thu Nov 27 01:02:14 2014) on "linux_ia32"

Home Page: Dart brings structure to web app engineering

Building an optimizing compiler for Dart

Benchmarking the Dart VM

Revised BSD license

  Home   Conclusions   License   Play