BenchmarkForRails Gets Log Analysis

Posted by Lance Ivy Sat, 15 Dec 2007 00:54:00 GMT

My last round of efforts on the BenchmarkForRails plugin has been on reporting. It’d be a shame to have all those benchmarks and not be able to really learn something from them.

The first step was to introduce a one-line log output for production mode. I decided to leave the development mode output in the multi-line format for readability, but one-line output makes for much easier parsing.

You’ll have to forgive me for not having a full logfile to really demonstrate how the reports work, but this should at least provide a taste:

> rake log:analyze order_by=averages
resource path                            total time  frequency  average  
---------------------------------------  ----------  ---------  -------  
GET /sites/slimtimer/suggestions/search  0.8838      3          0.2946   
GET /sites/slimtimer/suggestions         0.6777      3          0.2259   
GET /                                    0.7627      27         0.0282

Posted in ,  | Tags  | 1 comment

Comments

  1. Maxime said about 1 month later:

    This is definitely useful. The average speed of a path of different random visits is much more accurate than the traditional rails benchmark.

(leave url/email »)

   Comment Markup Help Preview comment