1. A method for compressing a workload used by an application comprising: providing a distance function for a pair of statements within an initial workload W containing an initial plurality of statements; and finding a compressed workload W′ containing a compressed plurality of statements.