News for hackers. Stuff that matters.
Re:Parcel v2 by devit on Wednesday October 13, 2021 @08:36PM (#28859247)
https://esbuild.github.io/faq/#benchmark-details has Parcel 2 benchmarks.

The summary is that you should use esbuild (or swc/spack when ready) for new projects and probably switch existing ones as well if feasible.

It's possible that the Parcel 2 version they used is not the released one, so maybe it improved.

Re:Parcel v2 by scottlamb on Thursday October 14, 2021 @03:11PM (#28868635)
> It's possible that the Parcel 2 version they used is not the released one, so maybe it improved.

I'd guess so because of timing and because the Parcel 2 beta 3 announcement [1] says "10x faster JavaScript compiler written in Rust [...] on top of the SWC compiler". Likely the esbuild folks benchmarked against beta 2 or earlier.

[1] https://parceljs.org/blog/beta3/

Re:Parcel v2 by silasb on Wednesday October 13, 2021 @09:00PM (#28859395)
Probably should add https://bun.sh/ to the list as well, it's early but has some potential.
Re:Parcel v2 by 1_player on Thursday October 14, 2021 @10:18AM (#28864580)
Doesn't seem to be open source, only has a macOS binary, you need to request "early access" by joining their Discord... what's their target audience here? Certainly not web developers.
Re:Parcel v2 by hsn915 on Thursday October 14, 2021 @02:46AM (#28861232)
Is there any information other than this home page? like an announcement somewhere, a demo video, or anything similar?
Re:Parcel v2 by isthisreality on Thursday October 14, 2021 @12:22PM (#28866350)
to be fair, that's without Parcel 2's cache, which surely improves build times considerably
Re:Parcel v2 by tuananh on Wednesday October 13, 2021 @08:38PM (#28859261)
the benchmark looks brutal to other bundler
Re:Parcel v2 by devongovett on Wednesday October 13, 2021 @10:26PM (#28859898)
Note that this benchmark is dominated by Terser for minification. All tools aside from ESBuild use it.
Re:Parcel v2 by kabber on Wednesday October 13, 2021 @11:33PM (#28860235)
Why not minify with esbuild instead by default?
Re:Parcel v2 by devongovett on Wednesday October 13, 2021 @11:51PM (#28860326)
esbuild tends to produce larger bundles due to https://github.com/evanw/esbuild/issues/639. Looks like there was recent activity though, so we need to re-test. Anyway, there's a plugin available for now: https://www.npmjs.com/package/@parcel/optimizer-esbuild. We're also excited about the SWC minifier project, which is basically a port of Terser to Rust.
Re:Parcel v2 by kabber on Thursday October 14, 2021 @12:06AM (#28860411)
This link https://github.com/privatenumber/minification-benchmarks shows swc is still a work in progress.