Rahil Kantharia
2008-Jun-02 07:39 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
Hi, Will there be any significant difference between Asp.Net with C# and IronRuby.? Since i have ready many blogs claiming C# to be running faster than Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or Vb.Net. I am more confused about performance since C# runs directly on CLR and... IronRuby runs on DLR, which itself runs above CLR. Let me make more clear. C# -------- Runs on DLR ---------Only one layer. IronRuby ---------- DLR --------- CLR --------------Two layers. Sorry for my newbie question. This question applies to IronRuby final RTM Thanks -- Posted via http://www.ruby-forum.com/.
Brad Wilson
2008-Jun-02 08:20 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia <lists at ruby-forum.com> wrote:> Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net. >This question pre-supposes that the speed of the language is the most important factor in the performance of a web-site, an assertion I believe to be contrary to most evidence and experience. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/54e8e5e3/attachment.html>
Jim Deville
2008-Jun-02 17:10 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
Agreed, unless you are running high performance computing applications, like number crunching, your code will probably be slowed down by I/O, Database or other external factors. As far as performance, it isn?t a major concern for us yet. We are more focused on being compatible with RubySpec and CRuby. We will be involved in the Ruby Benchmark Suite project (http://antoniocangiano.com/2008/06/01/help-me-create-the-ruby-benchmark-suite/), and will focus on those benchmarks when the time comes. I?d say a better comparison would be ?will we be at par with JRuby or CRuby? and we hope to be on par with JRuby eventually. Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don?t see why one would be faster, just curious. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 1:20 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote: Will there be any significant difference between Asp.Net with C# and IronRuby.? Since i have ready many blogs claiming C# to be running faster than Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or Vb.Net. This question pre-supposes that the speed of the language is the most important factor in the performance of a web-site, an assertion I believe to be contrary to most evidence and experience. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/3f94f3b9/attachment.html>
Brad Wilson
2008-Jun-02 17:24 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it''s still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville <jdeville at microsoft.com> wrote:> Sidenote: Can anyone give some links on those blogs (VB vs C#) they are > both compiled to IL, so I don''t see why one would be faster, just curious. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/87bd4470/attachment-0001.html>
Jim Deville
2008-Jun-02 17:31 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
Ah. Didn?t know that. Thanks! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 10:25 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it''s still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville <jdeville at microsoft.com<mailto:jdeville at microsoft.com>> wrote: Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don''t see why one would be faster, just curious. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/497839e9/attachment.html>
Eric Nicholson
2008-Jun-02 18:04 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
I''ve seen a couple suggestions on blogs that suggested C# was faster than VB.NET, but when it came down to testing, either the code wasn''t directly equivalent or the performance difference was fairly negligible. If someone has something to suggest otherwise, I''d be interested in that too. On Mon, Jun 2, 2008 at 1:10 PM, Jim Deville <jdeville at microsoft.com> wrote:> Agreed, unless you are running high performance computing applications, > like number crunching, your code will probably be slowed down by I/O, > Database or other external factors. As far as performance, it isn''t a major > concern for us yet. We are more focused on being compatible with RubySpec > and CRuby. We will be involved in the Ruby Benchmark Suite project ( > http://antoniocangiano.com/2008/06/01/help-me-create-the-ruby-benchmark-suite/), > and will focus on those benchmarks when the time comes. I''d say a better > comparison would be "will we be at par with JRuby or CRuby" and we hope to > be on par with JRuby eventually. > > > > Sidenote: Can anyone give some links on those blogs (VB vs C#) they are > both compiled to IL, so I don''t see why one would be faster, just curious. > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Brad Wilson > *Sent:* Monday, June 02, 2008 1:20 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Performance difference in Asp.Net with > IronRuby. > > > > On Mon, Jun 2, 2008 at 12:39 AM, Rahil Kantharia <lists at ruby-forum.com> > wrote: > > Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net. > > > This question pre-supposes that the speed of the language is the most > important factor in the performance of a web-site, an assertion I believe to > be contrary to most evidence and experience. > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/eba34a15/attachment.html>
Mohammad Tayseer
2008-Jun-02 18:07 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
Performance is a very complex issue. I suggest that everyone reads Joseph Newcomer article "Optimization: Your Worst Enemy" Mohammad Tayseer http://spellcoder.com/blogs/tayseer ----- Original Message ---- From: Jim Deville <jdeville at microsoft.com> To: "ironruby-core at rubyforge.org" <ironruby-core at rubyforge.org> Sent: Monday, June 2, 2008 8:31:11 PM Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. Ah. Didn?t know that. Thanks! JD From:ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson Sent: Monday, June 02, 2008 10:25 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Performance difference in Asp.Net with IronRuby. It was true, early in .NET, that the C# compiler was a more aggressive optimizer than the VB.net compiler. Not sure if it''s still true or not. On Mon, Jun 2, 2008 at 10:10 AM, Jim Deville <jdeville at microsoft.com> wrote: Sidenote: Can anyone give some links on those blogs (VB vs C#) they are both compiled to IL, so I don''t see why one would be faster, just curious. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080602/adba18bc/attachment.html>
John Lam (IRONRUBY)
2008-Jun-02 20:37 UTC
[Ironruby-core] Performance difference in Asp.Net with IronRuby.
Rahil Kantharia:> Will there be any significant difference between Asp.Net with C# and > IronRuby.? > > Since i have ready many blogs claiming C# to be running faster than > Vb.Net, i just wanted to reconfirm that will IronRuby at par with C# or > Vb.Net.For pure computational speed, VB and C# are equivalent to each other and will be much faster than IronRuby. Whether you see the performance difference in real code will depend on where the bottleneck in your application is. For web application, it is highly unlikely that your app''s perceived performance will bottleneck in the code that renders HTML. It is far more likely the case that you''ll bottleneck on your database or some other shared resource. Thanks, -John