>>>>> "SB" == Steve Bertrand <[email protected]> writes:
SB> my $results
SB> = timethese( 10, {
SB> 'rsync' => sub { `rsync -arc $directory $backup` },
SB> 'perl-cp' => sub { dircopy( $directory, $backup ) },
to make this a proper benchmark, you need to remove all the copied files
beforehand. rsync isn't supposed to copy files unless they have changed.
basically rsync isn't doing any copies after the first time.
this would be better to compare cp -r and dircopy as they are similar in
function. then you wouldn't need to remove the files as you would always
overwrite them with each copy pass.
uri
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/