I've read so many tweets on the X platform that web servers built on Bun are faster that Rust and Go. How true is that, they have their Benchmarks to support their claims and I just find it absurd because because the way I think Node/Bun works is that your Javascript are transpiled to C++/Zig in every execution, a thing I believe would give Rust or Go the edge because these languages are directly compiled etc.
benchmarks,benchmark,performance,binarytrees,coro-prime-sieve,edigits,fannkuch-redux,fasta,helloworld,http-server,json-serde,knucleotide,lru,mandelbrot,merkletrees,nbody,nsieve,pidigits,regex-redux,secp256k1,spectral-norm,Go,Go lang,Javascript,Javascript lang
Discussions
Golang vs JavaScript (v8/node.js) map performance - Stack Overflow
Out of curiosity I wrote some trivial benchmarks comparing the performance of golang maps to JavaScript (v8/node.js) objects used as maps and am surprised at their relative performance. JavaScript More on stackoverflow.com
stackoverflow.com
Is there any reason to switch to golang? Node.js vs Golang for back-end development.
Golang pros: In Node.js it is difficult to utilize full CPU cores. You will have to use cluster module (which basically is different processes communicating with each other via IPC using shared port) or use worker_threads but then they serialize messages and cannot share objects like true threads so threading in Node is awkward this way. So if you have business logic in your code which is synchronous and have too many requests then the latency of Node servers will be higher than go equivalent due to lack of concurrency and even with concurrency an equivalent go code is faster than Node as its compiled to binary. Go being statically typed means you dont have to add type validations in run time as all your go interfaces will validate data from IO calls automatically whereas in Node you will need validation libraries to validate incoming requests data (like Yup, express-validator, class validators, AJV etc) and basically everywhere you would want a strong type check in Node. In Go you get all this builtin. Go has much stronger primitives especially numbers compared to Javascript. MEMORY LEAK. Nearly all projects I worked in last 8 years in Node in different companies had memory leaks especially when websocket was involved. And i have spent countless hours profiling those Node servers by taking heap snapshots and inspecting memory usage. Sometimes it was due to library itself (ex. Socket.io inflate/deflate incoming JSON) and other times were due to developers code because of how closure in JS works and how V8 garbage collector works with mark sweep etc. I am saying in NodeJS its very easy to write a code which can leak memory and a lot of third party libraries (even established ones like socket.io) can cause leak especially when sockets are involved and those are VERY difficult to debug. Node servers consume more memory compared to equivalent Go code. Extensive standard library compared to Node.js Node pros: Has TON of 3rd party libraries to get work done compared to Go. No meta framework in Go like laravel in php or Nest.js (or Adonis.js) in Node.js world. And somehow Go community is to hostile to those ideas. It means you will end up using standard library to solve same problems which Nest.js/laravel have already solved and your solution might not be robust. It becomes prevalent if you, in your Go code, add authentication, authorization, graphql, websocket middlewares etc. Go gets messy without any meta framework or lack of good 3rd party libraries compared Node.js as the same things are easy to solve/already solved in NodeJs Extending previous point, it also means it is harder to bootstrap and build web app compared to Go as its so faster to build products with Node. Typescript as a language is MUCH fun to work and syntax of TS/JS is significantly better than Golang. Google has a history of solving problems in awkward way and always reinventing wheel just to look cool. Ex. Weird for loops, EXTREMELY weird OOP, export functions with capital letter (bad code styling by starting functions with capital letters instead of marking them with export and easier to search what is exported), receiver function (seriously to solve a problem they created another), has pointers which most other high level languages dont have and devs like not having to deal with pointers, painful string interpolation, painful to add JSON functionality, lack of generics, function can return more than 1 value, PAINFUL error handling and lack of DRY code because of it etc. Overall Go is just NOT the fun language syntactically which is a shame. 5. Faster to bootstrap ideas and overall MUCH more fun to work with by a long shot compared to Golang and overall in general. 6. Has npm modules fir just about anything though quality can be debatable. So, verdict? Overall its a tuff call. The main attraction of golang is single binary executable, easy concurrency, high speed and big standard library but its a shame that the lack of meta frameworks/small ecosystem and especially weird/poor syntax really ruin it for me significantly. Whereas Node and TS/JS is so much fun to work with with a HUGE npm ecosystem using which developers can build products significantly faster but lack of good concurrency support means hitting limits on Node server with demanding features is easy and very hard to solve given JS is not built for concurrency and servers benefit from it. The only way out would be horizontally/vertical scaling and shelling out more $ compared to Golang. More on reddit.com
r/node
58
53
January 15, 2022
Javascript faster than Go?
Without the benchmarks and the code in hand, it's impossible to say if Go, Rust, or JS would "win" for any particular task purely from a performance perspective. There are just too many variables. Too much "well but in js it's more efficient to do it this way" or "but did you set GOMAXPROCS correctly for the go benchmark?" type concessions to take into account. At the end of the day, if you're building a web service that makes network calls to dependencies as part of its execution it does not matter which of these languages you choose because the vast majority of processing time for a single request is spent waiting for network calls to complete. If the difference between languages comes down to less than 1ms per operation (which is an eternity in compute time) then the far more important question is what language does your team know and what language is your tooling built around? Cause that's the language you should be using. More on reddit.com
r/golang
21
0
December 17, 2023
Why does the US market prefer Nodejs to Golang?
I'm not in the us market but your points seems valid. You also need to have in mind that Javascript is the most used language in web dev so it obiously bleeds over to the backend. I myself was using PHP, Java or even C# but i'm seriously considering switching to Nest.js to do everything for my company's backend. The performance of Node is enough for probably 99% of the apps we builds. For the 1% left Go is a perfect match! You can choose Node and the plethore of frameworks that exists and do the majority of your work pretty quick and switch to Go for more heavy duty parts. In a perfect world you could do everything entirely in Go, it's just not the most known language right now and the environnement is pretty bare bones because the standard library is so complete, most of the Gophers tell you to not use any framework. More on reddit.com
September 23, 2024 - It’s event-driven, non-blocking, and excels in I/O-heavy applications like web servers. Node.js is known for its ease of use and rapid development. Go (or Golang) is a language designed by Google for simplicity, speed, and concurrency.
July 28, 2025 - Real-world performance comparison between Node.js and Go with actual benchmarks, memory usage, and throughput tests that reveal the winner.
September 23, 2021 - This is where Node.js and Go’s differences really come into play. One of the top marks for Golang is that it performs at a high level when it comes to speed and memory management, second only to low-level languages like C and Rust.
Answer (1 of 32): It depends on what kind of job you’d want to use them. So let’s compare them. 1. Compilation - Javascript is interpreted ( JIT compiled ) programming language, Go is compiled. For fast prototyping is interpreted/ JIT compiled language better, because in theory you don’t ...
September 22, 2025 - Google launched the open-source programming language Go, also known as Golang, in 2007. Go was introduced to address existing programming languages’ deficiencies while providing simplicity, efficiency, and durability. It has acquired popularity swiftly and is now extensively utilized in a variety of contexts. The level of development maturity, robust community support, and performance optimization of the Go programming language make it an attractive option for developers.
However, Golang consistently ranks ... needs. Node.js is ideal for real-time applications and rapid development, while Golang excels in high-performance, scalable, and concurrent applications....
January 7, 2026 - To help you choose best backend solution for you project wisely, we compare Go and Node.js in terms of performance, error handling, scalability, and tooling.
June 15, 2024 - Go (Golang): - Language: Go - Engine: Compiled language, no separate engine - Concurrency Model: Goroutines (lightweight threads), channels for communication - Use Cases: Network servers, microservices, cloud-native development · Execution Speed: - Go: Compiled to machine code, which generally makes it faster than interpreted or JIT-compiled languages. Go binaries are optimized for performance.
December 17, 2025 - Google decided to design the language purely out of frustration with the current programming languages' poor performance. And they've clearly succeeded. Go outperforms the JavaScript Node.JS hands down.
April 11, 2024 - Leveraging the robust V8 JavaScript engine and an event-driven, non-blocking I/O model, Node.js offers a lightweight and highly efficient solution for handling concurrent connections. On the other hand, Go, commonly called Golang, is a compiled single programming language meticulously crafted by Google. Designed to address the complexities of large-scale software web app development, Go blends high-level languages' simplicity and readability with the performance and low-level control typically related to popular programming languages.
Just want to know the community opinion: from what I see the key benefit of using node.js for back-end is the same language as front-end part. If I would like to work on back-end side only, would it better to switch to golang, let’s say, to do back-end only things, and don’t care about any front-end related stuff. Have node.js developers already considered as the real “back-end” guys? Or just an JavaScript front-end switchers 😀
Flexiple will manage your entire hiring process and scale your tech team.Hire Talent · Golang is widely recognized for its high performance, with speed and smoothness being two of its main characteristics.
January 30, 2024 - Node.js is ideal for lightweight, real-time applications, while Golang is better suited for high-performance, CPU-intensive tasks. Node.js is known for its beginner-friendly approach.
September 14, 2023 - From this comparison, it’s clear that Node.js has more community power than Golang because it’s a JavaScript engine, and JavaScript is more popular. Everyone will agree that the availability of libraries and tools for every task and project cuts down development time and cost. Node.js is the king when it comes to the availability of tools for development. There are tools for nearly anything you can think, from performing a straightforward task to completing complex tasks in the JavaScript ecosystem.
March 5, 2024 - But comparing it to JavaScript isn't fair. JavaScript has paid my bills for years, but it's held together by collective hope · The only thing missing is a decent mobile framework. I'm using Fyne, but it just looks dated. At least for my current app it's functional though
November 8, 2023 - Merge Sort algorithm in JavaScript. This one is a little bit more difficult to explain, it follows the concept of divide and conquer. It splits the received array into two halves over and over using recursion and then compares and sorts these smaller arrays one against the other basically sorting the entire array in one go. It is the fastest sorting algorithm I know, the difference in performance and speed against the simple Bubble Sort it’s incredible.