Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project-Code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Boston University PhD
ORE Benchmark
Project-Code
Commits
901819ee
Commit
901819ee
authored
Jan 22, 2019
by
Dmytro Bogatov
Browse files
Options
Downloads
Patches
Plain Diff
Update plots for ORAM and SSE.
parent
93f97e8c
Branches
Branches containing commit
No related tags found
1 merge request
!54
Resolve "Simulations"
Pipeline
#3516
passed
Jan 22, 2019
Stage: pre-build
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/plots/protocols-charts.py
+30
-12
30 additions, 12 deletions
tools/plots/protocols-charts.py
with
30 additions
and
12 deletions
tools/plots/protocols-charts.py
+
30
−
12
View file @
901819ee
...
@@ -9,38 +9,55 @@ import numpy as np
...
@@ -9,38 +9,55 @@ import numpy as np
value
=
str
(
sys
.
argv
[
1
])
value
=
str
(
sys
.
argv
[
1
])
names
=
(
'
No encryption
'
,
'
BCLO, CLWW,
\n
FH-OPE
'
,
'
Lewi-Wu
'
,
'
CLOZ
'
,
names
=
[
'
No encryption
'
,
'
BCLO, CLWW,
\n
FH-OPE
'
,
'
Lewi-Wu
'
,
'
CLOZ
'
,
'
Kerschbaum
'
,
'
POPE cold
'
,
'
POPE warm
'
,
'
CJJJKRS
'
,
'
ORAM
'
)
'
Kerschbaum
'
,
'
POPE cold
'
,
'
POPE warm
'
,
'
CJJJKRS
'
,
'
ORAM
'
]
N
=
len
(
names
)
+
2
N
=
len
(
names
)
+
2
if
value
[
0
]
==
'
c
'
:
names
.
remove
(
'
CJJJKRS
'
)
uniform
=
[]
uniform
=
[]
normal
=
[]
normal
=
[]
zipf
=
[]
zipf
=
[]
employees
=
[]
employees
=
[]
forest
=
[]
forest
=
[]
def
readCondition
(
_counter
,
_N
,
_value
):
return
_counter
%
N
!=
2
and
_counter
%
N
!=
4
and
(
_value
[
0
]
!=
'
c
'
or
_counter
%
N
!=
9
)
with
open
(
"
./data/protocols-{0}.txt
"
.
format
(
value
))
as
fp
:
with
open
(
"
./data/protocols-{0}.txt
"
.
format
(
value
))
as
fp
:
line
=
fp
.
readline
()
line
=
fp
.
readline
()
counter
=
0
counter
=
0
while
line
:
while
line
:
if
counter
<
N
:
if
counter
<
N
:
if
counter
%
N
!=
2
and
counter
%
N
!=
4
:
if
readCondition
(
counter
,
N
,
value
)
:
uniform
.
append
(
int
(
line
.
strip
()))
uniform
.
append
(
int
(
line
.
strip
()))
elif
counter
<
2
*
N
:
elif
counter
<
2
*
N
:
if
counter
%
N
!=
2
and
counter
%
N
!=
4
:
if
readCondition
(
counter
,
N
,
value
)
:
normal
.
append
(
int
(
line
.
strip
()))
normal
.
append
(
int
(
line
.
strip
()))
elif
counter
<
3
*
N
:
elif
counter
<
3
*
N
:
if
counter
%
N
!=
2
and
counter
%
N
!=
4
:
if
readCondition
(
counter
,
N
,
value
)
:
zipf
.
append
(
int
(
line
.
strip
()))
zipf
.
append
(
int
(
line
.
strip
()))
elif
counter
<
4
*
N
:
elif
counter
<
4
*
N
:
if
counter
%
N
!=
2
and
counter
%
N
!=
4
:
if
readCondition
(
counter
,
N
,
value
)
:
employees
.
append
(
int
(
line
.
strip
()))
employees
.
append
(
int
(
line
.
strip
()))
elif
counter
<
5
*
N
:
elif
counter
<
5
*
N
:
if
counter
%
N
!=
2
and
counter
%
N
!=
4
:
if
readCondition
(
counter
,
N
,
value
)
:
forest
.
append
(
int
(
line
.
strip
()))
forest
.
append
(
int
(
line
.
strip
()))
line
=
fp
.
readline
()
line
=
fp
.
readline
()
counter
+=
1
counter
+=
1
if
value
[
0
]
==
'
c
'
:
N
=
N
-
1
# ORAM average
if
value
[
0
]
==
'
c
'
:
oramIndex
=
7
else
:
oramIndex
=
8
oram
=
round
((
uniform
[
oramIndex
]
+
normal
[
oramIndex
]
+
employees
[
oramIndex
])
/
3
)
ind
=
np
.
arange
(
N
-
2
)
ind
=
np
.
arange
(
N
-
2
)
width
=
1.0
/
6
width
=
1.0
/
6
...
@@ -64,16 +81,17 @@ if value != "qsize":
...
@@ -64,16 +81,17 @@ if value != "qsize":
if
value
==
"
cios
"
:
if
value
==
"
cios
"
:
ax
.
set_ylim
(
481
,
495
)
# outliers only
ax
.
set_ylim
(
481
,
495
)
# outliers only
ax2
.
set_ylim
(
0
,
11
)
# most of the data
ax2
.
set_ylim
(
0
,
35
)
# most of the data
elif
value
==
"
cvol
"
:
elif
value
==
"
cvol
"
:
ax
.
set_ylim
(
37.5
,
41
)
# outliers only
ax
.
set_ylim
(
45
,
155
)
# outliers only
ax2
.
set_ylim
(
0
,
5.
5
)
# most of the data
ax2
.
set_ylim
(
0
,
4
5
)
# most of the data
elif
value
==
"
csize
"
:
elif
value
==
"
csize
"
:
ax
.
set_ylim
(
321
,
700
)
# outliers only
ax
.
set_ylim
(
321
,
700
)
# outliers only
ax2
.
set_ylim
(
0
,
35.5
)
# most of the data
ax2
.
set_ylim
(
0
,
35.5
)
# most of the data
ax
.
text
(
5.8
,
655
,
f
"
ORAM avg:
{
oram
}
"
,
horizontalalignment
=
'
center
'
,
verticalalignment
=
'
center
'
)
elif
value
==
"
qios
"
:
elif
value
==
"
qios
"
:
ax
.
set_ylim
(
3
2
,
2
2
00
)
# outliers only
ax
.
set_ylim
(
2
00
,
2
5
00
)
# outliers only
ax2
.
set_ylim
(
0
,
31.5
)
# most of the data
ax2
.
set_ylim
(
0
,
200
)
# most of the data
elif
value
==
"
qvol
"
:
elif
value
==
"
qvol
"
:
ax
.
set_ylim
(
490000
,
505000
)
# outliers only
ax
.
set_ylim
(
490000
,
505000
)
# outliers only
ax2
.
set_ylim
(
0
,
1020
)
# most of the data
ax2
.
set_ylim
(
0
,
1020
)
# most of the data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment