当前位置:网站首页>[rust daily] January 23, 2022 webapi benchmarking

[rust daily] January 23, 2022 webapi benchmarking

2022-06-22 06:38:00 51CTO

analysis API platform cube.js

Cube.js It's an open source analysis API platform . It is mainly used to build internal business intelligence tools or add customer-oriented analysis to existing applications .

Cube.js Designed to work with serverless data warehouses and query engines ( Such as Google BigQuery and AWS Athena) Use it together . The multi-stage query method makes it suitable for processing trillions of data points . Most modern RDBMS with Cube.js Use it together , And can further adjust performance .

【Rust daily 】2022-01-23 WebAPI Benchmarking_github

GitHub:https://github.com/cube-js/cube.js

Document:https://cube.dev/docs/

WebAPI Benchmarking

Mainly aimed at tide and actix-web:

========== Rust (tide) oha ==========
Success rate: 1.0000
Total: 52.4111 secs
Slowest: 7.2684 secs
Fastest: 0.0005 secs
Average: 0.0518 secs
Requests/sec: 19079.9386
Total data: 94.70 GiB
Size/request: 99.30 KiB
Size/sec: 1.81 GiB

Response time histogram:
0.014 [790046] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.028 [147431] |■■■■■
0.042 [18943] |
0.056 [3856] |
0.070 [1394] |
0.085 [391] |
0.099 [165] |
0.113 [46] |
0.127 [1] |
0.141 [0] |
0.155 [37727] |■

Latency distribution:
10%in 0.0035 secs
25%in 0.0055 secs
50%in 0.0086 secs
75%in 0.0133 secs
90%in 0.0212 secs
95%in 0.0350 secs
99%in 1.0409 secs


========== Rust (actix-web) oha ==========
Success rate: 1.0000
Total: 78.6992 secs
Slowest: 15.3911 secs
Fastest: 0.0003 secs
Average: 0.0767 secs
Requests/sec: 12706.6082
Total data: 99.35 GiB
Size/request: 104.18 KiB
Size/sec: 1.26 GiB

Response time histogram:
0.021 [571453] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.042 [144019] |■■■■■■■■
0.063 [106616] |■■■■■
0.084 [53172] |■■
0.104 [22118] |■
0.125 [14140] |
0.146 [10648] |
0.167 [6473] |
0.188 [5518] |
0.209 [2872] |
0.230 [62971] |■■■

Latency distribution:
10%in 0.0021 secs
25%in 0.0052 secs
50%in 0.0145 secs
75%in 0.0484 secs
90%in 0.1082 secs
95%in 0.3382 secs
99%in 1.0657 secs


========== Rust (tide) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 44.52ms 35.65ms 324.00ms 67.55%
Req/Sec 4.00k 613.36 10.05k 70.29%
716042 requests in 30.09s, 67.90GB read
Requests/sec: 23794.67
Transfer/sec: 2.26GB


========== Rust (actix-web) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 50.33ms 7.94ms 118.28ms 69.65%

Req/Sec 3.26k 221.62 3.74k 71.50%
583704 requests in 30.07s, 58.05GB read
Requests/sec: 19410.66
Transfer/sec: 1.93GB

Video:https://www.youtube.com/watch?v=3iA1G0l4PEw

Thread priority control thread-priority

A library used to control thread scheduling policy and thread priority . Currently, it supports mainstream operating systems .

Minimum instance —— Set the current thread priority to the lowest :

use thread_priority::*;

fn main() {
assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
}

GitHub:https://github.com/vityafx/thread-priority

Simple audio control daemon sacand

A simple audio control and notification daemon , adopt libnotify Send report pulseaudio Notification of status .

GitHub:https://github.com/ZenTauro/sacand

Decentralized operating system snarkOS

snarkOS Is a decentralized operating system for private applications . It constitutes Aleo The backbone of , Enable applications to validate and store state in a publicly verifiable way .

GitHub:https://github.com/AleoHQ/snarkOS

Double board game Uisge

【Rust daily 】2022-01-23 WebAPI Benchmarking_ide_02

cargo run --release

GitHub:https://github.com/golmman/uisge

Tutorial article

  • Binary tree insertion :https://dawchihliou.github.io/articles/binary-tree-insertion-in-rust
  • by Web Write a Tiny Rust The game engine :https://dev.to/stevepryde/create-a-desktop-app-in-rust-using-tauri-and-yew-2bhe
  • Use Tauri and Yew Create a desktop application :https://dev.to/stevepryde/create-a-desktop-app-in-rust-using-tauri-and-yew-2bhe


Community learning exchange platform subscription :

  • Rustcc Forum : Support rss
  • WeChat official account :Rust Language Chinese community


原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220633078319.html