Skip to content

Commit 0613d72

Browse files
committed
benchmark script
1 parent 5483bf5 commit 0613d72

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

bench_all.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
for i in `ls -d *-app`
3+
do
4+
cd $i
5+
6+
echo $i |tee -a ../results.log
7+
8+
lein clean
9+
lein uberjar
10+
java -jar ./target/uberjar/$i.jar &
11+
12+
sleep 10
13+
echo "Warm up"
14+
wrk -t12 -c400 -d10s http://localhost:8080
15+
16+
echo "benchmark:"| tee -a ../results.log
17+
wrk -t12 -c400 -d60s http://localhost:8080 | tee -a ../results.log
18+
for x in `jobs -p`; do kill -9 $x; done
19+
20+
cd ..
21+
done;

catacumba-app/project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}
1010
:main ^:skip-aot catacumba-app.core
1111
:target-path "target/%s"
12-
:profiles {:uberjar {:aot :all}})
12+
:profiles {:uberjar {:aot :all
13+
:uberjar-name "catacumba-app.jar"}})

yada-app/project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
[yada "1.2.9"]]
1111
:main ^:skip-aot yada-app.core
1212
:target-path "target/%s"
13-
:profiles {:uberjar {:aot :all}})
13+
:profiles {:uberjar {:aot :all
14+
:uberjar-name "yada-app.jar"}})

0 commit comments

Comments
 (0)