x64 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 Go 6g 8g program used compared to the fastest C++ GNU g++ 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 Go 6g 8g program used compared to the fastest C++ GNU g++ program.
| Go 6g 8g used what fraction? used how many times more? | ||||
|---|---|---|---|---|
| Benchmark | Time | Memory | Code | |
| chameneos-redux | ± | 1/2 | 1/2 | |
| n-body | ± | ± | ± | |
| binary-trees | ± | ± | ± | |
| spectral-norm | 2× | ± | 1/3 | |
| fannkuch | 2× | 1/2 | 1/2 | |
| reverse-complement | 2× | 1/2 | 1/4 | |
| mandelbrot | 3× | ± | ± | |
| fasta | 3× | ± | ± | |
| regex-dna | 30× | 7× | 1/3 | |
| k-nucleotide | 41× | 8× | 1/4 | |
± 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 Go 6g 8g program are shown for comparison against measurements of the fastest C++ GNU g++ program.
| Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
|---|---|---|---|---|---|
| chameneos-redux | |||||
| Go 6g 8g | 6.43 | 6.43 | 828 | 957 | 0% 0% 0% 100% |
| C++ GNU g++ | 8.67 | 8.71 | 1,320 | 1994 | 0% 0% 0% 100% |
| n-body | |||||
| Go 6g 8g | 32.69 | 32.69 | 772 | 1310 | 0% 0% 0% 100% |
| C++ GNU g++ | 23.01 | 23.01 | 936 | 1428 | 0% 0% 0% 100% |
| binary-trees | |||||
| Go 6g 8g | 22.94 | 22.94 | 222,400 | 695 | 0% 0% 0% 100% |
| C++ GNU g++ | 15.95 | 15.95 | 296,220 | 892 | 0% 0% 0% 100% |
| spectral-norm | |||||
| Go 6g 8g | 26.32 | 26.32 | 1,568 | 413 | 0% 0% 0% 100% |
| C++ GNU g++ | 11.29 | 11.29 | 1,168 | 1278 | 1% 11% 0% 100% |
| fannkuch | |||||
| Go 6g 8g | 119.70 | 119.69 | 760 | 510 | 0% 0% 0% 100% |
| C++ GNU g++ | 51.15 | 51.15 | 1,284 | 1186 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Go 6g 8g | 2.10 | 2.10 | 160,668 | 543 | 0% 0% 1% 100% |
| C++ GNU g++ | 0.84 | 0.88 | 243,840 | 2275 | 0% 1% 0% 100% |
| mandelbrot | |||||
| Go 6g 8g | 73.44 | 73.47 | 31,536 | 700 | 0% 0% 0% 100% |
| C++ GNU g++ | 24.28 | 24.29 | 31,400 | 858 | 0% 0% 0% 100% |
| fasta | |||||
| Go 6g 8g | 7.24 | 7.24 | 768 | 1043 | 0% 0% 0% 100% |
| C++ GNU g++ | 2.26 | 2.26 | 972 | 1470 | 0% 0% 0% 100% |
| regex-dna | |||||
| Go 6g 8g | 401.65 | 401.67 | 635,924 | 624 | 0% 0% 0% 100% |
| C++ GNU g++ | 13.24 | 13.24 | 96,848 | 1759 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Go 6g 8g | 298.34 | 300.57 | 379,484 | 856 | 0% 0% 0% 100% |
| C++ GNU g++ | 7.28 | 7.30 | 50,508 | 3416 | 0% 0% 0% 100% |
| pidigits | |||||
| Go 6g 8g | |||||
| C++ GNU g++ | 0.09 | 0.09 | ? | 682 | 0% 0% 0% 100% |
Remember - those are just the fastest Go 6g 8g and C++ GNU g++ programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Go 6g 8g.
Maybe one of those other Go 6g 8g programs is fastest on a different OS/machine.
Remember - those are just the fastest Go 6g 8g and C++ GNU g++ 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.
tip release.2010-01-05 4530:3887d4d81bca
release.2010-01-05 4530:3887d4d81bca
Home Page: Go - a systems programming language
Download: Installing Go