January 2019
Intermediate to advanced
520 pages
14h 32m
English
The code included three optimizations. We can use some of them to check the difference in performance. First, we will compile the code with RwLock and borrow the state's value features. If you use the code from the book's GitHub repository, you can run the necessary optimizations using the --features argument with the corresponding feature names:
cargo run --release --features rwlock,borrow
Once the server is ready, we can start running the same test we used to measure performance of this microservice before, with Welle, to measure how many incoming requests the optimized version of the server can handle.
After testing, the tool will print a report like this:
Total Requests: 100000Concurrency Count: 10Total ...
Read now
Unlock full access