bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

for; do; done regression ?


From: Alexander Tiurin
Subject: for; do; done regression ?
Date: Fri, 7 Jan 2011 04:17:17 +0300

Hi!

I ran the command 

~$ time for i in `seq 0 10000`  ; do echo /o/23/4 | cut -d'/' -f2 ; done
> /dev/null 

6 times in a row, and noticed to the increase in execution time:

1)
real    0m16.573s
user    0m0.390s
sys     0m4.240s

2)
real    0m19.883s
user    0m0.330s
sys     0m4.290s

3)
real    0m25.827s
user    0m0.480s
sys     0m4.490s

4)
real    0m31.566s
user    0m0.440s
sys     0m4.810s

5)
real    0m37.981s
user    0m0.770s
sys     0m4.860s

6)
real    0m42.545s
user    0m1.560s
sys     0m4.850s

how to interpret the results?

GNU bash, version 4.1.7(2)-release (x86_64-pc-linux-gnu)






 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]