由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 这个表怎么理解
相关主题
real time distributed framework感觉Erlang不错,有必要学习一下吗?
有没有谁真的做web的用FP在production上主要产品批判 go
搞haskell的请总结industry best practice和未来发展方向haskell有潜力成为最好的web framework
程序员薪水大牛给推荐个fp语言
想学函数语言和高层次抽象的同学看过来未来15年,服务器端语言,除了标准的java,我看好scala,go 前端
抛砖引玉,来谈谈functional programming好虫和魏赌局见证
各个编程语言平均工资(ZT)functional programming 哪本书经典适合入门
node不负众望,完胜Java实践研究表明,FP代码虫子少,质量高
相关话题的讨论汇总
话题: connection话题: folsom话题: haskell话题: crap
进入Programming版参与讨论
1 (共1页)
d******e
发帖数: 2265
1
https://github.com/ericmoritz/wsdemo/blob/results-v1/results.md
Summary
Implementation Connection Time (mean) Latency (mean) Messages
Connections Connection Timeouts
Erlang 865ms 17ms 2849294 10000 0
Haskell (Snap) 168ms 227ms 1187413 4996 108
Java (Webbit) 567ms 835ms 1028390 4637 157
Go 284ms 18503ms 2398180 9775 225
Node.js (websocket) 768ms 42580ms 1170847 5701 4299
Python (ws4py) 1561ms 34889ms 1052996 4792 5208
貌似node不行阿
i**i
发帖数: 1500
2
for node.js, just follow socket.io.
https://medium.com/node-js-javascript/finding-the-right-node-js-websocket-
implementation-b63bfca0539
d******e
发帖数: 2265
3
go也很猛
意外的是 Haskell 居然更强
算是排名第三

【在 i**i 的大作中提到】
: for node.js, just follow socket.io.
: https://medium.com/node-js-javascript/finding-the-right-node-js-websocket-
: implementation-b63bfca0539

N******K
发帖数: 10202
4
latency 为啥会差这么多?

【在 d******e 的大作中提到】
: https://github.com/ericmoritz/wsdemo/blob/results-v1/results.md
: Summary
: Implementation Connection Time (mean) Latency (mean) Messages
: Connections Connection Timeouts
: Erlang 865ms 17ms 2849294 10000 0
: Haskell (Snap) 168ms 227ms 1187413 4996 108
: Java (Webbit) 567ms 835ms 1028390 4637 157
: Go 284ms 18503ms 2398180 9775 225
: Node.js (websocket) 768ms 42580ms 1170847 5701 4299
: Python (ws4py) 1561ms 34889ms 1052996 4792 5208

i**i
发帖数: 1500
5
用socket.io, 只要估计最大同时连接的用户数目,堆机器就应该可以了。 单个机器可
以支持几千个同时连接。

【在 i**i 的大作中提到】
: for node.js, just follow socket.io.
: https://medium.com/node-js-javascript/finding-the-right-node-js-websocket-
: implementation-b63bfca0539

i**i
发帖数: 1500
6
没仔细看。这个测试好像不靠谱。
负载太大,不太合理。有点系统崩溃的意思。
确定都是单线程?

【在 N******K 的大作中提到】
: latency 为啥会差这么多?
m********5
发帖数: 17667
7
我看到就想: what the crap!?
结果一看原始连接,发现果然是crap, 这个link是个过期的git tag,2012年的!
再看原作者当时怎么说:
http://www.reddit.com/r/programming/comments/v5ap8/web_server_b
I wrote the thing and I can tell you that yes, these results are pretty much
crap. I incorrectly used Folsom, the project I used to collect the stats.
Folsom is meant for realtime monitoring and not what I used it for. It only
keeps 60 second windows of the data it produces. That means all times prior
to the fine 60 second window was thrown out.
I tweeted the results at 3am to get feedback from folks I know.
Unfortunately it spread across the net really fast.
虽然最后他自已又更正了说法,但是可见原作者在做这个benchmark的时候是个新手,
很多细节可能是错误的,他的这个结果,我看没有参考意义。
I'm sorry I was mistaken that Folsom only keeps a 60 second window. It has
support for sliding windows but its default is to use the entire dataset for
histograms and percentiles. I take back my statement that the result were
pretty much crap. They're only slightly crappy because I used a m1.medium
box.
I'm spending my free time this week to make the benchmark more automated so
that it is easier for someone who volunteered to run it in their datacenter
on real hardware. That should produce a much fairer result.

【在 d******e 的大作中提到】
: https://github.com/ericmoritz/wsdemo/blob/results-v1/results.md
: Summary
: Implementation Connection Time (mean) Latency (mean) Messages
: Connections Connection Timeouts
: Erlang 865ms 17ms 2849294 10000 0
: Haskell (Snap) 168ms 227ms 1187413 4996 108
: Java (Webbit) 567ms 835ms 1028390 4637 157
: Go 284ms 18503ms 2398180 9775 225
: Node.js (websocket) 768ms 42580ms 1170847 5701 4299
: Python (ws4py) 1561ms 34889ms 1052996 4792 5208

1 (共1页)
进入Programming版参与讨论
相关主题
实践研究表明,FP代码虫子少,质量高想学函数语言和高层次抽象的同学看过来
请问怎么记录tcp连接的时候从发出synack到收到ack的时间?抛砖引玉,来谈谈functional programming
Node, Express 一问各个编程语言平均工资(ZT)
大家有没有觉得Scala不如Haskell美?node不负众望,完胜Java
real time distributed framework感觉Erlang不错,有必要学习一下吗?
有没有谁真的做web的用FP在production上主要产品批判 go
搞haskell的请总结industry best practice和未来发展方向haskell有潜力成为最好的web framework
程序员薪水大牛给推荐个fp语言
相关话题的讨论汇总
话题: connection话题: folsom话题: haskell话题: crap