The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Description

The perftest-awl program is a tool for performance testing of AWL address list implementations.

Command Usage

  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

Example

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...