GithubHelp home page GithubHelp logo

wardpeet / contentlayer-benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from graysonhicks/contentlayer-benchmarks

0.0 2.0 0.0 576 KB

A benchmarking tool to measure build performance of various front-end frameworks.

Shell 1.08% JavaScript 14.46% TypeScript 84.47%

contentlayer-benchmarks's Introduction

Contentlayer Build Benchmarks

This is a basic benchmarking tool that measures build performance of various front-end frameworks.

✔️ Subject Conditions

The content source for each project being tested are 1k local markdown files containing frontmatter with a title property, and four paragraphs of placeholder content.

The content files are generated randomly at the beginning of test runs, and all test subjects use the same files during the run.

The content within each site is nearly identical. There is a home page that lists every content item in the site, and individual pages for each item, totalling 1,001 pages.

Each subject is tested twice — first after deleting all relevant cache directories (cold), and then a second time with the build artifacts in place (warm). Before the warm build runs, we add an extra page to the content directory. This page is similar in structure and is always the same. It is used to simulate a slight change in content without removing the cache.

📋 Project List

This is the current list of subjects:

  • Next.js (v12.1.0) + Contentlayer (v0.1.2)
  • Next.js (v12.1.0) + Remark (v13.0.0)
  • Gatsby (v4.9.2) + gatsby-transformer-remark (v5.9.0)

🏎 Test Runner

The tests are run as a GitHub action. Results are logged in the output of the workflow on GitHub.

🥇 Latest results (see action run)

┌────────────────────────┬────────────┬────────────┐
│                        │ Cold (sec) │ Warm (sec) │
├────────────────────────┼────────────┼────────────┤
│ Next.js + Contentlayer │ 25.73      │ 16.29      │
├────────────────────────┼────────────┼────────────┤
│ Next.js + Remark       │ 44.48      │ 39.27      │
├────────────────────────┼────────────┼────────────┤
│ Gatsby                 │ 46.59      │ 25.73      │
└────────────────────────┴────────────┴────────────┘

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.