Commit 72f118e5 authored by Aggelos Giantsios's avatar Aggelos Giantsios

Document script that runs the sequential orbit

parent 792ada97
...@@ -57,6 +57,31 @@ Execution ...@@ -57,6 +57,31 @@ Execution
./orbit +RTS -N2 -RTS dist master long 4 127.0.0.1 1555 ./orbit +RTS -N2 -RTS dist master long 4 127.0.0.1 1555
``` ```
Scripts for automated execution
-------------------------------
We have created some Python scripts to automatically run sample configurations of the sequential, parallel and distributed Orbit.
Python 2.x is needed in order to run the scripts.
- Sequential Orbit
```bash
python seq.py
```
Variables that can be tweaked with their default values.
```python
# Path to the file that will hold the results.
fname = 'seq.log'
# Number of repetitions per configuration.
reps = 1
# List of versions.
versions = ["short", "intermediate", "long"]
# Host information.
node = {"host": "127.0.0.1", "port": 5050}
```
Memory Profiling Memory Profiling
---------------- ----------------
......
...@@ -4,14 +4,19 @@ ...@@ -4,14 +4,19 @@
from __future__ import print_function from __future__ import print_function
import sys, subprocess, time import sys, subprocess, time
f = open('seq.log', 'a+') # Path to the file that will hold the results.
fname = 'seq.log'
f = open(fname, 'a+')
def print_all(s): def print_all(s):
print (s, file=f) print (s, file=f)
f.flush() f.flush()
print (s, file=sys.stdout) print (s, file=sys.stdout)
# Number of repetitions per configuration.
reps = 1 reps = 1
# List of versions.
versions = ["short", "intermediate", "long"] versions = ["short", "intermediate", "long"]
# Host information.
node = {"host": "127.0.0.1", "port": 5050} node = {"host": "127.0.0.1", "port": 5050}
print_all("Sequential Orbit") print_all("Sequential Orbit")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment