From 9a5fcfd85222669ba70aae8c73433afc047f8f8a Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Tue, 18 Jun 2002 13:04:53 +0000 Subject: [PATCH] Benchmarcking informations output. --- helm/ocaml/mathql_interpreter/mqint.ml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/helm/ocaml/mathql_interpreter/mqint.ml b/helm/ocaml/mathql_interpreter/mqint.ml index ad27d1959..611fdf388 100644 --- a/helm/ocaml/mathql_interpreter/mqint.ml +++ b/helm/ocaml/mathql_interpreter/mqint.ml @@ -86,8 +86,17 @@ let rec execute_ex env = intersect_ex (execute_ex env l1) (execute_ex env l2) | MQLRVar rvar -> [List.assoc rvar env] | MQLetIn (lvar, l1, l2) -> - let _ = letin_ex lvar (execute_ex env l1) in - execute_ex env l2 + let t = Unix.time () in + let res = + (*CSC: The interesting code *) + let _ = letin_ex lvar (execute_ex env l1) in + execute_ex env l2 + (*CSC: end of the interesting code *) + in + print_string ("LETIN = " ^ string_of_int (List.length res) ^ ": ") ; + print_endline (string_of_float (Unix.time () -. t) ^ "s") ; + flush stdout ; + res | MQLetRef rvar -> letref_ex rvar ;; -- 2.39.2