Coder Social home page Coder Social logo

guoyunhe / front-end-builder-benchmark Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 4.0 4.7 MB

Compare performance of popular front-end build tools

License: GNU General Public License v3.0

HTML 0.04% CSS 2.34% TypeScript 96.54% JavaScript 1.08%
webpack rollup icejs esbuild vite babel bundler compiler create-react-app parcel react rspack swc transformer typescript

front-end-builder-benchmark's Introduction

Front-end Builder Benchmark

Chart

Standard

The front-end builder must match the following standard

  • It is actively maintained. (at least 1 release in last 6 month)
  • It is able to build production assets.
  • It has a dev server with HMR.
  • It supports common technology like Sass, LESS, CSS modules, code splitting.
  • It supports plugins.
  • It does NOT restrict UI framework to use.
  • It does NOT bundle unnecessary runtime, like Redux.

Candidates

  • webpack
  • parcel
  • vite
  • rspack

Unqualified

  • esbuild, doesn't support HMR.
  • swc/swcpack, doesn't support HMR.
  • create-react-app/react-scripts, only supports React.
  • icejs and umijs, only supports React and has too many runtime.
  • turbopack, only supports Next.js.

Test Code Base

  • 420 React components
  • 420 css files
  • 20 code splitting bundles
  • react & react-dom 18
  • react-router-dom 6
  • @mui/material 5
  • echarts 5
  • typescript 5

Test Script

node scripts/benchmark.js

Test Device

$ npx envinfo --system --npmPackages @rspack/cli,vite,parcel,webpack,@swc/core,esbuild
  System:
    OS: macOS 13.2.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 1.07 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  npmPackages:
    @rspack/cli: ^0.1.2 => 0.1.2
    @swc/core: ^1.3.42 => 1.3.42
    parcel: ^2.8.3 => 2.8.3
    vite: ^4.2.1 => 4.2.1
    webpack: ^5.76.3 => 5.76.3

front-end-builder-benchmark's People

Contributors

guoyunhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.