🕷 zenspider.com

by ryan davis

Looking for the Ruby Quickref?

Sorting with Ruby, RubyInline, and Thrust

Published 2009-06-17 @ 02:44

Tagged rubyinline

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! (EDIT: original writeup url is broken and appears permanently removed)

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