On Fri, Feb 08, 2019 at 10:12:36PM +0100, Valentin Vidic wrote:
> Yes, it is quite strange. I don't see it hitting any limits but
> the request rate goes down.

Seems it could be GC related since turning off GC gives 5x request
rate with 20 gorutines:

$ ./gb -duration 15s -parallel 5 http://nginx
Running 5 parallel clients for 15s...
Requests: 216070
Rate: 14404.7/s
Bytes: 132234840
Code[200]: 216070

$ GOGC=off ./gb -duration 15s -parallel 5 http://nginx
Running 5 parallel clients for 15s...
Requests: 280430
Rate: 18695.3/s
Bytes: 171623160
Code[200]: 280430

$ ./gb -duration 15s -parallel 20 http://nginx
Running 20 parallel clients for 15s...
Requests: 153903
Rate: 10260.2/s
Bytes: 94188636
Code[200]: 153903

$ GOGC=off ./gb -duration 15s -parallel 20 http://nginx
Running 20 parallel clients for 15s...
Requests: 776554
Rate: 51770.3/s
Bytes: 475251048
Code[200]: 776554

-- 
Valentin

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to