n*w 发帖数: 3393 | |
p*****2 发帖数: 21240 | |
z****e 发帖数: 54598 | 3 下面的评论基本上说得很好
有些人蠢到连jee是什么都不懂还compare
应该直接比较hello world的效率 |
z****e 发帖数: 54598 | 4 基本上评论是一边倒地吐槽原作者的无知
Peter Gwiazda replied on Fri, 2013/10/25 - 2:14am
I don't belive you've actually tested anything.
First of all I think that "raw" Node.js should be way faster than JavaEE
server returning responses under heavy load. It's like motorcycle vs. train.
They have very different model and functionality. In simple servlet there
is still much more under the hood than in Node.js.
You should rather compare Node.js to Vert.x which is a JVM equivalent to
Node.js with very similar programming model but multithreaded. Or take a
look at Play!, Spray or at least asynchronous JEE Servlet 3.0.
What is more the CouchDB server is the slowest part of your benchmark. You
actually tested how fast is CouchDB connector for Java and for Node.js.
Still this is a good starting point for discussion. |
p*****2 发帖数: 21240 | 5
train.
那你说说java比node快多少?
【在 z****e 的大作中提到】 : 基本上评论是一边倒地吐槽原作者的无知 : Peter Gwiazda replied on Fri, 2013/10/25 - 2:14am : I don't belive you've actually tested anything. : First of all I think that "raw" Node.js should be way faster than JavaEE : server returning responses under heavy load. It's like motorcycle vs. train. : They have very different model and functionality. In simple servlet there : is still much more under the hood than in Node.js. : You should rather compare Node.js to Vert.x which is a JVM equivalent to : Node.js with very similar programming model but multithreaded. Or take a : look at Play!, Spray or at least asynchronous JEE Servlet 3.0.
|
z****e 发帖数: 54598 | 6 It's like motorcycle vs. train.
二爷可以想想摩托比火车快多少?
【在 p*****2 的大作中提到】 : : train. : 那你说说java比node快多少?
|
p*****2 发帖数: 21240 | 7
就是说差不多了吗?
【在 z****e 的大作中提到】 : It's like motorcycle vs. train. : 二爷可以想想摩托比火车快多少?
|
z****e 发帖数: 54598 | 8 u tell me
【在 p*****2 的大作中提到】 : : 就是说差不多了吗?
|
s***o 发帖数: 2191 | 9 这里有个更热闹的,各种framework都有:
http://www.techempower.com/benchmarks/
不过像这种“performance”的单纯比较实战意义也不是太大 |
z****e 发帖数: 54598 | 10 这种web层面的东西,一旦过了一定程度就没有意义了
只要不太慢就好了,1ms跟10ms的响应时间不会有太大差异,对于客户来说
只要别到1000ms就好了
实战时候,优化渠道一律都不是通过优化这些东西来优化
至少是剥离逻辑到后台,还有通过实现多线程共享组件
跟persistence建立连接池,减少层与层之间的io操作等手段来减少平均响应时间
木桶原理,最后决定胜负的,不是最长的那一块
而是最短的那一块,实际上程序猿多数时候也都在最短的那一块上挣扎
这种东西就是给外行看个热闹,华山轮奸一般,哇哇
其实没什么内容
【在 s***o 的大作中提到】 : 这里有个更热闹的,各种framework都有: : http://www.techempower.com/benchmarks/ : 不过像这种“performance”的单纯比较实战意义也不是太大
|
|
|
g*****g 发帖数: 34805 | |
n*w 发帖数: 3393 | 12 你再多展示一下自己
【在 g*****g 的大作中提到】 : 两种东西你都不懂,意外干啥?
|
w**z 发帖数: 8232 | 13 The number is bogus. I can give you real number in our production.
Tomcat + Cassandra
250 request/second, average response time: 6ms, 99th percentile response
time: 30ms, we don't do any cache at tomcat layer, every request goes to
Cassandra.
【在 n*w 的大作中提到】 : http://java.dzone.com/articles/performance-comparison-between : 比较意外。是Servlet的效率问题吗?
|
g*****g 发帖数: 34805 | 14 异步比同步性能好是必然的,但是异步比同步难写,不是很高并发没有必要。
当然像nkw这种青蛙谈异步纯搞笑,写过的应用并发超过10没有,还异步呢,LOL。 |
n*w 发帖数: 3393 | 15 像读过的一篇小说里邻村的婆婆。不但常把自己臆想的东西说的特具体,说话会不失时
机地踩踩别人,然后得意地傻笑一下。
【在 g*****g 的大作中提到】 : 异步比同步性能好是必然的,但是异步比同步难写,不是很高并发没有必要。 : 当然像nkw这种青蛙谈异步纯搞笑,写过的应用并发超过10没有,还异步呢,LOL。
|
g*****g 发帖数: 34805 | 16 我老只是说个事实而已,你小除了引用别人的blog,别的地方对编程的理解还没有
高于helloworld。
【在 n*w 的大作中提到】 : 像读过的一篇小说里邻村的婆婆。不但常把自己臆想的东西说的特具体,说话会不失时 : 机地踩踩别人,然后得意地傻笑一下。
|