Saturday, October 27, 2007

Textmate command for running a focused unit test from a module

Ricky Lui and I wrote a textmate command to run a focused unit test from a module. We sometimes extract common tests to a module and include the module in multiple places. It's nice to be able to select one unit test from the module file, and have it run the test from each of the files in which the module is included. Ricky explains it here , and the actual commands can be found here.

Saturday, October 13, 2007

Testing of jruby JMS vs MRI activemessaging in production mode

My previous performance tests of jruby JMS vs MRI activemessaging were flawed - I wasn't running in production mode, and my classes were being reloaded every time a message was processed. Rookie mistake. Anyway, here are my latest performance results running in production mode:



It turns out that MRI and activemessaging is faster. Not sure what causes the strange profile in the MRI test (perhaps garbage collection?), but I ran the test twice and came up with very similar profiles.

Thanks very much to my friend and colleague Joe Poon for pointing this out to me. Apologies to anyone who was inconvenienced by this.