January 2019
Intermediate to advanced
520 pages
14h 32m
English
First, we will build and run the code using a standard command without any flags:
cargo run
We build a binary with a lot of debugging information, which can be used with LLDB as we did in Chapter 13, Testing and Debugging Rust Microservices. A debugging symbol reduces performance, but we will check it to compare it with a version without these symbols later.
Let's load the running server with 100000 requests from 10 concurrent activities. Since our server was bound to port 8080 of localhost, we can use the welle command with the following arguments to measure the performance:
welle --concurrent-requests 10 --num-requests 100000 http://localhost:8080
It takes about 30 seconds (depending on your system) and the tool will print the ...
Read now
Unlock full access