diff --git a/benchmarks/others.py b/benchmarks/others.py index 768e0afee6ac81fbd25bf9e441d5c5937e256511_YmVuY2htYXJrcy9vdGhlcnMucHk=..454a2b73a0af113f57b553a6d0b574bc7106cd69_YmVuY2htYXJrcy9vdGhlcnMucHk= 100644 --- a/benchmarks/others.py +++ b/benchmarks/others.py @@ -248,3 +248,11 @@ return float('nan') return data["read"].get('median', float('nan')) + @params_as_kwargs + def track_deltachain(self, *args, **kwargs): + cmd = ["perfrevlogrevision", "--manifest", "--", "-1"] + data = self.getperfdata((-1,), cmd) + if data is None: + return float('nan') + return data["deltachain"].get('median', float('nan')) +