I've just run a simple test ...
def fac(n)
if (n == 1) then return 1
else return fac(n-1)*n
end
end
def z(n)
while n > 0
fac(n)
n = n - 1
end
end
t1 = Time.new
(1..10).each do
z(1000)
end
t2 = Time.new
puts t2 - t1
puts "done"
If I run this from the IDE with no debugging, I get about 6 seconds - and about the same from the command line. If I run it with the debugger I get 14 seconds.
Can you try the same code with a crean project?
There is no difference between running Ruby from VS with no debugging and from a command line. VS runs Ruby from a command line anyway: it creates a process and runs cmd.exe which then runs Ruby.
Dermot
Dermot