微前端架构如何改变企业的开发模式与效率提升
605
2022-10-21
CabalPHP- 基于 Swoole 的轻量级框架
CabalPHP
CabalPHP 是一个基于Swoole的 轻量、高效、全异步 开源框架。
亮点
全异步单机超高性能,轻松分布式部署支持HTTP、TCP、websocket等多种协议完善数据库引擎,简单高效 (其他swoole框架几乎没有哦)易于学习,开发效率高,简单高效的数据库引擎使用IDE(Sublime Text/VSCode/PhpStorm等)有完整的代码提示
适用场景
微服务架构的RPC服务开发前后分离的应用(RESTful)API接口开发即时通讯服务端开发传统的Web网站,服务端渲染SEO友好
性能压力测试
环境:
腾讯云 容器服务镜像: 基于 php:7.1-alpine 的swoole镜像1cores256MiB - 512MiBphp 7.1.12ab -c 2000 -n 10000 http://172.16.1.79:9501/This is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://zeustech-/Licensed to The Apache Software Foundation, http://apache.org/Benchmarking 172.16.1.79 (be patient)Completed 1000 requestsCompleted 2000 requestsCompleted 3000 requestsCompleted 4000 requestsCompleted 5000 requestsCompleted 6000 requestsCompleted 7000 requestsCompleted 8000 requestsCompleted 9000 requestsCompleted 10000 requestsFinished 10000 requestsServer Software: swoole-http-serverServer Hostname: 172.16.1.79Server Port: 9501Document Path: /Document Length: 284 bytesConcurrency Level: 2000Time taken for tests: 1.658 secondsComplete requests: 10000Failed requests: 3(Connect: 0, Receive: 0, Length: 3, Exceptions: 0)Write errors: 0Total transferred: 4330003 bytesHTML transferred: 2840003 bytesRequests per second: 6031.43 [#/sec] (mean)Time per request: 331.596 [ms] (mean)Time per request: 0.166 [ms] (mean, across all concurrent requests)Transfer rate: 2550.40 [Kbytes/sec] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 0 37 154.4 2 1005Processing: 27 252 68.8 260 547Waiting: 0 250 69.2 259 546Total: 79 289 165.9 267 1369Percentage of the requests served within a certain time (ms)50% 26766% 28475% 30380% 31490% 34795% 36598% 125299% 1279100% 1369 (longest request)
捐助
先捐助些优秀的代码吧!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~