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.
- Install KAEZstd.
- 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
- Test the performance.
- Set the environment variable LD_LIBRARY_PATH and enable the zstd library.
1export LD_LIBRARY_PATH=/usr/local/kaezstd/lib:$LD_LIBRARY_PATH
- 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
- Set the environment variable LD_LIBRARY_PATH and enable the zstd library.
Parent topic: Operations After Installation