Use the authrate command line tool to measure authentication performance of a directory server.
The example below illustrates how to execute searches and binds against an LDAP directory server. The example:
- searches and binds against random entries in the range
uid=user.0 - user.1000000
- using password
"password"
- 256 threads simultaneously
- measurements are reported at 1 second intervals
- a 5 minute “warmup” period is used
- the duration of the test is 1 hour (3600 seconds) + the 5 minute warmup
- SIMPLE authentication
authrate --hostname ldap.example.com -p 389 \
--baseDN dc=example,dc=com \
--filter 'uid=user.[0-1000000]' \
--credentials password \
--scope sub \
--attribute uid \
--authType SIMPLE \
--numThreads 256 \
--intervalDuration 1 \
--warmupIntervals 300 \
--csv \
--numIntervals 3600
Recent Auths/Sec,Recent Avg Dur ms,Recent Errors/Sec,Overall Auths/Sec,Overall Avg Dur ms
36526.782,5.658,0.000,warming up,warming up
18490.217,16.509,0.000,warming up,warming up
46487.706,5.506,0.000,warming up,warming up
46122.294,5.547,0.000,warming up,warming up
46891.769,5.403,0.000,warming up,warming up
46885.624,5.511,0.000,warming up,warming up
...
Warm-up completed. Beginning overall statistics collection.
46727.472,5.478,0.000,46727.472,5.478
46395.864,5.517,0.000,46561.585,5.498
46635.677,5.486,0.000,46586.274,5.494
45997.237,5.564,0.000,46438.944,5.511
45708.767,5.599,0.000,46292.996,5.529
...