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
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