>>>>> "SB" == Steve Bertrand <st...@ibctech.ca> 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: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/