summaryrefslogtreecommitdiffstats
path: root/pts/benchmark-resources/sunflow/install.sh
blob: 2da4e69cc44b87701c228f9b1ccb46487448d192 (plain)
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
28
#!/bin/sh

cd $1

if [ ! -f sunflow-bin-v0.07.2.zip ]
 
	then
     wget http://internap.dl.sourceforge.net/sourceforge/sunflow/sunflow-bin-v0.07.2.zip -O sunflow-bin-v0.07.2.zip
fi

unzip -o sunflow-bin-v0.07.2.zip

echo "#!/bin/sh
cd sunflow

if [ \$SYS_MEMORY -ge 1280 ]
then
	JAVA_VM_MEMORY=1024M
elif [ \$SYS_MEMORY -ge 768 ]
then
	JAVA_VM_MEMORY=512M
else
	JAVA_VM_MEMORY=256M
fi

java -server -Xmx\$JAVA_VM_MEMORY -jar sunflow.jar -bench
" > sunflow-benchmark
chmod +x sunflow-benchmark