# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1541591322 -3600
#      Wed Nov 07 12:48:42 2018 +0100
# Node ID 768e0afee6ac81fbd25bf9e441d5c5937e256511
# Parent  4dc17f14fbd1c48aff5a5a2c83844c9dfea65c59
benchmark: also track the `read` section of `perfrevlogrevision`

diff --git a/benchmarks/others.py b/benchmarks/others.py
--- a/benchmarks/others.py
+++ b/benchmarks/others.py
@@ -240,3 +240,11 @@
             return float('nan')
         return data["rawchunks"].get('median', float('nan'))
 
+    @params_as_kwargs
+    def track_read(self, *args, **kwargs):
+        cmd = ["perfrevlogrevision", "--manifest", "--", "-1"]
+        data = self.getperfdata((-1,), cmd)
+        if data is None:
+            return float('nan')
+        return data["read"].get('median', float('nan'))
+