Measuring CPU instructions when querying PostgreSQL
Summary: Michael Stonebraker once published a classic paper titled OLTP Through the Looking Glass, and What We Found There. In it, CPU instruction count was used as a metric to analyze the workload overhead of various database stages.