Why I am considering Go
Akshansh Gusain
Posted on May 14, 2022
1. Never Really Liked Javascript
JS is a great language and I am grateful for it but its flaky at times there have been instances when it made my life hell!
So when I heard about Go, I said to myself "Why not?!"
2. Relatively Easy to Learn
Its only my first week of learning Go and I already feel comfortable writing Go code. IMHO, if you have previous programming experience you should be up and running writing services in Go really quick.
3. Performance
Go is simply quicker and does what Python or NodeJS does but better. Higher max IO, faster arithmetic faster general operation.
But how fast?
That's exactly i wanted to know so I ran benchmarks with FastAPI(Python), ExpressJS(NodeJS) and Gin(Go).
Test setup:
8 Core CPU
8GB RAM
FastAPI with Uvicorn ASGI server scaled to 4 worker nodes with Gunicorn.(idk why but, when I tried to scale it more than 4 workers the performance got worse)
ExpressJS with Cluster Module scaled to 8 cores.
Go-Gin GOMAXPROCS=8.
My findings:
Posted on May 14, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.