Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cduce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cduce
cduce
Commits
1fe030ba
Commit
1fe030ba
authored
Jul 10, 2007
by
Pietro Abate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[r2004-07-16 09:16:50 by afrisch] Empty log message
Original author: afrisch Date: 2004-07-16 09:16:51+00:00
parent
030a3567
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
15 deletions
+13
-15
benchmarks/addrbook1.cd
benchmarks/addrbook1.cd
+1
-1
benchmarks/addrbook2.cd
benchmarks/addrbook2.cd
+1
-1
benchmarks/addrbook3.cd
benchmarks/addrbook3.cd
+1
-3
benchmarks/addrbook4.cd
benchmarks/addrbook4.cd
+1
-1
benchmarks/bench.ml
benchmarks/bench.ml
+5
-5
benchmarks/split0.cd
benchmarks/split0.cd
+1
-1
benchmarks/split1.cd
benchmarks/split1.cd
+1
-1
benchmarks/split2.cd
benchmarks/split2.cd
+1
-1
benchmarks/split3.cd
benchmarks/split3.cd
+1
-1
No files found.
benchmarks/addrbook1.cd
View file @
1fe030ba
...
...
@@ -11,7 +11,7 @@ let mkTelbook ([Person*] -> [<entry>[Name Tel] *])
| [] -> []
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <addrbook>(x & [Person*]) -> mkTelbook x
...
...
benchmarks/addrbook2.cd
View file @
1fe030ba
...
...
@@ -10,7 +10,7 @@ let mkTelbook ([Person*] -> [<entry>[Name Tel] *])
| [] -> []
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <addrbook>(x & [Person*]) -> mkTelbook x
...
...
benchmarks/addrbook3.cd
View file @
1fe030ba
...
...
@@ -11,8 +11,6 @@ let mkTelbook (l : [Person*]) : [<entry>[Name Tel] *] =
match argv [] with
| [ f ] ->
(match load_xml f with
| <addrbook>(x & [Person*]) ->
let x = <addrbook>(mkTelbook x) in
print (print_xml x)
| <addrbook>(x & [Person*]) -> <addrbook>(mkTelbook x)
| _ -> raise "Invalid document")
| _ -> raise "Invalid command line"
benchmarks/addrbook4.cd
View file @
1fe030ba
...
...
@@ -7,7 +7,7 @@ type Email = <email>String
let mkTelbook (l : [Person*]) : [<entry>[Name Tel] *] =
transform l with <_>[ n (t & <tel>_) ; _ ] -> [ <entry>[n t] ]
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <addrbook>(x & [Person*]) -> mkTelbook x
...
...
benchmarks/bench.ml
View file @
1fe030ba
...
...
@@ -53,10 +53,10 @@ let langs =
"CDuce"
,
".cd"
,
(
fun
script
xml
->
sp
"%s
--quiet %s
--arg %s"
cduce_cmd
script
xml
);
"CDuce.old"
,
".cd"
,
sp
"%s
%s --no ocaml
--arg %s"
cduce_cmd
script
xml
);
(*
"CDuce.old", ".cd",
(fun script xml ->
sp
"%s --quiet %s --arg %s"
(
cduce_cmd
^
".old"
)
script
xml
);
sp "%s --quiet %s --arg %s" (cduce_cmd^".old") script xml);
*)
"XDuce 0.4.0"
,
".q"
,
(
fun
script
xml
->
...
...
@@ -81,7 +81,7 @@ let rep = 3
let
time
s
=
let
s
=
sp
"%s -p %s 2>&1"
time_cmd
s
in
(* pr "Running: %s\n" s; *)
(* pr "Running: %s\n" s;
*)
flush
stdout
;
for
i
=
1
to
rep
do
let
ic
=
Unix
.
open_process_in
s
in
...
...
@@ -112,7 +112,7 @@ let () =
let
ic
=
open_in
fn
in
let
size
=
in_channel_length
ic
in
close_in
ic
;
pr
"XML size = %i
\n
"
size
;
pr
"XML size = %i
; records = %i
\n
"
size
s
;
List
.
iter
(
fun
(
lang
,
ext
,
cmd
)
->
List
.
iter
...
...
benchmarks/split0.cd
View file @
1fe030ba
...
...
@@ -16,6 +16,6 @@ let split (MPerson -> Man ; FPerson -> Woman)
let d = map fc with x -> split x in
<(tag) name=n>[ <sons>s <daughters>d ]
match argv with
match argv
[]
with
| [ f ] -> load_xml f
| _ -> raise "Invalid command line"
benchmarks/split1.cd
View file @
1fe030ba
...
...
@@ -16,7 +16,7 @@ let split (MPerson -> Man ; FPerson -> Woman)
let d = map fc with x -> split x in
<(tag) name=n>[ <sons>s <daughters>d ]
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <doc>(l & [Person*]) -> <doc>(map l with x -> split x)
...
...
benchmarks/split2.cd
View file @
1fe030ba
...
...
@@ -16,7 +16,7 @@ let split (MPerson -> Man ; FPerson -> Woman)
let d = map fc with x -> split x in
<(tag) name=n>[ <sons>s <daughters>d ]
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <doc>(l & [Person*]) -> <doc>(map l with x -> split x)
...
...
benchmarks/split3.cd
View file @
1fe030ba
...
...
@@ -21,7 +21,7 @@ let split_f (FPerson -> Woman)
let d = map fc with x -> split_f x in
<woman name=n>[ <sons>s <daughters>d ]
match argv with
match argv
[]
with
| [ f ] ->
(match load_xml f with
| <doc>(l & [Person*]) ->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment