Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.17 KB

performance_impact.md

File metadata and controls

31 lines (23 loc) · 1.17 KB

Performance impact

stuff

How to use performance impact?

A js file exports performanceReport. performanceReport measure 7 metrics and is used to analyse impact on performances.

This file can also be runned locally as shown below.

> node ./scripts/performance.mjs

{
  "boot.css loaded": "0.699 seconds",
  "fonts ready": "0.743 seconds",
  "\"loading bannana...\" displayed": "0.743 seconds",
  "app.js imported": "0.823 seconds",
  "\"loading gorilla...\" displayed": "1.55 seconds",
  "\"entire jungle...\" displayed": "2.55 seconds",
  "App displayed": "3.75 seconds"
}

How to remove performance impact?

  1. Remove "performances" from "scripts" in package.json
  2. Delete .github/workflows/performance_impact.yml
  3. Delete .github/workflows/pr_impact/report_performance_impact.mjs
  4. Delete scripts/performance.mjs
  5. Remove "@jsenv/performance-impact" from "devDependencies" in package.json