Re:Generics can make your Go code slower
by throwaway894345 on Wednesday March 30, 2022 @04:11PM
(#30860201)
How can you make these claims without information about what his application handles requests? Not everything is a trivial database read/write op.
esbuild is 100x faster than js build tools, so in general 100x speed up sounds about right.
Re:Generics can make your Go code slower
by randomdata on Thursday March 31, 2022 @12:13AM
(#30863747)
Sucrase, written in Typescript, claims to be 2x faster than esbuild.
I'll leave you to your own benchmarks.
Re:Generics can make your Go code slower
by morelisp on Thursday March 31, 2022 @03:14AM
(#30864660)
Sucrase does this by removing some things you might expect to be table stakes, like detecting invalid parse trees and complete JS syntax. Pragmatically, esbuild can also start faster and parallelize, which means shorter wall-clock builds.
Re:Generics can make your Go code slower
by randomdata on Thursday March 31, 2022 @08:37AM
(#30866469)
Sure, but esbuild also drops features found in the compared tools to gain a performance edge. The language may bring some marginal difference, but it's clear that the algorithm is the most significant piece.
Your node code should be in the 2k reqs/s range trivially, with many frameworks comfortable offering 5k+.
It is never going to be as fast as go, but it will handle most cases.