def __cmp__(self, runspec): """ Compares two run specifications. """ return cmp((self.machine, self.system, self.setting, self.benchmark), (runspec.machine, runspec.system, runspec.setting, runspec.benchmark))
def __cmp__(self, instance): """ Compares tow instances using the instance name. """ return cmp(self.instance, instance.instance)
def __cmp__(self, other): """ Compares two benchmark classes using their names. """ return cmp(self.name, other.name)
def __cmp__(self, config): """ Compares two configurations using their names. """ return cmp(config.name, config.name)
def __cmp__(self, machine): """ Compare two machines. """ return cmp(self.name, machine.name)
def __cmp__(self, job): """ Compares two jobs using their names. """ return cmp(job.name, job.name)
def __cmp__(self, setting): """ Compares two settings using their names. """ return cmp(self.name, setting.name)
def __cmp__(self, system): """ Compares two systems using name and version. """ return cmp((self.name, self.version), (system.name, system.version))
def __cmp__(self, project): """ Compares two projects. """ return cmp(project.name, project.name)
def __cmp__(self, benchmark): """ Compare two benchmark sets. """ return cmp(benchmark.name, benchmark.name)
def __cmp__(self, other): """ Compares two benchmark instances. """ return cmp((self.benchclass, self.name), (other.benchclass, other.name))
def __cmp__(self, other): """ Compares two benchmark classes. """ return cmp((self.benchmark, self.name), (other.benchmark, other.name))
def __cmp__(self, other): """ Compares two benchmarks. """ return cmp(self.name, other.name)
def __cmp__(self, other): return cmp( (self.setting.system.order, self.setting.order, self.machine.name), (other.setting.system.order, other.setting.order, other.machine.name))