D6170: perf: copyedit a few documentation strings

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Mar 27 09:33:01 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4c700c847aa2: perf: copyedit a few documentation strings (authored by durin42, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D6170?vs=14593&id=14595#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6170?vs=14593&id=14595

REVISION DETAIL
  https://phab.mercurial-scm.org/D6170

AFFECTED FILES
  contrib/perf.py
  tests/test-contrib-perf.t

CHANGE DETAILS

diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t
+++ b/tests/test-contrib-perf.t
@@ -48,25 +48,25 @@
   ------
   
   "all-timing"
-      When set, additional statistic will be reported for each benchmark: best,
+      When set, additional statistics will be reported for each benchmark: best,
       worst, median average. If not set only the best timing is reported
       (default: off).
   
   "presleep"
-    number of second to wait before any group of run (default: 1)
+    number of second to wait before any group of runs (default: 1)
   
   "run-limits"
-    Control the number of run each benchmark will perform. The option value
+    Control the number of runs each benchmark will perform. The option value
     should be a list of '<time>-<numberofrun>' pairs. After each run the
-    condition are considered in order with the following logic:
+    conditions are considered in order with the following logic:
   
-        If benchmark have been running for <time> seconds, and we have performed
+        If benchmark has been running for <time> seconds, and we have performed
         <numberofrun> iterations, stop the benchmark,
   
     The default value is: '3.0-100, 10.0-3'
   
   "stub"
-      When set, benchmark will only be run once, useful for testing (default:
+      When set, benchmarks will only be run once, useful for testing (default:
       off)
   
   list of commands:
diff --git a/contrib/perf.py b/contrib/perf.py
--- a/contrib/perf.py
+++ b/contrib/perf.py
@@ -8,25 +8,26 @@
 --------
 
 ``all-timing``
-    When set, additional statistic will be reported for each benchmark: best,
+    When set, additional statistics will be reported for each benchmark: best,
     worst, median average. If not set only the best timing is reported
     (default: off).
 
 ``presleep``
-  number of second to wait before any group of run (default: 1)
+  number of second to wait before any group of runs (default: 1)
 
 ``run-limits``
-  Control the number of run each benchmark will perform. The option value
+  Control the number of runs each benchmark will perform. The option value
   should be a list of `<time>-<numberofrun>` pairs. After each run the
-  condition are considered in order with the following logic:
-
-      If benchmark have been running for <time> seconds, and we have performed
+  conditions are considered in order with the following logic:
+
+      If benchmark has been running for <time> seconds, and we have performed
       <numberofrun> iterations, stop the benchmark,
 
   The default value is: `3.0-100, 10.0-3`
 
 ``stub``
-    When set, benchmark will only be run once, useful for testing (default: off)
+    When set, benchmarks will only be run once, useful for testing
+    (default: off)
 '''
 
 # "historical portability" policy of perf.py:
@@ -1217,8 +1218,8 @@
 def perfparents(ui, repo, **opts):
     """benchmark the time necessary to fetch one changeset's parents.
 
-    The fetch is done using the `node identifier`, traversing all object layer
-    from the repository object. The N first revision will be used for this
+    The fetch is done using the `node identifier`, traversing all object layers
+    from the repository object. The first N revisions will be used for this
     benchmark. N is controlled by the ``perf.parentscount`` config option
     (default: 1000).
     """



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list