2011-2013ForgeRock ASsearchrate1OpenDJsearchratemeasure search throughput and response timesearchrateoptionsfilter format stringattributesDescriptionThis utility can be used to measure search throughput and response time
of a directory service using user-defined searches.OptionsThe following options are supported.Alias dereference policy ('never', 'always', 'search', or 'find')Default value: neverUse asynchronous mode and don't wait for results before sending the
next requestBase DN format stringNumber of connectionsDefault value: 1Calculate max response time for a percentile of operationsKeep connections openKeep connections open and don't rebindArgument used to evaluate the Java style format strings in program
parameters (Base DN, Search Filter). The set of all arguments provided
form the the argument list in order. Besides static string arguments, they
can be generated per iteration with the following functions:"inc({filename})"Consecutive, incremental line from file"inc({min},{max})"Consecutive, incremental number"rand({filename})"Random line from file"rand({min},{max})"Random number"randstr({length},charSet)"Random string of specified length and optionally from
characters in the charSet string. A range of character can be specified
with [start-end] charSet notation. If no charSet is specified,
the default charSet of [A-Z][a-z][0-9] will be used.Display results each specified number of secondsDefault value: 5Max iterations, 0 for unlimitedDefault value: 0Target average throughput to achieveDefault value: 0Search scope ('base', 'one', 'sub', or 'subordinate')Default value: subUse script-friendly modeNumber of concurrent tasks per connectionDefault value: 1LDAP Connection OptionsDN to use to bind to the serverDefault value: cn=Directory ManagerUse the authorization identity controlDirectory server hostname or IP addressDefault value: localhost.localdomainBind password file Certificate key store pathNickname of certificate for SSL client authenticationSASL bind optionsDirectory server port numberDefault value: 389Certificate trust store pathUse StartTLS to secure communication with the serverCertificate trust store PINCertificate key store PIN fileCertificate trust store PIN fileUse the password policy request controlPassword to use to bind to the serverCertificate key store PINTrust all server SSL certificatesUse SSL for secure communication with the serverUtility Input/Output OptionsNo properties file will be used to get default command line
argument valuesPath to the file containing default property values used for
command line argumentsUse verbose modeGeneral OptionsDisplay version informationDisplay usage informationExit Codes0The command completed successfully.89An error occurred while parsing the command-line arguments.ExamplesThe following example demonstrates measuring search performance.$ grep ^uid: /path/to/Example.ldif | sed -e "s/uid: //" > names.txt
$ searchrate -p 1389 -b dc=example,dc=com -A -F -c 4 -t 4
-g "rand(names.txt)" "(uid=%s)"
-------------------------------------------------------------------------------
Throughput Response Time
(ops/second) (milliseconds)
recent average recent average 99.9% 99.99% 99.999% err/sec Entries/Srch
-------------------------------------------------------------------------------
1475.9 1475.9 0.423 0.423 6.938 126.236 126.236 0.0 1.0
2596.5 2038.4 0.254 0.315 6.866 12.980 126.236 0.0 1.0
3210.7 2428.2 0.205 0.267 5.733 11.710 126.236 0.0 1.0
3080.5 2591.0 0.215 0.252 5.733 10.541 126.236 0.0 1.0
3236.9 2720.1 0.203 0.240 5.258 10.514 126.236 0.0 1.0
3181.1 2796.8 0.207 0.234 5.258 10.384 126.236 0.0 1.0
3202.5 2854.8 0.206 0.229 4.825 10.384 126.236 0.0 1.0
^C