This post originated from an RSS feed registered with Ruby Buzz
by Gregory Brown.
Original Post: New Formatting System: Cooler AND Faster
Feed Title: Ruby Reports Blog
Feed URL: http://www.cwinters.com/blog/index.rss
Feed Description: News and Updates regarding the Ruby Reports library and toolset.
Even though Zed Shaw will have my head for awful benchmarking like this, it was my suspicion that the new formatting engine would some how be faster than the old one. Afterall, it doesn't bother to check for FasterCSV, it just assumes you have it, the code is cleaner which means it's less likely to be full of spazoidal stuff, and even though it relys more heavily on translating data into arrays, DataSet's new to_a method is much more efficient (thanks to Dudley Flanders).
So my little random shot in the dark script looks like this: