CentOS 32bit VS CentOS 64bit Benchmark
今天特意装了 CentOS 5.4 的 32bit 和 64bit 来做性能测试
32bit 占用内存较少没错,但当并发访问量很大的时候,64bit的优势就出来了
以下还是测试 phpinfo() 用数据说话
没时间搞更详细的测试,有空再弄吧
CentOS 32bit
webbench -c 1000 -t 30 http://localhost/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://localhost/
1000 clients, running 30 sec.Speed=94330 pages/min, 9278104 bytes/sec.
Requests: 47165 susceed, 0 failed.
webbench -c 5000 -t 20 http://localhost/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://localhost/
5000 clients, running 20 sec.Speed=673560 pages/min, 65174897 bytes/sec.
Requests: 224520 susceed, 0 failed.
CentOS 64bit
webbench -c 1000 -t 30 http://localhost/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://localhost/
1000 clients, running 30 sec.Speed=323144 pages/min, 20637572 bytes/sec.
Requests: 161572 susceed, 0 failed.
# webbench -c 5000 -t 20 http://localhost/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.Benchmarking: GET http://localhost/
5000 clients, running 20 sec.Speed=2562165 pages/min, -52276136 bytes/sec.
Requests: 854055 susceed, 0 failed.
一看你敢-c 5000 就知道你用的nginx+spawn-fcgi 或php-fpm