mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 00:40:17 +00:00
Added performance tests tools
This commit is contained in:
parent
42d74171b2
commit
f3af39ee42
6 changed files with 263 additions and 4 deletions
39
tests/performance/Makefile.in
Normal file
39
tests/performance/Makefile.in
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
INC=-I ../../src/include/
|
||||
LIB=../../src/lib/libndpi.a @ADDITIONAL_LIBS@
|
||||
|
||||
TOOLS=substringsearch patriciasearch
|
||||
TESTS=substring_test patricia_test
|
||||
|
||||
|
||||
all: $(TESTS)
|
||||
|
||||
tools: $(TOOLS)
|
||||
|
||||
|
||||
substringsearch: substringsearch.c Makefile
|
||||
$(CC) -O2 $(INC) substringsearch.c -o substringsearch $(LIB)
|
||||
|
||||
substring_test: substringsearch top-1m.csv
|
||||
./substringsearch
|
||||
|
||||
#
|
||||
|
||||
patriciasearch: patriciasearch.c Makefile
|
||||
$(CC) -O2 $(INC) patriciasearch.c -o patriciasearch $(LIB)
|
||||
|
||||
patricia_test: patriciasearch blacklist-ip.txt
|
||||
./patriciasearch
|
||||
|
||||
|
||||
# Alexa Top 1 Million
|
||||
top-1m.csv:
|
||||
wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
|
||||
unzip top-1m.csv.zip
|
||||
|
||||
blacklist-ip.txt:
|
||||
wget http://blacklists.ntop.org/blacklist-ip.txt
|
||||
|
||||
clean:
|
||||
/bin/rm -f *zip top-1m.csv blacklist-ip.txt
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue