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
|
|
|
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...
|
|
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
|
|