---
title: "Discussion on \"[Golang] Test Performance - 2\" | Hashnode"
description: "Discussion on \"[Golang] Test Performance - 2\". Comparing the Check If-Else String\npackage main\n\nimport (\n    \"strings\"\n    \"testing\"\n)\n\nfunc CheckIfElseEmpty(s string) string {\n    if s == \"sdfsdsdfsdsdfsdsdfsdsdfsdsdfsd\" {\n        return s\n    }\n    return s\n}\nfunc CheckIfElseLen(s string) strin..."
url: "https://hashnode.com/posts/golang-benchmark-string/63f19a7536352a5afaee408f"
---

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

Discussion

# [\[Golang\] Test Performance - 2](https://opendev.hashnode.dev/golang-benchmark-string?utm_source=hashnode&utm_medium=feed)

Comparing the Check If-Else String package main import ( "strings" "testing" ) func CheckIfElseEmpty(s string) string { if s == "sdfsdsdfsdsdfsdsdfsdsdfsdsdfsd" { return s } return s } func CheckIfElseLen(s string) strin...

Feb 19, 2023 · 1 min read · opendev.hashnode.dev  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#benchmark](https://hashnode.com/tag/benchmark)

## Written by

[OpenDev](https://hashnode.com/@OpenDev)

@OpenDev · VietNam

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

Golang,Redis,Docker,Reactjs

I am a developer from Vietnamese's

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
