Rate This Document
Findability
Accuracy
Completeness
Readability

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.
  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.
    1. Set the environment variable LD_LIBRARY_PATH and enable the zstd library.
      1
      export LD_LIBRARY_PATH=/usr/local/kaezstd/lib:$LD_LIBRARY_PATH
      
    2. Compile the performance test tool in the KAE/KAEZstd/test/perftest directory and perform the test.
      1
      2
      3
      cd KAE/KAEZstd/test/perftest
      make
      ./kaezstd_perf -m 8 -l 10240 -n 1000
      
      Command output:
      1
      2
      3
      kaezstd perf parameter: multi process 8, stream length: 1024(KB), compress level: 1, compress function: 0, loop times: 1000, nbThreads: 4
      kaezstd compress perf result:
           time used: 2689167 us, speed = 3.046 GB/s