Cannot reproduce steps:
1) grabbed latest openldap 2.4 branch source code from git (OPENLDAP_REL_ENG_2_4) - HEAD commit is commit 14171f88ac1a5162c0d801e071163cc1b6de8aeb Author: Quanah Gibson-Mountquanah@openldap.org Date: Tue Jan 3 12:20:15 2012 -0800
ITS#7117
2) built (on RHEL6.2 x86_64) from source into local install directories - one version built with moznss, one built with openssl 3) setup and configured server for TLS/SSL 4) on each server, did the following: LDAPTLS_CACERT=~/save/CA/cacert.pem time bin/ldapsearch -xLLL -ZZ -H ldap://localhost.localdomain:1389/ -s base -b ""
the one built with moznss yields results similar to the following: 0.00user 0.00system 0:00.02elapsed 57%CPU (0avgtext+0avgdata 15344maxresident)k 0inputs+0outputs (0major+1051minor)pagefaults 0swaps
the one built with openssl yields results similar to the following: 0.02user 0.00system 0:00.04elapsed 64%CPU (0avgtext+0avgdata 17184maxresident)k 0inputs+0outputs (0major+1163minor)pagefaults 0swaps
i.e. the difference is negligible
Please provide more information so that I can reproduce the issue you are seeing.