Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 55.3k
    • Issues 55.3k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #34097
Closed
Open
Issue created Oct 15, 2019 by Mike Greiling@mikegreilingContributor

Analyze webpack compilation stats for performance insights

We save our webpack compile stats for every CI pipeline's gitlab:assets:compile job within a stats.json file. This file contains all the information we need to identify key metrics that we can use to improve the performance of GitLab, including:

  • Average/median/mean entry point sizes (lower is better)
  • Max entry point size. List of the largest and most problematic ones.
  • Average number of chunks per module (lower is better, ideal is 1 chunk per module)
  • Max number of chunks per a single module. List modules that appear in multiple chunks, sorted by size
  • Total webpack build time and max heap size.

Deliverable

  • Create means to calculate the metrics above from our stats.json output.
  • Prescribe goals to improve each of these metrics over time, and document "ideal" values within our frontend guidelines.
Edited Oct 15, 2019 by Mike Greiling
Assignee
Assign to
Time tracking