Skip to content

Commit

Permalink
Document font used in benchmark charts (astral-sh#1309)
Browse files Browse the repository at this point in the history
The labels were missing when I generated the charts on my Arch machine. 

Inspecting the intermediate SVG showed that we use Google's Roboto font
(and the rendering library doesn't support fallback fonts).

I installed the font and TADA, the labels appeared. I extended our
documentation to mention the required fonts.
  • Loading branch information
MichaReiser authored Feb 15, 2024
1 parent 7686697 commit c5e413c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ cargo run -p puffin-dev render-benchmarks install-warm.json --title "Warm Instal
cargo run -p puffin-dev render-benchmarks install-cold.json --title "Cold Installation"
```

You need to install the [Roboto Font](https://fonts.google.com/specimen/Roboto) if the labels are missing in the generated graph.

## Acknowledgements

The inclusion of this `BENCHMARKS.md` file was inspired by the excellent benchmarking documentation
Expand Down

0 comments on commit c5e413c

Please sign in to comment.