3 ms·
So what would be a better benchmark? Perhaps a "standard" "real world" app, like https://github.com/gothinkster/realworld https://github.com/gothinkster/realwor
by andai 3y ago
So what would be a better benchmark? Perhaps a "standard" "real world" app, like https://github.com/gothinkster/realworld https://github.com/gothinkster/realworld
> The RealWorld Demo is a large community-backed open source project that showcases all web frameworks client or server-side through a building an example app that is much more substantial than the typical TodoMVC toy demos or the stripped out scenarios you find in benchmarks. As Conduit, a Medium clone of sorts, your application has to handle real issues like authentication, routing, and async data loading. It has a standardized specification [...]
Or something simpler?
- byroot 3y ago> So what would be a better benchmark? It all depends on what you are trying to demonstrate. The current benchmarks would be fine if properly contextualized and presented a bit differently. e.g. for the first one, instead of representing it in request/second, do a breakdown of average/p50/p90/p99 latency over X requests. That's both much more interesting data, and much less misleading. Even the second one could be fine if used to demonstrate why an event loop can be the appropriate thing to use for IO heavy workloads. But here they are just included with no explanations, implying a blanket "we're 25 times faster than Rails".
- whalesalad 3y agoTechEmpower has a few different classes of benchmark. https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/ Off the top of my head: - json serialization - fetching random objects from an actual mysql/psql database - cached queries - performing mutations / data updates writing "hello world" as a response is naturally going to do 75k per second