On Jun 10, 2016, at 12:29 AM, Matt Hornsby <[email protected]> wrote:
> 
> But when i hit it with wrk, with 100 open connections from the mac, i get:

1) Phoenix cannot measure the time that it takes a client to establish a 
connection, while of course any benchmark from outside will be accounting for 
that. However I would expect the discrepancy to be more like 2ms.

2) wrk can be slower than Elixir/Phoenix ;-) (I suspect that it's got some poor 
code around the threading, but anyway when I benchmarked with it I established 
that latencies were much more strongly correlated to number of threads per wrk 
node than they were with number of threads to the phoenix node--of course that 
requires more than 2 machines to test, and is a real pain. But I would say that 
I don't know why people like wrk so much, I found it to be very weak. Anyway, I 
can assure you that with 100 threads you absolutely ARE experiencing some delay 
in wrk itself.)

3) When you use exrm, don't forget MIX_ENV when building the release, otherwise 
you just bundle the dev build, if you've previously compiled for prod.

-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/D72411C7-EAFF-4188-BF97-6C52B0E2954D%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to