Tiran

Untitled

Jul 21st, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. from smc.freeimage import Image, FI_FORMAT
  2. from PIL.Image import open as pil_open
  3. from smc.freeimage.tests.common import IMG
  4. from time import time
  5.  
  6. cnt = 100
  7.  
  8. start = time()
  9. for i in xrange(cnt):
  10.     Image(IMG)
  11. print "FIT", time() - start
  12.  
  13. start = time()
  14. for i in xrange(cnt):
  15.     pil_open(IMG).load()
  16. print "PIL", time() - start
Advertisement
Add Comment
Please, Sign In to add comment