• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
vbench: lightweight performance testing for Python
 

vbench: lightweight performance testing for Python

on

  • 25,164 views

 

Statistics

Views

Total Views
25,164
Views on SlideShare
2,583
Embed Views
22,581

Actions

Likes
1
Downloads
14
Comments
0

10 Embeds 22,581

http://wesmckinney.com 12002
http://blog.wesmckinney.com 10520
http://www.newsblur.com 35
http://newsblur.com 10
http://www.hanrss.com 4
http://webcache-exp-test.googleusercontent.com 3
http://webcache.googleusercontent.com 3
http://wesmckinney.com.sixxs.org 2
http://translate.googleusercontent.com 1
http://www.blog.wesmckinney.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    vbench: lightweight performance testing for Python vbench: lightweight performance testing for Python Presentation Transcript

    • vbench: lightweight performance testing Wes McKinney @wesmckinn PyCon 2012Sunday, March 11,
    • Why do we test?Sunday, March 11,
    • Freedom from fearSunday, March 11,
    • Testing for performance?Sunday, March 11,
    • Who made my code slower???Sunday, March 11,
    • Sunday, March 11,
    • Who made my code slower???Sunday, March 11,
    • MeSunday, March 11,
    • speed.pypy.org is a one-off solutionSunday, March 11,
    • 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 matplotlibSunday, March 11,
    • Catch performance regressions soonerSunday, March 11,
    • Writing vbenchmarks setup = common_setup + """ setup values = np.concatenate([np.arange(100000), np.random.randn(100000), np.arange(100000)]) s = Series(values) """ stats_rank_average = Benchmark(s.rank(), setup)Sunday, March 11,
    • 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 IPythonSunday, March 11,
    • Get involved • A useful weekend hack • git bisect integration • More version control systems • Upload results to codespeed instance • More setup/teardown controlSunday, March 11,
    • GitHub: wesm/vbench @wesmckinnSunday, March 11,