On Sat, 8 Jun 2019 09:56:05 -0400 Tong Sun <suntong...@gmail.com> wrote:
> Agree that it was not an apples to apples comparison. So please check > out my 2nd blog: > > https://dev.to/suntong/simple-web-server-in-perl-and-go-revisit-5d82 > Trying to make sense of your measures... ...Still apples to oranges due to testing on a loopback interface. Both ab and perl are wired up to the kernel short paths so in fact their packets were exchanged via a simple ownership change (of the block of memory). AFAIK bytes from packets destined to go server were copied as go does not link to glibc for net support (it does it only for nslookup services). Try to benchmark **over real wire**. Also use more tools: https://github.com/httperf/httperf, even old Siege. Read https://www.nginx.com/blog/testing-the-performance-of-nginx-and-nginx-plus-web-servers/ how their tests were done. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >> OHIR-RIPE -- 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/20190608210043.59b940fd%40zuzia. For more options, visit https://groups.google.com/d/optout.