in
let _ = Printf.eprintf "Number of nodes %i\n%!" (Tree.size v) in
(* let _ = test_text v in *)
-(* let _ = Tree.stats v in
+(* let _ = Tree.stats v in *)
let _ = Printf.eprintf "Timing first_child/next_sibling %!" in
- let _ = time (Tree.benchmark_fcns) v in
+ let _ = time ~count:5 (Tree.benchmark_fcns) v in (*
let _ = Printf.eprintf "Timing last_child/prev_sibling %!" in
let _ = time (Tree.benchmark_lcps) v in
let _ = Printf.eprintf "Timing jump to a %!" in
if !Options.backward then Printf.eprintf "WARNING: couldn't find a jumping point, running top-down\n"
in
if !Options.count_only then
- let r = time_mem ( top_down_count auto ) v in
+ let r = time ~count:5 ( top_down_count auto ) v in
let _ = Printf.eprintf "Number of nodes in the result set : %i\n%!" r
in ()
else
in
main v !Options.query !Options.output_file;;
+
+