我要评分
获取效率
正确性
完整性
易理解

Testing the KAEZstd Library

After installing the KAEZstd library, you can test the library functions and performance based on the operations provided in this section.

  1. Install KAEZstd. For details, see Installation Using Source Code.
  2. Test the functions of the zstd compression library.
    1
    2
    3
    4
    5
    cd /KAE/KAEZstd/test/gtest
    mkdir build && cd build
    cmake ..
    make
    ./zstd_functest
    
  3. Test the performance.
    • Benchmark the system's built-in ZSTD compression library.
      zstd -b3 /home/KAE/scripts/compressTestDataset/itemdata
      Command output:
      3#itemdata   :  7316868   ->  1977124 (x3.701),  201.7 MB/s, 845.0 MB/s
    • Benchmark the KAEZstd library.
      /usr/local/kaezstd/bin/zstd -b3 /home/KAE/scripts/compressTestDataset/itemdata

      Command output:

      3#itemdata   :  7316868   ->  2158294 (x3.390), 438.5 MB/s, 1233.2 MB/s

      As shown above, the compression speed increases from 201.7 MB/s to 438.5 MB/s when KAEZstd is used, demonstrating a clear performance improvement.