Benchmarking in jRuby NYC.RB Talk

Here are the slides from my presentation on jRuby during the NYC.rb talk on 11/9.

NYC.rb – Nov 2010 – Benchmarking jRuby

Posted in jRuby. No Comments »

JSON Benchmarks in jRuby

I am in the process of switching a major application from MRI Ruby (specifically 1.8.7-p302) using many C extensions to jRuby (currently trying 1.5.3-master). In my application, performance is extremely important. It is so important in fact, that I will be writing about some of my experiences in troubleshooting the speed and getting those important milliseconds back. When I am trying to keep an entire transaction from start to finish under 40ms and just the decoding of a JSON object into a Ruby object in jRuby takes roughly 30ms using json_pure, we may have to explore other avenues.
Read the rest of this entry »

Posted in jRuby. Tags: , , . 7 Comments »

Hash Autovivification in Ruby

One of the features that I miss most from my Perl days (and to be honest, there isn’t a whole lot I miss from my Perl days) is autovivification. For more information on what it is, read the wikipedia page on it here.
Read the rest of this entry »

Posted in Ruby. Tags: , . No Comments »

Interesting Object Methods in Ruby

This little Rubyism is something that I use frequently for debugging my objects. I add a method to every object to show only the interesting methods. What do I mean by interesting methods?
Read the rest of this entry »

Posted in Ruby. Tags: , . 1 Comment »