[go-nuts] The performance comparation of Golang and Java

2019-01-24 Thread Topget
I have tested several simple functions with Golang and Java. To my surprise, Java sometimes is faster than Golang(especially in recursive function and some function in standard library such as math/rand.Rand). I wonder why. Here is some code I used for test and the result. Golang code: package

[go-nuts] Re: The performance comparation of Golang and Java

2019-01-28 Thread Topget
It will be better if someone could give me the example(s) to show the advantage of Golang (vs Java). Thanks. 在 2019年1月25日星期五 UTC+8上午10:21:14,Topget写道: > > I have tested several simple functions with Golang and Java. To my > surprise, Java sometimes is faster than Golang(especially in