Thanks Amnon for the insight, which confirmed my guessing when
answering the following question against ab in my blog:

> I'm unclear how to interpret the results from ab. From the top chunk of the 
> results (time taken for tests, requests per second, time per request, etc.), 
> it would appear that Go is about 33% faster than Perl. But the bit at the 
> bottom about "percentage of the requests served..." seems wildly incongruent 
> and makes it look like Perl is orders of magnitude faster. It doesn't add up. 
> It also doesn't logically add up for Perl to be faster than Go (which, I get, 
> is your point). It makes me suspicious of ab's results.

On Tue, Jun 11, 2019 at 7:44 AM Amnon Baron Cohen <amno...@gmail.com> wrote:
>
> For those interested, you can find some web benchmarks here 
> https://www.techempower.com/benchmarks/
>
> For the trivial http ping type server, you would expect latency to be 
> dominated by system time.
> strace'ing your code will give you an idea what it is doing. Go allows you to 
> have multiple goroutines
> serving responses. This does carry a certain overhead as any network reads 
> will have to go through
> netpoll to demux and schedule goroutines when the packets they are waiting 
> for arrives.
> So we should not be too dismayed if Go code shows higher latencies than a 
> single treaded script.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "golang-nuts" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/golang-nuts/iH2Ck_hpCpI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d091d5a4-afdc-4538-b86c-fe6fa6b99ccf%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAMmz1Of3AvAK05PbJ%2B3Ri_QSaEfFqPBE3b%3Dfk-U_xXRn7QJXpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to