/mobile Handheld Friendly website
Ubuntu : Intel® Q6600® one core |
Each chart bar shows, for one unidentified benchmark, how much the fastest Dart program used compared to the fastest JavaScript V8 program.
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.
Each table row shows, for one named benchmark, how much the fastest Dart program used compared to the fastest JavaScript V8 program.
| Dart used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| fasta | 1/2 | 38× | 2× | |
| fannkuch-redux | ± | ± | ± | |
| binary-trees | ± | 1/2 | ± | |
| spectral-norm | ± | 5× | ± | |
| n-body | 2× | 7× | ± | |
| reverse-complement | 4× | 6× | ± | |
| regex-dna | 5,456× | 4× | 2× | |
| Dart used what fraction? used how many times more? | |||||||
|---|---|---|---|---|---|---|---|
| Time-used | |- | |--- | 25% | median | 75% | ---| | -| |
| (Elapsed secs) | 1/2 | 1/2 | ± | ± | 3× | 6× | 5,456× |
± read the measurements and then read the program source code.
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 JavaScript V8 program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| fasta | |||||
| Dart | 9.85 | 9.85 | 288,768 | 1421 | 0% 0% 0% 100% |
| JavaScript V8 | 19.42 | 19.43 | 7,548 | 791 | 0% 0% 0% 100% |
| fannkuch-redux | |||||
| Dart | 78.75 | 78.77 | 6,264 | 538 | 0% 0% 0% 100% |
| JavaScript V8 | 73.30 | 73.33 | 5,288 | 539 | 0% 0% 0% 100% |
| binary-trees | |||||
| Dart | 42.64 | 42.69 | 153,364 | 543 | 0% 0% 0% 100% |
| JavaScript V8 | 35.01 | 35.07 | 361,480 | 467 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Dart | 19.71 | 19.72 | 38,904 | 477 | 0% 0% 0% 100% |
| JavaScript V8 | 15.70 | 15.71 | 7,220 | 328 | 0% 1% 1% 100% |
| n-body | |||||
| Dart | 93.21 | 93.33 | 38,840 | 1297 | 0% 0% 0% 100% |
| JavaScript V8 | 42.83 | 42.85 | 5,736 | 1527 | 0% 1% 0% 100% |
| reverse-complement | |||||
| Dart | 51.52 | 51.57 | 1,074,496 | 555 | 1% 1% 1% 100% |
| JavaScript V8 | 13.11 | 13.12 | 193,164 | 498 | 0% 0% 0% 100% |
| regex-dna | |||||
| Dart | 2,283.04 | 2,286.23 | 96,952 | 632 | 0% 0% 0% 100% |
| JavaScript V8 | 0.40 | 0.42 | 27,480 | 373 | 0% 0% 5% 100% |
| k-nucleotide | |||||
| JavaScript V8 | 3.57 | 3.59 | 29,224 | 451 | 0% 1% 1% 100% |
| pidigits | |||||
| Dart | 1.15 | 1.15 | 38,936 | 359 | 0% 0% 2% 100% |
| mandelbrot | |||||
| Dart | 0.68 | 0.69 | 29,220 | 809 | 0% 0% 0% 100% |
| JavaScript V8 | |||||
| fasta-redux | |||||
Remember - those are just the fastest Dart and JavaScript V8 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.
Remember - those are just the fastest Dart and JavaScript V8 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 VM version: 0.4.7.1_r21537 (Tue Apr 16 01:34:29 2013)
Home Page: Dart brings structure to web app engineering