summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2021-05-13 20:00:21 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2021-05-13 20:03:47 +0100
commit243345506ea284242cd2b10844996f37080bde5a (patch)
treec3e54e9bac467e6d61f192e60c409e737fd76217 /perf
parent0ddca8678be10d63548c1769ef0ebcd91e695718 (diff)
downloadlibhubbub-243345506ea284242cd2b10844996f37080bde5a.tar.gz
libhubbub-243345506ea284242cd2b10844996f37080bde5a.tar.bz2
Perf tester: Add sample build commands and clean target.
Diffstat (limited to 'perf')
-rw-r--r--perf/example.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/perf/example.mk b/perf/example.mk
index 7304ebb..a45fc8a 100644
--- a/perf/example.mk
+++ b/perf/example.mk
@@ -1,3 +1,10 @@
+# From the top level:
+#
+# make -C perf -f example.mk clean
+# make -C perf -f example.mk
+# time ./perf/libxml2 ~/Downloads/html5.html
+# time ./perf/hubbub ~/Downloads/html5.html
+
all: libxml2 hubbub
CC = gcc
@@ -15,3 +22,8 @@ hubbub: hubbub.c
hubbub: CFLAGS += `pkg-config --cflags libparserutils libhubbub`
hubbub: $(HUBBUB_OBJS)
gcc -o hubbub $(HUBBUB_OBJS) `pkg-config --libs libhubbub libparserutils`
+
+.PHONY: clean
+clean:
+ $(RM) hubbub $(HUBBUB_OBJS)
+ $(RM) libxml2 $(LIBXML2_OBJS)