JUST: Node.js is faster than Go at REST

JUST: Node.js is faster than Go at REST

github.com/dotchev/rest-bench


Even while it's a fucking static and compiled language, it's slower than Node. Why is this retarded language is still used?


- lacking many, MANY features (no I don't mean generics, it's still lacking many features that are basic in programming)
- not OOP and also not functional
- imposing camelCase style
- imposing only FQDN package importing
- No ternary operator
- no compilation with unused variables
- imposing GC
- and even fucking SLOWER than Node!

Attached: 1494937336828.jpg (680x697, 247K)

Other urls found in this thread:

techempower.com/benchmarks/#section=test&runid=60fab9eb-a5ad-49cb-aefe-24ad0f377122&hw=ph&test=query
docs.libuv.org/en/v1.x/
twitter.com/NSFWRedditVideo

JavaScript is really fast language, not even joking

also Go's JSON decoder was known to be really slow, there are 3rd party implementations several times faster than the one in stdlib

javascript is a language not a runtime

it's all V8 under the hood anyway

supposedly go v2 will have generics and better error handling and go's ffi is dogshit and will ruin anything frequently making c calls

Both are trash and both belong in the trash. Now fuck off.

v8 is runtime not a language

sorry I copied his text before seeing it completely, I meant a runtime

>go v2 will have generics and better error handling
keep dreaming

>- No ternary operator
Wtf is wrong with you?

the go encoding/json library uses reflection which is why its slow as shit. go is a mediocre language but node.js is worse

saged

you wann know wtf is wrong?

how fucking retarded is this
var str string
if isTrue {
str = "A"
} else {
str = "B"
}

instead of just fucking this
str := isTrue? "A":"B"

Doesn't even matter once it hits the compiler

Go is shit, but Node is basically designed to be as fast as possible in benchmarks at the expense of everything else.

Man if I were a gofaggot I'd have committed suicide a long time ago.

Go is such an embarrassment

And Java beats both of them. Node.js sucks

techempower.com/benchmarks/#section=test&runid=60fab9eb-a5ad-49cb-aefe-24ad0f377122&hw=ph&test=query
Latest techempower benchmark, vert.x scores #1 3/5 times

People fall for the anti-js meme.
Just because you are used to programs written by a front end """""developer""""" with a mixture of ember, angular and jquery in the same program, doesn't mean that js is slower or less expressive than other scripting languages.

OO and functional are not the only paradigms in the world, you massive gay

Attached: 2784075-jon+blow+2015.1+cropped.jpg (538x640, 68K)

JS is slow though
Do you know why node.js can handle so many requests at all? Because it uses this docs.libuv.org/en/v1.x/ as a backend for request handling, a library written in C

that's a reason why it performs well with tcp requests (like connecting to the DB or Redis servers) which actually takes most of the time in real world server applications


But another reason is that v8 (developed by google) is so fucking fast, it's unbelievable that v8 can perform so well and be close to compiled languages performance in many cases

How is node.js using a fast non blocking C lib a criticism of node? Isn't node.js using libuv an advantage of using node?

>Jow Forums hates on PHP but seems to like go
>Decide to check out what this is about
>It's an that abomination

Attached: 0064.png (900x900, 17K)

PHP is retarded and no longer used but it's old
Golang has no excuse to be retarded since it's only a decade old

Maybe in America. PHP is by far the most popular backend language where I live.

Node and libuv do perform well at server stuff. Most people's JS hate comes from shitty websites and Electron. Browserify > Electron for nearly all cases.

The point is that it's not JS that's fast, but C, which node.js calls.

Also Java is faster

>To get comparable results we start the go server with GOMAXPROCS=1 as Node.js executes JavaScript in a single thread
Literally retarded
"How come these clowns giving each other a piggyback ride are faster than a car with one wheel????"

JS is fast. DOM is slow.

Python or JS?

Java

>>The point is that it's not JS that's fast, but C, which node.js calls.
It's not Java that's fast, but asm with Java calls.

.net core

is bad, but better than python or JS, yes

false equivalency

Yeah, that basically invalidates the entire point of using go. Article's a poor hit piece on go.

Based blow poster

Not really.
If go can't keep up single threaded, then multi threaded it wont keep up either, since you can simply use 1 node.js instance for each core.

Learn how async IO works.

Java and Spring if you wanna gouge your eyes out . C# and .net core otherwise

Spring is a bloated mess in comparison to vert.x, use that