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