Home | History | Annotate | Download | only in bench

Lines Matching refs:bench

10 # bench representation algorithm constant names
17 """A single data point produced by bench.
20 def __init__(self, bench, config, time_type, time, settings):
21 self.bench = bench
29 str(self.bench),
83 def _ParseAndStoreTimes(config_re, time_re, line, bench, dic,
85 """Parses given bench time line with regex and adds data to the given dic.
87 time_re: regular expression for parsing bench time.
89 bench: name of bench for the time values.
90 dic: dictionary to store bench values. See bench_dic in parse() below.
95 if config_re.startswith(' tile_'): # per-tile bench, add name prefix
102 dic.setdefault(bench, {}).setdefault(current_config, {}).setdefault(
107 """Parses bench output into a useful data structure.
114 bench_dic = {} # [bench][config][time_type] -> [list of bench values]
116 settings_re = 'skia bench:((?:\s+' + setting_re + ')*)'
117 bench_re = 'running bench (?:\[\d+ \d+\] )?\s*(\S+)'
121 # per-tile bench lines are in the following format. Note that there are
122 # non-averaged bench numbers in separate lines, which we ignore now due to
139 # see if this line starts a new bench
150 # append benches to list, use the total time as final bench value.
151 for bench in bench_dic:
152 for config in bench_dic[bench]:
153 for time_type in bench_dic[bench][config]:
155 bench,
158 sum(bench_dic[bench][config][time_type]),