The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Ruby/gcc vs Ruby/Forte, Round 2

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Ruby/gcc vs Ruby/Forte, Round 2 Posted: Apr 11, 2005 2:23 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Ruby/gcc vs Ruby/Forte, Round 2
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
As per the instructions from Anonymous, I downloaded the trial version of SunStudio 9 and rebuilt Ruby using the configuration options he mentioned, altering things only slightly. Here was my setup:

CC=cc
CFLAGS='-dalign -fns -xbuiltin=%all -xlibmil -xtarget=ultra2e -xO5 -xipo'
LD=cc
LDSHARED='cc -G -xO5 -xipo -xtarget=ultra2e'
LDFLAGS='-xO5 -xipo -xtarget=ultra2e'
EXTLDFLAGS='-xO5 -xipo -xtarget=ultra2e'

I couldn't get Ruby to build against openssl when using -xarch=v9a (i.e. 64 bit), so I removed that. Otherwise, things went fine.

The result? Better, but no better than gcc. When I ran against the benchmarksuite, the gcc build was still (barely) faster than the cc version, except in the string split tests (again, barely).

Verdict: tie.

Read: Ruby/gcc vs Ruby/Forte, Round 2

Topic: Funny voice mail Previous Topic   Next Topic Topic: Justin Gehtland’s article brings 3rd Slashdotting on Rails

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use