Home | History | Annotate | Download | only in bench

Lines Matching refs:bench

11 # bench representation algorithm constant names
19 SETTINGS_RE = 'skia bench:((?:\s+' + PER_SETTING_RE + ')*)'
20 BENCH_RE = 'running bench (?:\[\d+ \d+\] )?\s*(\S+)'
24 # per-tile bench lines are in the following format. Note that there are
25 # non-averaged bench numbers in separate lines, which we ignore now due to
41 """A single data point produced by bench.
43 def __init__(self, bench, config, time_type, time, settings,
46 self.bench = bench
51 # float number of the bench time value
57 # list of float for per_tile bench values, if applicable
59 # list of float for per-iteration bench time, if applicable
64 str(self.bench),
118 def _ParseAndStoreTimes(config_re_compiled, is_per_tile, line, bench,
120 """Parses given bench time line with regex and adds data to value_dic.
124 is_per_tile: boolean indicating whether this is a per-tile bench.
127 bench: name of bench for the time values.
128 value_dic: dictionary to store bench values. See bench_dic in parse() below.
135 if is_per_tile: # per-tile bench, add name prefix
145 value_dic.setdefault(bench, {}).setdefault(
148 layout_dic.setdefault(bench, {}).setdefault(
152 """Parses all the skp bench data in the given directory.
157 rep: bench representation algorithm, see bench_util.py.
159 bench/benchmain.cpp.
169 # Scalar type, if any, is in the bench filename after 'scalar_'.
174 else: # Skips non skp bench files.
187 """Parses bench output into a useful data structure.
194 # [bench][config][time_type] -> [[per-iter values]] where per-tile config
199 # [bench][config][time_type] -> tile_layout
214 # see if this line starts a new bench
229 for bench in bench_dic:
230 for config in bench_dic[bench]:
231 for time_type in bench_dic[bench][config]:
235 bench_summary = None # a single final bench value
236 if len(bench_dic[bench][config][time_type]) > 1:
240 for iters in bench_dic[bench][config][time_type]]
241 # use sum of each tile representation for total bench value
244 tile_layout = layout_dic[bench][config][time_type]
247 per_iter_time = bench_dic[bench][config][time_type][0]
251 bench,