| From | Sent On | Attachments |
|---|---|---|
| somebody nobody | Aug 16, 2007 3:15 am | |
| Igor Clark | Aug 16, 2007 3:37 am | |
| Igor Sysoev | Aug 16, 2007 4:03 am | |
| Brice Figureau | Aug 16, 2007 4:20 am | |
| somebody nobody | Aug 16, 2007 4:21 am | |
| somebody nobody | Aug 16, 2007 4:31 am | |
| seun...@public.gmane.org | Aug 16, 2007 4:46 am | |
| Brice Figureau | Aug 16, 2007 4:52 am | |
| seun...@public.gmane.org | Aug 16, 2007 5:00 am | |
| Joey | Aug 16, 2007 7:45 am | |
| Aleksandar Lazic | Aug 17, 2007 1:18 am | |
| seun...@public.gmane.org | Aug 18, 2007 11:21 pm |
| Subject: | Nginx isn't as fast as i expect | |
|---|---|---|
| From: | somebody nobody (makd...@public.gmane.org) | |
| Date: | Aug 16, 2007 3:15:49 am | |
| List: | ru.sysoev.nginx | |
i have tested nginx and apache with the "ab" tool. This is my results:
Apache: Requests per second: 6058.62 [#/sec]
Nginx: Requests per second: 1170.02 [#/sec]
this is my nginx.conf:
@@@@@
user nobody nogroup; worker_processes 10;
error_log logs/error.log; pid logs/nginx.pid;
events { worker_connections 512; use eventport; #sol 10+ }
http { include conf/mime.types; default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile off; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65;
#gzip on;
root /home/mywebsite; index index.php;
client_max_body_size 128k; client_body_buffer_size 128k;
server { listen 80; server_name www.mywebsite.com;
#access_log off;
# # PHP #
location / { client_max_body_size 128k; client_body_buffer_size 128k;
root /home/mywebsite; index index.php index.html; }
location ~ \.php$ { include /nginx/conf/fcgi.conf; fastcgi_pass unix:/tmp/fastcgi.socket; fastcgi_index index.php; }
error_page 404 /404.html;
location /404.html { root /home/mywebsite; charset on; }
What can i do more to make it faster ??





