codeperf.io

Code & benchmarks

Open source.

Libraries I help maintain, patches I’ve contributed, and the measurements behind them.

# orca-offload

I’m building orca-offload as a personal project. When I leave work or a coworking space, I want a server I own at home to pick up the coding task on my laptop. The plugin moves a selected Orca worktree and an agent-written checkpoint so Claude Code or Codex can continue there. Why I’m building orca-offload · Source and releases (opens new window).

# HdrHistogram in C and Go

I help maintain the C and Go implementations of HdrHistogram. A recurring problem is how to ask for several percentiles cheaply. A histogram keeps ordered counts, so one walk through those counts can answer an entire ordered set of percentile queries. The C 0.12.0 release measured a 20–33× speedup for a four-percentile lookup against 0.11.10 in the release benchmarks. I brought that batch lookup into Redis for INFO latencystats. C release and benchmark setup (opens new window) · Redis integration (opens new window).

In Go, the trade-off also shows up in memory use. Keeping a full array of counts for every histogram gets expensive when most buckets stay empty. The Go 1.4.0 release adds a sparse PackedHistogram and improves batched quantile reads. Go release (opens new window).

You can follow the profiling experiments in the HdrHistogram agent workspace (opens new window).

# fast_float and ffc.h

I contribute to fast_float, the C++ number parser, and ffc.h, its C99 port. One C++ patch handles four digits at a time. On the C side, I profiled changes on Graviton4 and Xeon and worked on the rounding path. Four-digit parsing patch (opens new window) · ffc.h optimization series (opens new window) · Rounding fix (opens new window).

Daniel Lemire rebuilt successive fast_float commits on an Intel Xeon Gold 6548N. From March to July 2026, he measured 43% higher throughput on the long coordinates in canada.txt and 70% on the shorter coordinates in mesh.txt. He credits Koleman Nix and me for those optimizations. Lemire’s measurements (opens new window) · My contribution to the benchmark corpus (opens new window).

The public experiment log shows both accepted and rejected changes. Each experiment changes one parser, uses the other as a control, and compares interleaved runs against the variation measured between two identical builds. ffc agent workspace (opens new window).

# Redis and its benchmarks

I help maintain memtier_benchmark, the workload generator we use to drive Redis and Memcached, and the Redis Benchmarks Specification. The specification describes how to build a revision, run a workload, collect its telemetry and compare results across revisions. It gives the next engineer a way to repeat a measurement. memtier_benchmark release (opens new window) · Specification and contributors (opens new window) · Technical write-up (opens new window).

On the database side, I’ve worked on batching sorted-set member lookups in ZINTER and ZMSCORE. I also contribute to benchmark tools outside Redis. In go-ycsb I added export of the full latency distribution for each operation type. In Qdrant’s vector-db-benchmark I fixed filtering and query ordering in the Redis client. Redis sorted-set patch (opens new window) · go-ycsb latency output (opens new window) · Vector benchmark client (opens new window).

# topdown-profiler for humans and agents

When a benchmark slows down, I want to know what the CPU was waiting for. topdown-profiler collects hardware counters and stores each run with labels such as the branch and workload. An engineer at a terminal and an AI agent can investigate the same measurements.

At the terminal, collect a 30-second profile while your Redis benchmark is running, then ask for the highest-ranked CPU bottlenecks in that workload. Installation and quick start (opens new window).

topdown collect --process redis-server --duration 30s --label test_name=set-get
topdown query --label test_name=set-get --bottlenecks

With an agent, connect your Model Context Protocol (MCP) client to topdown mcp-serve. After profiling the same workload on two branches and labeling each run with its branch, ask “Which CPU bottleneck changed most between these two runs?” The agent can compare the labeled profiles and show the counters behind its answer. MCP setup and tools (opens new window).

# Streaming quantiles

I also work on t-digest-c, a C library for estimating quantiles from streaming data. One example is handling infinite values when adding samples or merging digests. t-digest-c change (opens new window).

Browse my public repositories and contribution histories on GitHub. @filipecosta90 · personal (opens new window) · @fcostaoliveira · Redis (opens new window).