3 ms·
I kind of believe slowness in test runs vs 1.8MRI or REE depends on bytecode compiling (though i have not proof of this). rails and rspec include a massive amo
by riffraff 16y ago
I kind of believe slowness in test runs vs 1.8MRI or REE depends on bytecode compiling (though i have not proof of this).
rails and rspec include a massive amount of code that gets loaded/compiled, and that is done every time you run the tests without giving time to YARV to express itself in the faster paths, so this difference is more noticeable.
- JonnieCache 16y agoWould spork or a similar testing tool that loads the framework+gems once and then reuses them for each test run help with this issue do you think? Hopefully the bytecode would be kept by the VM between each test run. I don't know enough about the ruby interpreter to say, especially not YARV.
- riffraff 16y agoit makes sense to me, I shall give it a try and report