I’d have to see what your configuration looked like to see what room for optimization there was if any. @404error did quite a bit of benchmarks on his own, and with his permission this is his spreadsheet and appraisal. One thing I always recommend, for WP, is kill WordFence. It happens too late in processing to be of much value and the overhead plus schema leave much to be desired. ApisCP provides equivalent tooling elsewhere in the stack.
You can always benchmark a baseline and go from there.
UDF_Optimizations_Results.zip (11.6 KB)