{"id":15311750,"url":"https://github.com/aslemammad/react-state-benchmarks","last_synced_at":"2025-10-08T21:30:35.904Z","repository":{"id":105997328,"uuid":"370598280","full_name":"Aslemammad/react-state-benchmarks","owner":"Aslemammad","description":"Performance benchmark harness for React-Redux","archived":false,"fork":true,"pushed_at":"2021-05-30T13:11:32.000Z","size":1742,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T09:32:10.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dai-shi/react-redux-benchmarks","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aslemammad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-25T07:08:46.000Z","updated_at":"2022-02-08T09:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f14fb220-52e9-4cec-ac88-bb1ada79e1d7","html_url":"https://github.com/Aslemammad/react-state-benchmarks","commit_stats":{"total_commits":49,"total_committers":6,"mean_commits":8.166666666666666,"dds":0.6734693877551021,"last_synced_commit":"e23a60d7a132053337cb16f477f0cd9197a99bd9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Freact-state-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Freact-state-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Freact-state-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aslemammad%2Freact-state-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aslemammad","download_url":"https://codeload.github.com/Aslemammad/react-state-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235761793,"owners_count":19041406,"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-10-01T08:34:23.040Z","updated_at":"2025-10-08T21:30:30.049Z","avatar_url":"https://github.com/Aslemammad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-redux-benchmarks\nPerformance benchmark harness for React-Redux\n\nThis repo expects that you are using Yarn for package management.\n\n# Running benchmarks\n```bash\nyarn initialize\nyarn start\n```\n\nAfter benchmarks have been initialized, you can run with simply:\n\n```bash\nyarn start\n```\n\n## Running specific versions\n\nTo specify a single version:\n\n```bash\nREDUX=5.0.7 yarn start\n```\n\nTo specify running against multiple versions:\n\n```bash\nREDUX=5.0.7:4.4.9 yarn start\n```\n\nTo run a specific benchmark:\n\n```bash\nBENCHMARKS=stockticker yarn start\n```\n\nor specific benchmarks:\n\n```bash\nBENCHMARKS=stockticker:another yarn start\n```\n\n## Setting run length\n\nBy default, benchmarks run for 30 seconds. To change this, use\n\n```bash\nSECONDS=10 yarn start\n```\n\n\n# Adding a benchmark\n\nBenchmarks live in the `sources/` directory. Each benchmark must insert this\ncode into `index.js`:\n\n```js\nimport 'fps-emit'\n```\n\nIn addition, a `config-overrides.js` must be created with these contents:\n\n```js\nmodule.exports = function override(config, env) {\n    //do stuff with the webpack config...\n    console.log(`Environment: ${env}`)\n\n    if(env === \"production\") {\n        config.externals = {\n            \"react\" : \"React\",\n            \"redux\" : \"Redux\",\n            \"react-redux\" : \"ReactRedux\",\n        }\n    }\n\n\n    return config;\n}\n```\n\nand the scripts section of `package.json` should be changed to:\n\n```json\n  \"scripts\": {\n    \"start\": \"react-app-rewired  start\",\n    \"build\": \"react-app-rewired  build\",\n    \"test\": \"react-app-rewired  --env=jsdom\",\n    ...\n  }\n```\n\nAlso, `index.html` must be modified to include these lines:\n\n```html\n    \u003cscript type=\"text/javascript\" src=\"redux.min.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"react.production.min.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"react-dom.production.min.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"react-redux.min.js\"\u003e\u003c/script\u003e\n```\n\n\nIf you need to make changes to the `fps-emit` package, bump the version number in its `package.json`,\nthen update each benchmark to use the newest version using `yarn upgrade-interactive` and selecting `fps-emit`\nfor an update.  Then rebuild all the benchmarks using `yarn initialize`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Freact-state-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faslemammad%2Freact-state-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faslemammad%2Freact-state-benchmarks/lists"}