Anyone have any experience with Railsbench?
I have some problems getting it to run on our build server (it runs fine on my development machine).
I have installed the latest gem and when I try to running it on our build server it raises the following error:
/usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_spec ification.rb:194:in `establish_connection': benchmarking database is not configured (ActiveRecord::AdapterNotSpecified) from /usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/co nnection_specification.rb:185:in `establish_connection' from /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:182:in `initialize_database' from /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:84:in `process' from /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in `send' from /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in `run' from /usr/home/app/sources/config/environment.rb:16 from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in `require' from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in `initialize' ... 6 levels... from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:25 from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:182:in `benchmark' from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:212:in `bm' from /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:24 perf_run: ruby /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench 100 returned 256
I have done some testing with both ruby script/runner "some class" and rcov. Both runs with no problems, they can see the database fine.
Rasmus