|
|
|
|
|
by e12e
2228 days ago
|
|
Ed: regarding the benchmark, as best I can tell, the top listing for ruby runs under puma: https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... PostgreSQL is obviously not written in ruby, but the other components are very much "ruby code". There appears to be c/Java extension for ssl and parsing http, though - but AFAIK the main server is ruby. https://github.com/puma/puma/tree/master/ext/puma_http11 Tangential, but you might
enjoy: https://deno.land/v1#http-server-performance > A hello-world Deno HTTP server does about 25k requests per second with a max latency of 1.3 milliseconds. A comparable Node program does 34k requests per second with a rather erratic max latency between 2 and 300 milliseconds. > Deno's HTTP server is implemented in TypeScript on top of native TCP sockets. Node's HTTP server is written in C and exposed as high-level bindings to JavaScript. We have resisted the urge to add native HTTP server bindings to Deno, because we want to optimize the TCP socket layer, and more generally the op interface. |
|