{"id":20698811,"url":"https://github.com/rwson/siper","last_synced_at":"2025-06-16T03:13:20.246Z","repository":{"id":87105652,"uuid":"171430799","full_name":"rwson/siper","owner":"rwson","description":"a website performance analyze tool","archived":false,"fork":false,"pushed_at":"2019-02-22T03:40:02.000Z","size":432,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T03:41:54.150Z","etag":null,"topics":["cli","headless-chrome","performance-analysis","performance-testing"],"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/rwson.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":"2019-02-19T07:57:27.000Z","updated_at":"2023-09-08T17:50:36.000Z","dependencies_parsed_at":"2023-07-04T22:50:22.387Z","dependency_job_id":null,"html_url":"https://github.com/rwson/siper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rwson/siper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fsiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fsiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fsiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fsiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwson","download_url":"https://codeload.github.com/rwson/siper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2Fsiper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260089911,"owners_count":22957151,"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","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":["cli","headless-chrome","performance-analysis","performance-testing"],"created_at":"2024-11-17T00:27:00.755Z","updated_at":"2025-06-16T03:13:20.204Z","avatar_url":"https://github.com/rwson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# siper\n\n一个基于[puppeteer](https://github.com/GoogleChrome/puppeteer) 和 [PerformanceTiming API](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming)来评估网站性能的分析工具\n\n![测试中](./running.jpg)\n\n![测试完成](./finished.jpg)\n\n#### 使用方法\n\n```bash\nnpm install siper -g\n\nsiper\n```\n\n#### 性能指标\n\n![性能指标](./performance.png)\n\n#### 各项指标对应中文介绍\n\n|显示名称|中文含义|换算|\n|---|----|----|\n|DNS lookup time|DNS查询时间|`timing.domainLookupEnd - timing.domainLookupStart`|\n|Tcp connect time|TCP完成握手时间|`timing.connectEnd - timing.connectStart`|\n|Http request finished Time|HTTP请求响应完成时间|`timing.responseEnd - timing.requestStart`|\n|Download time of the page|DOM开始加载前所花费时间|`timing.responseEnd - timing.navigationStart`|\n|Dom loaded time|DOM加载完成时间|`timing.domComplete - timing.domLoading`|\n|Dom parsed time|DOM结构解析完成时间|`timing.domInteractive - timing.domLoading`|\n|Script Loaded time|脚本加载时间|`timing.domContentLoadedEventEnd - timing.domContentLoadedEventStart`|\n|Onload event time|onload事件时间|`timing.domInteractive - timing.domLoading`|\n\n#### 网络模式对应相关速率\n\n|网络模式|是否离线|下载吞吐量(Byte)|上载吞吐量(Byte)|\n|---|----|----|----|\n|GPRS|否| `50 * 1024 / 8` | `20 * 1024 / 8` |\n|Regular2G|否| `250 * 1024 / 8` | `250 * 1024 / 8` |\n|Good2G|否| `450 * 1024 / 8` | `150 * 1024 / 8` |\n|Regular3G|否| `750 * 1024 / 8` | `250 * 1024 / 8` |\n|Good3G|否| `1.5 * 1024 * 1024 / 8` | `750 * 1024 / 8` |\n|Regular4G|否| `4 * 1024 * 1024 / 8` | `3 * 1024 * 1024 / 8` |\n|DSL|否| `2 * 1024 * 1024 / 8` | `1024 * 1024 / 8` |\n|WiFi|否| `30 * 1024 * 1024 / 8` | `15 * 1024 * 1024 / 8` |\n\n\n#### 亮点\n\n- 支持禁用缓存模拟\n- 支持弱网模拟\n- 支持多次模拟\n- 日志导出\n- 跟踪`Timeline`截取相应时间对应的页面截图, 并且导入[chrome调试面板](https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/)查看 \n- 文件(内联)级别的`CSS`/`JavaScript`覆盖率\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Fsiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwson%2Fsiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Fsiper/lists"}