plot multi-thread timings
This commit is contained in:
parent
f2e462842e
commit
e69164e6f1
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -117,3 +117,6 @@ dmypy.json
|
||||||
|
|
||||||
# Pyre type checker
|
# Pyre type checker
|
||||||
.pyre/
|
.pyre/
|
||||||
|
|
||||||
|
# pngs
|
||||||
|
*.png
|
||||||
|
|
|
@ -16,8 +16,12 @@ print('This is the data I loaded: threads =', threads, ', timings =',timings)
|
||||||
|
|
||||||
fig, axs = plt.subplots()
|
fig, axs = plt.subplots()
|
||||||
|
|
||||||
# CREATE YOUR PLOT HERE
|
|
||||||
# Remember to label your axis
|
# Remember to label your axis
|
||||||
# Feel free to make it pretty
|
# Feel free to make it pretty
|
||||||
|
axs.plot(threads, timings, '*')
|
||||||
|
axs.set_xlabel('number of threads')
|
||||||
|
axs.set_ylabel('processing time')
|
||||||
|
|
||||||
|
|
||||||
plt.savefig('threads_v_timings.png', dpi=300)
|
plt.savefig('threads_v_timings.png', dpi=300)
|
||||||
|
|
Loading…
Reference in a new issue