Naruto / simon-speck-c

example C language implementation of SIMON and SPECK lightweight block ciphers.
MIT License
23 stars 3 forks source link

add benchmark sources #58

Closed Naruto closed 6 years ago

Naruto commented 6 years ago

benchmark

example enable avx2 benchmark on macOS or Linux.

rm -rf build
mkdir build
pushd build
cmake -DENABLE_TESTING=ON -DENABLE_BENCHMARK=ON -DENABLE_AVX2=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --clean-first
ctest .
./test/speck/speck128128/speck128128benchmark
./test/speck/speck128192/speck128192benchmark
./test/speck/speck128256/speck128256benchmark