Railsbench gem updated
Posted 14 Jan 2007
Today I’ve released a new gem version (0.9.1) of railsbench. It’s mainly a bug fix release for the installation problems discovered for 0.9.0.
However, there’s also a new script called generate_benchmarks, which can be used to generate and maintain the benchmark configuration file used by railsbench.
railsbench generate_benchmarks updates the benchmark configuration file with
- a benchmark for each controller/action pair (named <controller>_<action>)
- a benchmark for each controller combining all actions of the controller into one benchmark (named <controller>_controller)
- a benchmark comprising all controllers (named all_controllers)
This should get you started benchmarking in no time ;-)
After generating the file, you will need to edit the benchmarks and replace routing placeholders (:id, :article_id, etc.) by actual values.
If you add new controllers/actions later in the development process, you can invoke railsbench generate_benchmarks again to add new items to the configuration file. The older entries will not be removed by this process.
Currently, generate_benchmarks only works for the 1.2 release candidate and edge Rails (but I’ll gladly accept patches to make it work with 1.1.6).
Happy benchmarking!