tests/cgienv
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 05 Apr 2024 11:05:54 +0200
changeset 51576 de5bf3fe0233
parent 13269 aa3f726a2bdb
permissions -rw-r--r--
revset: stop serializing node when using "%ln" Turning hundred of thousand of node from node to hex and back can be slow… what about we stop doing it? In many case were we are using node id we should be using revision id. However this is not a good reason to have a stupidly slow implementation of "%ln". This caught my attention again because the phase discovery during push make an extensive use of "%ln" or huge set. In absolute, that phase discovery probably should use "%ld" and need to improves its algorithmic complexity, but improving "%ln" seems simple and long overdue. This greatly speeds up `hg push` on repository with many drafts. Here are some relevant poulpe benchmarks: ### data-env-vars.name = mozilla-try-2023-03-22-zstd-sparse-revlog # benchmark.name = hg.command.push # bin-env-vars.hg.flavor = default # bin-env-vars.hg.py-re2-module = default # benchmark.variants.explicit-rev = all-out-heads # benchmark.variants.issue6528 = disabled # benchmark.variants.protocol = ssh # benchmark.variants.reuse-external-delta-parent = default ## benchmark.variants.revs = any-1-extra-rev before: 44.235070 after: 20.416329 (-53.85%, -23.82) ## benchmark.variants.revs = any-100-extra-rev before: 49.234697 after: 26.519829 (-46.14%, -22.71) ### benchmark.name = hg.command.bundle # bin-env-vars.hg.flavor = default # bin-env-vars.hg.py-re2-module = default # benchmark.variants.revs = all # benchmark.variants.type = none-streamv2 ## data-env-vars.name = heptapod-public-2024-03-25-zstd-sparse-revlog before: 10.138396 after: 7.750458 (-23.55%, -2.39) ## data-env-vars.name = mercurial-public-2024-03-22-zstd-sparse-revlog before: 1.263859 after: 0.700229 (-44.60%, -0.56) ## data-env-vars.name = mozilla-try-2023-03-22-zstd-sparse-revlog before: 399.484481 after: 346.5089 (-13.26%, -52.98) ## data-env-vars.name = pypy-2024-03-22-zstd-sparse-revlog before: 4.540080 after: 3.401700 (-25.07%, -1.14) ## data-env-vars.name = tryton-public-2024-03-22-zstd-sparse-revlog before: 2.975765 after: 1.870798 (-37.13%, -1.10)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13269
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     1
DOCUMENT_ROOT="/var/www/hg"; export DOCUMENT_ROOT
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     2
GATEWAY_INTERFACE="CGI/1.1"; export GATEWAY_INTERFACE
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     3
HTTP_ACCEPT="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"; export HTTP_ACCEPT
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     4
HTTP_ACCEPT_CHARSET="ISO-8859-1,utf-8;q=0.7,*;q=0.7"; export HTTP_ACCEPT_CHARSET
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     5
HTTP_ACCEPT_ENCODING="gzip,deflate"; export HTTP_ACCEPT_ENCODING
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     6
HTTP_ACCEPT_LANGUAGE="en-us,en;q=0.5"; export HTTP_ACCEPT_LANGUAGE
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     7
HTTP_CACHE_CONTROL="max-age=0"; export HTTP_CACHE_CONTROL
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     8
HTTP_CONNECTION="keep-alive"; export HTTP_CONNECTION
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
     9
HTTP_HOST="hg.omnifarious.org"; export HTTP_HOST
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    10
HTTP_KEEP_ALIVE="300"; export HTTP_KEEP_ALIVE
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    11
HTTP_USER_AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"; export HTTP_USER_AGENT
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    12
PATH_INFO="/"; export PATH_INFO
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    13
PATH_TRANSLATED="/var/www/hg/index.html"; export PATH_TRANSLATED
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    14
QUERY_STRING=""; export QUERY_STRING
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    15
REMOTE_ADDR="127.0.0.2"; export REMOTE_ADDR
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    16
REMOTE_PORT="44703"; export REMOTE_PORT
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    17
REQUEST_METHOD="GET"; export REQUEST_METHOD
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    18
REQUEST_URI="/test/"; export REQUEST_URI
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    19
SCRIPT_FILENAME="/home/hopper/hg_public/test.cgi"; export SCRIPT_FILENAME
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    20
SCRIPT_NAME="/test"; export SCRIPT_NAME
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    21
SCRIPT_URI="http://hg.omnifarious.org/test/"; export SCRIPT_URI
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    22
SCRIPT_URL="/test/"; export SCRIPT_URL
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    23
SERVER_ADDR="127.0.0.1"; export SERVER_ADDR
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    24
SERVER_ADMIN="eric@localhost"; export SERVER_ADMIN
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    25
SERVER_NAME="hg.omnifarious.org"; export SERVER_NAME
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    26
SERVER_PORT="80"; export SERVER_PORT
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    27
SERVER_PROTOCOL="HTTP/1.1"; export SERVER_PROTOCOL
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    28
SERVER_SIGNATURE="<address>Apache/2.0.53 (Fedora) Server at hg.omnifarious.org Port 80</address>"; export SERVER_SIGNATURE
aa3f726a2bdb tests: remove duplication of the CGI environment variables
StevenGBrown
parents:
diff changeset
    29
SERVER_SOFTWARE="Apache/2.0.53 (Fedora)"; export SERVER_SOFTWARE