{"id":15196032,"url":"https://github.com/styled-components/benchmark","last_synced_at":"2025-10-27T18:38:10.734Z","repository":{"id":65985113,"uuid":"81739706","full_name":"styled-components/benchmark","owner":"styled-components","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-14T09:34:55.000Z","size":236,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-14T16:50:35.768Z","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/styled-components.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}},"created_at":"2017-02-12T16:27:57.000Z","updated_at":"2023-03-25T19:56:30.000Z","dependencies_parsed_at":"2023-02-19T18:25:15.314Z","dependency_job_id":null,"html_url":"https://github.com/styled-components/benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/styled-components/benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fbenchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fbenchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fbenchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fbenchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styled-components","download_url":"https://codeload.github.com/styled-components/benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styled-components%2Fbenchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281322564,"owners_count":26481545,"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-10-27T02:00:05.855Z","response_time":61,"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":"2024-09-28T00:01:07.422Z","updated_at":"2025-10-27T18:38:10.688Z","avatar_url":"https://github.com/styled-components.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmark\n\nBenchmarks performance for both browser and native styled-components. Also benchmarks [cssta](https://github.com/jacobp100/cssta).\n\nTo benchmark,\n\n```bash\nnpm install\nnpm start\n```\n\n## Adding a Test\n\nUnder `tests`, there are files for each platform we test: currently browser and native. Each platform test file has a default export of an object whose keys are the test names. The values are objects keyed by the project name (currently `styled` or `cssta`), and the values of these objects are test functions. You do not need to add tests for every project.\n\n```js\nexport default {\n  'test name': {\n    styled: () =\u003e {\n      /* Test function body */\n    }\n  }\n}\n```\n\nTests are usually formed by creating a component, and running it through `react-test-renderer`.\n\n```js\nconst Component = styled.div`\n  color: ${props =\u003e props.color};\n`;\n\nconst instance = render(\u003cComponent color=\"black\" /\u003e);\ninstance.update(\u003cComponent color=\"red\" /\u003e);\n```\n\nAll tests are compiled using webpack. React uses production-mode optimisations, and the output is minified. Cssta also has production-mode optimisations.\n\nTests are benchmarked using Benchmark.js, so are run multiple times. If your test uses a global cache, you should clear the cache before running it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fbenchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyled-components%2Fbenchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyled-components%2Fbenchmark/lists"}