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

benchmark: add a simple benchmark for perfrevlogrevision

parent 3059353cac32
No related branches found
No related tags found
No related merge requests found
......@@ -194,3 +194,16 @@
command += '--clear-disk',
return self.perfext(*command)
class RevlogReadOneTestSuite(BaseTestSuite):
params = BaseTestSuite.params[:]
param_names = BaseTestSuite.param_names[:]
timeout = 300
@params_as_kwargs
def track_full(self, *args, **kwargs):
data = self.perfextjson("perfrevlogrevision", "--manifest", "--", "-1")
if data is None:
return float('nan')
return data["full"].get('median', float('nan'))
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