Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECE428_MP2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shunhan2
ECE428_MP2
Commits
82c548dd
Commit
82c548dd
authored
5 years ago
by
shunhan2
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
88f8cd2f
No related branches found
No related tags found
No related merge requests found
Pipeline
#154160
canceled
5 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bandwidth_analyze.py
+17
-0
17 additions, 0 deletions
bandwidth_analyze.py
with
17 additions
and
0 deletions
bandwidth_analyze.py
0 → 100644
+
17
−
0
View file @
82c548dd
import
os
import
matplotlib.pyplot
as
plt
import
numpy
as
np
whole
=
[]
with
open
(
'
bandwidth_node4.log
'
,
'
r
'
)
as
f
:
a
=
f
.
readlines
()
for
i
in
a
:
whole
.
append
(
round
(
float
(
i
.
split
(
"
-----
"
)[
0
])))
x
=
[
i
for
i
in
range
(
len
(
whole
))]
plt
.
figure
()
plt
.
plot
(
x
,
whole
,
linewidth
=
1
)
plt
.
title
(
"
bandwidth of one node
"
)
plt
.
xlabel
(
"
number of transactions
"
)
plt
.
ylabel
(
"
bandwidth (trans per sec)
"
)
plt
.
show
()
\ No newline at end of file
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