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

benchmark: update the tag test to newest arguments

Tracking the cold changelog vs warm changelog would be great.
parent f3fc81d2
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
class PerfTestSuite(BaseTestSuite): class PerfTestSuite(BaseTestSuite):
def track_tags(self, *args, **kwargs):
return self.perfext('perftags')
def track_status(self, *args, **kwargs): def track_status(self, *args, **kwargs):
return self.perfext("perfstatus") return self.perfext("perfstatus")
...@@ -358,3 +355,25 @@ ...@@ -358,3 +355,25 @@
cmd.append(source) cmd.append(source)
cmd.append(destination) cmd.append(destination)
return self.perfext(*cmd) return self.perfext(*cmd)
class PerfTagsTestSuite(BaseTestSuite):
params = BaseTestSuite.params + [['cold', 'warm']]
param_names = BaseTestSuite.param_names + ['changelog']
timeout = 300
@params_as_kwargs
def track_tags(self, changelog, *args, **kwargs):
if changelog == 'warm':
clearcache = False
elif changelog == 'cold':
clearcache = True
else:
assert False
cmd = ['perftags']
if clearcache:
cmd.append('--clear-revlogs')
else:
cmd.append('--no-clear-revlogs')
data = self.perfextjson(*cmd)
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