Skip to content

SHA-1 and CRC32 performance evaluation with different chunk size

Notifications You must be signed in to change notification settings

RonShih/Hash_Performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

SHA1 vs. CRC32

SHA-1 and CRC32 are widely implemented in data deduplication on storage system.
This program simply evaluates SHA-1 and CRC32 performance with different chunk size.

Environment: macOS on ARM mac or 64-bit ubuntu

  • Library: openSSL(SHA-1), zlib(CRC32)
  • dowload zlib
sudo apt-get install libz-dev
  • download openSSL
sudo apt-get install libssl-dev

Compile command:

gcc test.c -o test LDFLAGS CPPFLAGS -lcrypto -lz  

Run the program:

./test <InputFile chunksize(KB)  
  • The unit of chunksize is KB and its the multiples of 512B, such as 0.5KB or 8KB

Here's the example:

gcc test.c -o test -L/usr/local/opt/[email protected]/lib -I/usr/local/opt/[email protected]/include -lcrypto -lz
./test <linux-5.3.5.tar.xz 0.5

About

SHA-1 and CRC32 performance evaluation with different chunk size

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages