Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 34,899
    • Issues 34,899
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,225
    • Merge Requests 1,225
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #39998

Closed
Open
Opened Dec 11, 2019 by Zeff Morgan@zeffmorganDeveloper0 of 11 tasks completed0/11 tasks

Measure baseline performance for Codeclimate widget

Related to #2737

When parsing large codeclimate.json files, the widget experiences significant slow downs.

Multiple issues seem to contribute to this:

  • Duplication within the json file created by the codeclimate engine
    • content -> body is duplicated across entries
    • entries are duplicated
  • FE code requests the file twice, one for head, another for base, then compares
  • Comparing the files in FE takes a long time
  • Large files are not compressed, user suggested gzip and more aggressive compression

Todos:

  • Collect sample codeclimate.json files of various sizes
    • .1 MB
      • .16 MB: 2,229ms
    • .5 MB
    • 1 MB
    • 2 MB
    • 5 MB
      • 6.75MB: 594ms
    • 10 MB
      • 15MB: 587ms, 900ms
    • 25 MB
  • @zeffmorgan : Benchmark local performance with various sized codeclimate.json files
  • @drewcimino : Explore Rails reported performance via Kibana
  • Report back to #2737 (comment 258922597)
Edited Jan 14, 2020 by drew
Assignee
Assign to
Backlog
Milestone
Backlog
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab#39998