Skip to content

a programme to benchmark the cryptographic hash function SipHash

Notifications You must be signed in to change notification settings

datenzwergin/BenchSiphash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

siphash benchmark

bench is a programme to benchmark the cryptographic hash function siphash. It reads random input data (from 12 Byte to 16 MiB) and hashes the data 10 times. The results file contains cpu information and for each input length the runtime provided by the C-function clock(). It runs on Linux systems with a C-compiler.

Run

$ make

to build the executable (bench).

Then, run

$ bash ./RUN_BENCH.sh

to run the actual benchmarks. The results will be written to file RESULTS-siphash-<HOSTNAME>.txt.V

The bench program uses random.data as source of random data. This file was created running

$ dd if=/dev/urandom bs=1MiB of=random.data count=16

and therefore contains 16 MiB of random data from /dev/urandom.

Refercence Code

The reference code for siphash used here can be obtained from

https://github.com/veorq/SipHash

More infos about siphash are available at:

https://131002.net/siphash/

About

a programme to benchmark the cryptographic hash function SipHash

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published