Profiling: the obvious step after Benchmarking your Ruby code.

Written by jubaan | Published 2020/09/29
Tech Story Tags: clean-ruby | code-profiling | learn-ruby | ruby | how-to-benchmark-ruby | coding | programming | hackernoon-top-story

TLDR This is a tutorial on how to use profiling to improve your Ruby coding skills. Benchmarking lets you compare two or more alternative solutions in three main areas: Elapsed time, memory allocation and iterations per second. Profiling is a method, that helps you identify potential problems and bottlenecks. The result you'll get will give you enough information to choose one solution over the other. The next question is: Could this solution be improved? Profiling tells you about the steps and the time a specific solution spends in each one of them while solving the problem.via the TL;DR App

no story

Written by jubaan | Hi!, I'm a remote Full-stack Web Developer and student at Microverse.
Published by HackerNoon on 2020/09/29