---
title: "Discussion on \"How to write benchmarks in Go\" | Hashnode"
description: "Discussion on \"How to write benchmarks in Go\". In the previous post, we saw how to write a simple unit test case and also how to write table driven test cases. In this post we will quickly see how to write benchmarks, as go supports running benchmarks on your functions as part of the standard tes..."
url: "https://hashnode.com/posts/how-to-write-benchmarks-in-go/622df8332f73c1ca2f29958f"
---

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

Discussion

# [How to write benchmarks in Go](https://progolang.dev/how-to-write-benchmarks-in-go?utm_source=hashnode&utm_medium=feed)

In the previous post, we saw how to write a simple unit test case and also how to write table driven test cases. In this post we will quickly see how to write benchmarks, as go supports running benchmarks on your functions as part of the standard tes...

Dec 12, 2018 · 4 min read · progolang.dev  
Read the article

## Written by

[Srinivasan Rangarajan](https://hashnode.com/@cnu)

@cnu

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

Entre+gineer

Software Engineer with an entrepreneurship gene. Love talking about code, products, UI/UX and how to build startups.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
