2013-02-01 16:44:36 +01:00
|
|
|
CC=gcc
|
|
|
|
# std to gnu99 to support inline asm
|
2016-10-12 16:19:55 +02:00
|
|
|
CFLAGS=-O3 -march=native -Wall -Wextra -DSUPERCOP # -DHAVE_XOP # uncomment on XOP-enabled CPUs
|
2016-06-12 17:37:10 +02:00
|
|
|
FILES=bench.c
|
2013-02-01 16:44:36 +01:00
|
|
|
|
2016-06-12 18:07:18 +02:00
|
|
|
all: bench
|
|
|
|
|
|
|
|
bench: bench.c
|
2016-06-10 12:37:44 +02:00
|
|
|
$(CC) $(FILES) $(CFLAGS) ../sse/blake2b.c -o blake2b
|
|
|
|
$(CC) $(FILES) $(CFLAGS) ../sse/blake2s.c -o blake2s
|
2013-02-01 16:44:36 +01:00
|
|
|
$(CC) $(FILES) $(CFLAGS) md5.c -o md5 -lcrypto -lz
|
2016-10-12 16:19:55 +02:00
|
|
|
|
2016-06-12 18:07:18 +02:00
|
|
|
plot: bench
|
2013-02-01 16:44:36 +01:00
|
|
|
./blake2b > blake2b.data
|
|
|
|
./blake2s > blake2s.data
|
|
|
|
./md5 > md5.data
|
|
|
|
gnuplot do.gplot
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f blake2b blake2s md5 plotcycles.pdf blake2b.data blake2s.data md5.data
|