Earlier quoted context omitted.
Author here. Planning to run the same test using cluster module with one worker per CPU. What would be the most performant way to serve HTTP in Go?
Well I believe few people use the built in http module in go. Not sure if you're testing would allow for 3rd party frameworks but the Iris framework loves to claim fastest go web server. Gorilla or gin are also popular. As for the structure of it you would like have everything split out into goroutines with a worker pool of goroutines ready to ferry the data from request to backend and back to client.
Benchmarking Go vs. Node vs. Elixir
11–20 of 33 posts
Re: Benchmarking Go vs. Node vs. Elixir
#12Not sure but it kind of seems like they are running only one (single-threaded) Node process on multicore CPUs.
This immediately comes into my mind when I see the charts. It is also interesting to see that only one Node process can barely serve 10k connections. ---- After I check the source at [0]. They use a simple http module to serve the requests while they use `http.ListenAndServe` which spawns go routines, hence more CPU utilization. [0] https://gitlab.com/stressgrid/dummies
Re: Benchmarking Go vs. Node vs. Elixir
#13Earlier quoted context omitted.
This immediately comes into my mind when I see the charts. It is also interesting to see that only one Node process can barely serve 10k connections. ---- After I check the source at [0]. They use a simple http module to serve the requests while they use `http.ListenAndServe` which spawns go routines, hence more CPU utilization. [0] https://gitlab.com/stressgrid/dummies
Author here. Planning to run the same test using cluster module with one worker per CPU. What would be the most performant way to serve HTTP in Go?
Re: Benchmarking Go vs. Node vs. Elixir
#14Re: Benchmarking Go vs. Node vs. Elixir
#15Earlier quoted context omitted.
This immediately comes into my mind when I see the charts. It is also interesting to see that only one Node process can barely serve 10k connections. ---- After I check the source at [0]. They use a simple http module to serve the requests while they use `http.ListenAndServe` which spawns go routines, hence more CPU utilization. [0] https://gitlab.com/stressgrid/dummies
That’s the idiomatic way to handle requests in Go. What’s the problem?
I just want to point out that Node runs with a single thread so it does not max out CPU utilization. It would be nice if the author does the benchmark again with multiple processes of node js.
Re: Benchmarking Go vs. Node vs. Elixir
#16Not sure but it kind of seems like they are running only one (single-threaded) Node process on multicore CPUs.
This immediately comes into my mind when I see the charts. It is also interesting to see that only one Node process can barely serve 10k connections. ---- After I check the source at [0]. They use a simple http module to serve the requests while they use `http.ListenAndServe` which spawns go routines, hence more CPU utilization. [0] https://gitlab.com/stressgrid/dummies
Re: Benchmarking Go vs. Node vs. Elixir
#17Not sure but it kind of seems like they are running only one (single-threaded) Node process on multicore CPUs.
Re: Benchmarking Go vs. Node vs. Elixir
#18Would be interesting to compare with Java.
Re: Benchmarking Go vs. Node vs. Elixir
#19Re: Benchmarking Go vs. Node vs. Elixir
#20Slightly off-topic, but: I love those graphs. Any ideas how they created them, or what they are using?