Skip to content

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

Notifications You must be signed in to change notification settings

Lnola/css-speed-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published