5 ms·
Even though they are somewhat contrived benchmarks, I still like to refer to the "Language Shootout" to get some idea of the quality of code that the Go compile
by melling 14y ago
Even though they are somewhat contrived benchmarks, I still like to refer to the "Language Shootout" to get some idea of the quality of code that the Go compiler is producing. I would expect the numbers should be better than Scala, for example.
http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?test=all&lang=scala&lang2=go http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...
- im_dario 14y agoJust a note: Language Shootout is still Go 1.0.3. We are going to wait to see the new benchmarks.
- gillianseed 14y agoYes I too find the Language Shootout a very interesting benchmark (while knowing full and well it's shortcomings) and it shows (imo) that Go has alot of work to do in the optimization department, something one can confirm by compiling cpu intensive go code using gccgo which will often yield great performance improvements. Not surprising though, as GCC's optimization backend is very strong and has been developed for a long time, meanwhile Go's compiler toolchain is very young. As for Scala vs Go, Scala compiles into Java bytecode and then makes use of Java's excellent and very mature JIT compiler so I'm not surprised Go loses out to it for the same reasons mentioned above. Also note that the Go version used on the 'Language Shootout' is the 1.03 version, not the upcoming 1.1 version, it will be interesting to see what improvements in performance have been made. AFAIK the 32-bit version of Go (which is what you compared with in your link) has not been given as much love in the optimization department as the 64-bit version, which I guess would do slightly better atleast.
- igouy 14y ago>>while knowing full and well it's shortcomings<< Without knowing it's name :-)
- gillianseed 14y agoheh, well it was called the 'computer language shootout' back in the day and that's the name that has stuck with me.
- igouy 14y agoBack in the day, that old project wasn't on quad-core and wasn't on Ubuntu -- and we should wonder whether your understanding of what's shown is also 6 years out-of-date ;-)
- gillianseed 14y agoeven if I google 'language shootout' the top link is the (now) correct 'Computer Language Benchmarks Game' and what is shown there is not 6 years old. Is there a point to you continuing to spin on this???
- igouy 14y agoGiven that the banner shown on every web-page changed, do you think there might be other changes which you haven't noticed?
- gillianseed 14y agoLike what? I come there for the benchmark results and for looking at the source code versions presented for the languages I'm interested in. The banner is of very little concern to me, which is why it hadn't registered with me.
- mturmon 14y ago@igouy: you have now made three comments without any substance, but which question the expertise of the original commenter on the basis of a small issue of nomenclature. If you have something specific to say, say it.
- igouy 14y agoWhere should we look for the "Language Shootout"? The link you provided doesn't point to anything called that.
- melling 14y agoGoogle it and see what you get. I typed "language shootout debian" to find the result. I guess Google still remembers its old name.
- igouy 14y agoYou are nearly 6 years out-of-date. (Google "Sun Java" and see what you get, really.)
- melling 14y agoSun was purchased by Oracle for $8 billion dollars. It was big news. The Language Shootout changing its name didn't register. It's simply not that important. I understand now that the name has been change, but in a year when I feel like Google'ing it again, I can promise how I'm going to search for it, or refer to it. On another note, your threads about the name change are adding little value to the conversation. Perhaps the time could be better spent? You are sort of wasting people's time. Next time, maybe simply say that the "Language Shootout" has been changed to the "Benchmark Game?"
- trailfox 14y ago> I would expect the numbers should be better than Scala Why would you expect that? The JVM has years worth of advanced optimizations.
- voidlogic 14y ago"I would expect the numbers should be better than Scala, for example" Maybe once 1.1 is out and the language game switches to it, that will be the case (the benchmark is using the current stable release of Go 1.0.3). Also, I assume you are talking about execution time, Go destroys Scala in your linked comparison in terms of memory usage.
- igouy 14y agoPlease don't generalize from the memory use of those programs http://programmers.stackexchange.com/a/189552 http://programmers.stackexchange.com/a/189552
- voidlogic 14y agoInteresting. It is pretty amazing and unfortunate after all these years (18?) Sun/Oracle hasn't made the default JVM memory allocation more adaptive/intelligent. Could the JVM -Xms option be used to try to mitigate this defect? One note, Scala uses more memory than Java does, so it appears not all of this usage can be blamed on the JVM itself: http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?test=all&lang=scala&lang2=java http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...
- igouy 14y agoPerhaps it is intelligent for the kind-of applications the JVM is designed for (rather than for tiny tiny toy programs).