testing speedup for diferent number of variables