TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ExpressJS vs. Actix-Web: performance and running cost comparison

66 pointsby dunnockover 5 years ago

8 comments

jakelazaroffover 5 years ago
Is there any surprise here? Anecdotally Node seems fast for interpreters, but of <i>course</i> a compiled systems language like Rust blows it away. That’s a known trade off you make when picking a technology like Node; there are plenty of <i>other</i> reasons to use it.
评论 #22457434 未加载
评论 #22457303 未加载
评论 #22459313 未加载
nwsmover 5 years ago
No one has ever been deciding between express and actix-web
评论 #22458745 未加载
评论 #22458188 未加载
评论 #22458187 未加载
SahAssarover 5 years ago
It calls expressjs minimalist, but it has 52 dependencies.<p>I really feel like we really need to reconsider what &quot;minimalist&quot; means in the js ecosystem.
评论 #22457969 未加载
评论 #22459365 未加载
BossingAroundover 5 years ago
Can someone ELI5 the node code sample?<p>&gt; full = full == &quot;true&quot;;<p>Umm.. Why?<p>&gt; if (!!limit<p>Not not limit? Is this due to some corner case conversion for JS to make 100% sure this gets into a boolean..?<p>I&#x27;m sure both samples have its reasoning, I&#x27;m just not aware. Any help please?
评论 #22457407 未加载
评论 #22457691 未加载
评论 #22457513 未加载
评论 #22457467 未加载
评论 #22457652 未加载
评论 #22457402 未加载
tp_13over 5 years ago
A lot of Rust advocating here lately. But most miss the point. Nobody doubts the performance, efficiency, packaging solution or language design of Rust.<p>A more interesting question is:<p>As a CTO: Why would or wouldn&#x27;t you choose Rust over Java, Node or Go?<p>Rust is not a new language (started in 2006, 1.0 Release in 2015). Why is its adoption kind of disappointing compared to its technical value?<p>The answers are not even more benchmarks or another even more wicked zero cost abstraction async runtime.<p>I&#x27;d like to read stories about some real world adoption. Can your average Java or Go devs become proficient in Rust in a reasonable amount of time? Is the code really mostly maintaince free, once it has compiled? Would it have been cheaper to just add some more servers to handle the load? How about large teams working on large domains (Java land)?
winridover 5 years ago
They are running Node with only one worker and are instead tuning the DB connection pool in that one worker... So the whole benchmark is bogus.
评论 #22458054 未加载
wmfover 5 years ago
It&#x27;s worth recalling DHH&#x27;s report that Ruby code only accounts for 15% of the cost of running Basecamp: <a href="https:&#x2F;&#x2F;m.signalvnoise.com&#x2F;only-15-of-the-basecamp-operations-budget-is-spent-on-ruby&#x2F;" rel="nofollow">https:&#x2F;&#x2F;m.signalvnoise.com&#x2F;only-15-of-the-basecamp-operation...</a>
rgbrennerover 5 years ago
I understand that using Actix really highlights the speed advantage of Rust... but I think it&#x27;s irresponsible to encourage rewrites in Rust using a framework that&#x27;s dead because the developer decided to quit instead of fix security issues[0]. The last thing we need is a bunch of new Rust devs rewriting their perfectly fine Node code using an insecure framework.<p>Rust is really fast, especially compared to Node. This is an easy benchmark to win. So why not use a framework that&#x27;s actually secure.<p>0. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22073908" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22073908</a>
评论 #22457258 未加载
评论 #22457354 未加载
评论 #22457189 未加载