• Home
  • Raw
  • Download

Lines Matching full:benchmark

4 """Script to maintain the Telemetry benchmark default results file.
46 def ListCurrentDefaults(self, benchmark=all): argument
48 # can specify the name of a particular benchmark to see only that
49 # benchmark's default values.
51 print('The benchmark default results are currently empty.')
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)
108 print("Cannot find benchmark named '%s'" % old_name)
123 (L)ist <benchmark> - List current defaults for benchmark
125 (A)dd <benchmark> <result> - Add a default result for a particular
126 benchmark (appends to benchmark's list
128 (D)elete <benchmark> <result> - Delete a default result for a
129 particular benchmark
130 (R)emove <benchmark> - Remove an entire benchmark (and its
132 (M)ove <old-benchmark> <new-benchmark> - Rename a 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)