Ubuntu : Intel® Q6600® one core |
This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each chart bar shows, for one unidentified benchmark, how much the fastest JavaScript V8 program used compared to the fastest C GNU gcc program.
This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.
Each table row shows, for one named benchmark, how much the fastest JavaScript V8 program used compared to the fastest C GNU gcc program.
| JavaScript V8 used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| regex-dna | 1/4 | 3× | 1/4 | |
| k-nucleotide | 7× | ± | 1/6 | |
| binary-trees | 8× | 2× | 1/2 | |
| n-body | 9× | 49× | ± | |
| fannkuch | 15× | 15× | 1/2 | |
| spectral-norm | 17× | 1/17 | 1/2 | |
| fasta | 23× | 60× | ± | |
| reverse-complement | 29× | 3× | 1/2 | |
| pidigits | 87× | 21× | ± | |
± read the measurements and then read the program source code.
This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.
For each named benchmark, measurements of the fastest JavaScript V8 program are shown for comparison against measurements of the fastest C GNU gcc program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| regex-dna | |||||
| JavaScript V8 | 5.63 | 5.63 | 211,488 | 373 | 0% 0% 0% 100% |
| C GNU gcc | 25.09 | 25.09 | 84,464 | 1525 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| JavaScript V8 | 355.20 | 355.19 | 332,880 | 390 | 0% 1% 0% 100% |
| C GNU gcc | 48.44 | 48.45 | 267,532 | 2519 | 0% 0% 0% 100% |
| binary-trees | |||||
| JavaScript V8 | 95.66 | 95.67 | 188,024 | 467 | 0% 0% 0% 100% |
| C GNU gcc | 12.25 | 12.25 | 99,532 | 850 | 0% 0% 1% 100% |
| n-body | |||||
| JavaScript V8 | 200.11 | 200.10 | 20,312 | 1287 | 0% 0% 0% 100% |
| C GNU gcc | 23.52 | 23.53 | 412 | 1429 | 0% 0% 0% 100% |
| fannkuch | |||||
| JavaScript V8 | 707.22 | 707.19 | 8,088 | 488 | 0% 0% 0% 100% |
| C GNU gcc | 48.44 | 48.48 | 556 | 937 | 0% 0% 0% 100% |
| spectral-norm | |||||
| JavaScript V8 | 81.15 | 81.14 | 13,880 | 311 | 0% 0% 0% 100% |
| C GNU gcc | 4.76 | 4.77 | 236,980 | 669 | 0% 0% 0% 100% |
| fasta | |||||
| JavaScript V8 | 40.08 | 40.08 | 22,488 | 923 | 0% 0% 0% 100% |
| C GNU gcc | 1.75 | 1.75 | 376 | 1321 | 1% 1% 0% 100% |
| reverse-complement | |||||
| JavaScript V8 | 39.40 | 39.40 | 317,988 | 456 | 0% 0% 0% 100% |
| C GNU gcc | 1.37 | 1.37 | 125,196 | 722 | 0% 0% 1% 99% |
| pidigits | |||||
| JavaScript V8 | 235.04 | 235.04 | 21,172 | 609 | 0% 0% 0% 100% |
| C GNU gcc | 2.72 | 2.71 | 1,012 | 541 | 0% 4% 0% 100% |
| mandelbrot | |||||
| JavaScript V8 | |||||
| C GNU gcc | 0.10 | 0.11 | ? | 879 | 0% 0% 0% 67% |
| chameneos-redux | |||||
Remember - those are just the fastest JavaScript V8 and C GNU gcc programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for JavaScript V8.
Maybe one of those other JavaScript V8 programs is fastest on a different OS/machine.
Remember - those are just the fastest JavaScript V8 and C GNU gcc 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.
V8 version 1.3.11.1 [console: dumb]
Home Page: V8 JavaScript Engine