Exemple #1
0
 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))
Exemple #2
0
 def __cmp__(self, instance):
     """
     Compares tow instances using the instance name.
     """
     return cmp(self.instance, instance.instance)
Exemple #3
0
 def __cmp__(self, other):
     """
     Compares two benchmark classes using their names.
     """
     return cmp(self.name, other.name)
Exemple #4
0
 def __cmp__(self, config):
     """
     Compares two configurations using their names.
     """
     return cmp(config.name, config.name)
Exemple #5
0
 def __cmp__(self, machine):
     """
     Compare two machines.
     """
     return cmp(self.name, machine.name)
Exemple #6
0
 def __cmp__(self, job):
     """
     Compares two jobs using their names. 
     """
     return cmp(job.name, job.name)
Exemple #7
0
 def __cmp__(self, setting):
     """
     Compares two settings using their names. 
     """
     return cmp(self.name, setting.name)
Exemple #8
0
 def __cmp__(self, system):
     """
     Compares two systems using name and version. 
     """
     return cmp((self.name, self.version), (system.name, system.version))
Exemple #9
0
 def __cmp__(self, project):
     """
     Compares two projects.
     """
     return cmp(project.name, project.name)
Exemple #10
0
 def __cmp__(self, benchmark):
     """
     Compare two benchmark sets.
     """
     return cmp(benchmark.name, benchmark.name)
Exemple #11
0
 def __cmp__(self, other):
     """
     Compares two benchmark instances. 
     """
     return cmp((self.benchclass, self.name),
                (other.benchclass, other.name))
Exemple #12
0
 def __cmp__(self, other):
     """
     Compares two benchmark classes. 
     """
     return cmp((self.benchmark, self.name), (other.benchmark, other.name))
Exemple #13
0
 def __cmp__(self, other):
     """
     Compares two benchmarks.
     """
     return cmp(self.name, other.name)
Exemple #14
0
 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))