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

benchmark: add timing for the "compatibility" mode from tracecopy

This new experimental mode need to be tracked. The initial implementation is
quite slow but things could get better over time.
parent 9efcf9eb
No related branches found
No related tags found
No related merge requests found
...@@ -321,8 +321,8 @@ ...@@ -321,8 +321,8 @@
return data["slice-sparse-chain"].get('median', float('nan')) return data["slice-sparse-chain"].get('median', float('nan'))
class PerfTracecopiesSuite(BaseTestSuite): class PerfTracecopiesSuite(BaseTestSuite):
params = BaseTestSuite.params params = BaseTestSuite.params + [("changeset-compability", "default")]
param_names = BaseTestSuite.param_names param_names = BaseTestSuite.param_names + ["copies-data"]
timeout = 300 timeout = 300
...@@ -351,6 +351,12 @@ ...@@ -351,6 +351,12 @@
cmd = ['perfpathcopies'] cmd = ['perfpathcopies']
cmd.append(source) cmd.append(source)
cmd.append(destination) cmd.append(destination)
if kwargs["copies-data"] == "changeset-compability":
skip =self.should_skip_benchmark
if skip("(not 49ad315b39ee::)", self.get_asv_rev(), None, None):
return float('nan')
cmd.append("--config")
cmd.append("experimental.copies.read-from=compatibility")
return self.perfext(*cmd) return self.perfext(*cmd)
class PerfTagsTestSuite(BaseTestSuite): class PerfTagsTestSuite(BaseTestSuite):
......
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