X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fpublic_html%2Fbench.php;h=560d065e9ceb67e741baf4e579e7bef0b5ecb0f1;hb=0cb4cf86dbe7226a9ce50b39326741a1d07aeef6;hp=bdc238ca5f026f9e47b1f1c501c79e71493040a4;hpb=18c6848695fbfa97508e0981f6875a6459429a58;p=helm.git diff --git a/helm/matita/scripts/public_html/bench.php b/helm/matita/scripts/public_html/bench.php index bdc238ca5..560d065e9 100644 --- a/helm/matita/scripts/public_html/bench.php +++ b/helm/matita/scripts/public_html/bench.php @@ -5,8 +5,8 @@ // queries ::= query | query "###" queries // query ::= name "@@@" sql // -$limits = array("30","50","-1"); - +$limits = array("20","50","100","-1"); + $quey_all = urlencode("Whole content:@@@select * from bench"); $query_fail = urlencode( "Number of failures:@@@" . @@ -46,16 +46,18 @@ $query_total = urlencode("Number of compiled tests@@@select mark, COUNT(DISTINCT ); function minus1_to_all($s){ - if ($s = "-1") + if ($s == "-1") return "all"; else return $s; } -function links_of($name,$q){ - echo "
  • $name"; +function links_of($name,$q,$limits){ + echo "
  • $name "; foreach($limits as $l) { - echo "$l "; + $q1 = str_replace(urlencode("###"), " LIMIT 0,$l;" . urlencode("###"), $q); + echo "" . + minus1_to_all($l) . " "; } echo "
  • "; } @@ -71,13 +73,13 @@ function links_of($name,$q){

    Common Queries

    Custom Query