An open API service indexing awesome lists of open source software.

https://github.com/sun0day/vite-perf

A cli tool to collect vite performance metrics
https://github.com/sun0day/vite-perf

Last synced: about 2 months ago
JSON representation

A cli tool to collect vite performance metrics

Awesome Lists containing this project

README

        

# vite-perf
A cli tool to collect vite server performance metrics, includes:

- vite config loading time
- tsconfck init time
- vite server start up time
- vite server scan dependencies time
- vite server pre-bundle time
- browser page loading time

## Screenshot

image

## Prerequisite

- vite@^4.0.0
- node@^14.0.0

## Install

```shell
$ npm i vite-perf
```

## Usage

```shell
$ vperf --force --load startUp
```

## Options

|option|type|required|description
|-----|:-----:|:-----|-------|
|--force |`boolean`||same as `vite --force`|
|--load|`'startUp'/'prebundle'`||specific when to load the page, `'startUp'` means load the page once vite server starts up, `'prebundle'` means load the page once vite server finishes pre-bundle