directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: Small perf test with the new 'fast' dn parser
Date Mon, 27 Apr 2009 18:35:38 GMT
Hi,

here are some other numbers, using different DNs, on my laptop. The last
one switches to the Antlr based parser and this is muuuuuch slower then
the old parser.


Old Parser:

Parsing '' 100000 times takes 8ms.

Parsing 'cn=test' 100000 times takes 247ms.

Parsing 'CN=Marshall T. Rose, O=Dover Beach Consulting, L=Santa Clara,
ST=California, C=US' 100000 times takes 1449ms.

Parsing 'cn=Jérôme,cn=ÄÖÜßäöü,cn=İıŞşÖöÜüĞğ' 100000 times takes 788ms.

Parsing 'a=\,\=\+\<\>\#\;\\\"\C4\8D,cn=Jérôme,cn=ÄÖÜßäöü,cn=İıŞşÖöÜüĞğ'
100000 times takes 1164ms.


New Parser:

Parsing '' 100000 times takes 8ms.

Parsing 'cn=test' 100000 times takes 127ms.

Parsing 'CN=Marshall T. Rose, O=Dover Beach Consulting, L=Santa Clara,
ST=California, C=US' 100000 times takes 708ms.

Parsing 'cn=Jérôme,cn=ÄÖÜßäöü,cn=İıŞşÖöÜüĞğ' 100000 times takes 364ms.

Parsing 'a=\,\=\+\<\>\#\;\\\"\C4\8D,cn=Jérôme,cn=ÄÖÜßäöü,cn=İıŞşÖöÜüĞğ'
100000 times takes 6368ms.


Regards,
Stefan


Emmanuel Lecharny schrieb:
> Hi guys,
> 
> so i'm back ! I did a very quick test in the train this afternoon,
> comparing the old DN parser and the fast one : the fast one is 2.20
> times faster than the old one for DN like "uid=admin, dc=com".
> 
> This is just great !
> 
> Thanks Stefan !
> 


Mime
View raw message