Telerik Zip Benchmark

3 posts, 0 answers
  1. Ron Barone
    Ron Barone avatar
    15 posts
    Member since:
    Aug 2009

    Posted 30 Jul 2014 Link to this post

    Requirements

    Telerik Product and Version

    UI for WPF Q2 2014
               

    Supported Browsers and Platforms

    Windows

    Components/Widgets used (JS frameworks, etc.)


    PROJECT DESCRIPTION 
    This is a simple WPF MVVM project showing off the Telerik Chart control as well as performance comparison of the Telerik Zip libraries to the DotNetZip libraries located here: http://dotnetzip.codeplex.com/ and the built in Microsoft compression libraries.  The output shows milliseconds of each operation as well as the size of the resulting compressed and subsequently decompressed output.

    The system will load the data from the URL, then run through several compression and decompression routines then display the performance results.

    The system does use a background thread to run the tests as well as async downloading of the file into memory.  The tests can be stopped at any time by clicking the "Stop Tests" after starting.  All functions are located in the PerfDataViewModel.

    Note: Telerik LZMA does not seem to function currently so it is commented out.  I have error handling in the code but when an error occurs the Telerik zip throws an error somewhere inside the zip library.  Uncomment the line TestTelerikLZMA() to see what happens.

    Note 2: Sometimes the chart does not render when running in debug after the tests post their results.  A resize of the window will then cause it to render again.

  2. Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 01 Aug 2014 Link to this post

    Hi Ron Barone,

    We appreciate you taking the time to create and submit this code library.

    In Q1 2014 we introduced new API for the ZipLibrary which is way more powerful. The ZipInputStream class is part of the old API that does not support LZMA compression. To be able to decompress files compressed with LZMA method you have to use CommpressedStream class. Here is a sample code you can use:
    CompressedStream zin = new CompressedStream(msCompress, StreamOperationMode.Read, new LzmaSettings());

    We strongly suggest utilizing the new API since other than LZMA compression, it allows working with much bigger files, as well as a lot of bug fixes and other improvements. Additionally, we are planning to mark obsolete the ZipPackage and its related classes in one of our next releases.

    Regards,
    Nikolay Demirev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. Petya
    Admin
    Petya avatar
    975 posts

    Posted 19 Aug 2014 Link to this post

    Hello,

    The project has been updated to use the new API of RadZipLibrary and show LZMA compression. 

    Regards,
    Petya
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top