Python benchmark script
Michael Ströder
michael at stroeder.com
Mon Jun 23 14:52:19 CEST 2003
Ed . wrote:
> Attached is the script I used to compare python-ldap with ldapsearch.
Not sure whether everything's ok with your script. On my LDAP server the
following appears in the log:
Jun 23 14:47:03 nb2 slapd[10223]: conn=67 op=9999 SEARCH RESULT tag=101
err=0 nentries=0 text=
Jun 23 14:47:03 nb2 slapd[10218]: conn=67 op=10000 SRCH
base="dc=stroeder,dc=de" scope=2 filter="(?=undefined)"
The temporary file only contains the name, no attribute type for the search
filter.
Anyway, if you run it with python -O you will see a big performance gain
since all the trace logging stuff in LDAPObject._ldap_call() is completely
deactivated (enclose in if __debug__).
Ciao, Michael.
More information about the python-ldap
mailing list