|Sent on:||Monday, November 14, 2011 1:11 PM|
Hi all, I'm sending this email on behalf of Luke Cowell, the last presenter at the Ruby meetup. If you wish to email him, please send the email to the address at the bottom:
A big thank you to everyone who was able to come out Thursday night to the talk on benchmarking and profiling ruby. I really enjoyed presenting and I hope that you have a better understanding of how to benchmark and profile your ruby code.
Here are the benchmarking examples:
Here are the profiling examples for our dictionary application:
I implemented the hash search function we'd talked about. I also added some benchmarks, so you can see which search algorithm is fastest depending on the number of search terms used. You will need ruby-prof installed to run this code, but it should work under 1.8.x or 1.9.x. Fork and experiment!
Lastly, this is a great presentation by Piotr Szotkowski on the performance of ruby.
"Ruby is ‘known to be slow’ – but what does that exactly mean, does it really matter, and – more importantly – what can we do about this?"