How Airbnb Made Specs Run 2.5x Faster

32701e4c5c6d91bbbb092077f8bdd2f8?s=47 Brian Morearty
August 10, 2015
53

How Airbnb Made Specs Run 2.5x Faster

You're a developer on a large, legacy Rails project with thousands of specs. You hate waiting for them to run. If you sit and watch the dots go by, you're wasting time doing nothing. But if you go on Hacker News to do some other work, you lose your flow and it takes you too long to get back to it. It's a lose-lose. Is it impossible to speed up specs on a large Rails project? At Airbnb, two engineers made our specs run 2.5x faster in a three-day hackathon project. We did this without rewriting any specs. Multiple engineers had told us they had already tried to speed up the specs and they didn't think there was much left that could be done. Learn what we did to diagnose and improve spec performance.

32701e4c5c6d91bbbb092077f8bdd2f8?s=128

Brian Morearty

August 10, 2015
Tweet