summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-27 20:19:32 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-12-03 14:42:05 -0500
commit3678c2ee7c11d67f4ea97c85d8564cd386a32bd1 (patch)
tree14303e34fbf1bb6ada99758a3c19b59697a199a5 /Makefile
parent35c7c72601cee9692846de13117411d80b3d13f6 (diff)
downloadbfs-3678c2ee7c11d67f4ea97c85d8564cd386a32bd1.tar.xz
bench/ioq: New ioq microbenchmark
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b0d6e46..8a7b270 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,8 @@ BINS := \
bin/tests/mksock \
bin/tests/units \
bin/tests/xspawnee \
- bin/tests/xtouch
+ bin/tests/xtouch \
+ bin/bench/ioq
all: ${BINS}
.PHONY: all
@@ -215,6 +216,14 @@ ${DISTCHECKS}::
&& ${MAKE} check TEST_FLAGS="--sudo --verbose=skipped"
@test "$${GITHUB_ACTIONS-}" != true || printf '::endgroup::\n'
+## Benchmarks (`make bench`)
+
+bench: bin/bench/ioq
+.PHONY: bench
+
+bin/bench/ioq: obj/bench/ioq.o ${LIBBFS}
+OBJS += obj/bench/ioq.o
+
## Automatic dependency tracking
# Rebuild when the configuration changes