V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  keysona  ›  全部回复第 33 页 / 共 50 页
回复总数  985
1 ... 29  30  31  32  33  34  35  36  37  38 ... 50  
2017-10-23 14:21:57 +08:00
回复了 Immortal 创建的主题 全球工单系统 哇,老哥们,你们最近看 V2 会不会 502,504
502 论坛
2017-10-22 17:19:02 +08:00
回复了 1314258 创建的主题 Python sanic 自家的 hello world 评测性能也不是很牛逼。
@1314258

app.run(host="0.0.0.0", port=sys.argv[1], access_log=False)


我是这样跑的,一开始我也是用 log_config,发现没有用??还是打印日志....

你运行的时候没有跑日志?
2017-10-22 16:05:17 +08:00
回复了 1314258 创建的主题 Python sanic 自家的 hello world 评测性能也不是很牛逼。
我这里的测试,

加了 uvloop 的 aiohttp,比没有加的快 1.5 倍...

tornado 的测试惨不忍睹...

sanic 全方位吊打???
2017-10-22 16:03:50 +08:00
回复了 1314258 创建的主题 Python sanic 自家的 hello world 评测性能也不是很牛逼。
2017-10-22 15:29:13 +08:00
回复了 1314258 创建的主题 Python sanic 自家的 hello world 评测性能也不是很牛逼。
@1314258

官方的测试例子( sanic 的),默认打开 logging....

关了它,性能就飞上来了。

因为其它的例子貌似都没有开 log...
2017-10-22 15:28:04 +08:00
回复了 1314258 创建的主题 Python sanic 自家的 hello world 评测性能也不是很牛逼。
@1314258

aiohttp

Running 30s test @ http://127.0.0.1:8000
30 threads and 30 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.95ms 1.16ms 15.69ms 64.21%
Req/Sec 254.29 39.75 626.00 74.09%
228077 requests in 30.04s, 33.71MB read
Requests/sec: 7592.38
Transfer/sec: 1.12MB

bottle
Running 30s test @ http://127.0.0.1:8000
30 threads and 30 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.50ms 512.94us 11.59ms 94.98%
Req/Sec 402.43 64.64 595.00 71.06%
360870 requests in 30.03s, 60.91MB read
Requests/sec: 12017.63
Transfer/sec: 2.03MB

sanic

Running 30s test @ http://127.0.0.1:8000
30 threads and 30 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 1.83ms 778.22us 14.05ms 81.87%
Req/Sec 558.23 95.23 2.00k 75.12%
500849 requests in 30.10s, 58.75MB read
Requests/sec: 16642.26
Transfer/sec: 1.95MB
2017-10-19 22:59:57 +08:00
回复了 rogwan 创建的主题 Python Ubuntu 17.10 正式发布,默认安装 Python3.6
可喜可贺
2017-10-17 09:44:09 +08:00
回复了 mikewoo 创建的主题 王者荣耀 请问怎么提升王者荣耀水平?
大学沉迷 lol 的人说一句,别玩这种游戏。

ls 总结的很好,这是一个抖 m 才会玩的游戏。



--------------

真想玩游戏,不是游戏玩你,买台 ps4 / ns 吧。

沉迷塞尔达不可自拔。
2017-10-11 20:36:56 +08:00
回复了 workwonder 创建的主题 Python 如何得到 flask 中单个请求的唯一 ID?
@wellsc

当初因为 uuid 太长了,就索性简单点自己生成了。
2017-10-11 19:44:01 +08:00
回复了 workwonder 创建的主题 Python 如何得到 flask 中单个请求的唯一 ID?
我是直接 md5 当前的时间戳,取前面 16 位的。
2017-10-11 18:33:14 +08:00
回复了 ddter 创建的主题 分享发现 115 续费 350 了。。
@suiyanhehao
贴吧。有交易帖
2017-10-10 23:23:49 +08:00
回复了 TenTo 创建的主题 Python 关于 Python 的 import 问题
https://github.com/python-pillow/Pillow/blob/master/PIL/__init__.py

看看它的__init__.py 文件吧。

它那里并没有帮你导入 Image,所以需要 from xxx import xxx 这样导入。
还是简繁一起上,和塞尔达一样。

第三方的老滚 5 貌似只有繁体??
1 ... 29  30  31  32  33  34  35  36  37  38 ... 50  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2467 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.