LZO support

Erik Garrison erik at laptop.org
Tue Jul 15 13:46:17 EDT 2008


On Tue, Jul 15, 2008 at 01:05:42PM -0400, Erik Garrison wrote:
> On Tue, Jul 15, 2008 at 04:41:35AM -0400, Greg Smith wrote:
> > Hi Erik,
> > 
> > Can you design a test case or two to test the performance of these 
> > compression schemes?
> 
> Yes.  The following script encodes a trivial and necessarily flawed test
> case:  
> 
>     http://dev.laptop.org/~erik/code/testcompression.py
> 

Per suggestions by NoiseEHC I have updated the test script to base its
report on the minimum times for compression and decompression.  The
results do not appear to be significantly different:

    % python testcompression.py -c 10 os2163.usb
    running 10 cycles
    testing on os2163.usb
    size =  706715648
    writing lzo compressed file os2163.usb.lzo
    writing zlib compressed file os2163.usb.zlib
    lzo compression ..........
    lzo decompression ..........
    zlib compression ..........
    zlib decompression ..........
    results on os2163.usb
    using minimum runtimes
    lzo: compression ratio 0.511157, compress 8.925809 s, decompress
    2.632027 s
    zlib: compression ratio 0.401923, compress 50.913132 s, decompress
    4.799342 s
    ratios, lzo : zlib
    --- compression ratio: 1.27177775711
    --- compression time: 0.175314471382
    --- decompression time: 0.54841408952

Erik



More information about the Devel mailing list