Add glib bench

This commit is contained in:
Patrick Pelissier committed 2017-03-26 10:51:15 +02:00
1 parent bd17e00789
commit 1f709a31c0
2 files changed
+219 -1

No files matched your search

+9 -1
View File
@@ -3,7 +3,7 @@ CXX=c++ -std=c++11
CFLAGS=-O2 -march=native -Wall
CPPFLAGS=-I..
all: bench-mlib bench-stl bench-klib
all: bench-mlib bench-stl bench-klib bench-qt bench-glib
bench-mlib:
$(CC) $(CFLAGS) $(CPPFLAGS) bench-mlib.c -o bench-mlib.exe
@@ -39,5 +39,13 @@ bench-klib:
@./bench-klib.exe 4
@./bench-klib.exe 6
bench-glib:
$(CC) $(CFLAGS) $(CPPFLAGS) $$(pkg-config --libs --cflags glib-2.0) bench-glib.c -o bench-glib.exe
@./bench-glib.exe 1
@./bench-glib.exe 2
@./bench-glib.exe 3
@./bench-glib.exe 4
@./bench-glib.exe 6
clean:
rm -f *.o bench-*.exe *~