Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
1,491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ python -m timeit "import Image; from apps.front import utils; i = Image.open(u'logo.png'); i2 = utils.alpha_composite_with_color(i)"
  2. 10 loops, best of 3: 4.8 msec per loop
  3.  
  4. $ python -m timeit "import Image; from apps.front import utils; i = Image.open(u'logo.png'); i2 = utils.pure_pil_composite(i)"
  5. 10 loops, best of 3: 75 msec per loop
  6.  
  7. $ python -m timeit "import Image; from apps.front import utils; i = Image.open(u'logo.png'); i2 = utils.pure_pil_composite2(i)"
  8. 10 loops, best of 3: 1.1 msec per loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement