On my system Go beats Java with all the tools except ab. I have always
suspected ab but can't really say why...
Everything run locally.
Java 1.7 (latest from Oracle and after warmup)
Request rate: 4360.1 req/s (0.2 ms/req)
Go go1.0.2
Request rate: 7044.9 req/s (0.1 ms/req)
Tip (version devel):
Request rate: 8424.2 req/s (0.1 ms/req)
This was taken from httperf output and may or may not be relevant but
saying that Java "wins" is clearly not the whole truth at least
The results from ab is different and Java heads it and for siege it is a tie.
The observation that the Go program don't saturate the cores is true
here at least. No matter the GOMAXPROCS setting it is fairly low on
CPU. The Java version does not do much better but clearly more cpu is
used even when the result is worse.
These little benchmarks are a fun distraction but I agree with the
general consensus that real metrics are really hard to produce and
even harder to trust.
/ Henrik
> --
>
>