Go users! Need your help here… Please explain with suitable example.
Without understanding what your requirement is, it is extremely hard to tell if Go will outperform node in terms of use case.
Performance is not just a simple a-b criteria. It depends on how long you took to write the code, how proficient you are in the development environment, what is your system requirement etc. Thinking that Go will outstrip node everywhere is wrong.
AFAIK go does well in concurrent work load. Even if node is async in nature, it relies heavily on event loop clearing callback queue which in turn gets processed in single execution stack (my knowledge is old, forgive me if this is not the case any more). Go on the other hand uses something called "Goroutine" which in layman's term is ultra light threads which performs much better than event loop-execution stack-async architecture of Node. Check out this blog blog.golang.org/pipelines
Another area Go is really good is building small scale microservices. Resource Vs Performance tradeoff is way more in case of node as compared to Go, for microservices.
Pretty much everywhere. Especially in case of API endpoints. However, taking decisions like these based on A-B metric of resource-performance is not actually a good way to go about designing your applications.
You should think about
before you take the performance as simple metric.
j
stuff ;)
usually always in speed and memory. C/C++ outperforms both of them, Rust as well. But maybe you want to use Elixir because you want a functional paradigm.
you should check for "what is my usecase / my problem domain" and "what do I gain / loose by choosing A or B" .... without metrics and a problem to solve this is taste and random benchmarks. :)
Do you know node ? stick with it, learn go on the side .... because what is "performance" when you cannot understand the language ? Statically typed languages are mostly developing slower so if you need fast release cycles a RAD language like node is preferable .... anyhow you see there are a lot of factors to consider and performance should be the least in the beginning.
Unless this is not a business decision but private curiosity than I would definilty pick GO to me it's the better designed language, but I prefer signature based contracts and such behaviours in languages.