time_run
authorLucca Hirschi <lucca.hirschi@gmail.com>
Wed, 18 Jul 2012 08:48:20 +0000 (10:48 +0200)
committerLucca Hirschi <lucca.hirschi@gmail.com>
Wed, 18 Jul 2012 08:48:20 +0000 (10:48 +0200)
one_benchmark
src/bench.ml

index a139a0e..1c401c6 100755 (executable)
@@ -1 +1 @@
-/usr/bin/time -l  ./bench.native ./tests/docs/XPath-PT.xml -f ./tests/queries/XPath-PT/my.xpl
\ No newline at end of file
+/usr/bin/time -l  ./bench.native ./tests/docs/XPath-PT.xml -f ./tests/queries/XPath-PT/A1.xpl
\ No newline at end of file
index 563f1d5..a020d15 100644 (file)
@@ -44,5 +44,8 @@ let () =
   let doc = doc () in
   let query = query () in
   let asta = Compil.trans query in
+  let t1 = Unix.gettimeofday() in
   let _ = compute_run doc asta in
+  let t2 = Unix.gettimeofday() in
+  let () = fprintf err_formatter "Time for Run (ms): %f\n%!" ((t2-.t1)*.1000.) in
   exit 0