The Ruby on Rails and ClojureScript experts

Aug 12, 2013

This answer on Stack Overflow compares the other answers given by running a  performance test.

It makes use of the fruity gem:

Fruity makes it easy to accurately and quickly compare the performance of different Ruby algorithms.

Link: ruby – Get a list of all the prefixes of a string – Stack Overflow via stackoverflow.com