The impact of link time optimization for MySQL with sysbench
This post has results to show the benefit from using link time optimization for MySQL. That is enabled via the CMake option -DWITH_LTO=ON. tl;dr A typical improvement is ~5% more QPS from link time optimization On the small servers (PN53, SER4) the benefit from link-time optimization was larger for InnoDB than for MyRocks. On the medium server (C2D) the benefit was similar for MyRocks and InnoDB. Builds I used InnoDB from MySQL 8.0.37 and MyRocks from FB MySQL compiled on git sha 65644b82c which uses RocksDB 9.3.1 and was latest as of June 12, 2024. The compiler was gcc 11.4.0. Hardware I tested on three servers: SER4 - Beelink SER 4700u ( see here ) with 8 cores and a Ryzen 7 4700u CPU PN53 - ASUS ExpertCenter PN53 ( see here ) with 8 cores and an AMD Ryzen 7 7735HS CPU C2D - a c2d-highcpu-32 instance type on GCP (c2d high-CPU) with 32 vCPU and SMT disabled so there are 16 cores All servers use Ubuntu 22.04 with ext4. Benchmark I used sysbench and my usage is explained here . The