else Printf.printf "With output : \t%!";
for i = 1 to Conf.num_runs do
let s = extract(run_query (k==1) (j==1) qnum docnum qset) in
- if sres.(j).query_execution_time > s.query_execution_time
- then sres.(j) <- s;
- if (k==1) then
- sres.(j).memory_usage <- s.memory_usage;
+ sres.(j).query_execution_time <- s.query_execution_time;
+ sres.(j).query_compile_time <- s.query_compile_time;
+ if j == 1 then sres.(j).serialization_time <- s.serialization_time;
+ if k == 1 then sres.(j).memory_usage <- s.memory_usage;
Printf.printf "pass %i ... %!" i;
done;
Printf.printf "Ok\n%!";
+++ /dev/null
-(* semi-colon separated list of input documents *)
-let documents = [ "../tests/tiny.xml" ]
-
-(* semi-colon separated list of XPath queries *)
-let queries = [ "//para[ contains(.,\"international\") ]//acronym"; "//*//*//*//*"; "/*"; "//part//text()" ]
-
-
-(* I is the initial configuration
- * MK (engine) (configuration) gives a new configuration
- * valid engines are SXSI and SaxonBXQuery
- * ex: if you only want to test SaxonBXQuery :
- * module TEST = MK (SaxonBXQuery) (I)
- *)
-
-module CONF : CONFIGURATION =
-struct
- let path = "output"
- let result_basename = "test"
- let num_runs = 2
- let run_with_output = true
- let run_without_output = true
-end
-
-module I = INIT_TESTER (CONF)
-
-module TEST =
- MK (SXSI)
- (MK (XsltProc)
- (MK (QizxOpen)
- (MK (SaxonBXQuery) (I))))
-
--- /dev/null
+(* semi-colon separated list of input documents *)
+let documents = [ "../tests/tiny.xml" ]
+
+(* semi-colon separated list of XPath queries *)
+let queries = [ "//*" ]
+
+
+(* I is the initial configuration
+ * MK (engine) (configuration) gives a new configuration
+ * valid engines are SXSI and SaxonBXQuery
+ * ex: if you only want to test SaxonBXQuery :
+ * module TEST = MK (SaxonBXQuery) (I)
+ *)
+
+module CONF : CONFIGURATION =
+struct
+ let path = "output"
+ let result_basename = "test"
+ let num_runs = 2
+ let run_with_output = true
+ let run_without_output = true
+end
+
+module I = INIT_TESTER (CONF)
+
+module TEST =
+ MK (SXSI)
+ (MK (SaxonBXQuery) (I))
+
List.iter (function (e,d),s ->
Printf.printf "\n-------------- %s -----------------" e;
- Array.iter ( fun i ->
- print_newline ();
- print_newline ();
- print_stats Format.std_formatter i) (List.hd s);
+ List.iter (fun k ->
+ Array.iter ( fun i ->
+ print_newline ();
+ print_newline ();
+ print_stats Format.std_formatter i) k) s;
Printf.printf "\n----------------------------------------\n"
) l