Skip to content
Snippets Groups Projects
Commit edb28944 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: also track time from perfbranchmapupdate

This command is benchmarking some in-progress work.
parent 4fafef4c
No related branches found
No related tags found
No related merge requests found
......@@ -401,3 +401,32 @@
if None not in data:
return float('nan')
return data[None]['median']
class PerfBranchmapUpdateSuite(BaseTestSuite):
params = BaseTestSuite.params + [['cold', 'warm'], [1, 100, 10000]]
param_names = BaseTestSuite.param_names + ['caches', 'missingrevs']
timeout = 300
@params_as_kwargs
def track_perfbranchmap_update(self, caches, missingrevs, *args, **kwargs):
if caches == 'warm':
clearcache = False
elif caches == 'cold':
clearcache = True
else:
assert False
cmd = ['perfbranchmapupdate', '--quiet']
if clearcache:
cmd.append('--clear-caches')
else:
cmd.append('--no-clear-caches')
cmd.append('--base')
cmd.append('not -%d:' % missingrevs)
cmd.append('--target')
cmd.append('-%d:' % missingrevs)
data = self.perfextjson(*cmd)
if None not in data:
return float('nan')
return data[None]['median']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment