Add source code for examples of performance tuning