-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdep.sh
executable file
·45 lines (38 loc) · 1.07 KB
/
dep.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
export HOME="/root"
cd ~
# install python
apt-get -y install python2.7
# install node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
. .nvm/nvm.sh
nvm install 11
# clone repo
git clone https://github.com/multiparty/jiff-benchmarking.git
cd jiff-benchmarking
git submodule init
git submodule update
# configure repo
npm install --unsafe-perm
#
# for clients:
# if just one client per machine (one core)
# ./script.sh <parties> <replicas> <IP> <computation ID> > out &
#
# if running several clients per machines (multi-cores):
# ./script.sh <parties> <replicas> <IP> <computation ID> > out1 &
# sleep 10
# ./script.sh <parties> <replicas> <IP> <computation ID> > out2 &
# sleep 10
# ./script.sh <parties> <replicas> <IP> <computation ID> > out3 &
# sleep 10
# ./script.sh <parties> <replicas> <IP> <computation ID> > out4 &
# for server do:
# screen
# <enter>
# node server > out
# ...
# ...
# Ctrl-A then Ctrl-D to detach screen
# Ctrl-D to exist ssh
# node --max-old-space-size=8192 server.js > out