[ragel-users] ocaml codegen

Oleg Tsarev zabivator at gmail.com
Thu Apr 7 22:39:11 UTC 2011


Thank you, nice!

2011/4/8 ygrek <ygrek at autistici.org>:
> 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
>
> --
>  ygrek
>  http://ygrek.org.ua/
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
>

_______________________________________________
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