From: Reid Thompson Date: 2009-02-08T15:11:04+09:00 Subject: Re: Ruby vs Perl performance Rados�aw Bu�at wrote: > On Sat, Feb 7, 2009 at 2:35 PM, Vetrivel Vetrivel > wrote: >> I have downloaded perl and ruby program in net.I run both the >> programs.But the Ruby program performance very wost than perl.Can any >> one tell me the reasons and >> soultion to make ruby as faster than perl. >> I have attached perl program. >> > > Did you take code form this site: > http://www.timestretch.com/FractalBenchmark.html ? > > Try it with ruby1.9.1. I get about 1.90s for perl and 2.80s for > ruby1.9.1 so it's not bad. running on core2 duo gentoo Ruby Elapsed 0.045477 rthompso@raker ~ $ ruby mand.rb Rendering * * * * * *** ***** ***** *** * ********* ************* *************** ********************* ********************* ******************* ******************* ******************* ******************* *********************** ******************* ******************* ********************* ******************* ******************* ***************** *************** ************* ********* * *************** *********************** * ************************* * ***************************** * ******************************* * ********************************* *********************************** *************************************** *** ***************************************** *** ************************************************* *********************************************** ********************************************* ********************************************* *********************************************** *********************************************** *************************************************** ************************************************* ************************************************* *************************************************** *************************************************** * *************************************************** * ***** *************************************************** ***** ****** *************************************************** ****** ******* *************************************************** ******* *********************************************************************** ********* *************************************************** ********* ****** *************************************************** ****** ***** *************************************************** ***** *************************************************** *************************************************** *************************************************** *************************************************** ************************************************* ************************************************* *************************************************** *********************************************** *********************************************** ******************************************* ***************************************** ********************************************* **** ****************** ****************** **** *** **************** **************** *** * ************** ************** * *********** *********** ** ***** ***** ** * * * * Ruby Elapsed 0.045477