Giter VIP home page Giter VIP logo

Comments (10)

nchanged avatar nchanged commented on May 2, 2024 11

@devongovett "initial" bundling is for production builds, but we are talking about productivity (development) here, where milliseconds matter. 2 seconds HMR is unacceptable for FuseBox

from parcel.

jamiebuilds avatar jamiebuilds commented on May 2, 2024 5

Let's focus on making Parcel solid before we start on this stuff. Saying Parcel is much faster than Webpack/Browserify is interesting, saying it's in the same ballpark as fuse-box is not. At that point you start comparing on other features.

I'm gonna close this as something to come back to later, let's see how things go.

from parcel.

vegarringdal avatar vegarringdal commented on May 2, 2024 5

hi :-)

Where is the benchmark repo for browserify/webpack/parcel tests, only saw results on main page?

  • browserify | 22.98s
  • webpack | 20.71s
  • parcel | 9.98s
  • parcel - with cache 2.64

This way browserify/webpack can tell if its incorrect usage of they tools causing the slow results.
And maybe someone else could add fusebox/other bundlers to the test repo if they have time.

from parcel.

dzek69 avatar dzek69 commented on May 2, 2024 2

Well, "Hello World" app can't be really counted as a proof that a bundler is fast :) Every single one probably will get that ~30ms with empty/Hello World app.

from parcel.

nchanged avatar nchanged commented on May 2, 2024

Yep, I would like to see the actual benchmark. FuseBox is able to re-bundle a 4.5mb bundle in ~150ms with cache. With an average project that's a 50ms build time. It would be fair to see the actual results.

from parcel.

devongovett avatar devongovett commented on May 2, 2024

important to note the difference between re-bundling vs initial bundling. rebundling is relatively easy to get fast since usually just a single file changes at a time. initial bundling is what parcel focuses on. it is done by using multicore processing, which is something I haven't seen from other bundlers.

but yes, fuse-box would be a good comparison as well.

from parcel.

pyrossh avatar pyrossh commented on May 2, 2024

Yes. My current webpack rebuilding a single file change takes 4.5s and in FuseBox takes 0.5s so that matters a lot for developer productivity.

from parcel.

nikolami avatar nikolami commented on May 2, 2024

For whoever else is interested in HMR for typescript + HTML: I tried parcel and getting ~30ms HMR when re-bundling typescript on "hello world" project in VS.

Initially I was confused with @jamiebuilds's decision, but I agree now it's better to make the Parcel better since it seems to perform quickly for HMR.
Haven't tested with bigger project since this is my first Parcel. :)

index.ts:

console.log("hello world");

index.html:

<html>
<body>
    <h1>hello worlsd</h1>
    <script src="./index.ts"></script>
</body>
</html>

then

parcel index.html

from parcel.

carloslfu avatar carloslfu commented on May 2, 2024

For anyone searching for benchamarks I found this https://github.com/TheLarkInn/bundler-performance-benchmark.

from parcel.

DeMoorJasper avatar DeMoorJasper commented on May 2, 2024

@carloslfu These benchmark are outdated and give an incorrect vision of which one is faster or better as the apps are basically hello world examples.

You could also check out this repo as it compares webpack and parcel on react-hn (a branch we used for some performance tests in the past as it seems to be a fairly big project) https://github.com/DeMoorJasper/react-hn

from parcel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.