# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1558288400 -7200 # Sun May 19 19:53:20 2019 +0200 # Node ID 3dda1158c2d7ee4739a1424f08cc9721c15eaf05 # Parent 9efcf9eb273a02aaf74f9cb09a657a4243d010a3 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. diff --git a/benchmarks/others.py b/benchmarks/others.py --- a/benchmarks/others.py +++ b/benchmarks/others.py @@ -321,8 +321,8 @@ return data["slice-sparse-chain"].get('median', float('nan')) class PerfTracecopiesSuite(BaseTestSuite): - params = BaseTestSuite.params - param_names = BaseTestSuite.param_names + params = BaseTestSuite.params + [("changeset-compability", "default")] + param_names = BaseTestSuite.param_names + ["copies-data"] timeout = 300 @@ -351,6 +351,12 @@ cmd = ['perfpathcopies'] cmd.append(source) 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) class PerfTagsTestSuite(BaseTestSuite):