let d = time Naive_tree.load_xml_file fd "parsing xml document" in
close_fd (); d
in
+ let () = Gc.compact () in
let queries =
time
(fun l ->
in
time f () ("evaluating query in " ^ msg ^ " mode")
in
+ let s = Naive.stats () in
+ Run.(
+ Logger.msg `STATS
+ "@[tree size: %d@\ntraversals: %d@\ntransition fetch cache hit ratio: %f@\ntransition eval cache hit ratio: %f@]"
+ s.tree_size s.run
+ (float s.fetch_trans_cache_hit /. float s.fetch_trans_cache_access)
+ (float s.eval_trans_cache_hit /. float s.eval_trans_cache_access));
time (fun () ->
let count = ref 1 in
List.iter (fun results ->