aboutsummaryrefslogtreecommitdiff
path: root/nexgb/examples/atoms/Makefile
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-06-02 12:59:44 -0400
committerPřemysl Janouch <p@janouch.name>2018-09-08 16:49:13 +0200
commit8ee0ea98997eaa967f862da029cc04e5ae18b90e (patch)
tree20d78e4c78ad17f4de4369fa277b68470fab8249 /nexgb/examples/atoms/Makefile
parente960f4d34effe41b3d0ff327001f7df833f69cba (diff)
downloadhaven-8ee0ea98997eaa967f862da029cc04e5ae18b90e.tar.gz
haven-8ee0ea98997eaa967f862da029cc04e5ae18b90e.tar.xz
haven-8ee0ea98997eaa967f862da029cc04e5ae18b90e.zip
A pathological example for profiling purposes. Use 'make test'.
Diffstat (limited to 'nexgb/examples/atoms/Makefile')
-rw-r--r--nexgb/examples/atoms/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/nexgb/examples/atoms/Makefile b/nexgb/examples/atoms/Makefile
new file mode 100644
index 0000000..c192a37
--- /dev/null
+++ b/nexgb/examples/atoms/Makefile
@@ -0,0 +1,12 @@
+atoms:
+ go build
+
+test: atoms
+ ./atoms --requests 500000 --cpu 1 \
+ --cpuprof cpu1.prof --memprof mem1.prof > atoms1.info 2>&1
+ ./atoms --requests 500000 --cpu 2 \
+ --cpuprof cpu2.prof --memprof mem2.prof > atoms2.info 2>&1
+ ./atoms --requests 500000 --cpu 3 \
+ --cpuprof cpu3.prof --memprof mem3.prof > atoms3.info 2>&1
+ ./atoms --requests 500000 --cpu 6 \
+ --cpuprof cpu6.prof --memprof mem6.prof > atoms6.info 2>&1