nnethercote/perf-book

The Rust Performance Book

2,737

211 commits

updated Apr 23, 2026

See the code

README

perf-book

The Rust Performance Book.

Viewing

The rendered (HTML) book is here.

Building

The book is built with mdbook, which can be installed with this command:

cargo install mdbook

To build the book, run this command:

mdbook build

The generated files are put in the book/ directory.

Development

To view the built book, run this command:

mdbook serve

This will launch a local web server to serve the book. View the built book by navigating to localhost:3000 in a web browser. While the web server is running, the rendered book will automatically update if the book's files change.

To test the code within the book, run this command:

mdbook test

Improvements

Suggestions for improvements are welcome, but I prefer them to be filed as issues rather than pull requests. This is because I am very particular about the wording used in the book. When pull requests are made, I typically take the underlying idea of a pull request and rewrite it into my own words anyway.

This book contains no material produced by generative AI, and none will be accepted.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

nnethercote/perf-book

The Rust Performance Book

2,737

211 commits

updated Apr 23, 2026

See the code

README

perf-book

The Rust Performance Book.

Viewing

The rendered (HTML) book is here.

Building

The book is built with mdbook, which can be installed with this command:

cargo install mdbook

To build the book, run this command:

mdbook build

The generated files are put in the book/ directory.

Development

To view the built book, run this command:

mdbook serve

This will launch a local web server to serve the book. View the built book by navigating to localhost:3000 in a web browser. While the web server is running, the rendered book will automatically update if the book's files change.

To test the code within the book, run this command:

mdbook test

Improvements

Suggestions for improvements are welcome, but I prefer them to be filed as issues rather than pull requests. This is because I am very particular about the wording used in the book. When pull requests are made, I typically take the underlying idea of a pull request and rewrite it into my own words anyway.

This book contains no material produced by generative AI, and none will be accepted.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Significant stargazers

(top 24 of 110)

Taiki Endo

1,026 followers · starred Jan 2021

Amaan Qureshi

379 followers · starred Oct 2023

Ingvar Stepanyan

1,854 followers · starred Nov 2025

est31

235 followers · starred Nov 2020