{"id":18245962,"url":"https://github.com/rolldown/metric","last_synced_at":"2025-04-04T14:31:10.711Z","repository":{"id":245769738,"uuid":"819184062","full_name":"rolldown/metric","owner":"rolldown","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-30T23:29:46.000Z","size":1440,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T00:20:07.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rolldown.github.io/metric/","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/rolldown.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":"2024-06-24T02:13:29.000Z","updated_at":"2025-03-30T23:29:49.000Z","dependencies_parsed_at":"2024-09-05T13:16:20.035Z","dependency_job_id":"d1bd907f-acee-43c7-9dc5-1815d52be505","html_url":"https://github.com/rolldown/metric","commit_stats":null,"previous_names":["rolldown/metric"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolldown%2Fmetric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolldown%2Fmetric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolldown%2Fmetric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolldown%2Fmetric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolldown","download_url":"https://codeload.github.com/rolldown/metric/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247193956,"owners_count":20899401,"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":[],"created_at":"2024-11-05T09:23:46.214Z","updated_at":"2025-04-04T14:31:10.420Z","avatar_url":"https://github.com/rolldown.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metric for Rolldown\n\n\n## Data Source format\nWe use this generic data structure for metric aggregation\n```ts\nexport interface Entry {\n\tcase: string; // case name\n\tmetric: string; // which metric for the bench, like `production build time`, `production build size`\n\ttimestamp: number; \n\tcommit: string; // commit hash\n    \trepoUrl?: string; // what is the data source from, used for event tracking\n\tunit: string; // what is the data souce unit, like `ms`(in build speed bench), 'byte'(in build size bench)\n\trecords: Record\u003cstring, number\u003e; // key is the bundler name, value is the result of the corresponding bundler\n}\n```\n\n## Data source storage\nStoring entries line by line, each line is a entry with a json format(Recommend).  \n\n1. Comparing with store the whole data in a json file, this method could reduce parsing, stringify overhead, especially the metric data source become bigger. \n2. Make streaming transform available, which may reduce white screen time.\n\nThis is not required, any format that could convert to `Entry[]` is acceptable.\n\n\n## Credits\n- [rust-analyzer/metric](https://github.com/rust-analyzer/metrics/tree/master)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolldown%2Fmetric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolldown%2Fmetric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolldown%2Fmetric/lists"}