conor42 / fxz

:floppy_disk: Free general-purpose data compression software with high compression ratio and excellent multi-threaded performance..
Other
38 stars 2 forks source link

fxz is about 2 time faster than 7z when use -9, but its size still larger than 7z, and mem used is much larger #3

Open l1t1 opened 3 years ago

l1t1 commented 3 years ago

while fxz is still about 2 time faster than 7z when use default, and mem used is much smaller my test command line

C:\Users\aaa\Downloads\7z>..\timer64 7z a dzm7.txt.7z ..\fxz\dzm7.txt

7-Zip 20.02 alpha (x64) : Copyright (c) 1999-2020 Igor Pavlov : 2020-08-08

Scanning the drive:
1 file, 46129961 bytes (44 MiB)

Creating archive: dzm7.txt.7z

Add new data to archive: 1 file, 46129961 bytes (44 MiB)

Files read from disk: 1
Archive size: 4765739 bytes (4655 KiB)
Everything is Ok

Kernel  Time =     0.140 =    1%
User    Time =    17.612 =  175%
Process Time =    17.752 =  176%    Virtual  Memory =    194 MB
Global  Time =    10.041 =  100%    Physical Memory =    197 MB
---
C:\Users\aaa\Downloads\fxz>..\timer64 fxz dzm7.txt

Kernel  Time =     0.031 =    0%
User    Time =     7.675 =   99%
Process Time =     7.706 =   99%    Virtual  Memory =     85 MB
Global  Time =     7.749 =  100%    Physical Memory =     88 MB

C:\Users\aaa\Downloads\fxz>dir *xz

2020/08/22  00:15         4,826,636 dzm7.txt.xz

C:\Users\aaa\Downloads\fxz>..\timer64 fxz -9 dzm7.txt -k

Kernel  Time =     0.062 =    0%
User    Time =     8.080 =   99%
Process Time =     8.143 =  100%    Virtual  Memory =    776 MB
Global  Time =     8.140 =  100%    Physical Memory =    271 MB

C:\Users\aaa\Downloads\fxz>dir *xz

2020/08/22  00:15         4,797,072 dzm7.txt.xz
l1t1 commented 3 years ago

and slower than 7z‘s gzip a half

C:\Users\aaa\Downloads\7z>..\timer64 7z a dzm7.txt.gz ..\fxz\dzm7.txt

7-Zip 20.02 alpha (x64) : Copyright (c) 1999-2020 Igor Pavlov : 2020-08-08

Scanning the drive:
1 file, 46129961 bytes (44 MiB)

Creating archive: dzm7.txt.gz

Add new data to archive: 1 file, 46129961 bytes (44 MiB)

Files read from disk: 1
Archive size: 7738246 bytes (7557 KiB)
Everything is Ok

Kernel  Time =     0.031 =    0%
User    Time =     4.711 =   99%
Process Time =     4.742 =  100%    Virtual  Memory =      4 MB
Global  Time =     4.736 =  100%    Physical Memory =      7 MB
l1t1 commented 3 years ago

many threads

C:\Users\aaa\Downloads\fxz>..\timer64 fxz -9 -T0 dzm7.txt -k
Kernel  Time =     0.062 =    1%
User    Time =    12.012 =  370%
Process Time =    12.074 =  371%    Virtual  Memory =    787 MB
Global  Time =     3.246 =  100%    Physical Memory =    278 MB
C:\Users\aaa\Downloads\fxz>dir *xz
2020/08/22  00:15         4,800,056 dzm7.txt.xz