webbench -c 500 -t 10 "http://localhost/lua/hello"
webbench -c 1000 -t 10 "http://localhost/hello.php"
分别是这两种命令测试,两个脚本都是输出简单的hello world字符串
当然请求的速度 lua是快,但是出现了失败的情况,而PHP却正常
如:
root@debian:/# webbench -c 500 -t 10 "http://localhost/lua/hello"
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://localhost/lua/hello
500 clients, running 10 sec.
Speed=470406 pages/min, 1512695 bytes/sec.
Requests: 78378 susceed, 23 failed.
root@debian:/# webbench -c 1000 -t 10 "http://localhost/hello.php"
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://localhost/hello.php
1000 clients, running 10 sec.
Speed=102000 pages/min, 266900 bytes/sec.
Requests: 17000 susceed, 0 failed