Backend

Benchmarks on a mini PC are honest enough

A 150-euro mini PC under the desk gives numbers I trust more than my laptop’s. Same machine, same load, every time.

Every number on this blog comes from the same mini PC under my desk: four cores, 16 GB, Debian, nothing else running. It is slower than my laptop, and that is the point. My laptop throttles, updates itself and runs a browser with 40 tabs; the mini PC does none of that, so a number from March can be compared with a number from October.

I run autocannon from the laptop over a cable, never on the same machine. Thirty seconds, a hundred connections, three runs, and I publish the median. If two runs differ by more than 3 %, something else was running, and I start again.

$ npx autocannon -d 30 -c 100 http://desk-pc:8080/posts/hello

These numbers will not match your server. They are meant to compare two versions of the same code, and for that they are good enough.

Comments

Buy Logbuch