{"id":25938614,"url":"https://github.com/michaeljscript/styling-react","last_synced_at":"2025-09-09T18:31:26.602Z","repository":{"id":87448370,"uuid":"101888480","full_name":"michaeljscript/styling-react","owner":"michaeljscript","description":"Performance tests of some styling packages for react.","archived":false,"fork":false,"pushed_at":"2017-09-29T13:52:34.000Z","size":691,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-28T18:20:57.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/michaeljscript.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}},"created_at":"2017-08-30T14:01:33.000Z","updated_at":"2024-01-28T18:20:58.854Z","dependencies_parsed_at":null,"dependency_job_id":"7bc97d3d-58e5-41db-b0cb-082c5b52c12e","html_url":"https://github.com/michaeljscript/styling-react","commit_stats":null,"previous_names":["michaeljscript/styling-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljscript%2Fstyling-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljscript%2Fstyling-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljscript%2Fstyling-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeljscript%2Fstyling-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeljscript","download_url":"https://codeload.github.com/michaeljscript/styling-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780472,"owners_count":20019058,"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":"2025-03-04T03:37:41.122Z","updated_at":"2025-03-04T03:37:41.620Z","avatar_url":"https://github.com/michaeljscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The performance of styled React components\nPerformance tests of some styling packages for React.\n\nYou can read about the perofrmance tests at http://blog.primehammer.com/2017/09/27/the-performance-of-styled-react-components/.\n\nThe following libraries were tested: styled-components, glamorous, radium and css, sass and inline styles.\n\n## Awailable scripts\nIn the main directory you can run following scripts. Make sure you run `npm install` after cloning this repository.\n\n### `npm run build`\nTo create a production builds for app testing packages.\n\n\n### `npm run test:paint -- --library=*library_name*`\n\nTo test the First meaningful paint with chrome and lighthouse.\n\nInstead of _\\*library_name\\*_ you can write any of: _css, sass, inline, styled-components, glamorous and radium_\nto start the test.\n\nYou can also use an option `--repeat-times=50` to run the tests 50 times. By default the test will run 100 times and it may take a long time.\n\nIf you are receiving error `ERR_FILE_NOT_FOUND` make sure you have created your builds and not misspeled the library name.\n\nWhen the test finishes you can see the results in the directory `./results`.\n\n## React scripting time test\n - Measures the time between `componentWillMount` and `componentDidMount`\n\n\nTo run this test you need to create the build, `npm run build` and open index.html file from the `./src/*package*` directory.\nAdd \"?measure\\_render\\_time\" into the url to start the test.\n\nA copy button will appear after the test finishes.\n\nYou can also use parameter table\\_size and repeat\\_times.\n\nExample: ?table\\_size=5\u0026repeat\\_times=5\u0026measure\\_render\\_time\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeljscript%2Fstyling-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeljscript%2Fstyling-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeljscript%2Fstyling-react/lists"}