---
title: "Discussion on \"Benchmarking Ruby code 101\" | Hashnode"
description: "Discussion on \"Benchmarking Ruby code 101\". There are a lot of times when I wonder if writing code using one way would be faster than the other esp now days when there are 10 different ways of doing the same thing. Here is how this can be done in Ruby.\nClassic way\nThere is the classic way to d..."
url: "https://hashnode.com/posts/benchmarkruby/65377d3abc65df601d32f5ca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Benchmarking Ruby code 101](https://www.dsdev.in/benchmarkruby?utm_source=hashnode&utm_medium=feed)

There are a lot of times when I wonder if writing code using one way would be faster than the other esp now days when there are 10 different ways of doing the same thing. Here is how this can be done in Ruby. Classic way There is the classic way to d...

Jan 7, 2022 · 1 min read · dsdev.in  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#benchmark](https://hashnode.com/tag/benchmark)
-   [#monitoring](https://hashnode.com/tag/monitoring)
-   [#performance](https://hashnode.com/tag/performance)
-   [#metrics](https://hashnode.com/tag/metrics)

## Written by

[Dhaval Singh](https://hashnode.com/@DhavalSingh)

@DhavalSingh · Bangalore, India

  
[View profile](https://hashnode.com/@DhavalSingh)

Writing about Software Development, Backend in particular!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
