I’d give $100 to shave 10 seconds off the time it takes for the Rails
environment to come up. I like to do test-driven development, running
tests both from within the IDE (one test method at a time) and via rake.
From the IDE, the Rails startup time is kicking my butt - it takes 0.2
seconds to run the test and 19 seconds for the Rails environment to
initialize.
It also stinks when I want to pop into to script\console and check
something.
Does anyone know any tricks to speed up the intialization, maybe
disabling features that don’t apply in some situations?
I’d give $100 to shave 10 seconds off the time it takes for the Rails
environment to come up. I like to do test-driven development, running
tests both from within the IDE (one test method at a time) and via
rake.
From the IDE, the Rails startup time is kicking my butt - it takes 0.2
seconds to run the test and 19 seconds for the Rails environment to
initialize.
It also stinks when I want to pop into to script\console and check
something.
That does sound pretty bad. On a smallish app with not too many tests
cases/fixtures to load, a full test run comes in at 8 seconds, script/
console about 2-3 seconds. On a bigger app it’s about 16 seconds but
there’s an awful lot more code and tests in that second one. Running
one individual test file seems to be roughly 2-3s plus the actual cost
of the tests themselves. I haven’t done anything in particular to
achieve this so it’s quite curious that you see such mediocre startup
time.
(my previous email seems to have been rejected :S sorry if this is a
duplicate)
Hey,
He’s not the only one. I too have giant startup times, anywhere between
10-15 seconds.The most simple test, script/about, took 12 seconds for
me.
I’m running
He’s not the only one. I too have giant startup times, anywhere between
10-15 seconds.The most simple test, script/about, took 12 seconds for
me.
I’m running
(my previous email seems to have been rejected :S sorry if this is a
duplicate)
Hey,
He’s not the only one. I too have giant startup times, anywhere
between 10-15 seconds.The most simple test, script/about, took 12
seconds for me. I’m running
About 2-3 seconds on my mac (2.4Ghz core2duo) . I’ve read (
As others have remarked, it’s your use of Windows. I’m using Windows at
work (ugh) and it’s markedly slows than Linux or Mac OS for Ruby. That
said, have you considered using ActiveRecord Struct (see Jay Fields' Thoughts: Rails: Unit Test without Rails)?
I’ve
not used it personally, but it sounds quite promising.
As others have remarked, it’s your use of Windows. I’m using Windows at
work (ugh) and it’s markedly slows than Linux or Mac OS for Ruby. That
said, have you considered using ActiveRecord Struct (see Jay Fields' Thoughts: Rails: Unit Test without Rails)?
I’ve
not used it personally, but it sounds quite promising.
James H.
I’ll look at that, as well as giving it a try on a Linux box.
Thanks,
Brian
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.