Sorting with Ruby, RubyInline, and Thrust

| | Comments (1)

Corey sez "I decided to see what sort of speed-up I could get just doing a straight brute-force sort. First, I wanted a pure Ruby implementation. Next, I wanted a RubyInline version. Finally, I wanted to use RubyInline with Thrust. Here is the code I used."

The numbers? Bad ASS!

(Thrust is a C++ library that uses the GPU for parallel operations.)

1 Comments

Well, the comparison isn't exactly apples-to-apples, but it was a fun little experiment to whip up. RubyInline made it insanely easy to do, and thrust just really finished it off nicely. Love the stuff you are working on over here!

Leave a comment

About this Entry

This page contains a single entry by zenspider published on June 17, 2009 2:44 AM.

Hoe 2, Electric Boogaloo was the previous entry in this blog.

hoe version 2.2.0 has been released! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.32-en