Posts
All the articles I've posted.
Postgres vs MariaDB on two dedicated CPUs: the setup, the settings and every run
PostgreSQL 18 and MariaDB 12.3 behind the same Go service, loaded with k6 up to 3,200 users. Reads, writes, 20 million orders and a spike, with the machine sizes, the config files, the per-level tables and what a single run cannot tell you.
An 11-year-old hole in the Rust borrow checker, reproduced on stable, nightly and Rust 1.4
Issue #164250 shows safe Rust with no unsafe block that reads a String after it was freed. Here is the program, the one-line change the compiler rejects, AddressSanitizer's verdict, a run on Rust 1.4.0 from 2015 in Docker, and what the open fix changes.
Ten Spring Boot speedups on one small app, with the commands and the numbers
An index found through pg_stat_statements, join fetch, JDBC batching that stays off with IDENTITY ids, a Caffeine cache, projections, open-in-view, keyset paging, parallel calls, gzip and a JDK AOT cache. Each one with the code, the command that measures it and the output from one laptop.
Python 3.15, measured: lazy imports, the Tachyon profiler and the JIT on four workloads
Numbers from CPython 3.15.0 on one laptop: where 34 ms of startup go and how the lazy keyword removes them, the rules the keyword has, what the new sampling profiler prints next to the old one, and a JIT that makes one script 2.3 times faster and another one 9% slower.
Repeating MotherDuck's DuckDB 2.0 benchmarks on my own laptop
Three tests from the article 'Why DuckDB 2.0 is faster', run again on DuckDB 1.5.5 and the 2.0 alpha: a Parquet file on S3, a recursive query, and JSON stored as VARIANT. With the SQL, the output, and the one query that got slower.
IPv4 and IPv6 on your own laptop: seven checks you can run
Seven small experiments with ping, dig, curl and Python: one address written four ways, the 1500 byte limit, the private ranges, why a laptop has six IPv6 addresses, and what happens when a site has no IPv6 at all.
A Redis cache in Node.js after the first request: five checks you can run
The cache-aside demo goes from one second to two milliseconds. Here is the same app under twenty requests at once, after an update, with a counter that never expires and with a memory limit, each one measured.
Java garbage collection in its own log: eight checks you can run
Eden, survivor spaces, tenuring and full collections are easy to draw and easy to forget. Here is one 25-line program and the JVM flags that make each step show up as numbers you can add up yourself.