<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Performance on NoRaincheck</title><link>https://noraincheck.github.io/tags/performance/</link><description>Recent content in Performance on NoRaincheck</description><generator>Hugo</generator><language>en-US</language><copyright>NoRaincheck</copyright><lastBuildDate>Wed, 15 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://noraincheck.github.io/tags/performance/index.xml" rel="self" type="application/rss+xml"/><item><title>Beating FastAPI</title><link>https://noraincheck.github.io/posts/beating-fastapi/</link><pubDate>Wed, 15 Jul 2026 00:00:00 +0000</pubDate><guid>https://noraincheck.github.io/posts/beating-fastapi/</guid><description>&lt;p&gt;One thing which Go does a lot better than Python is single binary deployments. As an &lt;a href="https://github.com/NoRaincheck/gofre"&gt;experiment&lt;/a&gt; I thought, why not have a way to package up Go as part of a Python package, similar to &lt;a href="https://www.maturin.rs/"&gt;maturin&lt;/a&gt; - and also have a way to spin up a Python webserver that is packaged as a Go binary.&lt;/p&gt;&#10;&lt;p&gt;The results were definitely interesting:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Go binary had 9x more throughput than stdlib Python&amp;rsquo;s http library, and ~5x more throughput than FastAPI&lt;/li&gt;&#10;&lt;li&gt;Idle memroy usage was `3x higher for FastAPI, and the peak memory usage was ~2x higher than Go binary&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Of course the pocket python restriction may be too much for more complex applications.&lt;/p&gt;</description></item></channel></rss>