I am going to disagree with the premise of your question. Ruby is turning more than decent work into my car.
To illustrate this, I created a file with 100k random numbers:
$ ruby -e '100_000.times {printf "%22.20f\n", rand}' > rand100k.csv
Then I sorted this using the system sort utility, saving the results for later comparison (as a validation):
$ time sort -n < rand100k.csv > foo real 0m0.067s user 0m0.056s sys 0m0.011s
I wrote a quick sort algorithm (which is flipped to sort the insert when the sublist size is small enough) in a pure ruby, run it, save the results, and distinguish between the system sort output and the ruby ββoutput files:
$ time ruby quicksort_w_insertion.rb < rand100k.csv > bar real 0m0.546s user 0m0.537s sys 0m0.008s $ diff foo bar $
As you can see, both sorts trigger identical output and very quickly. In my opinion, a pure Ruby program, which is only 8-10 times slower than the corresponding system utility, makes a powerful damn thin speed.
These runs were performed using ruby 2.2.2p95 (2015-04-13 revision 50293) [x86_64-darwin14] on the MacBook Pro.
source share