With a set of parameters to a program specified, ptune searches for the best output either by trying all combinations of the parameters, or by intelligently searching for local optimums. Parameter tuning can be carried out on a cluster for load sharing.