SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
vbench: lightweight performance testing for Python
9.
speed.pypy.org is a
one-off solution
Sunday, March 11,
10.
Stop. Help is near
• GitHub: wesm/vbench
• Integrates with git: runs benchmarks for
each revision in your repo
• Persists results locally in SQLite
• Generates graphs using matplotlib
Sunday, March 11,
11.
Catch performance
regressions sooner
Sunday, March 11,
13.
Use them in your
workflow
In [2]: stats_rank_average.run()
Out[2]:
{'loops': 10,
'repeat': 3,
'succeeded': True,
'timing': 33.135390281677246,
'units': 'ms'}
Same code as %timeit in IPython
Sunday, March 11,
14.
Get involved
• A useful weekend hack
• git bisect integration
• More version control systems
• Upload results to codespeed instance
• More setup/teardown control
Sunday, March 11,
15.
GitHub: wesm/vbench
@wesmckinn
Sunday, March 11,