Hi Alex,

Sorry for the bulleted nature:

1. No error messages should indeed mean successful completion. Can you also 
link me to apf_debug so I can add this to my own tests?

2. I went ahead and committed the capitalization fix, thanks!

3. Are you sure you are trying the non-optimized version correctly? I just 
tried on a separate machine and I get nearly twice as slow results with 
non-optimized language.js (on my macbook air):

optimized: 4644ms
non-optimized: 7327ms

The way I'm doing this is:

in language repo:

non-optimized
$ cd path/to/language/repo
$ git checkout master
$ cd path/to/language_speed_test
$ language -g path/to/JavaScript.language > JavaScript.js
$ node run.js ../jquery.js

optimized
$ cd path/to/language/repo
$ git checkout optimizations
$ cd path/to/language_speed_test
$ language -g path/to/JavaScript.language > JavaScript.js
$ node run.js ../jquery.js

I am also on node 0.4.1 but on Mac OS X 10.7

Thanks,

Francisco

On Jul 31, 2011, at 7:52 PM, Alek Paunov wrote:

> Hi Francisco,
> 
> I re-ran your tests:
> 
> Parser/Test     jquery.js     apf_debug.js
> ------------------------------------------
> language-opt    5452/320M        5611/925M
> language.js     5498/320M        5596/828M
> PEG.js         61780/041M     >900000/  ??
> Narcissus        723/035M   SyntaxErr/  NA
> jison           2900/057M   SyntaxErr/  NA
> 
> Because of missing error messages I am assuming that language.js succeeds for 
> whole apf_debug.js.
> 
> Memory is measured with /usr/bin/time, language-opt means with optimizations 
> branch. Machine: Fedora Linux 2.6.38.8-35.fc15.x86_64; node: v0.4.1, v8: 
> 3.0.0.1.
> 
> I am pretty slow with grammar transformations, but will give a try to 
> generate LPEG grammars from these in language.js and PanPG and LPEG results 
> next days.
> 
> Kind regards,
> Alek
> 
> P.S.: You can fix:
> 
> --- a/Narcissus/run.js
> +++ b/Narcissus/run.js
> @@ -1,7 +1,7 @@
> 
> require("fs").readFile(process.argv[2], function(err, data)
> {
> -    var parser = require("./Narcissus/lib/parser");
> +    var parser = require("./narcissus/lib/parser");
> 
>     var start = new Date();
>     result = parser.parse(data.toString());


_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to