I've recently been optimizing my test suite of an application. I've improved it quite a lot, speeding up the overall test suite by as much as 80% by using things like spring, deferred garbage collection, shared connections instead of database cleaner, FactoryGirl's build_stubbed/new instead of build/create, etc.
I'm down to the last parts of optimizing, and using --profile I see a few more specs that take up ~30% of my suite's total time. Problem is, I already optimized these specs and don't know what's causing them to be so slow. Is there a way to easily profile a single spec, printing out the time each method in the stack takes? I've been looking for a nice solution for an hour now, but couldn't find anything helpful or useful. Things I've tried where: read up on ruby-prof, check out rspec-prof (outdated, not working - keeps loading, eventually killed after using 4GB+ memory), google'ing for a while. Any thoughts and/or pointers? -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/N70dJ2AOZSUJ. For more options, visit https://groups.google.com/groups/opt_out.
