{"id":25827687,"url":"https://github.com/uojo/performance-profiler","last_synced_at":"2025-09-08T22:34:50.304Z","repository":{"id":88372072,"uuid":"405824454","full_name":"uojo/performance-profiler","owner":"uojo","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-18T08:06:53.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T02:31:27.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uojo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-13T03:48:13.000Z","updated_at":"2021-10-18T08:06:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0518ed9-1c79-4528-82d0-c9da642b6126","html_url":"https://github.com/uojo/performance-profiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uojo/performance-profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fperformance-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fperformance-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fperformance-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fperformance-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uojo","download_url":"https://codeload.github.com/uojo/performance-profiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uojo%2Fperformance-profiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231416,"owners_count":25245659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-28T16:39:07.017Z","updated_at":"2025-09-08T22:34:50.292Z","avatar_url":"https://github.com/uojo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Performance-profiler\n通过分析文件数据，静态获取性能稳定性。\n\n数据来源：\n- DevTools Performance 数据文件\n- DevTools Network 数据文件\n\n分析维度：\n- 数据队列中值的分散度。分析队列中数值的集中度，例如 [1,2,2,2,2] 比 [1,2,2,3,3] 的数值集中度要高。当然，在数据分析前可以进行近似值处理。例如 [1,1.2,1.5,2.3,2.4] 可以转化为 [1,1,2,2,2]\n- 分析值的波动性。计算数值队列中的最大值、最小值、平均值、中位数。通常稳定性好的形态是 4 个值相近。\n\n使用\n\n1、确保目标网页在 Chrome 中稳定运行，导出 DevTools 中的 Performance 运行数据，以及 Network 文件。\n\u003e 稳定性分析的目标数据，并不一定是 DevTools 相关文件，只要在导入数据时，将数据队列化即可。\n\n2、在 cpuProfiler.js 、 networkProfiler.js 等文件中引入导出文件后，执行对于文件，例如：node cpuProfiler.js、node network.js。\n\u003e 注意，network 导出的文件是 xhr 文件，在导入前需要修改文件扩展名为 .json\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fperformance-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuojo%2Fperformance-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuojo%2Fperformance-profiler/lists"}