• Home
  • Raw
  • Download

Lines Matching full:benchmark

7 """Script to maintain the Telemetry benchmark default results file.
49 def ListCurrentDefaults(self, benchmark='all'): argument
51 # can specify the name of a particular benchmark to see only that
52 # benchmark's default values.
54 print('The benchmark default results are currently empty.')
55 if benchmark == 'all':
62 elif benchmark in self._defaults:
63 results = self._defaults[benchmark]
64 out_str = benchmark + ' : '
69 print("Error: Unrecognized benchmark '%s'" % benchmark)
71 def AddDefault(self, benchmark, result): argument
72 if benchmark in self._defaults:
73 resultList = self._defaults[benchmark]
77 self._defaults[benchmark] = resultList
78 print("Updated results set for '%s': " % benchmark)
79 print('%s : %s' % (benchmark, repr(self._defaults[benchmark])))
81 def RemoveDefault(self, benchmark, result): argument
82 if benchmark in self._defaults:
83 resultList = self._defaults[benchmark]
86 print("Updated results set for '%s': " % benchmark)
87 print('%s : %s' % (benchmark, repr(self._defaults[benchmark])))
90 "'%s' is not in '%s's default results list." % (result, benchmark))
92 print("Cannot find benchmark named '%s'" % benchmark)
97 def RemoveBenchmark(self, benchmark): argument
98 if benchmark in self._defaults:
99 del self._defaults[benchmark]
100 print("Deleted benchmark '%s' from list of benchmarks." % benchmark)
102 print("Cannot find benchmark named '%s'" % benchmark)
111 print("Cannot find benchmark named '%s'" % old_name)
126 (L)ist <benchmark> - List current defaults for benchmark
128 (A)dd <benchmark> <result> - Add a default result for a particular
129 benchmark (appends to benchmark's list
131 (D)elete <benchmark> <result> - Delete a default result for a
132 particular benchmark
133 (R)emove <benchmark> - Remove an entire benchmark (and its
135 (M)ove <old-benchmark> <new-benchmark> - Rename a benchmark
157 self.ListCurrentDefaults(benchmark=words[1])
162 benchmark = words[1]
165 self.AddDefault(benchmark, r)
170 benchmark = words[1]
172 self.RemoveDefault(benchmark, result)
177 benchmark = words[1]
178 self.RemoveBenchmark(benchmark)