There is one 2.7ms db query that gets run during template rendering. The other three queries are run before the rendering starts and are also below 200ms, so I'm pretty sure the template rendering took the longest at around 500ms.
The raspberry pi doesn't have the fastest CPU so this might not be an issue on a regular host.