This site is dedicated to further knowledge about creating Ruby on Rails applications professionaly. We discuss Ruby on Rails features from a performance angle, discuss Ruby on Rails performance analysis methods, provide information on Ruby on Rails scaling and benchmark Ruby on Rails performance for each release. We discuss best practices for selecting Ruby on Rails session containers, fragment and page caching and optimizing database queries.

New Railsbench Release (0.9.2)

Posted 01 Apr 2007

A new version of railsbench has been released. Benchmarking POST requests is now supported, benchmark specific session data can be specified in the benchmark config file and ERB can be used as well.

  • added POST support:
        search:
          uri: /search
          method: post
          post_data: category=dessert
    
    • method defaults to get
    • post_data will be url encoded by railsbench
  • allow specification of session_data in benchmarks.yml:
        benchmark_name:
          uri: /
          session_data:
             user_id: 1
          post_data: category=dessert
    
  • load benchmarks.yml using ERB. Example: retrieve login ids using Rails)
        admin_interface:
          uri: /admin
          session_data:
            user_id: <%= User.find_by_name('admin').id %>
    
  • use benchmark names instead of urls in raw data files, old files can be converted using script convert_raw_data_files. change was required by post support
  • copy environments/production.rb to environments/benchmarking.rb, instead of providing a fixed one
  • don't create a broken benchmarks.yml file when running railsbench install
  • perf_plot and perf_plot_gc accept -geometry parameter, for exact dimensioning of the produced .png file
  • use -font_size=12 for setting font size when generating graphs
  • use 'perf_plot -colors=color1,color2,...' to get a different color set
  • use 'perf_plot -out=name' to write graph to file 'name'
  • new script perf_table: create a tabular overview of perf data
  • added -colorize option to perf_html, which results in green and red backgrounds in the factor columns
  • added -theme option to perf_plot

Happy benchmarking!

Posted in railsbench | Tags railsbench

Comments

blog comments powered by Disqus