setup-eatmydata: one-line GitHub Action makes fsync a no-op, 7x faster SQLite in CI

DanielLockyer · x · 2026-12-02

Daniel Lockyer released setup-eatmydata, a GitHub Action that installs eatmydata and turns fsync()/fdatasync()/sync() into no-ops for the rest of the job — safe since CI runners are thrown away anyway. Benchmarks on ubuntu-24.04 x64: SQLite 1000 autocommit inserts drop from 0.29s to 0.04s (7.6x), MySQL inserts 3.2x, Postgres migrations 2x, small-file fsync writes 6.7x. One-line usage via - uses: lockyer-labs/[email protected], with env (LDPRELOAD) and system scopes; note that sudo strips LDPRELOAD.

Original post →

More from coding & agent

coding & agent channel →