# Performance: Ruby/LDAP vs. ActiveLDAP vs. Net::LDAP

**URL:** <https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814>\
**Category:** Ruby\
**Created:** [October 11, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814 "2006-10-11T17:52:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 11, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814/1 "2006-10-11T17:52:28Z")

</div>

Hi everyone,  
Currently, in an application I’m working on I’m using Ruby/LDAP and  
ActiveLDAP - and they both work relatively well. But recently I’ve run  
into some performance snags. So my question is - is there a large  
performance gap between Ruby/LDAP, ActiveLDAP, and Net::LDAP that would  
justify standardizing on one over the others?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 11, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814/2 "2006-10-11T17:54:29Z")

</div>

On 10/11/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi everyone,  
> Currently, in an application I’m working on I’m using Ruby/LDAP and  
> ActiveLDAP - and they both work relatively well. But recently I’ve run  
> into some performance snags. So my question is - is there a large  
> performance gap between Ruby/LDAP, ActiveLDAP, and Net::LDAP that would  
> justify standardizing on one over the others?

ActiveLDAP is a wrapper on top of Ruby/LDAP. There is supposed to be  
work later toward making ActiveLDAP work with Net::LDAP, but I don’t  
think that’s started yet. Net::LDAP is pure Ruby, which means its  
significantly more portable. IMO, Net::LDAP has the better LDAP API  
than Ruby/LDAP (which mirrors the C API faithfully).

-austin

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [October 11, 2006, 7:26pm UTC](https://www.ruby-forum.com/t/performance-ruby-ldap-vs-activeldap-vs-net-ldap/71814/3 "2006-10-11T19:26:00Z")

</div>

On 10/11/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi everyone,  
> Currently, in an application I’m working on I’m using Ruby/LDAP and  
> ActiveLDAP - and they both work relatively well. But recently I’ve run  
> into some performance snags. So my question is - is there a large  
> performance gap between Ruby/LDAP, ActiveLDAP, and Net::LDAP that would  
> justify standardizing on one over the others?

Do you have test-cases and benchmarks?

From what I can see, most Ruby users are using Net::LDAP to authenticate  
users, and most of those are binding against Active Directory.  
Relatively  
few people are doing bulk-queries where performance problems would be  
readily apparent. I have made some performance-improvements to Net::LDAP  
recently but didn’t get too aggressive about it because the use-cases  
don’t  
justify it. But again, tell me more about what you’re trying to do.
