Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 884 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 884 Bytes

css-speed-test

Simple speed test for various types of styling Vite + Vue apps

Description

The test consists of 3 Vue + Vite projects rendering styles in 3 different ways:

  1. Vanilla CSS
  2. SASS (SCSS)
  3. CSS in JS (Emotion)

test.js

is an automated performance testing script written in TypeScript that uses the Playwright library to measure the rendering time of said web pages.

The script uses Playwright to open a headless browser, repeatedly loading web pages styled with different CSS frameworks, measuring how long each takes to load, and calculating the average loading time for each framework.

Running the tests

Start the projects with concurrently by running:

$ pnpm start

After all the projects are running, in a new terminal start the test with:

$ pnpm test