< 返回版块

ChaosBot 发表于 2018-02-04 10:42

Tags:rustnews

Turtle:使用Rust+wasm制作动画

turtle

turtle intro


对比C语言来学习Rust内存安全

rust memory safety


melo:基于Rust编写MIDI音乐的语言

melo


一位从scala转向Rust开发者的心声

大概意思是:

作者使用Rust重写了一个之前是scala写的性能和可靠性都很差的微服务,这个scala写的微服务属于用于频繁的获取数据,所以是个I/O密集型应用,经常会崩溃。他用rust语言编写完以后,就忘记了,直到两周后的一天在开发机器上发现rpc请求显示20k/sencond的信息,才想起来在开发机上还开着tmux。此时他才发现,Rust代码竟然两周内非常可靠高效地在正常运行了两周,作者觉得太不可思议了。不由得感慨:我其实很喜欢scala,但是scala连一点夸赞它的时间都不给我。

最近听到很多次satellite internet,怎么老外都这么先进吗?用上了卫星?还是我理解错了

reddit原贴


Rust中不同异步方法的基准测试

async bench

test async                        ... bench:  25,129,522 ns/iter (+/- 1,948,456)
test async_cpupool                ... bench:  13,895,220 ns/iter (+/- 2,412,441)
test async_cpupool_cpus           ... bench:  16,449,300 ns/iter (+/- 7,062,024)
test async_cpupool_many           ... bench:  14,118,352 ns/iter (+/- 3,170,100)
test async_cpus                   ... bench:  11,057,663 ns/iter (+/- 1,546,785)
test async_many                   ... bench:  14,304,595 ns/iter (+/- 1,966,185)
test corona                       ... bench:  34,898,721 ns/iter (+/- 204,006,257)
test corona_blocking_wrapper      ... bench:  35,851,174 ns/iter (+/- 76,716,240)
test corona_blocking_wrapper_cpus ... bench:  12,601,478 ns/iter (+/- 1,368,466)
test corona_blocking_wrapper_many ... bench:  20,098,071 ns/iter (+/- 84,982,750)
test corona_cpus                  ... bench:  12,483,281 ns/iter (+/- 1,547,974)
test corona_many                  ... bench:  19,673,364 ns/iter (+/- 2,028,918)
test futures                      ... bench:  27,259,033 ns/iter (+/- 3,447,498)
test futures_cpupool              ... bench:  14,161,521 ns/iter (+/- 3,190,636)
test futures_cpupool_cpus         ... bench:  16,162,328 ns/iter (+/- 204,181,954)
test futures_cpupool_many         ... bench:  14,398,131 ns/iter (+/- 2,722,364)
test futures_cpus                 ... bench:  17,100,394 ns/iter (+/- 207,223,624)
test futures_many                 ... bench:  16,857,098 ns/iter (+/- 3,664,201)
test may                          ... bench:  17,407,826 ns/iter (+/- 204,029,107)
test may_cpus                     ... bench:  16,940,574 ns/iter (+/- 3,652,612)
test may_many                     ... bench:  17,976,177 ns/iter (+/- 2,738,411)
test threads                      ... bench:  22,011,601 ns/iter (+/- 1,645,368)
test threads_cpus                 ... bench:  26,045,198 ns/iter (+/- 5,311,040)
test threads_many                 ... bench:  22,439,402 ns/iter (+/- 2,497,508)

评论区

写评论

还没有评论

1 共 0 条评论, 1 页