X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2Fscripts%2Fpublic_html%2Fbench.php;h=d04d228bd98cc952fd8a46d313d03313ed7d88fa;hb=19451c84fa726b9a337b5e8647b4adbfb50db2df;hp=9bb8c0782aa755efbcbc2f73aa70293728b89335;hpb=0acf1d43e970dac59a12593d1dd56f46efbdd7e7;p=helm.git diff --git a/matita/scripts/public_html/bench.php b/matita/scripts/public_html/bench.php index 9bb8c0782..d04d228bd 100644 --- a/matita/scripts/public_html/bench.php +++ b/matita/scripts/public_html/bench.php @@ -112,48 +112,52 @@ $query_csc = urlencode(" Performances (byte and GC) per mark @@@ select - bench.mark, - bench_svn.revision as revision, - SUM(bench.time) as sum_time, - SUM(bench.timeuser) as sum_timeuser, - COUNT(DISTINCT bench.test) as performed_tests, - COUNT(DISTINCT bench1.test) as failed_tests + bench_times.mark as mark, + bench_svn.revision, + bench_times.time as time, + bench_times.timeuser as timeuser, + bench_times_opt.time as time_opt, + bench_times_opt.timeuser as timeuser_opt, + bench_times.tests as tests, + bench_times_opt.tests as tests_opt, + bench_fails.count as fail, + bench_fails_opt.count as fail_opt from - bench, bench_svn,bench as bench1 + bench_svn, + (select + b1.mark as mark, SUM(b1.time) as time, + SUM(b1.timeuser) as timeuser,COUNT(DISTINCT b1.test) as tests + from bench as b1 + where + b1.options = 'gc-on' and + b1.compilation = 'opt' + group by b1.mark) as bench_times_opt, + (select + b1.mark as mark, SUM(b1.time) as time, + SUM(b1.timeuser) as timeuser,COUNT(DISTINCT b1.test) as tests + from bench as b1 + where + b1.options = 'gc-on' and + b1.compilation = 'byte' + group by b1.mark) as bench_times, + (select + b1.mark as mark, + SUM(if(b1.result='fail' and b1.compilation='byte' and b1.options='gc-on',1,0)) + as count + from bench as b1 + group by b1.mark) as bench_fails, + (select + b1.mark as mark, + SUM(if(b1.result='fail' and b1.compilation='opt' and b1.options='gc-on',1,0)) + as count + from bench as b1 + group by b1.mark) as bench_fails_opt where - bench.options = 'gc-on' and - bench.compilation = 'byte' and - bench_svn.mark = bench.mark and - bench1.result = 'fail' and - bench1.mark = bench.mark and - bench1.compilation = 'byte' and - bench1.options = 'gc-on' -group by bench.mark -order by bench.mark desc -***"); - -$query_csc_opt = urlencode(" -Performances (opt and GC) per mark -@@@ -select - bench.mark, - bench_svn.revision as revision, - SUM(bench.time) as sum_time, - SUM(bench.timeuser) as sum_timeuser, - COUNT(DISTINCT bench.test) as performed_tests, - COUNT(DISTINCT bench1.test) as failed_tests -from - bench, bench_svn,bench as bench1 -where - bench.options = 'gc-on' and - bench.compilation = 'opt' and - bench_svn.mark = bench.mark and - bench1.result = 'fail' and - bench1.mark = bench.mark and - bench1.compilation = 'opt' and - bench1.options = 'gc-on' -group by bench.mark -order by bench.mark desc + bench_times.mark = bench_fails.mark and + bench_times_opt.mark = bench_fails_opt.mark and + bench_times.mark = bench_times_opt.mark and + bench_svn.mark = bench_times.mark + order by bench_svn.mark desc ***"); $query_total = urlencode(" @@ -216,8 +220,7 @@ function links_of($name,$q,$limits){ - - +