]> matita.cs.unibo.it Git - helm.git/commitdiff
added parser benchamrk
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 29 Apr 2005 12:07:15 +0000 (12:07 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 29 Apr 2005 12:07:15 +0000 (12:07 +0000)
helm/ocaml/metadata/test.ml

index 8e805840a499e1460637d029a83e787ab1228dcd..0264681bc05f18005748ea0ea5d2dfb86504bbc9 100644 (file)
@@ -1,6 +1,16 @@
 
-let _ = Helm_registry.set "getter.mode" "remote";
-let _ = Helm_registry.set "getter.url" "http://mowgli.cs.unibo.it:58081/" in
+
+let _ = Helm_registry.set "getter.mode" "local" in
+
+let _ = Helm_registry.set "getter.servers"
+            "file:///projects/helm/library/coq_contribs" in
+let _ = Helm_registry.set "getter.cache_dir" "." in
+let _ = Helm_registry.set "getter.maps_dir" "." in
+let _ = Helm_registry.set "getter.dtd_dir" "/projects/helm/xml/dtd" in
+
+let _ = Http_getter.init () in
+(* let _ = Http_getter.update () in *)
+
 let dbd =
   Mysql.quick_connect ~host:"mowgli.cs.unibo.it" ~user:"helm" ~database:"matita"
     ()
@@ -26,5 +36,9 @@ end else
       let uri = UriManager.uri_of_string line in
       MetadataDb.index_obj ~dbd ~uri
     done
-  with End_of_file -> close_in ic
+  with 
+  | _ -> 
+    prerr_endline 
+      ("total persing time " ^ (string_of_float !CicEnvironment.total_time)); 
+    close_in ic