Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 984 Bytes

README.md

File metadata and controls

37 lines (20 loc) · 984 Bytes

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/