Tag: performance
All the articles with the tag "performance".
Golang profiling with pprof: a slow regex and a leaking slice, found and measured
A Go log search service averages 41 ms per search and its container grows to 399 MiB in a minute. pprof's CPU profile points at regexp.MustCompile inside a loop (86% of samples), a heap profile compared with -base points at one line, and both fixes are measured with k6. Plus what profiling costs in production.
One index, 467x faster: reading a PostgreSQL B-tree from the inside
Five million rows, one customer, 54 ms with a sequential scan and 0.116 ms with a B-tree index. The EXPLAIN output line by line, the tree's real depth from pageinspect, what the index costs, and every command to repeat it.
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.
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.
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.