Comments (3)
非完整功能的异步网络库做这个测试没有意义
gnet已经加入了,但是只能忽悠外行。功能不完整的代码,跟人家http功能完整的框架去比性能,除了网络部分,http的部分相当于只做了别人的十分之一甚至百人之一,然后说比别人性能强,这非常不严谨、完全是自欺欺人的
除非异步网络库也加入了相对完整的功能,再去对比才有意义
异步库的优势在于极大减少高并发场景下的协程数量,并降低与其相对应的协程内存、协程调度等成本,要对比可以只对比4层数据传输的性能。gev/gnet就网络部分而言,应该对标标准库的net而不是net/http
from gev.
第一次知道这个,感谢告知😄。
等我有时间,会安排上的。我不太了解这个 techempower ,如果你愿意的话,可以直接PR。
建议查看一下general-test-requirements,第一条要求就是生产级别的实现。
假如只是做个简单的请求头解析,参加plaintext
的测试(比如gnet
,@panjf2000 你怎么看?),个人感觉没有意义,对其他框架来说,有点“作弊”的味道。
要是正儿八紧地完整实现http
协议,我还是很支持的。
from gev.
第一次知道这个,感谢告知😄。
等我有时间,会安排上的。我不太了解这个 techempower ,如果你愿意的话,可以直接PR。
from gev.
Related Issues (20)
- 这里为什么是一个循环啊??? HOT 2
- How to use with gin HOT 1
- 事件处理顺序如何排序,这里的排序有什么讲究? HOT 4
- Are the writes to socket blocking or non-blocking? HOT 3
- 这里的循环是不是换成if也行 HOT 2
- 请教一个问题,实在没看懂。 HOT 4
- 关闭连接时,为什么不直接关闭连接,而是将【关闭连接】这个任务放到异步队列里面等待执行? HOT 3
- 请问一下该库能管理大量客户端连接么? HOT 1
- 对于gev的一些疑问 HOT 1
- 控制EpollWait的msec优势在哪?
- EpollWait循环中wakeHandlerRead()是不是处理早了 HOT 1
- 建议加入UDP协议 HOT 1
- 百兆数据传输效率 HOT 2
- Question: is it possible to use your module as a websocket client? HOT 1
- OnConnect 里使用 c.set 的请教! HOT 1
- 能不能加一个sproto支持啊?
- 是否应该加入高水位回调来避免客户端不收数据
- windows 下cpu、内存占用问题
- 不会触发OnClose
- cpu跑到400%, 目前只有2个连接,抓包只有60s定时的心跳
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gev.