X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=benchmark%2Fmain.ml;h=935528c5ff12ae115cc1af1c1b20315156576228;hb=9abf8a6f78264fbf4eec1676b4a26018967c97e6;hp=98a9519ba144fdf5cf67de2eb21a07074b4b3530;hpb=95367aa932a9e179976e59ea326542c50905f5b3;p=SXSI%2Fxpathcomp.git diff --git a/benchmark/main.ml b/benchmark/main.ml index 98a9519..935528c 100644 --- a/benchmark/main.ml +++ b/benchmark/main.ml @@ -62,7 +62,7 @@ struct let reference = false let time_factor = 1.0 let mk_queryfile b doc q out = () - let mk_cmdline b qout qfile doc q = [ doc; q ]@ (if b then [qout] else []) + let mk_cmdline b qout qfile doc q = [ "-d"; doc; q ]@ (if b then [qout] else []) let parse_rules = [ ( ".*Parsing document :[ \\t]*\\([0-9]+\\.[0-9]*\\)ms.*", [ Input_parsing_time 1]); @@ -79,29 +79,17 @@ struct end -module CONF : CONFIGURATION = -struct - let path = "." - let result_basename = "test" - let num_runs = 5 - let run_with_output = true - let run_without_output = true -end - -module I = INIT_TESTER (CONF) -module Test = MK (SXSI) (MK (SaxonBXQuery) (I)) +INCLUDE "config.ml" -let l = Test.test_engine [] (make_queryset - ["/home/kim/Documents/Work/Code/xpathcomp/tests/tiny.xml"] - ["/descendant::*/descendant::*/descendant::*"]) +let l = TEST.test_engine [] (make_queryset + documents + queries + ) ;; - - - List.iter (function (e,d),s -> Printf.printf "\n-------------- %s -----------------" e; Array.iter ( fun i ->