#rustlang #actixweb #benchmarking
Part 1: • Web api benchmarking: Java (Vert.x) v...
java version:
openjdk 11.0.15 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-post-Debian-1deb11u1, mixed mode, sharing)
rustc version:
rustc 1.62.1 (e092d0b6b 2022-07-16)
Java (Vert.x) API: https://github.com/Vagelis-Prokopiou/...
Rust (actix-web) API: https://github.com/Vagelis-Prokopiou/...
===== oha Java Vert.x =====
Summary:
Success rate: 1.0000
Total: 89.7539 secs
Slowest: 0.1621 secs
Fastest: 0.0004 secs
Average: 0.0090 secs
Requests/sec: 11141.5765
Total data: 90.97 GiB
Size/request: 95.39 KiB
Size/sec: 1.01 GiB
Response time histogram:
0.002 [44383] |■■■■■
0.005 [188336] |■■■■■■■■■■■■■■■■■■■■■■■■
0.007 [244328] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.010 [200973] |■■■■■■■■■■■■■■■■■■■■■■■■■■
0.012 [129074] |■■■■■■■■■■■■■■■■
0.014 [76998] |■■■■■■■■■■
0.017 [46522] |■■■■■■
0.019 [28643] |■■■
0.022 [16780] |■■
0.024 [9709] |■
0.026 [14254] |■
Latency distribution:
10% in 0.0037 secs
25% in 0.0054 secs
50% in 0.0079 secs
75% in 0.0112 secs
90% in 0.0155 secs
95% in 0.0187 secs
99% in 0.0261 secs
===== oha Rust actix-web =====
Summary:
Success rate: 1.0000
Total: 54.3541 secs
Slowest: 0.0455 secs
Fastest: 0.0004 secs
Average: 0.0054 secs
Requests/sec: 18397.8670
Total data: 99.35 GiB
Size/request: 104.18 KiB
Size/sec: 1.83 GiB
Response time histogram:
0.001 [124711] |■■■■■■■■■■■■■■■■■
0.003 [227778] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.004 [202813] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.006 [141108] |■■■■■■■■■■■■■■■■■■■
0.007 [91754] |■■■■■■■■■■■■
0.009 [61253] |■■■■■■■■
0.010 [41769] |■■■■■
0.012 [30624] |■■■■
0.013 [22451] |■■■
0.014 [16201] |■■
0.016 [39538] |■■■■■
Latency distribution:
10% in 0.0016 secs
25% in 0.0026 secs
50% in 0.0043 secs
75% in 0.0069 secs
90% in 0.0109 secs
95% in 0.0138 secs
99% in 0.0204 secs
===== wrk Java Vert.x =====
6 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 70.94ms 21.57ms 261.87ms 73.47%
Req/Sec 2.35k 151.82 3.70k 71.27%
420630 requests in 30.09s, 38.30GB read
Requests/sec: 13980.02
Transfer/sec: 1.27GB
===== wrk Rust actix-web =====
6 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 54.79ms 37.49ms 282.66ms 80.38%
Req/Sec 2.99k 287.93 10.73k 80.61%
534568 requests in 30.10s, 53.17GB read
Requests/sec: 17760.11
Transfer/sec: 1.77GB
Watch video Web api benchmarking: Java (Vert.x) vs Rust (actix-web) #2 online without registration, duration hours minute second in high quality. This video was added by user Vagelis Prokopiou 30 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,210 once and liked it 23 people.