comparison tests/test-remotefilelog-sparse.t @ 46874:84a93fa7ecfd

revlog-compression: use zstd by default (if available) As see in changeset bb271ec2fbfb, zstd is 20% to 50% faster for reading and writing. Use take advantage of the new config behavior to try zstd by default, falling back to zlib is zstd is not available on that plateform. Differential Revision: https://phab.mercurial-scm.org/D10326
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 06 Apr 2021 18:55:19 +0200
parents 47a9527731c3
children dcaa2df1f688
comparison
equal deleted inserted replaced
46873:0abf5eba0042 46874:84a93fa7ecfd
20 20
21 # prefetch a revision w/ a sparse checkout 21 # prefetch a revision w/ a sparse checkout
22 22
23 $ hgcloneshallow ssh://user@dummy/master shallow --noupdate 23 $ hgcloneshallow ssh://user@dummy/master shallow --noupdate
24 streaming all changes 24 streaming all changes
25 2 files to transfer, 527 bytes of data 25 2 files to transfer, 527 bytes of data (no-zstd !)
26 transferred 527 bytes in 0.* seconds (*/sec) (glob) 26 transferred 527 bytes in * seconds (* */sec) (glob) (no-zstd !)
27 2 files to transfer, 534 bytes of data (zstd !)
28 transferred 534 bytes in * seconds (* */sec) (glob) (zstd !)
27 searching for changes 29 searching for changes
28 no changes found 30 no changes found
29 $ cd shallow 31 $ cd shallow
30 $ printf "[extensions]\nsparse=\n" >> .hg/hgrc 32 $ printf "[extensions]\nsparse=\n" >> .hg/hgrc
31 33
71 ## Push an unrelated commit 73 ## Push an unrelated commit
72 $ cd ../ 74 $ cd ../
73 75
74 $ hgcloneshallow ssh://user@dummy/master shallow2 76 $ hgcloneshallow ssh://user@dummy/master shallow2
75 streaming all changes 77 streaming all changes
76 2 files to transfer, 527 bytes of data 78 2 files to transfer, 527 bytes of data (no-zstd !)
77 transferred 527 bytes in 0.* seconds (*) (glob) 79 transferred 527 bytes in * seconds (*) (glob) (no-zstd !)
80 2 files to transfer, 534 bytes of data (zstd !)
81 transferred 534 bytes in * seconds (* */sec) (glob) (zstd !)
78 searching for changes 82 searching for changes
79 no changes found 83 no changes found
80 updating to branch default 84 updating to branch default
81 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 85 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
82 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob) 86 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)