Guest User

Untitled

a guest
Mar 9th, 2011
277
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nekto@darkstar:~/workspace/py3k$ time ./python test_first.py
  2.  
  3. real 0m1.004s
  4. user 0m0.070s
  5. sys 0m0.030s
  6.  
  7.  
  8. nekto@darkstar:~/workspace/py3k$ time ./python test_first.py
  9.  
  10. real 0m26.106s
  11. user 0m0.360s
  12. sys 0m1.050s
  13.  
  14.  
  15. nekto@darkstar:~/workspace/py3k$ cat test_first.py
  16. import os
  17.  
  18. os.chdir('/tmp')
  19.  
  20.  
  21. for i, entry in enumerate(os.listdir('.')):
  22. if i == 1000:
  23. break
RAW Paste Data