{"id":15665198,"url":"https://github.com/jeromewu/npm-vs-yarn-in-cicd","last_synced_at":"2025-05-06T19:43:27.406Z","repository":{"id":41686389,"uuid":"250145241","full_name":"jeromewu/npm-vs-yarn-in-cicd","owner":"jeromewu","description":"A (hopefully) comprehensive speed experiment for npm and yarn install in cicd","archived":false,"fork":false,"pushed_at":"2022-07-20T23:16:33.000Z","size":6267,"stargazers_count":6,"open_issues_count":15,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T02:13:43.211Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeromewu.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}},"created_at":"2020-03-26T02:48:50.000Z","updated_at":"2022-11-11T04:21:14.000Z","dependencies_parsed_at":"2022-08-10T10:14:21.275Z","dependency_job_id":null,"html_url":"https://github.com/jeromewu/npm-vs-yarn-in-cicd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fnpm-vs-yarn-in-cicd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fnpm-vs-yarn-in-cicd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fnpm-vs-yarn-in-cicd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fnpm-vs-yarn-in-cicd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeromewu","download_url":"https://codeload.github.com/jeromewu/npm-vs-yarn-in-cicd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252755967,"owners_count":21799403,"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-03T13:45:14.584Z","updated_at":"2025-05-06T19:43:27.376Z","avatar_url":"https://github.com/jeromewu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./images/npm-vs-yarn.png\" /\u003e\n\u003c/p\u003e\n\n# npm vs yarn in CI/CD pipeline\n\nA (hopefully) comprehensive speed experiment for npm and yarn install in CI/CD pipeline\n\nCheck [HERE](https://medium.com/@jeromewus/how-to-speed-up-node-js-modules-installation-in-ci-cd-pipeline-as-of-2020-4865d77c0eb7) for the result of this experiment!\n\n\n## Preparation\n\nBefore starting the experiment, please run `bootstrap.sh` to:\n\n- Start local registry\n- Generate cache in local registry\n- Generate node\\_modules.tar.gz\n- Generate cache.tar.gz\n\n```\n$ bash bootstrap.sh\n```\n\nAfter the experiment, don't forget to run followin command to clean up local registry:\n\n```\n$ bash stop-local-registry.sh\n```\n\n## Execution\n\nYou can use `run-test.sh` to run experiments, the syntax are like this:\n\n```\n$ bash run-test.sh \u003cNumber of iterations\u003e c\u003cConfiguration\u003e-\u003cCommand\u003e\n```\n\nThere are 5 commands you can use:\n\n- npm-install\n- npm-ci\n- yarn-install\n- yarn-install-fl\n- pnpm-install\n\nFor example, if you want to execute `npm install` in configuration #1 (FFFF) for 3 iterations:\n\n```\n$ bash run-test.sh 3 c1-npm-install\n```\n\nSample output:\n\n```\nRun c1-npm-install 3 times\n[1]: Spend 35.150 Seconds.\nAverage: 35 Seconds.\n[2]: Spend 32.064 Seconds.\nAverage: 33 Seconds.\n[3]: Spend 27.108 Seconds.\nAverage: 31 Seconds.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewu%2Fnpm-vs-yarn-in-cicd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromewu%2Fnpm-vs-yarn-in-cicd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewu%2Fnpm-vs-yarn-in-cicd/lists"}