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

benchmark: add an "identical" discovery benchmark

This one is dedicated to tracking the time taken for two identical repository to
realise they are identical.

We take the addition of a new test as an opportunity to give it a proper name to
this test.
parent 631ac2098634
No related branches found
No related tags found
No related merge requests found
......@@ -387,6 +387,17 @@
return self.perfext('perfdiscovery', '--repository', source, target)
@setup_role
class DiscoveryIdenticalTimeSuite(BaseDiscoveryTimeSuite):
role_action = 'discovery'
role_subtype = 'identical'
@params_as_kwargs
@not_broken_hgweb
def track_identical(self, *args, **kwargs):
return self._track_discovery(self, *args, **kwargs)
track_identical.benchmark_name = 'exchange.discovery.changesets.track_identical'
@setup_role
class DiscoverySubsetTimeSuite(BaseDiscoveryTimeSuite):
role_action = 'discovery'
role_subtype = 'subset'
......
roles:
discovery:
identical:
same:
source: "reference"
target: "same"
subset:
last-ten:
source: "last-ten"
......
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