Lines Matching defs:Results
24 "results_processor": <optional python results processor script>,
30 "results_processor": <optional python results processor script>,
152 class Results(object):
175 """Represents a series of results of one trace.
177 The results are from repetitive runs of the same executable. They are
186 self.results = []
193 self.results.append(str(float(result)))
212 return Results([{
215 "results": self.results,
228 return Results()
243 results for a configured list of traces.
255 Returns: A "Results" object.
263 res = reduce(lambda r, m: r + m.GetResults(), measurements, Results())
269 if len(set(map(lambda t: len(t["results"]), res.traces))) != 1:
270 res.errors.append("Not all traces have the same number of results.")
274 # there is at least one trace and that the number of results is the same
276 n_results = len(res.traces[0]["results"])
277 total_results = [GeometricMean(t["results"][i] for t in res.traces)
282 "results": total_results,
290 generic results.
297 Returns: A "Results" object.
317 results = [result]
319 results = map(str.strip, match_list.group(1).split(","))
321 results = [body.strip()]
324 results = map(lambda r: str(float(r)), results)
326 results = []
330 trace_result = traces.setdefault(trace, Results([{
333 "results": [],
336 trace_result.traces[0]["results"].extend(results)
339 return reduce(lambda r, t: r + t, traces.itervalues(), Results())
402 # A regular expression for results. If the parent graph provides a
933 parser.add_option("--json-test-results",
934 help="Path to a file for storing json results.")
935 parser.add_option("--json-test-results-no-patch",
936 help="Path to a file for storing json results from run "
964 "'powersave' for more stable results, or 'performance' "
966 "more noise in results.")
987 print("For writing json test results without patch, an outdir without "
1021 results = Results()
1022 results_no_patch = Results()
1029 results.errors.append("Configuration file %s does not exist." % path)
1063 results += result
1068 results.WriteToFile(options.json_test_results)
1070 print results
1077 return min(1, len(results.errors))