TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Turbopack Performance Benchmarks

99 点作者 palmdeezy超过 2 年前

11 条评论

colinchartier超过 2 年前
Another benchmark by maintainer of Vue and Vite, Evan You: <a href="https:&#x2F;&#x2F;github.com&#x2F;yyx990803&#x2F;vite-vs-next-turbo-hmr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yyx990803&#x2F;vite-vs-next-turbo-hmr</a><p>He seems to imply that Turbopack is very close in performance to existing tooling like Vite in his benchmark, and not 10x better in common cases<p>Edit: his thoughts as of this hour: <a href="https:&#x2F;&#x2F;github.com&#x2F;yyx990803&#x2F;vite-vs-next-turbo-hmr&#x2F;discussions&#x2F;8" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yyx990803&#x2F;vite-vs-next-turbo-hmr&#x2F;discussi...</a>
评论 #33416422 未加载
评论 #33416351 未加载
评论 #33417011 未加载
Bilal_io超过 2 年前
I am very excited for Turbopack.<p>I hope to see this considered by the Angular team. Angular is tightly coupled with webpack, however, they&#x27;ve been experimenting with ESBuild, which is included in Angular 14. Vite has been tested by an Angular team member and reported some promising results. I just hope they don&#x27;t tightly couple the implementation with ESBuild and fall into the same issue again.<p>Back to Turbopack:<p>&gt; Turbopack is up to 10x and 700x faster than existing approaches.<p>The 700x speed gain compared to webpack is for dev mode changing 30000 files at once.. I understand that it scales very well. But is it realistic to boast about unrealistic scenarios? It erks me.
评论 #33416161 未加载
评论 #33416971 未加载
QuadrupleA超过 2 年前
As a dev who avoids build steps entirely in web stacks, hearing that 1.1 sec startup is excellent, or 10-700x faster than the norm seems strange - I&#x27;ve gotten so used to stuff being instant.<p>If you haven&#x27;t tried coding a little closer to the &quot;metal&quot; (vanilla js&#x2F;css&#x2F;html) I definitely recommend it. Browsers give you a lot out of the box now, and life without builds is sweet - fast iteration time, perfect in-browser dev tool support, and vastly reduced codebase complexity.
评论 #33416536 未加载
评论 #33417069 未加载
评论 #33416850 未加载
评论 #33416598 未加载
评论 #33416283 未加载
评论 #33416563 未加载
评论 #33416918 未加载
评论 #33417143 未加载
jamescostian超过 2 年前
Here&#x27;s the bulk of the code used to generate the code they&#x27;re building: <a href="https:&#x2F;&#x2F;github.com&#x2F;vercel&#x2F;turbo&#x2F;blob&#x2F;main&#x2F;crates&#x2F;turbopack-create-test-app&#x2F;src&#x2F;test_app_builder.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vercel&#x2F;turbo&#x2F;blob&#x2F;main&#x2F;crates&#x2F;turbopack-c...</a><p>They&#x27;re building basically the same thing over and over again. This surprised me, given their intro post: <a href="https:&#x2F;&#x2F;vercel.com&#x2F;blog&#x2F;turbopack" rel="nofollow">https:&#x2F;&#x2F;vercel.com&#x2F;blog&#x2F;turbopack</a><p>Relevant quote:<p>&gt; Turbopack is built on Turbo: an open-source, incremental memoization framework for Rust. Turbo can cache the result of any function in the program. When the program is run again, functions won&#x27;t re-run unless their inputs have changed. This granular architecture enables your program to skip large amounts of work, at the level of the function.<p>I&#x27;d be curious to see if a real-world app (or even one generated with more variety in components) showed comparable performance numbers
评论 #33416147 未加载
quaunaut超过 2 年前
Something that isn&#x27;t clear to me: Why, exactly, is it so much faster than even its own build tool(swc)?<p>In other words, what&#x27;s speeding up here isn&#x27;t build speed, but the ability to download the updated changes. Right? Or am I wrong?
liuliu超过 2 年前
&gt; Turbopack and Next.js 13.0.1 are out addressing a regression that snuck in prior to public release and after the initial benchmarks were taken. We also fixed an incorrect rounding bug on our website (0.01s → 15ms). We appreciate Evan You&#x27;s work that helped us identify and correct this.<p>Does this mean they don&#x27;t have a CI to run benchmarks to gate regressions?
Touche超过 2 年前
Weird that rebuild is absent in these benchmarks.
评论 #33416435 未加载
encryptluks2超过 2 年前
Has this even been released? I went to look for a release on the repo and website and only saw instructions for using it with Next js. Might as well call it Next.js if it can&#x27;t easily be used with anything else. The only way I found to build it was from the master branch. The latest tip in master is not a release.
评论 #33415882 未加载
newbieuser超过 2 年前
it doesn&#x27;t make much sense to compare a tool that only works with nextjs with webpack and vite
pyrolistical超过 2 年前
Good on them make a correction
评论 #33415995 未加载
8n4vidtmkvmk超过 2 年前
will this work with existing webpack configs? and with babel? i need babel..
评论 #33417057 未加载