5 ms·
I actually find it sad that this passes as "impressive" these days
by doliveira 4y ago
I actually find it sad that this passes as "impressive" these days
- TylerE 4y agoI mean, this is on a single core, not a cluster.
- switchbak 4y agoAccording to Wikipedia: "The term C10k was coined in 1999", and we've been discussing the C10M problems for years now. Clearly this is doing a lot more work than serving static content, but .... dozens per second? Even per-core, that's a shockingly low number.
- TylerE 4y agoDid you miss the hundreds of clients bit? So we're talking several thousand responses per second per core. I think that's fairly impressive, and VERY different from an FTP server connection that isn't really doing much most of the time.
- doliveira 4y agoEven then, the heavy lifting of pushing the dozens of updates is mostly in the kernel, isn't it? Don't get me wrong, it's pretty good and just the fact that you're pushing these stats reflects quite well on my (external) impression of Phoenix: most don't even bother to try and just resort to "hardware is cheap". It's just that this should be the default. Reminds me of this tweet from @SwiftOnSecurity: > Once you understand your computer has 16 cores running at 3GHz and yet doesn't boot up in .2 nanoseconds you understand everything they have taken from you.
- TylerE 4y agoI find that sort of reasoning rather hollow. Yea, it’s easy to right simple fast software when you only target English, and don’t have to care about Unicode, i18n, security, or any of a billion other things modern systems offer
- doliveira 4y agoI don't have objective stats, but I'd bet a substantial part of my income that none of these things even come close to 1% of the resource usage.
- TylerE 4y agoGood hashing algorithms can be pretty cpu intensive.
- doliveira 4y agoYou're talking about the algorithms for TLS? Or hashing as in hashing a lot of things in your application? Either way, I stand by my bet. They're irrelevant compared to the cost of the prevailing mentality of DX over anything else. Combined with the industry leaders having machines with 128 GB of RAM on 10 Gbps connections, this mentality guarantees software gets slower way more than hardware gets faster
- fxtentacle 4y agoAgree. Back in he day, people were discussing how to put 10k connections into a single core FTP server.