in reply to Re: Myth busted: Shell isn't always faster than Perl
in thread Myth busted: Shell isn't always faster than Perl
time perl -MFile::Find -e'finddepth sub { unlink if -f }, @ARGV' /tmp
real 0m3.111s user 0m0.821s sys 0m2.233s
time find /tmp -type f | xargs rm
real 0m3.312s user 0m0.760s sys 0m2.511sAnd the varied widely - anywhere up to 5 seconds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Myth busted: Shell isn't always faster than Perl
by zentara (Cardinal) on Dec 30, 2005 at 21:17 UTC |