-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from tbarbette/PRzlt
Zero-loss throughput experimental design search
- Loading branch information
Showing
25 changed files
with
1,328 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
results/ | ||
.DS_Store | ||
._* | ||
*.log | ||
*.pyc | ||
.vimhistory | ||
|
@@ -17,3 +18,4 @@ tmp/ | |
.vscode/ | ||
|
||
venv | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
%config | ||
graph_fillstyle=full | ||
graph_filter_by={THROUGHPUT:DROPPEDPC>1} | ||
var_format={THROUGHPUT:%d} | ||
var_names={RATE:Input rate (Gbps),THROUGHPUT:Throughput (Gbps),THRESH:System capacity (Gbps)} | ||
graph_legend=1 | ||
var_lim={result:0-100} | ||
agg:var_aggregate={RATE:max(where(DROPPEDPC<1))} | ||
|
||
%variables | ||
RATE=[10-100#5] | ||
THRESH={50,70,90} | ||
|
||
%script | ||
if [ $RATE -lt $THRESH ] ; then | ||
d=0 | ||
else | ||
d=$(echo "($RATE - $THRESH) / 2" | bc) | ||
fi | ||
|
||
t=$(echo "$RATE*(100-$d)/100" | bc) | ||
p=$(echo "$t * 100 / $RATE" | bc) | ||
echo "RESULT-DROPPEDPC $d" | ||
echo "RESULT-GOODPC $p" | ||
echo "RESULT-THROUGHPUT $t" | ||
|
||
|
||
%import graph-beautiful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
Executing test zlt.npf | ||
Executing init scripts... | ||
THRESH = 50, RATE = 100 [run 1/3 for test 1/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 25 | ||
[30m[0][0m RESULT-GOODPC 75 | ||
[30m[0][0m RESULT-THROUGHPUT 75 | ||
THRESH = 50, RATE = 100 [run 2/3 for test 1/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 25 | ||
[30m[0][0m RESULT-GOODPC 75 | ||
[30m[0][0m RESULT-THROUGHPUT 75 | ||
THRESH = 50, RATE = 100 [run 3/3 for test 1/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 25 | ||
[30m[0][0m RESULT-GOODPC 75 | ||
[30m[0][0m RESULT-THROUGHPUT 75 | ||
DROPPEDPC: [25.0, 25.0, 25.0], GOODPC: [75.0, 75.0, 75.0], THROUGHPUT: [75.0, 75.0, 75.0] | ||
THRESH = 50, RATE = 75 [run 1/3 for test 2/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 12 | ||
[30m[0][0m RESULT-GOODPC 88 | ||
[30m[0][0m RESULT-THROUGHPUT 66 | ||
THRESH = 50, RATE = 75 [run 2/3 for test 2/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 12 | ||
[30m[0][0m RESULT-GOODPC 88 | ||
[30m[0][0m RESULT-THROUGHPUT 66 | ||
THRESH = 50, RATE = 75 [run 3/3 for test 2/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 12 | ||
[30m[0][0m RESULT-GOODPC 88 | ||
[30m[0][0m RESULT-THROUGHPUT 66 | ||
DROPPEDPC: [12.0, 12.0, 12.0], GOODPC: [88.0, 88.0, 88.0], THROUGHPUT: [66.0, 66.0, 66.0] | ||
THRESH = 50, RATE = 55 [run 1/3 for test 3/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 96 | ||
[30m[0][0m RESULT-THROUGHPUT 53 | ||
THRESH = 50, RATE = 55 [run 2/3 for test 3/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 96 | ||
[30m[0][0m RESULT-THROUGHPUT 53 | ||
THRESH = 50, RATE = 55 [run 3/3 for test 3/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 96 | ||
[30m[0][0m RESULT-THROUGHPUT 53 | ||
DROPPEDPC: [2.0, 2.0, 2.0], GOODPC: [96.0, 96.0, 96.0], THROUGHPUT: [53.0, 53.0, 53.0] | ||
THRESH = 50, RATE = 50 [run 1/3 for test 4/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 50 | ||
THRESH = 50, RATE = 50 [run 2/3 for test 4/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 50 | ||
THRESH = 50, RATE = 50 [run 3/3 for test 4/~15(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 50 | ||
DROPPEDPC: [0.0, 0.0, 0.0], GOODPC: [100.0, 100.0, 100.0], THROUGHPUT: [50.0, 50.0, 50.0] | ||
THRESH = 70, RATE = 100 [run 1/3 for test 5/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 15 | ||
[30m[0][0m RESULT-GOODPC 85 | ||
[30m[0][0m RESULT-THROUGHPUT 85 | ||
THRESH = 70, RATE = 100 [run 2/3 for test 5/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 15 | ||
[30m[0][0m RESULT-GOODPC 85 | ||
[30m[0][0m RESULT-THROUGHPUT 85 | ||
THRESH = 70, RATE = 100 [run 3/3 for test 5/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 15 | ||
[30m[0][0m RESULT-GOODPC 85 | ||
[30m[0][0m RESULT-THROUGHPUT 85 | ||
DROPPEDPC: [15.0, 15.0, 15.0], GOODPC: [85.0, 85.0, 85.0], THROUGHPUT: [85.0, 85.0, 85.0] | ||
THRESH = 70, RATE = 85 [run 1/3 for test 6/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 7 | ||
[30m[0][0m RESULT-GOODPC 92 | ||
[30m[0][0m RESULT-THROUGHPUT 79 | ||
THRESH = 70, RATE = 85 [run 2/3 for test 6/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 7 | ||
[30m[0][0m RESULT-GOODPC 92 | ||
[30m[0][0m RESULT-THROUGHPUT 79 | ||
THRESH = 70, RATE = 85 [run 3/3 for test 6/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 7 | ||
[30m[0][0m RESULT-GOODPC 92 | ||
[30m[0][0m RESULT-THROUGHPUT 79 | ||
DROPPEDPC: [7.0, 7.0, 7.0], GOODPC: [92.0, 92.0, 92.0], THROUGHPUT: [79.0, 79.0, 79.0] | ||
THRESH = 70, RATE = 70 [run 1/3 for test 7/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 70 | ||
THRESH = 70, RATE = 70 [run 2/3 for test 7/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 70 | ||
THRESH = 70, RATE = 70 [run 3/3 for test 7/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 70 | ||
DROPPEDPC: [0.0, 0.0, 0.0], GOODPC: [100.0, 100.0, 100.0], THROUGHPUT: [70.0, 70.0, 70.0] | ||
THRESH = 70, RATE = 75 [run 1/3 for test 8/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 73 | ||
THRESH = 70, RATE = 75 [run 2/3 for test 8/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 73 | ||
THRESH = 70, RATE = 75 [run 3/3 for test 8/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 73 | ||
DROPPEDPC: [2.0, 2.0, 2.0], GOODPC: [97.0, 97.0, 97.0], THROUGHPUT: [73.0, 73.0, 73.0] | ||
THRESH = 90, RATE = 100 [run 1/3 for test 9/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 5 | ||
[30m[0][0m RESULT-GOODPC 95 | ||
[30m[0][0m RESULT-THROUGHPUT 95 | ||
THRESH = 90, RATE = 100 [run 2/3 for test 9/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 5 | ||
[30m[0][0m RESULT-GOODPC 95 | ||
[30m[0][0m RESULT-THROUGHPUT 95 | ||
THRESH = 90, RATE = 100 [run 3/3 for test 9/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 5 | ||
[30m[0][0m RESULT-GOODPC 95 | ||
[30m[0][0m RESULT-THROUGHPUT 95 | ||
DROPPEDPC: [5.0, 5.0, 5.0], GOODPC: [95.0, 95.0, 95.0], THROUGHPUT: [95.0, 95.0, 95.0] | ||
THRESH = 90, RATE = 95 [run 1/3 for test 10/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 93 | ||
THRESH = 90, RATE = 95 [run 2/3 for test 10/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 93 | ||
THRESH = 90, RATE = 95 [run 3/3 for test 10/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 2 | ||
[30m[0][0m RESULT-GOODPC 97 | ||
[30m[0][0m RESULT-THROUGHPUT 93 | ||
DROPPEDPC: [2.0, 2.0, 2.0], GOODPC: [97.0, 97.0, 97.0], THROUGHPUT: [93.0, 93.0, 93.0] | ||
THRESH = 90, RATE = 90 [run 1/3 for test 11/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 90 | ||
THRESH = 90, RATE = 90 [run 2/3 for test 11/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 90 | ||
THRESH = 90, RATE = 90 [run 3/3 for test 11/~12(max 57)] | ||
[30m[0][0m RESULT-DROPPEDPC 0 | ||
[30m[0][0m RESULT-GOODPC 100 | ||
[30m[0][0m RESULT-THROUGHPUT 90 | ||
DROPPEDPC: [0.0, 0.0, 0.0], GOODPC: [100.0, 100.0, 100.0], THROUGHPUT: [90.0, 90.0, 90.0] | ||
Graph of test written to results/click-2022/9197a59/zlt-DROPPEDPC.pdf | ||
Graph of test written to results/click-2022/9197a59/zlt-GOODPC.pdf | ||
Graph of test written to results/click-2022/9197a59/zlt-THROUGHPUT.pdf |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from npf.variable import OrderedDict | ||
|
||
|
||
from collections import OrderedDict | ||
|
||
|
||
class FullVariableExpander: | ||
"""Expand all variables building the full | ||
matrix first.""" | ||
|
||
def __init__(self, vlist, overriden): | ||
self.expanded = [OrderedDict()] | ||
for k, v in vlist.items(): | ||
if k in overriden: | ||
continue | ||
newList = [] | ||
l = v.makeValues() | ||
|
||
for nvalue in l: | ||
for ovalue in self.expanded: | ||
z = ovalue.copy() | ||
z.update(nvalue if type(nvalue) is OrderedDict else {k: nvalue}) | ||
newList.append(z) | ||
|
||
self.expanded = newList | ||
self.it = self.expanded.__iter__() | ||
|
||
def __iter__(self): | ||
return self.expanded.__iter__() | ||
|
||
def __next__(self): | ||
return self.it.__next__() | ||
|
||
def __len__(self): | ||
return len(self.expanded) | ||
|
||
def strlen(self): | ||
return len(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from random import shuffle | ||
|
||
from npf.expdesign.fullexp import FullVariableExpander | ||
|
||
|
||
class RandomVariableExpander(FullVariableExpander): | ||
"""Same as BruteVariableExpander but shuffle the series to test""" | ||
|
||
def __init__(self, vlist, overriden): | ||
super().__init__(vlist, overriden) | ||
shuffle(self.expanded) |
Oops, something went wrong.