---
title: "Discussion on \"Why benchmarks are lying to you, and hash maps are not always faster than arrays\" | Hashnode"
description: "Discussion on \"Why benchmarks are lying to you, and hash maps are not always faster than arrays\". Go benchmarking can often mislead us if done improperly. In this article we will dive into pitfalls of Go Benchmarks and investigate what we can do about it"
url: "https://hashnode.com/posts/go-benchmarks-are-lying/64ebd9d73cfb3fc9103e279c"
---

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

Discussion

# [Why benchmarks are lying to you, and hash maps are not always faster than arrays](https://blog.dejangegic.com/go-benchmarks-are-lying?utm_source=hashnode&utm_medium=feed)

Go benchmarking can often mislead us if done improperly. In this article we will dive into pitfalls of Go Benchmarks and investigate what we can do about it

Aug 27, 2023 · 9 min read · blog.dejangegic.com  
Updated Sep 17, 2023  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Dejan Gegić](https://hashnode.com/@Dejan)

@Dejan

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
