summaryrefslogtreecommitdiff
path: root/myisam/ftbench/Ereport.pl
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-23 23:33:06 +0200
committerunknown <serg@serg.mylan>2003-10-23 23:33:06 +0200
commit21f9a3a8acd7d3a67fc4a875506df7bc8e197e8b (patch)
treea49c053f04a6ac04e2f84d09adaef67bd83bedc9 /myisam/ftbench/Ereport.pl
parent08236417fe260812c005dfbdd3d563f461b0d62b (diff)
downloadmariadb-git-21f9a3a8acd7d3a67fc4a875506df7bc8e197e8b.tar.gz
ftbench fixes
myisam/ftbench/Ecompare.pl: bug in multi-column comparison fixed myisam/ftbench/Ereport.pl: bug fixed report at 0, 0.5, 1 myisam/ftbench/README: updated myisam/ftbench/ft-test-run.sh: various fixes
Diffstat (limited to 'myisam/ftbench/Ereport.pl')
-rwxr-xr-xmyisam/ftbench/Ereport.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/ftbench/Ereport.pl b/myisam/ftbench/Ereport.pl
index 761c707fcda..5969304da09 100755
--- a/myisam/ftbench/Ereport.pl
+++ b/myisam/ftbench/Ereport.pl
@@ -29,7 +29,7 @@ sub Favg { my $a=shift; $Pavg*$Ravg ? 1/($a/$Pavg+(1-$a)/$Ravg) : 0; }
# F0 : a=0 -- ignore precision
# F5 : a=0.5
# F1 : a=1 -- ignore recall
- while($eout_str =~ /^$qid\s+(\d+)\s+(\d+\.\d+)/) {
+ while($eout_str =~ /^$qid\s+(\d+)\s+(\d+(?:\.\d+)?)/) {
$B++;
$AB++ if $dq{$1+0};
$Ravg+=$AB;
@@ -41,7 +41,7 @@ sub Favg { my $a=shift; $Pavg*$Ravg ? 1/($a/$Pavg+(1-$a)/$Ravg) : 0; }
$Ravg/=$B*$A if $B;
$Pavg/=$B if $B;
- printf "%5d %1.12f\n", $qid, Favg(0.5);
+ printf "%5d %1.12f %1.12f %1.12f\n", $qid, Favg(0),Favg(0.5),Favg(1);
}
exit 0;