DEV Community

Cover image for Rails profiling story, or how I caught Faker trying to teach my app Australian Slang

Rails profiling story, or how I caught Faker trying to teach my app Australian Slang

Vladimir Dementyev on February 20, 2019

Once upon a time (actually, a few days ago) I've been working on a small refactoring task: integrating factory_bot into mailer previews. Seemed li...
Collapse
 
annarankin profile image
Anna Rankin

Thank you Vladimir! I love test-prof so much - we've used it to bring our average test run time down by about a third. I had no idea you could feed the output into a tool like Speedscope, though, nor have I used it to profile our boot times 🤔 Thank you for walking through this process, I'm excited to try this out! 🙌💯

Collapse
 
palkan_tula profile image
Vladimir Dementyev

we've used it to bring our average test run time down by about a third.

Wow) that's great! Will be glad to hear your story in github.com/palkan/test-prof/issues/73.

I had no idea you could feed the output into a tool like Speedscope

That's a new feature added in the latest release: github.com/palkan/test-prof/releas...

Collapse
 
szaszolak profile image
Mikołaj Wawrzyniak

Great post! Thank You.

Collapse
 
rhymes profile image
rhymes

Thanks Vladimir, very informative!