comparison tests/test-bundle.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 6fc57680cfd6
children cc3ad5c3af3b
comparison
equal deleted inserted replaced
46873:0abf5eba0042 46874:84a93fa7ecfd
293 packed1 is produced properly 293 packed1 is produced properly
294 294
295 #if reporevlogstore 295 #if reporevlogstore
296 296
297 $ hg -R test debugcreatestreamclonebundle packed.hg 297 $ hg -R test debugcreatestreamclonebundle packed.hg
298 writing 2664 bytes for 6 files 298 writing 2664 bytes for 6 files (no-zstd !)
299 writing 2665 bytes for 6 files (zstd !)
299 bundle requirements: generaldelta, revlogv1, sparserevlog 300 bundle requirements: generaldelta, revlogv1, sparserevlog
300 301
301 $ f -B 64 --size --sha1 --hexdump packed.hg 302 $ f -B 64 --size --sha1 --hexdump packed.hg
302 packed.hg: size=2840, sha1=12bf3eee3eb8a04c503ce2d29b48f0135c7edff5 303 packed.hg: size=2840, sha1=12bf3eee3eb8a04c503ce2d29b48f0135c7edff5 (no-zstd !)
304 packed.hg: size=2841, sha1=8b645a65f49b0ae43042a9f3da56d4bfdf1c7f99 (zstd !)
303 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| 305 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........|
304 0010: 00 00 00 00 0a 68 00 23 67 65 6e 65 72 61 6c 64 |.....h.#generald| 306 0010: 00 00 00 00 0a 68 00 23 67 65 6e 65 72 61 6c 64 |.....h.#generald| (no-zstd !)
307 0010: 00 00 00 00 0a 69 00 23 67 65 6e 65 72 61 6c 64 |.....i.#generald| (zstd !)
305 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp| 308 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp|
306 0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/| 309 0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/|
307 310
308 $ hg debugbundle --spec packed.hg 311 $ hg debugbundle --spec packed.hg
309 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog 312 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog