Benchmarker and quotation marks

Hello, just getting around to tuning and the benchmarker script.

I understand, from the rails book, that the command used is:

script/benchmarker 10 “Product.search(‘version_control’)”

Maybe I’m misunderstanding it but what if there are some nested " or ’
required inside the command, such as:

script/benchmarket 10 “Question.find(:all, :conditions => ‘created_on >
‘2006-01-01’’)”

That’s not a real example, but let’s say I want to test a find with some
joins where there will be some nested ".

thanks,

Steve

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs