SHARE
TWEET

redirect demo

a guest Mar 7th, 2013 129 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.2$ time bash -c 'for i in *; do wc -l "$i" > /dev/null; done'
  2. real    0m53.862s
  3. user    0m6.332s
  4. sys     0m34.620s
  5.  
  6. bash-4.2$ time bash -c 'for i in *; do wc -l "$i"; done > /dev/null'
  7. real    0m50.752s
  8. user    0m7.815s
  9. sys     0m34.841s
  10.  
  11. bash-4.2$ time bash -c 'for i in *; do echo "$i" > /dev/null; done'
  12. real    0m0.622s
  13. user    0m0.469s
  14. sys     0m0.145s
  15.  
  16. bash-4.2$ time bash -c 'for i in *; do echo "$i"; done > /dev/null'
  17. real    0m0.434s
  18. user    0m0.408s
  19. sys     0m0.023s
  20.  
  21. bash-4.2$ time bash -c 'for i in *; do :; done'
  22. real    0m0.330s
  23. user    0m0.309s
  24. sys     0m0.018s
  25.  
  26.  
  27.  
  28. bash-4.2$ time dash -c 'for i in *; do wc -l "$i" > /dev/null; done'
  29. real    0m38.478s
  30. user    0m8.730s
  31. sys     0m26.164s
  32.  
  33. bash-4.2$ time dash -c 'for i in *; do wc -l "$i"; done > /dev/null'
  34. real    0m34.807s
  35. user    0m6.026s
  36. sys     0m18.429s
  37.  
  38. bash-4.2$ time dash -c 'for i in *; do echo "$i" > /dev/null; done'
  39. real    0m0.329s
  40. user    0m0.141s
  41. sys     0m0.180s
  42.  
  43. bash-4.2$ time dash -c 'for i in *; do echo "$i"; done > /dev/null'
  44. real    0m0.114s
  45. user    0m0.090s
  46. sys     0m0.023s
  47.  
  48. bash-4.2$ time dash -c 'for i in *; do :; done'
  49. real    0m0.065s
  50. user    0m0.047s
  51. sys     0m0.017s
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