Coder Social home page Coder Social logo

react-hn's Introduction

Parcel vs webpack performance test using react-hn

This fork is meant to demonstrate an app that is slightly closer to reality than the hello world benchmark examples. However this is not meant for convincing people to switch to parcel or webpack. This is simply another indication/test.

Use whatever you prefer and fits your project. If you have a enormous project or don't want to configure anything use parcel. If every bit matters or don't want to hit any breaking bugs than your best bet is webpack (although parcel is very stable lately). You could also combine both, use parcel for fast development builds and once the project is ready for launch spend those hours configuring webpack to get that smaller bundle.

Tested on a dual-core mid-2014 Macbook Pro 13"

Type Parcel (Using 2 workers)   Webpack
Build 6.55s 11.15s
Build (cached) 523ms 4.82s
Serve 5.29s 3.64s
Serve (cached) 1.1s 2.16s
Incremental builds (after a tiny change) 239ms 552ms
Build package size 194.62KB 125.63KB

These are false results?!

These tests could probably be optimised for both parcel and webpack

Feel free to open a PR :)

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.