jnovy/pxz

Compressed size is not reset when using -v on multiple files

Opened this issue · 0 comments

The compressed file size is not reset between files and therefore sums total compressed size, leading to incorrect compression statistics:

[simon@server9 db]$ nice pxz -v9 *.sql
context size per thread: 201330688 B
bucks_newimpress.sql -> 32/1 threads: [0 ] 80883571 -> 2972360 3.675%
context size per thread: 201330688 B
bucks_phenodcc_overviews.sql -> 32/46 threads: [1 16 3 4 2 5 7 6 9 12 11 13 8 15 23 19 14 18 25 28 24 10 0 26 17 30 29 21 22 31 20 27 13 9 7 10 11 12 4 0 8 5 3 6 2 1 ] 9080504211 -> 325422496 3.584%
context size per thread: 201330688 B
football_20210512.sql -> 32/1 threads: [0 ] 52294445 -> 329725344 630.517%
context size per thread: 201330688 B
football_20210610.sql -> 32/1 threads: [0 ] 52334609 -> 334033800 638.266%
context size per thread: 201330688 B
football_20210630.sql -> 32/1 threads: [0 ] 52336383 -> 338339308 646.471%
context size per thread: 201330688 B
la_20210324_202105101131.sql -> 32/7 threads: [6 1 2 5 0 4 3 ] 1340057146 -> 401288384 29.946%
context size per thread: 201330688 B
la_20210324_202106081144.sql -> 32/7 threads: [6 1 2 5 0 3 4 ] 1342872769 -> 464517324 34.591%
context size per thread: 201330688 B

Version info:

Parallel PXZ 4.999.9beta (build 20210130)
xz (XZ Utils) 5.2.5
liblzma 5.2.5

Os info:

Linux server9 5.11.18-300.fc34.x86_64 #1 SMP Mon May 3 15:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Simon Greenaway