Forem

Santhosh Kumar
Santhosh Kumar

Posted on

1 2

Golang server load

I want to calculate number of requests per second (server load) of my application in golang

can you suggest any tool ?

thanks

Top comments (3)

Collapse
 
rhymes profile image
rhymes • Edited

Hi Santhosh!

I'm going to assume your app is a web server, otherwise let me know and we'll figure out something else.

If it's a web server, the language it's written in (or measured from) doesn't really matter. You're just in need of a "load tester".

There are many (from opensource tools to full out distributed load tester you buy as software as a service). I'm going to make another assumption and lean towards something you might want to install on your local machine or a cloud server yourself.

My favorite is wrk but there are many. Solid alternatives are apache bench. vegeta is a good candidate if you need to test HTTP/2.

Keep in mind that load testing on localhost it's obviously going to give you a false sense of speed. I'd suggest doing it from localhost to a staging server (configured as much as production as possible) or between a cloud machine and the target server.

Collapse
 
5anthosh profile image
Santhosh Kumar

Hey, thanks for taking your time to help me out
I will try wrk, because it suits my use case.
I am creating IOT platform,so it needs to be fast
as possible

Collapse
 
sergio profile image
deleteme deleteme

Vegeta is really nice, take a look!

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay