You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$template_tested = $db->get_list( "SELECT template_engine FROM template_benchmark WHERE test='$test' GROUP BY template_engine ORDER BY template_engine", "template_engine", "template_engine" );
13
+
14
+
if( $template_selected = get( 'template' ) ){
15
+
$where = "WHERE test='$test' AND (";
16
+
$i=0;
17
+
foreach( $template_selectedas$tpl => $on ){
18
+
$where .= $i==0?" template_engine='$tpl'":" OR template_engine='$tpl'";
19
+
$i=1;
20
+
}
21
+
$where .= ")";
22
+
}
23
+
else
24
+
$where = "WHERE test='$test'";
25
+
26
+
$rows = $db->get_list( "SELECT template_engine, n, avg(execution_time) AS execution_time, round(avg(memory)/1024) AS memory FROM template_benchmark $where GROUP BY template_engine, n ORDER BY n, template_engine" );
27
+
$template_show = $db->get_list( "SELECT template_engine, avg(execution_time) AS execution_time FROM template_benchmark $where GROUP BY template_engine ORDER BY n, template_engine", "template_engine", "template_engine" );
28
+
$nrows = $db->get_list( "SELECT n FROM template_benchmark $where GROUP BY n" );
$summary = $db->get_list( "SELECT template_engine AS name, avg(execution_time) AS execution_time, avg(memory) AS memory FROM template_benchmark WHERE test='$test' GROUP BY template_engine ORDER BY template_engine" );
12
+
13
+
$template_tested = $db->get_list( "SELECT template_engine FROM template_benchmark WHERE test='$test' GROUP BY template_engine ORDER BY template_engine", "template_engine", "template_engine" );
14
+
15
+
if( $template_selected = get( 'template' ) ){
16
+
$where = "WHERE test='$test' AND (";
17
+
$i=0;
18
+
foreach( $template_selectedas$tpl => $on ){
19
+
$where .= $i==0?" template_engine='$tpl'":" OR template_engine='$tpl'";
20
+
$i=1;
21
+
}
22
+
$where .= ")";
23
+
}
24
+
else
25
+
$where = "WHERE test='$test'";
26
+
27
+
$rows = $db->get_list( "SELECT template_engine, n, avg(execution_time) AS execution_time, avg(memory) AS memory FROM template_benchmark $where GROUP BY template_engine, n ORDER BY n, template_engine" );
28
+
$template_show = $db->get_list( "SELECT template_engine, avg(execution_time) AS execution_time FROM template_benchmark $where GROUP BY template_engine ORDER BY n, template_engine", "template_engine", "template_engine" );
29
+
$nrows = $db->get_list( "SELECT n FROM template_benchmark $where GROUP BY n" );
0 commit comments