Explore benchmarking and optimization techniques for Rust libraries in this 31-minute conference talk from RustConf 2018. Dive into the journey of consistently and fairly benchmarking library functions, and discover strategies for enhancing performance. Learn about micro vs. macro benchmarking, obtaining realistic workloads, and returning to fundamentals. Examine practical examples, including PostgreSQL write performance and storing decimal numbers. Investigate techniques such as exploiting fixed-size primitive types, copying vs. borrowing, and the potential use of unsafe code. Gain insights into developing high-quality, ergonomic, and performant Rust libraries to contribute to the growing Rust ecosystem.