Mercurial > hg
comparison relnotes/next @ 44996:c2df0bca0dfa
perf: make `hg perfwrite` more flexible
The more flexible command was used recently while finding a solution for a
buffering bug (eventually fixed in f9734b2d59cc (the changeset description uses
a different benchmark)).
In comparison to the previous version, the new version is much more flexible.
While using it, the focus was on testing small writes. For this reason, by
default it calls ui.write() 100 times with a single byte plus one newline byte,
for 100 lines.
To get the previous behavior, run `hg perfwrite --nlines=100000 --nitems=1
--item='Testing write performance' --batch-line`.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 05 Jun 2020 01:54:13 +0200 |
parents | f330d6117a5b |
children | 72feaeb510b3 |
comparison
equal
deleted
inserted
replaced
44995:2c920c4dbb31 | 44996:c2df0bca0dfa |
---|---|
15 * Mercurial now requires at least Python 2.7.9 or a Python version that | 15 * Mercurial now requires at least Python 2.7.9 or a Python version that |
16 backported modern SSL/TLS features (as defined in PEP 466), and that Python | 16 backported modern SSL/TLS features (as defined in PEP 466), and that Python |
17 was compiled against a OpenSSL version supporting TLS 1.1 or TLS 1.2 | 17 was compiled against a OpenSSL version supporting TLS 1.1 or TLS 1.2 |
18 (likely this requires the OpenSSL version to be at least 1.0.1). | 18 (likely this requires the OpenSSL version to be at least 1.0.1). |
19 | 19 |
20 * The `hg perfwrite` command from contrib/perf.py was made more flexible and | |
21 changed its default behavior. To get the previous behavior, run `hg perfwrite | |
22 --nlines=100000 --nitems=1 --item='Testing write performance' --batch-line`. | |
23 | |
20 | 24 |
21 == Internal API Changes == | 25 == Internal API Changes == |
22 | 26 |
23 * logcmdutil.diffordiffstat() now takes contexts instead of nodes. | 27 * logcmdutil.diffordiffstat() now takes contexts instead of nodes. |
24 | 28 |