On Fri, Oct 05, 2007 at 01:51:20PM -0400, Nathan Gray wrote: > My attempts at changing a single file 3000 times results in a repo > with less than 100 patches, because most of the time the change is not > detected. I am not sure how to overcome this problem and get useful > benchmarking.
Oh! I forgot the '--ignore-times' flag.
mkdir text_update_test; cd text_update_test; darcs init; touch 1.txt; darcs add
1.txt; for number in `seq 1 3000`; do echo "this is change $number" > 1.txt;
cat 1.txt; darcs record --ignore-times --all --author text_update_test -m
"updated to number $number" 1.txt; echo `date +"%s.%N"` >> record.log; rm
1.txt; done; cat record.log | perl -e 'my $a; while (my $b = <STDIN>) {
chomp($b); print ++$c . "\t" . (60 / ($b - $a)) . "\n" if $a; $a = $b }' >
record_rate.txt; echo 'set term png; set output "record_rate.png"; plot
"record_rate.txt"' | gnuplot -; display record_rate.png; cd ..
These results are much better. They also show that 3000 records to
the same file are fairly fast, though there does appear to be a slight
linear rate decrease.
I am attaching the rate graphs for this new test.
<<attachment: record_rate_update_text.png>>
signature.asc
Description: Digital signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
