Benchmarker - A Good Friend for Performance

  • 3,183 views
Uploaded on

(Pycon mini JP 2011 LightningTalk) …

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

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,183
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
11
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. PyCon mini JP 2011 Lightning TalkBenchmarkera good friend for performance makoto kuwata http://www.kuwata-lab.com/
  • 2. 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
  • 3. Question
  • 4. Which is faster? https://gist.github.com/800384
  • 5. 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
  • 6. Which is faster? https://gist.github.com/801429
  • 7. Benchmark Not Same!+= op 0.431sec= & + 0.439sec 0 0.1 0.2 0.3 0.4 0.5 second per million
  • 8. Which is faster? https://gist.github.com/801429
  • 9. Benchmark += op 0.545sec= and + Too Slow! Unmeasurable! 0 0.4 0.8 1.2 1.6 2 second per million
  • 10. Why?
  • 11. [OT] Python v.s. Perl
  • 12. [OT] Python v.s. Perl Perl is AWESOME!
  • 13. About Benchmarker
  • 14. Benchmarker Benchmarking utility for Python A good friend for performance http://pypi.python.org/pypi/Benchmarker/
  • 15. Example Code
  • 16. Output
  • 17. Remove same fot-stmt
  • 18. Repeat all benchmarks Remove min & max results
  • 19. Command-line Options
  • 20. thank you