forked from JuliaDynamics/ABMFrameworksComparison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runall.sh
executable file
·27 lines (20 loc) · 914 Bytes
/
runall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
echo "Benchmarking Julia"
julia --project=@. Agents/benchmark.jl
echo "Benchmarking NetLogo"
# Don't run above 8 threads otherwise errors will spit once the JVMs try
# to share the Backing Store and lock it
ws=$(parallel -j8 ::: $(printf './netlogo_ws.sh %.0s' {1..100}) | sort | head -n1)
echo "NetLogo WolfSheep (ms): "$ws
ws=$(parallel -j8 ::: $(printf './netlogo_flock.sh %.0s' {1..100}) | sort | head -n1)
echo "NetLogo Flocking (ms): "$ws
ws=$(parallel -j8 ::: $(printf './netlogo_s.sh %.0s' {1..100}) | sort | head -n1)
echo "NetLogo Schelling (ms): "$ws
ws=$(parallel -j8 ::: $(printf './netlogo_forest.sh %.0s' {1..100}) | sort | head -n1)
echo "NetLogo ForestFire (ms): "$ws
echo "Benchmarking Mesa"
python Mesa/WolfSheep/benchmark.py
python Mesa/Flocking/benchmark.py
python Mesa/Schelling/benchmark.py
python Mesa/ForestFire/benchmark.py
echo "Mason Benchmarks must be run manually"