
leancloud 测试并发如下, 带数据库查询:
Running 10s test @ http://xxxx.leanapp.cn/?id=58b62dfa61ff4b006ccc0113 12 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 172.36ms 159.26ms 1.37s 80.84% Req/Sec 54.37 21.85 128.00 63.17% 6459 requests in 10.09s, 9.06MB read Non-2xx or 3xx responses: 4756 Requests/sec: 640.04 Transfer/sec: 0.90MB 阿里云的并发测试, 1 核 1G 最低配, 不带数据库查询:
Running 10s test @ http://xxx.76.215.104:3000/ 12 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 312.36ms 139.82ms 1.89s 92.13% Req/Sec 21.15 11.70 70.00 63.86% 2007 requests in 10.10s, 0.94MB read Socket errors: connect 0, read 0, write 0, timeout 43 Requests/sec: 198.80 Transfer/sec: 95.13KB 
0.5 CPU 具体是什么配置
1 bingwenshi 2017-03-01 10:53:43 +08:00 你这只是测试的网速,跟机器配置没关系 |
2 subpo 2017-03-01 10:54:50 +08:00 因为计价方式不同 |
3 TangMonk OP @bingwenshi 阿里云的是 100M 按量计费的带宽,我的本地带宽也是 100M |
4 peesefoo 2017-03-01 11:06:16 +08:00 via Android 然而不支持数据库没什么卵用 |
5 jybox 2017-03-01 14:02:08 +08:00 0.5CPU/256M 是对你的容器的限制,你的容器里基本上就只有应用进程了,操作系统、数据库、负载均衡( Nginx )等等都不在你的容器中。另外 Nginx 在处理慢请求上会比 Node.js 更有效率,因此 Node.js 前面套一个 Nginx 通常会比直接测 Node.js 更快(尤其公网上)。 有关 LeanCloud 的更多问题建议来我们的论坛提问 https://forum.leancloud.cn 。 |