created performance-comparision example
removed currentMax to allow any number of samples plotted