Generating a Trample configuration file from a Rails server log

Below is a Rake Task to parse a Rails server log using Timber to generate a Trample configuration file for load testing.

Just download Timber from https://github.com/cainlevy/timber and copy it into your rails app's: /vender/plugins/cainlevy-timber

Then copy this task into: /lib/tasks

Then run with: rake trample:generate LOG=log/development.log"

(Don't forget to convert any filtered parameters like passwords from [FILTERED] to the actual value.)

Generating httperf wsesslog data from a Rails server log

Below is a Rake Task to parse a Rails server log using Timber to generate httperf wsesslog formatted data for load testing.

Just download Timber from https://github.com/cainlevy/timber and copy it into your rails app's: /vender/plugins/cainlevy-timber

Then copy this task into: /lib/tasks

Then run with: rake wsesslog:generate LOG=log/development.log"

(Don't forget to convert any filtered parameters like passwords from [FILTERED] to the actual value.)

 

Hmm, the iPad doesn't seem to handle overflow scrolling nicely...

Just tried to render a web page with overflow: scroll components for touch scrolling on an iPad.  Awful performance.  At least this seems to make it better:

http://mobile.tutsplus.com/tutorials/mobile-web-apps/ios-5-fixed-positioning-and-content-scrolling/

 

Here's a quick example, I wired up in Rails.

If you browse to the following links on an iPad, the scrolling performance is bad:

http://denniskuczynski.com/tests/mobile_tables/table_style

http://denniskuczynski.com/tests/mobile_tables/ul_style

However, once -webkit-overflow-scrolling : touch, is added to the scrolling container, performance is much better.

 

http://denniskuczynski.com/tests/mobile_tables/table_style?overflow=true

http://denniskuczynski.com/tests/mobile_tables/ul_style?overflow=true

See the source here:

https://gist.github.com/1888038 (Using tables)

https://gist.github.com/1888047 (Using unordered list items)

 

Note that, adding complicated HTML and CSS within these scrolling tables will start to degrade the scrolling performance, so the table HTML should be kept as simple as possible.