Re: AW: AW: AW: RE: slow https performance compared to http

2016-11-14 Thread adrhc
Lukas Tribus Wrote: --- > > 4 threads and 4 CPU (both for apache and nginx) with 100% CPU load > on test > > So, what's the answer now about the http/https (4600/550) ratio for > the > > specific case I presented? > > It should perform the same a

AW: AW: AW: RE: slow https performance compared to http

2016-11-14 Thread Lukas Tribus
> 4 threads and 4 CPU (both for apache and nginx) with 100% CPU load on test > So, what's the answer now about the http/https (4600/550) ratio for the > specific case I presented? It should perform the same as Apache in this case. ___ nginx mailing list

Re: AW: AW: RE: slow https performance compared to http

2016-11-14 Thread adrhc
Lukas Tribus Wrote: --- > That depends: how many nginx workers do you have compared to > how many apache threads and how does your per-core CPU load > look like when benchmarking? > ___ > nginx mailing l

AW: AW: RE: slow https performance compared to http

2016-11-14 Thread Lukas Tribus
> I agree but I think that separate/different simultaneous users won't use a > common connection so for this very specific scenario keep-alive won't > matter. Of course for every individual user keep-alive will matter but this > aspect for the moment I won't to ignore in testing. It does matter, a

Re: AW: RE: slow https performance compared to http

2016-11-14 Thread adrhc
Lukas Tribus Wrote: --- > > I'll do it but I guess the test will no longer be so relevant > because I want > > to simulate different users. > > Real user/browser DO keep-alive. ... I agree but I think that separate/different simultaneous users

RE: AW: RE: slow https performance compared to http

2016-11-13 Thread Reinis Rozitis
> ab does not support TLS tickets (you can verify this with wireshark), so even > if > you do enable HTTP keepalive, the full TLS handshake has to be performed for > each request. > > it's a poor tool to measure total potential throughout of HTTPS servers. Now that you mention it I kind of remem

Re: AW: RE: slow https performance compared to http

2016-11-13 Thread Robert Paprocki
> Enabling keepalive on ab is one of the things you can do. I don't know > ab, so not sure if there is a better way. I also do not know if ab supports > SSL session caching or TLS tickets, which you would have to keep in > mind when benchmarking. ab does not support TLS tickets (you can verify th

AW: RE: slow https performance compared to http

2016-11-13 Thread Lukas Tribus
> I'll do it but I guess the test will no longer be so relevant because I want > to simulate different users. Real user/browser DO keep-alive. Sendings thousands of requests per second in dedicated TLS session is not what you would see in real life from real users. > Anyway, the question is in

Re: RE: slow https performance compared to http

2016-11-13 Thread gigihc11
Just to help those not knowing about -k option: -k Enable the HTTP KeepAlive feature, i.e., perform multiple requests within one HTTP session. Default is no KeepAlive I'll do it but I guess the test will no longer be so relevant because I want to simulate different users. Anyway, the question

RE: slow https performance compared to http

2016-11-13 Thread Reinis Rozitis
> I test on running ab command on the same host as nginx is. Did you test with -k (keepalive) on or off? Without -k means that ab will do handshake every time and you will be limited by cpu and depending on the chosen cipher the performance (requests per second) can vary a lot. rr

Re: slow https performance compared to http

2016-11-13 Thread gigihc11
I used https://mozilla.github.io/server-side-tls/ssl-config-generator/ in order to configure the ssl part for my nginx: https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=nginx-1.11.3&openssl=1.0.2g&hsts=yes&profile=intermediate but with no OCSP Stapling, ssl_trusted_certificate

Re: slow https performance compared to http

2016-11-13 Thread gigihc11
Oh, I forgot to mention that the setup included also: ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270898,270900#msg-270900 ___ nginx mailing list nginx@nginx.org http://mailman.ng

Re: slow https performance compared to http

2016-11-13 Thread Lucas Rolff
Because you have the TLS handshake that has to be done which is CPU bound Try change things like ssl_ciphers (to something faster), and use ssl_session_cache/ -- Best Regards, Lucas Rolff gigihc11 wrote: Hi, I have: nginx 1.11.3 Ubuntu 16.04.1 LTS openssl 1.0.2g-1ubuntu4.5 amd64 libssl1.0.0

slow https performance compared to http

2016-11-13 Thread gigihc11
Hi, I have: nginx 1.11.3 Ubuntu 16.04.1 LTS openssl 1.0.2g-1ubuntu4.5 amd64 libssl1.0.0:amd64 1.0.2g-1ubuntu4.5 weak CPU: N3150 16 GB RAM with this test-setup: open_file_cache max=1000 inactive=360s; open_file_cache_valid 30s; I test on running ab command on the same host as nginx is. For a 1.6K