Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
misc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
misc
Commits
e2306922
Commit
e2306922
authored
Aug 11, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X results plotted
parent
1dffae5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
servers/t/plotit.py
servers/t/plotit.py
+17
-0
servers/t/pyuv_vs_go.png
servers/t/pyuv_vs_go.png
+0
-0
No files found.
servers/t/plotit.py
0 → 100755
View file @
e2306922
#!/usr/bin/env python
import
matplotlib.pyplot
as
plt
x
=
[
1
,
2
,
3
,
4
,
5
,
6
,
1
+
10
,
1
+
10
*
2
,
1
+
10
*
3
,
1
+
10
*
4
,
1
+
10
*
5
,
1
+
10
*
10
]
py
=
[
20307
,
16749
,
14996
,
12886
,
11488
,
10927
,
7872
,
4935
,
3467
,
2656
,
2328
,
1173
]
go
=
[
22978
,
22915
,
22899
,
22737
,
22503
,
22252
,
21901
,
20759
,
20074
,
19330
,
18709
,
15899
]
plt
.
title
(
'Simple text processing in HTTP request handler'
)
plt
.
plot
(
x
,
py
,
label
=
'python (uvloop+httptools)'
)
plt
.
plot
(
x
,
go
,
label
=
'go'
)
plt
.
legend
()
plt
.
ylabel
(
'requests per second'
)
plt
.
xlabel
(
'number of input characters'
)
#plt.show()
plt
.
savefig
(
'pyuv_vs_go.png'
)
servers/t/pyuv_vs_go.png
0 → 100644
View file @
e2306922
44.4 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment