projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add script to test XPath expressions (requires xmlstarlet)
[SXSI/xpathcomp.git]
/
src
/
main.ml
diff --git
a/src/main.ml
b/src/main.ml
index
1981fc2
..
8c7c81f
100644
(file)
--- a/
src/main.ml
+++ b/
src/main.ml
@@
-19,10
+19,11
@@
let tuned_gc = { default_gc with
Gc.space_overhead = 100;
}
Gc.space_overhead = 100;
}
-
let mk_runtime run auto doc arg count print outfile =
fun () ->
let mk_runtime run auto doc arg count print outfile =
fun () ->
+ if !Options.do_perf then start_perf ();
let r = time ~count:1 ~msg:"Execution time" (run auto doc) arg in
let r = time ~count:1 ~msg:"Execution time" (run auto doc) arg in
+ if !Options.do_perf then stop_perf ();
Printf.eprintf "Number of results: %i\n%!" (count r);
match outfile with
None -> ()
Printf.eprintf "Number of results: %i\n%!" (count r);
match outfile with
None -> ()