[RBS] rails tests

15 views
Skip to first unread message

rogerdpack

unread,
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.

MRI

$ rake bench:dir DIR=benchmarks/rails
JRUBY
$ rake bench:dir DIR=benchmarks/rails VM=jruby
IronRuby
$ 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.
Thanks.
-rp

--
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
ruby-bench...@googlegroups.com
To unsubscribe from this group, send email to
ruby-benchmark-s...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-benchmark-suite?hl=en

roger...@gmail.com

unread,
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:

http://github.com/acangiano/ruby-benchmark-suite/blob/master/benchmarks/rails/README_HOW_TO_RUN_THE_RAILS_TESTS

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.

Enjoy.
-rp
Reply all
Reply to author
Forward
0 new messages