bench.pl -- Benchmark cache modules against each other
Uses Benchmark to compare a variety of CHI and non-CHI caches in terms of raw reading and writing speed. Sorts results by read performance. Does not attempt to test discard policies.
bench.pl -d driver_regex [options]
-d driver_regex Run drivers matching this regex (required) - use '.' for all -h --help Print help message -n Sort results by name instead of by read performance -t time Number of seconds to benchmark each operation (default 2) -x|--complex Use a complex data structure instead of a scalar
Run bench.pl with no arguemnts to get a full list of available drivers.
For the mysql drivers, run this as mysql root:
create database chibench; grant all privileges on chibench.* to 'chibench'@'localhost' identified by 'chibench';
For the memcached drivers, you'll need to start memcached on the default port (11211).
To install CHI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CHI
CPAN shell
perl -MCPAN -e shell install CHI
For more information on module installation, please visit the detailed CPAN module installation guide.