Archive for the ‘Ruby’ Category
Ruby Mail on CRuby, JRuby and IronRuby
Today I tried Mikel Lindsaar’s Mail gem on CRuby, JRuby and IronRuby.
Installation of each Ruby version and Mail gem was really easy so I will not describe it here. What interested me was how fast was Mail on each Ruby implementation.
I have created a simple mail and saved it as 1.eml.
Date: Thu, 24 Dec 2009 14:37:34 Central European Standard Time From: from@test.com To: to@test.com Message-ID: <4b336e9e762a0_a1014263a4689d3@2003-ie7.mail> Subject: This is a test email Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII"; Content-Transfer-Encoding: 7bit Some text for mail body
This script will read the file, display subject and time elapsed (in seconds).
time = Time.now
require "rubygems"
require "mail"
mail = Mail.read("1.eml")
puts mail.subject.to_s
puts Time.now - time
I have executed the script three times for each Ruby implementation. It looks to me that CRuby and JRuby are similar in speed, and IronRuby is way slower.
| Test Run | CRuby | JRuby | IronRuby |
|---|---|---|---|
| 1 | 2.594 | 3.0 | 9.8125 |
| 2 | 2.109 | 2.016 | 7.796875 |
| 3 | 2.11 | 2.0 | 7.6875 |
Ruby on Beers 2
![]() |
| Ruby on Beers 2 |
The second Ruby on Beers happened yesterday. About 15 of us appeared, much more than I expected.
We were talking about Heroku, Git and Watir.
We did not have the time to talk about Unicode and RSpec, so we will talk about it the next time. There was interest in talking about Rubinius.
The next Ruby on Beers will probably happen at the same place (Multimedijalni institut, net.kulturni klub mama, Preradovićeva 18, Zagreb), at Saturday May 31st 2008 at 5 pm.
Ruby on Beers
![]() |
| Ruby on Beers 1 |
The first Ruby on Beers meeting happened last Saturday, April 5th, 2008 at lake Jarun, Zagreb, Croatia (map).
Ruby on Beers is informal gathering of Ruby users. It all started at ruby-hr Google group (in Croatian) that came to life after the first BarCamp Zagreb where we realized that there are more than one Ruby user in the near (as I thought before Barcamp).
The four of us appeared. Branimir Šloser, Saša Branković, Mislav Marohnić and me.
We enjoyed excellent Tomislav beer and discussed the meaning of life, the universe, and everything, and more specifically, what to do next.
The next meeting should be on Saturday, May 10th, 2008. I hope I will be able to talk about Watir, and there are rumors that there will be something said about Git and Unicode. Only the time will tell.
More details at Ruby on Beers official page.
If you are in the near, please drop by.


