Optimizing String Comparisons in Go

Written by jeremymorgan | Published 2020/09/12
Tech Story Tags: software-development | golang | golang-development | performance | code-performance | benchmarks | hackernoon-top-story | programming

TLDR Optimizing string comparisons in Go can improve your application’s response time and help scalability. In a previous article, we looked at How to compare strings in Go and did some benchmarking. We’re going to use the benchmarking utility from the Go test tools to find out which one is faster than using the Strings package. The results are 7.39 nanoseconds vs. 2.92, and 5ms can make a big difference at a large enough scale.via the TL;DR App

no story

Written by jeremymorgan | Tech blogger, author, overall geek. Love tech and love writing about it.
Published by HackerNoon on 2020/09/12