Lines Matching refs:benchmark
46 def ListCurrentDefaults(self, benchmark=all): argument
52 if benchmark == all:
59 elif benchmark in self._defaults:
60 results = self._defaults[benchmark]
61 out_str = benchmark + ' : '
66 print("Error: Unrecognized benchmark '%s'" % benchmark)
68 def AddDefault(self, benchmark, result): argument
69 if benchmark in self._defaults:
70 resultList = self._defaults[benchmark]
74 self._defaults[benchmark] = resultList
75 print("Updated results set for '%s': " % benchmark)
76 print('%s : %s' % (benchmark, repr(self._defaults[benchmark])))
78 def RemoveDefault(self, benchmark, result): argument
79 if benchmark in self._defaults:
80 resultList = self._defaults[benchmark]
83 print("Updated results set for '%s': " % benchmark)
84 print('%s : %s' % (benchmark, repr(self._defaults[benchmark])))
87 benchmark))
89 print("Cannot find benchmark named '%s'" % benchmark)
94 def RemoveBenchmark(self, benchmark): argument
95 if benchmark in self._defaults:
96 del self._defaults[benchmark]
97 print("Deleted benchmark '%s' from list of benchmarks." % benchmark)
99 print("Cannot find benchmark named '%s'" % benchmark)
154 self.ListCurrentDefaults(benchmark=words[1])
159 benchmark = words[1]
162 self.AddDefault(benchmark, r)
167 benchmark = words[1]
169 self.RemoveDefault(benchmark, result)
174 benchmark = words[1]
175 self.RemoveBenchmark(benchmark)