speed-measure-vite-plugin weekly downloads statistics
By lbb00 · npm · Vite plugins
Measures your Vite plugins execution and transform speed
speed-measure-vite-plugin has 16,910 recorded weekly downloads on npm, a decrease of 48.0% over the past 30 days, ranking #1094 of 3,247 tracked listings.
About speed-measure-vite-plugin
speed-measure-vite-plugin
English | 简体中文
Measure the execution and transform speed of your Vite plugins. The Vite equivalent of speed-measure-webpack-plugin.
Supports Vite 3, 4, 5, 6, and 7 (including the Vite 6+ Environment API). Zero runtime dependencies.

Install
npm i -D speed-measure-vite-plugin
# or
pnpm add -D speed-measure-vite-plugin
Usage
Plugin Syntax (v3 Recommended)
Add smvp() directly into your plugins array like any standard Vite plugin:
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import smvp from 'speed-measure-vite-plugin'
export default defineConfig({
plugins: [
vue(),
smvp({
// options (optional)
}),
],
})
Wrapper Syntax (v2 Compatible)
Fully backwards-compatible with the legacy smvp([vue()]) wrapper syntax. Wrap your plugins array with smvp (also required if you want to measure early lifecycle hooks like config or configResolved):
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import smvp from 'speed-measure-vite-plugin'
export default defineConfig({
plugins: smvp([vue()], {
// options (optional)
}),
})
Options
// Standard plugin syntax: smvp(options)
// Wrapper syntax compatible: smvp(plugins, options)
smvp({
// Hooks to measure. Defaults to ['transform']
hooks: ['transform', 'resolveId', 'load'],
// Sort function for output. Defaults to descending by total time
sort: (a, b) => b - a,
// Minimum duration in ms for a plugin to appear in the output. Defaults to 0
threshold: 5,
// Debounce delay (ms) after the last hook execution in dev mode. Defaults to 1000
gapTime: 1000,
// Custom reporter callback. Defaults to 'terminal'
output: (report) => {
console.log(`Total time: ${report.allPluginsTotal}ms`)
},
// Temporarily disable measuring (e.g. in CI or via env var)
disable: process.env.MEASURE === 'false',
})
| Option | Type | Default | Description |
|---|---|---|---|
hooks | string[] | ['transform'] | Vite / Rollup hooks to measure (e.g. transform, resolveId, load). Early hooks (config, configResolved) require wrapper syntax. |
sort | (a: number, b: number) => number | (a, b) => b - a | Sorter function for plugins and hooks in the terminal report. |
threshold | number | 0 | Hide plugins taking less than this duration (in ms) to reduce noise. |
gapTime | number | 1000 | In dev mode, wait this long (in ms) after the last hook call before flushing the report. (Alias: maxGapTimeOnce) |
output | 'terminal' | (report) => void | 'terminal' | Output destination. Pass a callback for custom logging or CI metric reporting. |
disable | boolean | false | Disable measurement completely with zero overhead. |
Notes
- Dev Mode: Since Vite processes files on-demand during dev, metrics are debounced and printed after requests go idle (
gapTime). - Build Mode: Metrics are collected across the entire build and printed on
closeBundle. - Environment API: In Vite 6+, plugin metrics are tracked per environment (
client,ssr, etc.).
License
Description from the npm listing.
- vite
- vite-plugin
- speed
- measure
- speed-measure
- performance
- profiler
- benchmark
- uniapp
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (142)Similar npm Vite plugins plugins
All 20 speed-measure-vite-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/speed-measure-vite-plugin. First seen Nov 10, 2026; last successful collection Dec 6, 2026. See the methodology.