On 20.03.2012 14:06, Josef Reidinger wrote:
On Tue, 20 Mar 2012 14:00:17 +0100 Stephan Kulow <coolo@suse.de> wrote:
Hi,
Now that I have the initial port of obs api to rails 3 finished, I consider staying forever on rails2 :)
I have this little benchmark that I initially wrote to check if it's worth talking to the API in json instead of the usual XML:
Usually using different xml implementation then rexml in rails help a lot.
prjs = DbProject.find :all x = Benchmark.realtime { prjs.each { |p| p.expand_flags.to_json } } y = Benchmark.realtime { prjs.each { |p| p.to_axml('flagdetails') } puts "#{x} #{y}"
With rexml it was be like 7 seconds - we left that behind with OBS 2.0 :)
Greetings, Stephan -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org