日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

php和openresty效率,openresty say_hello 性能测试

發布時間:2024/9/19 php 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 php和openresty效率,openresty say_hello 性能测试 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

openresty

route:get("/say_hello", function(self)

ngx.say('hello')

end)

測試,注意關閉 #lua_code_cache off;

$ ./wrk -t12 -c100 -d30s http://localhost:6699/say_hello

Running 30s test @ http://localhost:6699/say_hello

12 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev

Latency 8.91ms 26.32ms 361.12ms 93.81%

Req/Sec 3.48k 1.49k 19.27k 81.68%

1228717 requests in 30.10s, 250.71MB read

Requests/sec: 40823.76

Transfer/sec: 8.33MB

spring boot

@RequestMapping(value = "/say_hello")

public String sayHello(){

return "hello";

}

測試

$ ./wrk -t12 -c100 -d30s http://localhost:9000/web/say_hello

Running 30s test @ http://localhost:9000/web/say_hello

12 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev

Latency 22.53ms 48.40ms 636.73ms 90.86%

Req/Sec 1.06k 424.26 4.11k 69.68%

377705 requests in 30.08s, 53.02MB read

Requests/sec: 12558.31

Transfer/sec: 1.76MB

大概是 spring boot 的4倍

總結

以上是生活随笔為你收集整理的php和openresty效率,openresty say_hello 性能测试的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。