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

benchmark: add a test for perfbranchmapload

We have considated the command and would like to get report from it now.
parent 8db929b9
No related branches found
No related tags found
No related merge requests found
......@@ -377,3 +377,27 @@
cmd.append('--no-clear-revlogs')
data = self.perfextjson(*cmd)
return data[None]['median']
class PerfBranchmapLoadSuite(BaseTestSuite):
params = BaseTestSuite.params + [['cold', 'warm']]
param_names = BaseTestSuite.param_names + ['changelog']
timeout = 300
@params_as_kwargs
def track_perfbranchmap_load(self, changelog, *args, **kwargs):
if changelog == 'warm':
clearcache = False
elif changelog == 'cold':
clearcache = True
else:
assert False
cmd = ['perfbranchmapload']
if clearcache:
cmd.append('--clear-revlogs')
else:
cmd.append('--no-clear-revlogs')
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