The perftest-awl program is a tool for performance testing of AWL address list implementations.
usage: perftest-awl [-?mnprs] [long options...] -? --usage --help Prints this usage information. -m --module name of the AddrList module to test --module_prefix prefix for the module -p --processes number of parallel processes to use -n --num_entries number of entries to add scores -r --repeat how often to repeat the test -s --score score added to each entry
To test the RedisAddrList run:
$ ./perftest-awl -m RedisAddrList initializing... starting 5 workers... updating scores... 10000x in 3.26s (3063.8/s) updating scores... 10000x in 1.79s (5579.1/s) updating scores... 10000x in 1.85s (5418.6/s) updating scores... 10000x in 1.85s (5392.4/s) updating scores... 10000x in 1.87s (5361.5/s) updating scores... 10000x in 1.77s (5654.8/s) updating scores... 10000x in 1.80s (5556.8/s) updating scores... 10000x in 1.88s (5307.1/s) updating scores... 10000x in 1.84s (5443.4/s) updating scores... 10000x in 1.78s (5604.8/s) cleaning up...
If you want to test file based address list dont forget to change to the user owning the files:
$ su - Password: # su -s /bin/bash - amavis $ ./perftest-awl -m DBBasedAddrList initializing... starting 5 workers... updating scores... 10000x in 31.53s (317.2/s) updating scores... 10000x in 0.77s (12982.2/s) updating scores... 10000x in 0.77s (12972.6/s) updating scores... 10000x in 0.78s (12875.8/s) updating scores... 10000x in 0.78s (12828.5/s) updating scores... 10000x in 0.83s (12021.1/s) updating scores... 10000x in 0.82s (12241.0/s) updating scores... 10000x in 0.80s (12507.5/s) updating scores... 10000x in 0.79s (12604.5/s) updating scores... 10000x in 0.78s (12871.1/s) cleaning up...
To install Mail::SpamAssassin::Plugin::RedisAWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::SpamAssassin::Plugin::RedisAWL
CPAN shell
perl -MCPAN -e shell install Mail::SpamAssassin::Plugin::RedisAWL
For more information on module installation, please visit the detailed CPAN module installation guide.