[RBS] rails tests

Skip to first unread message


May 18, 2010, 4:53:31 PM5/18/10
to Ruby Benchmark Suite
I've pushed a couple updates to the rails tests that do the following

1) use sqlite instead of mysql

2) Removed external gem dependencies by removing require's and bunding
gems where possible.
All external dependencies are bundled for IronRuby, Jruby, and windows
MRI, but I wasn't sure if it was possible to bundle binary gems for
Linux, so you'll probably still need to install an sqlite3 adapter
(sqlite3-ruby gem).

2) added a test that does basically a "make test all" for the rails
project (substruct). Someone had mentioned they felt the existing
benchmarks were too superfluous. Running the tests exercises a good
chunk of the code, though, and seems a reasonable benchmark.
Unfortunately I couldn't trivially figure out a way to re-run all the
tests in the same process, so currently it does something like run
them once, then sleep 1/10th that length for each iteration. This way
is cross platform, if a bit annoying.

That's it. Let me know if it doesn't work for anybody.


$ rake bench:dir DIR=benchmarks/rails
$ rake bench:dir DIR=benchmarks/rails VM=jruby
$ rake bench:dir DIR=benchmarks/rails VM=ir

I didn't try with any other VM's, not having as easy of access, but it
might work with them.

The GitHub project is located at http://github.com/acangiano/ruby-benchmark-suite

You received this message because you are subscribed to the Google
Groups "Ruby Benchmark Suite" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at


Jun 8, 2010, 1:38:48 PM6/8/10
to Ruby Benchmark Suite
> 1) use sqlite instead of mysql

The new setup instructions are here:


basically, you need the sqlite3-ruby gem if you're on MRI/Rubinius
(Linux), the rest of them have the dependencies all pre-packaged.

Would be nice to include these tests since (for me) they represent
things closest to the work flow and deployment for rails on Linux.

Reply all
Reply to author
0 new messages