{"id":20156287,"url":"https://github.com/web-infra-dev/bundler-benchmark","last_synced_at":"2025-04-09T22:24:01.946Z","repository":{"id":233927201,"uuid":"607598958","full_name":"web-infra-dev/bundler-benchmark","owner":"web-infra-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-22T09:30:58.000Z","size":3163,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-23T13:02:22.832Z","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/web-infra-dev.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":"2023-02-28T09:52:29.000Z","updated_at":"2025-02-05T10:08:09.000Z","dependencies_parsed_at":"2024-11-13T23:48:28.107Z","dependency_job_id":null,"html_url":"https://github.com/web-infra-dev/bundler-benchmark","commit_stats":null,"previous_names":["web-infra-dev/bundler-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fbundler-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fbundler-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fbundler-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Fbundler-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-infra-dev","download_url":"https://codeload.github.com/web-infra-dev/bundler-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120998,"owners_count":21051062,"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-13T23:38:16.687Z","updated_at":"2025-04-09T22:23:56.928Z","avatar_url":"https://github.com/web-infra-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository is based on https://github.com/webpack/benchmark\n\n# Usage\n`./scripts/bench-all.sh ${platform}`\n\n**example**\n```bash\n./scripts/bench-all.sh linux\n```\n\nIf you only want run specific benchmark in some case, make sure you export `BENCHMARK_PLATFORM` variable\n\n**example**\n```bash\nexport BENCHMARK_PLATFORM=mac\n```\n\n# Case\n## all\n\nA combination of `atlaskit-editor`, `common-libs`, `common-libs-chunks`, `rome`\n\n## atlaskit-editor\nBasic react application with `@atlaskit/editor-core` \n## common-libs\nA combination of some widely used libraries in Javascript ecosystem.\n## common-libs-chunks\nSame as `common-libs`, but using async `import()` syntax to force bundler generate multiple chunks.\n## rc-1000\n1000 react components (each component have 200 line of code) to simulate real application in development mode and production mode.\n## rc-10000-hmr\n10000 react components (each component only have basic skeleton, complicated application rerender time may greater than hmr time) to test hot module replacement performance of each devServer of bundler.\n## rome\n\n# Configuration\nUsing swc loader and swc minifier that could maximize performance of each bundler which is same as in `rspack` internally.\n\n**webpack**\n```diff \nmodule.exports = {\n\toptimization: {\n+\t\tminimizer: [\n+\t\t\tnew TerserPlugin({\n+\t\t\t\tminify: TerserPlugin.swcMinify,\n+\t\t\t\t// `terserOptions` options will be passed to `swc` (`@swc/core`)\n+\t\t\t\t// Link to options - https://swc.rs/docs/config-js-minify\n+\t\t\t\tterserOptions: {},\n+\t\t\t}),\n+\t\t],\n\t},\n\tmodule: {\n\t\trules: [\n\t\t\t{\n\t\t\t\ttest: /\\.ts$/,\n\t\t\t\texclude: /(node_modules|bower_components)/,\n\t\t\t\tuse: {\n-\t\t\t\tloader: \"ts-loader\",\n+\t\t\t\tloader: \"swc-loader\",\n+\t\t\t\t\toptions: {\n+\t\t\t\t\t\tjsc: {\n+\t\t\t\t\t\t\tparser: {\n+\t\t\t\t\t\t\t\tsyntax: \"typescript\",\n+\t\t\t\t\t\t\t},\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t},\n};\n\n```\n\n**parcel** \n```diff\n+{\n+\t\"extends\": \"@parcel/config-default\",\n+\t\"optimizers\": { \"*.js\": [\"@parcel/optimizer-swc\"] }\n+}\n```\nWe have't replace the transformer because parcel has used swc internally to [speed up them transformation](https://parceljs.org/blog/beta3/)\n\n\n# Credits\nThanks to:\n[@sokra](https://github.com/sokra) for the great work on the [webpack/benchmark](https://github.com/webpack/benchmark) project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Fbundler-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-infra-dev%2Fbundler-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Fbundler-benchmark/lists"}