{"id":19610528,"url":"https://github.com/originjs/js-bundler-benchmark","last_synced_at":"2025-02-26T17:22:19.879Z","repository":{"id":217778843,"uuid":"743907762","full_name":"originjs/js-bundler-benchmark","owner":"originjs","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-26T09:45:09.000Z","size":962,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-20T08:36:11.932Z","etag":null,"topics":["benchmark"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mulanpsl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/originjs.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-16T08:43:17.000Z","updated_at":"2024-08-08T02:52:41.000Z","dependencies_parsed_at":"2024-02-05T07:39:28.663Z","dependency_job_id":"3383c67a-8eb5-4d59-b367-8a1214b4b77a","html_url":"https://github.com/originjs/js-bundler-benchmark","commit_stats":null,"previous_names":["originjs/js-bundler-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originjs%2Fjs-bundler-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originjs%2Fjs-bundler-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originjs%2Fjs-bundler-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originjs%2Fjs-bundler-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/originjs","download_url":"https://codeload.github.com/originjs/js-bundler-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240898853,"owners_count":19875264,"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":["benchmark"],"created_at":"2024-11-11T10:29:56.380Z","updated_at":"2025-02-26T17:22:19.853Z","avatar_url":"https://github.com/originjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @originjs/js-bundler-benchmark\n\n## Run benchmarks:\n```bash\nnode packages/tools/benchmark.mjs\n```\n\nThe `-p` parameter switches the evaluation project\n``` bash\npnpm benchmark -p=triangle-vue\n```\n\n## Results of the last assessment(2024-02-05)\n\n| num |      bundler      |  Cold start time(ms) | Page load time - cold start(ms) | Hot start time(ms) | Page load time - hot start(ms)  | HMR - root\t(ms) | HMR - leaf(ms) | Build time(ms) | dist package size(KB) |\n|-|-|-|-|-|-|-|-|-|-|\n|    0    |  Rspack(babel)  |         8500         |        465        |        8260         |       452        |     139     |     131     |   9984    |  59.5   |\n|    1    |   Rspack(swc)   |         1520         |        527        |        1350         |       506        |     140     |     145     |   3415    |  72.3   |\n|    2    |     esbuild     |        70000         |        793        |        58000        |       700        |     559     |    1506     |   1817    |  93.3   |\n|    3    |    Turbopack    |         2500         |       7982        |        1573         |       9003       |     /       |     200     |    /      |   /     |\n|    4    | Webpack (babel) |        16077         |        790        |        15404        |       982        |     436     |     232     |   22641   |  70.6   |\n|    5    |  Webpack (swc)  |         6415         |        906        |        6765         |       994        |     388     |     279     |   8420    |  67.9   |\n|    6    |      Vite       |         568          |       9500        |         466         |      10559       |     /       |     328     |   5061    |  73.7   |\n|    7    |   Vite (swc)    |         531          |       5855        |         392         |       6774       |     /       |     322     |   5190    |  73.7   |\n|    8    |      Farm       |         1425         |       1566        |         823         |       1820       |     90      |     42      |   4096    |  66.5   |\n|    9    |     Parcel      |         /            |       5776        |        /            |       5623       |     180     |     65      |   8774    |  70.2   |\n|   10    |   Parcel-swc    |         /            |       5615        |        /            |       5573       |     166     |     53      |   8948    |  70.2   |\n|   11    |    snowpack     |          42          |       3994        |         39          |       3788       |    1223     |    1039     |   15224   |  74.6   |\n|   12    |  snowpack-swc   |          40          |       4576        |         39          |       4532       |    1182     |    1021     |   18946   |   86    |\n|   13    |  rsbuild-babel  |         8200         |        743        |        8000         |       622        |    1050     |     300     |   10788   |  63.1   |\n|   14    |   rsbuild-swc   |         950          |        801        |         800         |       740        |     176     |     145     |   3515    |  64.1   |\n|   15    |     rollup      |        38700         |        239        |        38600        |       228        |     /       |     /       |   38231   |  87.4   |\n|   16    |   rollup-swc    |        30300         |        237        |        28900        |       233        |     /       |     /       |   26579   |  80.9   |\n|   17    |       wmr       |          /           |        /          |         /           |        /         |     /       |     /       |   13064   |  108.7  |\n\n## Vue project(2024-03-05)\n| num |      bundler      |  Cold start time(ms) | Page load time - cold start(ms) | Hot start time(ms) | Page load time - hot start(ms)  | HMR - root\t(ms) | HMR - leaf(ms) | Build time(ms) | dist package size(KB) |\n|-|-|-|-|-|-|-|-|-|-|\n|    0    |  Rspack(babel)  |         833          |        348        |      'skipped'      |    'skipped'     |     131     |     165     |   1445    |  54.6   |\n|    1    |     esbuild     |          56          |        184        |         55          |       119        |     -1      |     -1      |    824    |  252.8  |\n|    2    | Webpack (babel) |         1819         |        469        |        1785         |       438        |     413     |     399     |   4317    |  44.8   |\n|    3    |      Vite       |         183          |        934        |         147         |       1268       |     132     |     130     |   1486    |  44.8   |\n|    4    |      Farm       |         489          |        130        |         168         |       130        |     46      |     49      |   1314    |  141.7  |\n|    5    |     Parcel      |         3540         |        180        |         57          |       168        |     278     |     288     |   4674    |  463.3  |\n|    6    |  rsbuild-babel  |         1000         |        283        |         990         |       279        |     158     |     189     |   1619    |  92.5   |\n|    7    |     rollup      |         2200         |        96         |        2100         |       107        |     -1      |     -1      |   2663    |   63    |\n## Reference\n- https://github.com/sapphi-red/performance-compare\n- https://github.com/farm-fe/performance-compare\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginjs%2Fjs-bundler-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriginjs%2Fjs-bundler-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginjs%2Fjs-bundler-benchmark/lists"}