paint-brush
Optimizing String Comparisons in Goby@jeremymorgan
4,688 reads
4,688 reads

Optimizing String Comparisons in Go

by jeremymorgan7mSeptember 12th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Optimizing String Comparisons in Go
jeremymorgan HackerNoon profile picture
jeremymorgan

jeremymorgan

@jeremymorgan

Tech blogger, author, overall geek. Love tech and love writing about it.

Learn More
LEARN MORE ABOUT @JEREMYMORGAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

jeremymorgan HackerNoon profile picture
jeremymorgan@jeremymorgan
Tech blogger, author, overall geek. Love tech and love writing about it.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite