Separate performance

Separated calculation of performance from graphing code