Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from smc.freeimage import Image, FI_FORMAT
- from PIL.Image import open as pil_open
- from smc.freeimage.tests.common import IMG
- from time import time
- cnt = 100
- start = time()
- for i in xrange(cnt):
- Image(IMG)
- print "FIT", time() - start
- start = time()
- for i in xrange(cnt):
- pil_open(IMG).load()
- print "PIL", time() - start
Advertisement
Add Comment
Please, Sign In to add comment