daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 9th, 2011 269 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. nekto@darkstar:~/workspace/py3k$ /usr/bin/time ./python test_listdir.py
  2. 0.61user 1.18system 0:24.44elapsed 7%CPU (0avgtext+0avgdata 258688maxresident)k
  3. 42424inputs+0outputs (26major+16312minor)pagefaults 0swaps
  4.  
  5. nekto@darkstar:~/workspace/py3k$ /usr/bin/time ./python test_listdir.py
  6. 0.39user 0.48system 0:00.87elapsed 99%CPU (0avgtext+0avgdata 258688maxresident)k
  7. 0inputs+0outputs (0major+16338minor)pagefaults 0swaps
  8.  
  9.  
  10. nekto@darkstar:~/workspace/py3k$ /usr/bin/time ./python test_xlistdir.py
  11. 0.66user 1.10system 0:24.69elapsed 7%CPU (0avgtext+0avgdata 25568maxresident)k
  12. 42424inputs+0outputs (26major+1731minor)pagefaults 0swaps
  13.  
  14. nekto@darkstar:~/workspace/py3k$ /usr/bin/time ./python test_xlistdir.py
  15. 0.34user 0.43system 0:00.78elapsed 98%CPU (0avgtext+0avgdata 25568maxresident)k
  16. 0inputs+0outputs (0major+1758minor)pagefaults 0swaps
  17.  
  18.  
  19. nekto@darkstar:~/workspace/py3k$ cat test_xlistdir.py
  20. import os
  21.  
  22. os.chdir('/tmp')
  23. for i in os.xlistdir('.'):
  24.         len(i)
  25.  
  26.  
  27. nekto@darkstar:~/workspace/py3k$ ls /tmp | wc -l
  28. 712205
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top