On 2/13/20, robert engels <reng...@ix.netcom.com> wrote:
> See this paper/project https://github.com/hundt98847/multi-language-bench
> <https://github.com/hundt98847/multi-language-bench> that was done by Google
> in 2011.
>
> ...
>
> Or Java is almost 2x faster than C++, and Go is nearly the same performance
> as C++.

If you're quoting that paper's numbers, or re-measuring its programs,
please also be aware of https://blog.golang.org/profiling-go-programs
which says:

"At Scala Days 2011, Robert Hundt presented a paper titled Loop
Recognition in C++/Java/Go/Scala. The paper implemented a specific
loop finding algorithm...
By using Go's profiling tools to identify and correct specific
bottlenecks, we can make the Go loop finding program run an order of
magnitude faster and use 6x less memory. (Update: Due to recent
optimizations of libstdc++ in gcc, the memory reduction is now 3.7x.)"

That blog post goes on to show a C++ program that solves the same
problem, but on Russ' hardware, is 8x faster than the original paper's
C++ program.

The 2020 JVM may very well be better than the 2011 JVM, but I don't
think this paper (even with the 2020 JVM) settles the GC (e.g. Java)
versus C++ argument.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOeFMNUsfGfkXMW_p8xCPG4y2Qb-8keUL3RW8VAOM9JveAk60A%40mail.gmail.com.

Reply via email to