X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fscripts%2Fpublic_html%2Fbench.php;h=79a5160ccf18749ca0543e4bb79557f1414bf4ec;hb=4d8eb2d5c481138ba660a039ff1100ba4d38bbe8;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..79a5160cc 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:@@@" . @@ -40,22 +40,26 @@ $query_csc = urlencode("Performances (byte and GC) per mark@@@select mark, SEC_T $query_csc_opt = urlencode("Performances (opt and GC) per mark@@@select mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) as sum_time, SEC_TO_TIME(SUM(TIME_TO_SEC(timeuser))) as sum_timeuser from bench where options = 'gc-on' and compilation = 'opt'group by mark order by mark desc" ); -$query_total = urlencode("Number of compiled tests@@@select mark, COUNT(DISTINCT test) as N from bench group by mark order by mark desc" -# . "###" . -#"Lost tests" +$query_total = urlencode( + +"Max N@@@select MAX(COUNT(DISTINCT test)) from bench group by mark;--" + . "###" . + "Number of compiled tests@@@select mark, COUNT(DISTINCT test) as N from bench group by mark order by mark desc" ); 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 +75,13 @@ function links_of($name,$q){

    Common Queries

    Custom Query