当前位置:网站首页>Rust异步框架的性能评估
Rust异步框架的性能评估
2022-04-22 16:34:00 【非凸科技ft.tech】
Zenoh是一个基于async_std的异步零开销发布/订阅、存储/查询和计算框架,Zenoh是用Rust编写的,它利用异步特性来实现高性能和可扩展性。
Zenoh官方评估了三个异步框架(async_std/Tokio/smol)在异步网络上的性能。对每一种方法进行评估,并与Rust标准库提供的等效同步原语提供的基线性能进行比较。
评估显示,async_std和smol非常接近标准库,并且在某些工作负载上优于标准库。另一方面,Tokio似乎很快就达到了它的极限,即100 msg/s时达到18µs,并且TCP和UDP之间没有差异。此外,Tokio似乎受到CPU限制(Rust)异步任务的不利影响。
基于这些结果,Zenoh认为他们别无选择,只能继续使用async_std。也就是说,了解Tokio为什么会在比较中暴露这种行为,并改善其原始性能以缩小与async_std的差距,这将是一件有趣的事。目前,Tokio在本地主机上增加了8µs延迟,在网络上增加了10µs延迟。
版权声明
本文为[非凸科技ft.tech]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1985831
边栏推荐
- Talk about the general problem of substitution between TL431 and az431 (personal experience)
- Algorithm:实现LDA的Gibbs Gauss采样(绘制多图subplot)
- Parameter setting of Sanke inverter pipe bender
- Blue Bridge Cup exercise 015
- Solidity: contract structure
- Experiment 3 FFT and its application in convolution calculation and spectrum analysis
- 2022-4-21 [webrtc application] source code analysis of yangrtc / metartc open source library (III)
- Interview:人工智能岗位面试—人工智能岗位求职之机器学习算法工程师必备知识框架结构图
- 蓝桥杯练习012
- 国美新动作“真选”“严选”赋能 多维度护航品质消费
猜你喜欢

Random talk on homology strategy (SOP) and cross domain resource sharing (CORS)

Redis optimization series (I) building redis master-slave based on docker

Domain driven model DDD (III) -- using saga to manage transactions

Blue Bridge Cup practice 017

1016 Phone Bills (25 分) 测试点1,2

wps excel 怎么复制工作表?(移动或复制工作表)

TCP / IP protocol IV TCP protocol (I) - Theory + practice to make it clear to you

国美零售借数字经济东风,打造“船身”的消费体验

Talk about the general problem of substitution between TL431 and az431 (personal experience)

小练习:二分查找及实现
随机推荐
C语言插入排序
Web测试需要注意什么?
In SolidWorks, why can I only set direction 1 but not direction 2 for linear sketch array?
接口测试 Mock 实战(二) | 结合 jq 完成批量化的手工 Mock
Blue Bridge Cup practice 013
Blue Bridge Cup practice 017
Redis cache hit rate
接口测试框架实战 | 流程封装与基于加密接口的测试用例设计
【ARM汇编】如何对键入数据做判断?
i.MX6ULL驱动开发 | 21 - 按键驱动使用 input 子系统上报事件
1016 phone bills (25 points) test point 1,2
Interview:人工智能岗位面试—人工智能岗位求职之机器学习算法工程师必备知识框架结构图
This API hub is powerful. It contains open APIs such as nailing enterprise wechat, and can be debugged directly!
Experiment 3 FFT and its application in convolution calculation and spectrum analysis
Talk about the general problem of substitution between TL431 and az431 (personal experience)
Code implementation of sequence table
Blue Bridge Cup practice 018
Interface test practice | detailed explanation of the difference between get and post requests
Golang的JWT权限校验解析
webRTC之RTP封装与解封装