Go
package mainimport (
"fmt"
_ "fmt"
"net/http"
_ "os")func main() {
http.HandleFunc("/", handle)
http.ListenAndServe("0.0.0.0:8082",nil)}func handle(w http.ResponseWriter,r *http.Request) {
fmt.Fprint(w,"URL=",r.URL.Path)
fmt.Println(r.RequestURI)}
登录后复制
PHP内置服务
echo 1;
登录后复制
Swoole
$http = new SwooleHttpServer("0.0.0.0", 9501);$http->on('request', function ($request, $response) {
echo 1;});$http->start();
登录后复制
以上就是Go,PHP,Swoole 并发测试详解的详细内容,更多请关注靠谱客其它相关文章!
最后
以上就是稳重胡萝卜最近收集整理的关于Go,PHP,Swoole 并发测试详解的全部内容,更多相关Go,PHP,Swoole内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复