Back to Browse

Web api benchmarking: Rust (Axum) vs Rust (Hyper)

1.4K views
Feb 17, 2024
17:32

========== Axum Oha ========== CPU: 50% RAM: 4MB Summary: Success rate: 1.0000 Total: 6.8491 secs Slowest: 0.0207 secs Fastest: 0.0005 secs Average: 0.0068 secs Requests/sec: 14600.4602 Total data: 8.82 GiB Size/request: 92.46 KiB Size/sec: 1.29 GiB Response time histogram: 0.002 [4826] |■■■■■ 0.004 [14648] |■■■■■■■■■■■■■■■■■ 0.005 [18571] |■■■■■■■■■■■■■■■■■■■■■■ 0.007 [26227] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.009 [20009] |■■■■■■■■■■■■■■■■■■■■■■■■ 0.011 [10094] |■■■■■■■■■■■■ 0.013 [3900] |■■■■ 0.015 [1245] |■ 0.016 [365] | 0.018 [80] | 0.020 [35] | Latency distribution: 10% in 0.0031 secs 25% in 0.0048 secs 50% in 0.0068 secs 75% in 0.0087 secs 90% in 0.0105 secs 95% in 0.0116 secs 99% in 0.0141 secs Status code distribution: [200] 100000 responses ========== Axum Wrk ========== CPU: 50% RAM: 6MB Running 30s test @ http://localhost:3000/api/users 6 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 5.49ms 2.13ms 18.32ms 69.05% Req/Sec 2.93k 156.41 3.30k 67.44% 525279 requests in 30.01s, 46.37GB read Requests/sec: 17504.97 Transfer/sec: 1.55GB ========== Hyper Oha ========== CPU: 50% RAM: 9MB Summary: Success rate: 1.0000 Total: 5.4824 secs Slowest: 0.0146 secs Fastest: 0.0004 secs Average: 0.0055 secs Requests/sec: 18240.2136 Total data: 8.91 GiB Size/request: 93.44 KiB Size/sec: 1.63 GiB Response time histogram: 0.001 [3526] |■■■■ 0.003 [10695] |■■■■■■■■■■■■■■ 0.004 [15196] |■■■■■■■■■■■■■■■■■■■■■ 0.005 [22288] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.006 [23069] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 0.008 [14155] |■■■■■■■■■■■■■■■■■■■ 0.009 [7140] |■■■■■■■■■ 0.010 [2797] |■■■ 0.012 [841] |■ 0.013 [241] | 0.014 [52] | Latency distribution: 10% in 0.0025 secs 25% in 0.0039 secs 50% in 0.0055 secs 75% in 0.0069 secs 90% in 0.0083 secs 95% in 0.0091 secs 99% in 0.0108 secs Status code distribution: [200] 100000 responses ========== Hyper Wrk ========== CPU: 50% RAM: 5.5MB Running 30s test @ http://localhost:3001/api/users 6 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 4.37ms 1.70ms 14.41ms 69.36% Req/Sec 3.68k 231.89 4.20k 63.28% 659951 requests in 30.00s, 58.86GB read Requests/sec: 21995.96 Transfer/sec: 1.96GB

Download

0 formats

No download links available.

Web api benchmarking: Rust (Axum) vs Rust (Hyper) | NatokHD