Benchmarker - A Good Friend for Performance
Upcoming SlideShare
Loading in...5
×
 

Benchmarker - A Good Friend for Performance

on

  • 3,530 views

(Pycon mini JP 2011 LightningTalk)

(Pycon mini JP 2011 LightningTalk)
About benchmark utility for Python.

Statistics

Views

Total Views
3,530
Views on SlideShare
3,433
Embed Views
97

Actions

Likes
1
Downloads
11
Comments
0

2 Embeds 97

https://jujo00obo2o234ungd3t8qjfcjrs3o6k-a-sites-opensocial.googleusercontent.com 70
http://jujo00obo2o234ungd3t8qjfcjrs3o6k-a-sites-opensocial.googleusercontent.com 27

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

Benchmarker - A Good Friend for Performance Benchmarker - A Good Friend for Performance Presentation Transcript

  • PyCon mini JP 2011 Lightning TalkBenchmarkera good friend for performance makoto kuwata http://www.kuwata-lab.com/
  • Profile @makotokuwata http://www.kwuata-lab.com/ Perl is the Ruby/PHP/Python programmer CHAMPION! Creator of Erubis (*) Python4PHPer (*) default template engine on Rails 3
  • Question
  • Which is faster? https://gist.github.com/800384
  • Benchmark + op is the fastest for short stringsplus op 0.624sec format 0.887sec join 0.709sec 0 0.2 0.4 0.6 0.8 1 second per million
  • Which is faster? https://gist.github.com/801429
  • Benchmark Not Same!+= op 0.431sec= & + 0.439sec 0 0.1 0.2 0.3 0.4 0.5 second per million
  • Which is faster? https://gist.github.com/801429
  • Benchmark += op 0.545sec= and + Too Slow! Unmeasurable! 0 0.4 0.8 1.2 1.6 2 second per million
  • Why?
  • [OT] Python v.s. Perl
  • [OT] Python v.s. Perl Perl is AWESOME!
  • About Benchmarker
  • Benchmarker Benchmarking utility for Python A good friend for performance http://pypi.python.org/pypi/Benchmarker/
  • Example Code
  • Output
  • Remove same fot-stmt
  • Repeat all benchmarks Remove min & max results
  • Command-line Options
  • thank you