Git Product home page Git Product logo

framebook's Introduction

Purpose

To compare frameworks on a few criteria:

  • Payload
  • Performance
  • PWAness
  • Syntax
  • Nativeness

Frameworks

Results

Payload (Categories Page)

  • Lit - 17.8KB
  • Preact - 27.7KB
  • Vue - 112KB

Scripting (Categories Page)

  • Lit - ~23ms
  • Preact - ~15ms
  • Vue - ~60ms

All Recipes Filter (type 'a')

  • Lit - ~300ms
  • Preact - ~1000ms
  • Vue - ~180ms

App Requirements

Pages

  • Categories
  • Subcategories
  • Recipes
  • Recipe
  • All Recipes

The pages show client-side routing, each route must conditionally load PWA style. Each page shows rendering lists and links within for the router.

The recipe page shows conditional rendering and rendering unsafe html within the page.

Performance

The "all recipes" page renders a list of all 600+ recipes with the recipe component inside. A text input at the top filters the list to show performance re-rendering the list. Also, there's a collapsed checkbox to collapse the directions and ingredients within each recipe which shows rendering performance of changing props on all components in the list.

Running Locally

Each framework has a directory with it's own package.json.

Dev Mode

cd lit/ # or preact/ or vue/
npm i
npm start

Prod Mode

cd lit/ # or preact/ or vue/
npm run build

Deploying

Each app deploys to firebase.

cd lit/ # or preact/ or vue/
npm run deploy

framebook's People

Contributors

tylergraf avatar

Watchers

 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.