ALZIP- zip witharak newei...

Anusha

Member
Jun 13, 2006
25,864
5
0
mkranga said:
WinZip = coded by C/C++
7Zip = coded by C/C++
Winrar = coded by Borland Delphi

That’s why the speed diff.
But the speed doesn’t mean all the things.

In my case rar is still better.
Well, WinZip is slower than WinRAR, but 7-zip compresses to zip format faster than both of them means it's very good programming. The language is not irrelevant in this case.

I have to agree that WinRAR's GUI is extremely easy to use than other two.
 

mkranga

Member
Jul 6, 2007
508
14
0
http://www.systemr.tk
Anusha said:
Well, WinZip is slower than WinRAR, but 7-zip compresses to zip format faster than both of them means it's very good programming. The language is not irrelevant in this case.

That true to WinZip & 7Zip but not RAR.

Delphi can’t go faster than C/C++. (if coder wasn’t no1 matta. :D )
 
Last edited:

Anusha

Member
Jun 13, 2006
25,864
5
0
That I do not know.

I just compressed that 70MB folder again in 7z format. It took about 20 seconds!! Stil, zip format is superb! What's more amazing is that zip format rendered in the smallest archive size as well. Weird stuff...
 

coolioWiZ

Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    A Test for Compression

    What is better WinZip, WinRar or 7Zip.

    I did a test for compression ratios and time taken by archiving the same set of files with all 3 programs and measuring the time taken to compress and compressed size. ;)

    The computer used was a laptop with following specifications:
    Intel Centrino Duo 1.83GHz
    1GB DDR2 RAM


    The folder used for the test:
    contents: several pdf documents
    size: 101MB


    The compression ratio was calculated as the disk space saved, ie:

    Compression Ratio(Space Saved) = 1 - Compressed Size / Uncompressed Size
    The higher percentage means better compression

    WinZip 11.0
    ============


    Test 1
    -------
    compression: optimize for maximum compression
    time to compress: 2 min 03 sec
    compressed size: 84.1MB
    compression ratio: 16.73%

    Test 2
    -------
    compression: bzip format
    time to compress: 38 sec
    compressed size: 86.1MB
    compression ratio: 14.75%

    WinRar 3.70
    ============


    Test 1
    -------
    compression: rar format
    dictionary size: 4MB
    time to compress: 57 sec
    compressed size: 85.4MB
    compression ratio: 15.45%

    Test 2
    -------
    compression: zip format
    time to compress: 12 sec
    compressed size: 87.5MB
    compression ratio: 13.37%

    7Zip 4.52 beta
    ===========


    Test 1
    -------
    archive format: 7z format
    compression method: LZMA
    dictionary size: 16MB
    word size: 32
    CPU Threads: 2/2
    time to compress: 42 sec
    compressed size: 84.8MB
    compression ratio: 16.04%

    Test 2
    -------
    archive format: zip format
    compression method: Deflate
    dictionary size: 32KB
    word size: 32
    CPU Threads: 2/2
    time to compress: 10 sec
    compressed size: 87.5MB
    compression ratio: 13.37%

    Test 3
    -------
    archive format: zip format
    compression method: bzip2
    dictionary size: 900KB
    CPU Threads: 2/2
    time to compress: 29 sec
    compressed size: 86.1MB
    compression ratio: 14.75%


    Conclusion (for zip format) :shocked:
    =============


    WinZip with optimization (zip format) takes 2 min 03 sec gives compression of 16.73%
    WinRar (zip format) takes 12 sec gives compression of 13.37%
    7Zip (zip format) takes 10 sec gives compression of 13.37%

    Comparing overall 7Zip gives better performance with time and WinZip performs better on compressing but takes too much time.
    :yes: :yes: :yes: :yes:

    I'm also putting this as a seperate thread on:
    Comp and Internet > News and Discussion forum :lol:
     

    coolioWiZ

    Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    Anusha said:
    I converted to ZIP format. I don't like 7z format.
    Maybe 64bit helps, but 5-10 times speed improvement can't be caused by it alone. BTW, 32bit 7-zip is 1.8-2 times slower than 64bit 7-zip.

    That might be the ability to use several threads with a core 2 processor, I'm not very sure, but multi core gives better performance due to that.
     

    coolioWiZ

    Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    mkranga said:
    That true to WinZip & 7Zip but not RAR.

    Delphi can’t go faster than C/C++. (if coder wasn’t no1 matta. :D )

    In my opinion the language used will be a factor only if it's not a compiled language but an interpreted language. eg: java

    It's the compression algorithm which is more important in deciding the compression and performance.
    :lol:
     

    Anusha

    Member
    Jun 13, 2006
    25,864
    5
    0
    coolioWiZ said:
    That might be the ability to use several threads with a core 2 processor, I'm not very sure, but multi core gives better performance due to that.
    AFAIK, all these archivers are at least dual threaded.
     

    mkranga

    Member
    Jul 6, 2007
    508
    14
    0
    http://www.systemr.tk
    coolioWiZ said:
    What is better WinZip, WinRar or 7Zip.

    I did a test for compression ratios and time taken by archiving the same set of files with all 3 programs and measuring the time taken to compress and compressed size. ;)

    The computer used was a laptop with following specifications:
    Intel Centrino Duo 1.83GHz
    1GB DDR2 RAM


    The folder used for the test:
    contents: several pdf documents
    size: 101MB


    The compression ratio was calculated as the disk space saved, ie:

    Compression Ratio(Space Saved) = 1 - Compressed Size / Uncompressed Size
    The higher percentage means better compression

    WinZip 11.0
    ============


    Test 1
    -------
    compression: optimize for maximum compression
    time to compress: 2 min 03 sec
    compressed size: 84.1MB
    compression ratio: 16.73%

    Test 2
    -------
    compression: bzip format
    time to compress: 38 sec
    compressed size: 86.1MB
    compression ratio: 14.75%

    WinRar 3.70
    ============


    Test 1
    -------
    compression: rar format
    dictionary size: 4MB
    time to compress: 57 sec
    compressed size: 85.4MB
    compression ratio: 15.45%

    Test 2
    -------
    compression: zip format
    time to compress: 12 sec
    compressed size: 87.5MB
    compression ratio: 13.37%

    7Zip 4.52 beta
    ===========


    Test 1
    -------
    archive format: 7z format
    compression method: LZMA
    dictionary size: 16MB
    word size: 32
    CPU Threads: 2/2
    time to compress: 42 sec
    compressed size: 84.8MB
    compression ratio: 16.04%

    Test 2
    -------
    archive format: zip format
    compression method: Deflate
    dictionary size: 32KB
    word size: 32
    CPU Threads: 2/2
    time to compress: 10 sec
    compressed size: 87.5MB
    compression ratio: 13.37%

    Test 3
    -------
    archive format: zip format
    compression method: bzip2
    dictionary size: 900KB
    CPU Threads: 2/2
    time to compress: 29 sec
    compressed size: 86.1MB
    compression ratio: 14.75%


    Conclusion (for zip format) :shocked:
    =============
    Grate work. ( but I did that 4-5 years ago)

    That result also tells about your computer technical info. Like you have small cash memory

    WinZip with optimization (zip format) takes 2 min 03 sec gives compression of 16.73%
    WinRar (zip format) takes 12 sec gives compression of 13.37%
    7Zip (zip format) takes 10 sec gives compression of 13.37%
    WinZip ge awamagula wage.:(

    compression: rar format
    dictionary size: 4MB:shocked:
    time to compress: 57 sec:eek:
    compressed size: 85.4MB
    compression ratio: 15.45%
    Use small dic size because you have small cash MEM. time will go down.:cool:

    I'm also putting this as a seperate thread on:
    Comp and Internet > News and Discussion forum :lol:

    maath kiyanna haduwa witharai...!
     

    mkranga

    Member
    Jul 6, 2007
    508
    14
    0
    http://www.systemr.tk
    coolioWiZ said:
    In my opinion the language used will be a factor only if it's not a compiled language but an interpreted language. eg: java
    sorry for this

    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
    sorry again

    Compiler :cool:
    interpreter:eek:
    java Compile da interpreter da = ?
    delphi Compile da interpreter da = ?
    vb Compile da interpreter da = ?
    java<>delphi<>vb = ?


    It's the compression algorithm which is more important in deciding the compression and performance.
    :lol:
    mamath ehenam vb walin zip programe ekak liyanna one.
     

    Anusha

    Member
    Jun 13, 2006
    25,864
    5
    0
    I checked several dictionary sizes with 7z in 7-zip.
    64kB resulted in the fastest = about 5.5MB/s
    But all 1MB (this is the next option available after 64kB), 2MB and 4MB were giving about 3.4-3.5MB/s.

    My CPU's L2 cache is 2MB.
     

    coolioWiZ

    Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    mkranga said:
    Grate work. ( but I did that 4-5 years ago)
    Thanks for the compliments and Congrats Bro for your tests :lol:

    mkranga said:
    That result also tells about your computer technical info. Like you have small cash memory
    Maybe or no :lol: The laptop has a Centrino processor, Centrino is built for low battery usage and has less performance considered to a desktop processor, ideal for laptops so it has less cache than a normal desktop processor. To be percise the laptop has "only 2MB of L2 cache" :lol: ;)

    mkranga said:
    WinZip ge awamagula wage.:(
    Yes the day everone adopts 7zip. But the dominant program for zip format is winzip and it's the archive format natively supported by windows. The "awamagula" will not happen too soon. :lol:


    mkranga said:
    Use small dic size because you have small cash MEM. time will go down.:cool:
    What's to be considered is the RAM and processor, I'm not sure if cache will have a big impact on compressions. I'm just doing a test, It's no use lowering dic size just to decrease time but must give a good compression.

    For same file as above:
    WinRar -- format: rar dic size: 64KB
    time taken: 26 sec
    compressed size: 87.4MB
    compression ratio: 13.47%

    7Zip -- format: zip dic size 64KB
    time taken: 11 sec
    compressed size: 87.1MB
    compression ratio:13.76%

    See that 7zip gives better performance with time and a slighltly good compression too. ;)
     

    coolioWiZ

    Well-known member
  • Jul 19, 2007
    1,396
    31
    48
    alpha canis majoris
    mkranga said:
    Compiler :cool:
    interpreter:eek:
    java Compile da interpreter da = ?
    delphi Compile da interpreter da = ?
    vb Compile da interpreter da = ?
    java<>delphi<>vb = ?
    mamath ehenam vb walin zip programe ekak liyanna one.

    Java : bytecode interpreter
    Delphi: Compiler
    C/C++: Compiler
    VB: you can choose to intepret (Pcode) or convert to native code.

    For designing a compression algorithm you need knowledge in system design tools like UML, don't ask me how to use UML (I suck at it) :lol: and then you can use any language to implement. I'll suggest C++
     

    mkranga

    Member
    Jul 6, 2007
    508
    14
    0
    http://www.systemr.tk
    coolioWiZ said:
    Maybe or no :lol: The laptop has a Centrino processor, Centrino is built for low battery usage and has less performance considered to a desktop processor, ideal for laptops so it has less cache than a normal desktop processor. To be percise the laptop has "only 2MB of L2 cache" :lol: ;)

    What's to be considered is the RAM and processor, I'm not sure if cache will have a big impact on compressions. I'm just doing a test, It's no use lowering dic size just to decrease time but must give a good compression.

    For same file as above:
    WinRar -- format: rar dic size: 64KB
    time taken: 26 sec
    compressed size: 87.4MB
    compression ratio: 13.47%

    7Zip -- format: zip dic size 64KB
    time taken: 11 sec
    compressed size: 87.1MB
    compression ratio:13.76%

    See that 7zip gives better performance with time and a slighltly good compression too. ;)

    motta patiya. wena monawa kiyannada.