X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fperftest.pl.in;fp=examples%2Fperftest.pl.in;h=f7907c25be3914fd37505ab7a0d56c728afe7862;hp=0000000000000000000000000000000000000000;hb=43576b330db3c4e4dafb93703e28595f1417b337;hpb=48d52cbd1c58cd663f18e3b4ef0c78bccaf22ee0 diff --git a/examples/perftest.pl.in b/examples/perftest.pl.in new file mode 100755 index 0000000..f7907c2 --- /dev/null +++ b/examples/perftest.pl.in @@ -0,0 +1,152 @@ +#! @PERL@ +# +# $Id:$ +# +# Created By Tobi Oetiker +# Date 2006-10-27 +# +#makes programm work AFTER install + +use lib qw( @prefix@/lib/perl ); + +print < 5; # stop testing after 5 seconds or one round + } + my $ups = $count/$sum; + my $sdv = stddev($sum,$squaresum,$count); + printf STDERR " Update %6d rrds %6d u/s (%6.5f sdv)\n",$totaldbs,$ups,$sdv; + + if ((not $prevups or $prevups / $ups < 2 or $totaldbs < 500 )and $over < 1){ + $totaldbs *= 2; + } elsif ( $over < 1 ) { + # just run another round to see if we realy hit the block + $over ++; + $totaldbs *= 1.3; + } else { + print <