[ragel-users] ocaml codegen
Adrian Thurston
thurston at complang.org
Fri Apr 8 06:00:29 UTC 2011
That is great, thank you!
On 11-04-07 02:46 PM, ygrek wrote:
> Hello,
>
> Attached patch adds ragel ocaml code generation.
> Implemented code styles are : -T0 -T1 -F0 -F1 and -G0 (partial).
> The only input data type is string (elements are bytes).
> Several simple tests are included in examples/ocaml/.
> Here are speed benchmark results for different codegen styles
> (examples/go/url.rl converted to ocaml host language) :
>
> ocaml -T0 : 4.02 sec
> ocaml -T1 : 3.85 sec
> ocaml -F0 : 1.72 sec
> ocaml -F1 : 1.52 sec
> ocaml -G0 : 1.70 sec
> go -G2 : 2.18 sec
>
> rounds : 100_000
> go : 8g version release.2011-02-01.1 7463
> ocaml : 3.11.2
>
>
>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
--
Dr. Adrian D. Thurston
http://www.complang.org/thurston/
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list