Commit e2306922 authored by Kirill Smelkov's avatar Kirill Smelkov

X results plotted

parent 1dffae5e
#!/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')
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