René's URL Explorer Experiment


Title: test(@angular/build): add library builder scaling benchmark suite by dherges · Pull Request #34290 · angular/angular-cli · GitHub

Open Graph Title: test(@angular/build): add library builder scaling benchmark suite by dherges · Pull Request #34290 · angular/angular-cli

X Title: test(@angular/build): add library builder scaling benchmark suite by dherges · Pull Request #34290 · angular/angular-cli

Description: Measuring that Angular's native library builder scales with grace — far better than ng-packagr: ng-packagr/ng-packagr#3461 PR Checklist The commit message follows the guidelines (test(@angular/build): ...) Tests for the changes have been added -- N/A, this PR is a benchmark/test tool, not a behavior change needing its own tests Docs have been added -- scripts/benchmarks/library-builder/README.md PR Type Bugfix Feature Code style update (formatting, local variables) Refactoring (no functional changes, no api changes) Build related changes CI related changes Documentation content changes Other: adds a reproducible benchmark suite (no packages/ source changes) What is the current behavior? Issue Number: N/A There is currently no way to measure how @angular/build:library's build time scales with library size (entry-point count, nesting depth, or component style variant). What is the new behavior? Adds scripts/benchmarks/library-builder/, a benchmark suite (following the existing scripts/benchmarks/i18n/ suite's structure) that generates synthetic APF library fixtures at various sizes and times @angular/build:library cold builds against them. Run via: pnpm build pnpm admin benchmark library-builder Observations along the way This was built while investigating a performance comparison against ng-packagr. That investigation found ng-packagr's build time per entry point rises once a library exceeds roughly 300-500 secondary entry points -- for a small numbr of entry points, ng-packagr scales roughly linear, but doubling the number of entry points (above a certain threhsold, e.g. 1000 entry points vs. 500 entry points) costs noticeably more than double the build time. Running the same fixture shapes through @angular/build:library found no such growth: its per-entry cost keeps falling as the library grows, with no climb even at the largest sizes tested (2000 flat entries / 2048 deeply-nested entries). These initital benchmark results presented an intersting observation point to dig depper. As a result, this benchmark suite was created so that: The numbers are independently reproducible by anyone, not just quoted in a PR description. Future changes to @angular/build:library have a regression check for the specific scaling characteristic. Caveats Benchmarks only cold, one-shot builds. It does not exercise incremental rebuilds or watch mode. The sweep is intentionally small and needs further benchmark runs for statistical comparisons. Absolute numbers are specific to the machine they're collected on; the shape of the per-entry-cost curve (grows with size, or doesn't) is the more portable finding across hardware. Does this PR introduce a breaking change? Yes No Other information No changes to any packages/ source in this PR -- only new benchmark tooling and documentation under scripts/benchmarks/library-builder/, plus wiring it into the existing scripts/benchmark.mts dispatcher as a new library-builder subsystem alongside i18n.

Open Graph Description: Measuring that Angular's native library builder scales with grace — far better than ng-packagr: ng-packagr/ng-packagr#3461 PR Checklist The commit message follows the guidelines (test(@angul...

X Description: Measuring that Angular's native library builder scales with grace — far better than ng-packagr: ng-packagr/ng-packagr#3461 PR Checklist The commit message follows the guidelines (test(@a...

Opengraph URL: https://github.com/angular/angular-cli/pull/34290

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ae1df555-588d-6b1b-3cf7-43bbd321ba5f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD318:2A5566:13746EA:198C63D:6B01E99A
html-safe-nonce249084db44372aa9b701f5c5ff206ed19c1cd806591b35177a7edd409123e173
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzE4OjJBNTU2NjoxMzc0NkVBOjE5OEM2M0Q6NkIwMUU5OUEiLCJ2aXNpdG9yX2lkIjoiNzcxMjYzODIwODc3Mjc5NDc3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac81bfe52728e3de1a27965e1307ee545fca8a944284c5720c9c26a9dba3001932
hovercard-subject-tagpull_request:4792116019
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular-cli/pull/34290/files
twitter:imagehttps://avatars.githubusercontent.com/u/901354?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/901354?s=400&v=4
og:image:altMeasuring that Angular's native library builder scales with grace — far better than ng-packagr: ng-packagr/ng-packagr#3461 PR Checklist The commit message follows the guidelines (test(@angul...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/pull/34290/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fpull%2F34290%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fpull%2F34290%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/pull/34290/files
Reloadhttps://github.com/angular/angular-cli/pull/34290/files
Reloadhttps://github.com/angular/angular-cli/pull/34290/files
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
dhergeshttps://github.com/dherges
angular:mainhttps://github.com/angular/angular-cli/tree/main
dherges:test-ng-build-library-builder-benchmarkshttps://github.com/dherges/angular-cli/tree/test-ng-build-library-builder-benchmarks
Conversation 37 https://github.com/angular/angular-cli/pull/34290
Commits 15 https://github.com/angular/angular-cli/pull/34290/commits
Checks 10 https://github.com/angular/angular-cli/pull/34290/checks
Files changed https://github.com/angular/angular-cli/pull/34290/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
test(@angular/build): add library builder scaling benchmark suite https://github.com/angular/angular-cli/pull/34290/files#top
Show all changes 15 commits https://github.com/angular/angular-cli/pull/34290/files
e8638b9 test(@angular/build): add library builder scaling benchmark suite dherges Oct 8, 2026 https://github.com/angular/angular-cli/pull/34290/commits/e8638b95a2072c5aab4fa3771ab6332b302e1c6b
f760cb4 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 10, 2026 https://github.com/angular/angular-cli/pull/34290/commits/f760cb48ca98f581884498f529dc81d6943b7a3b
0aaa731 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 10, 2026 https://github.com/angular/angular-cli/pull/34290/commits/0aaa7318768c796d54341e091300f51e4edcd81a
90a5c08 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 10, 2026 https://github.com/angular/angular-cli/pull/34290/commits/90a5c0852cf4a204119fc976ae52b42bca635c3a
fe70c22 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 12, 2026 https://github.com/angular/angular-cli/pull/34290/commits/fe70c22f8f36d44bedc63c9adefa0245fba99e27
c7a812b fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 12, 2026 https://github.com/angular/angular-cli/pull/34290/commits/c7a812bceeadd314e1715d32b08ef47b6adff9ea
1d7a102 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 12, 2026 https://github.com/angular/angular-cli/pull/34290/commits/1d7a1027a8e3da7e596097bceb9d150ef9d41899
8f7573d fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 12, 2026 https://github.com/angular/angular-cli/pull/34290/commits/8f7573db0c86c0a6151821ef60b439485bb5dd2f
4a9b4ec fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 12, 2026 https://github.com/angular/angular-cli/pull/34290/commits/4a9b4ec18f6ee3733d40216323cd04d44f819139
d48bd74 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 16, 2026 https://github.com/angular/angular-cli/pull/34290/commits/d48bd7493c29688ec108cdbc48d49dfae77ddb0d
f7e154a fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 16, 2026 https://github.com/angular/angular-cli/pull/34290/commits/f7e154a0d724a0ae4eac56aa4e5f6257f5908f53
ead4fa9 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 23, 2026 https://github.com/angular/angular-cli/pull/34290/commits/ead4fa9fe83467cfd03a8bd53f2fdb6302c7f932
45eb7d1 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 23, 2026 https://github.com/angular/angular-cli/pull/34290/commits/45eb7d1d67950cb38c27de6b4061f1d1b62bd106
77f88c6 fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 25, 2026 https://github.com/angular/angular-cli/pull/34290/commits/77f88c6e72bb9373864ad49bd1fba248ff45f071
8166f3a fixup! test(@angular/build): add library builder scaling benchmark suite dherges Oct 27, 2026 https://github.com/angular/angular-cli/pull/34290/commits/8166f3ab6e29727c4353db246393f1fd9331e8ca
Clear filters https://github.com/angular/angular-cli/pull/34290/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
benchmark.mts https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
README.md https://github.com/angular/angular-cli/pull/34290/files#diff-11315f45b68cab78d98219c918f83ec2fa207853d31e408154ed2a27336f4f2a
fixtures.mts https://github.com/angular/angular-cli/pull/34290/files#diff-ac5f68255f3ff2ac76ea4ac38254481668a8c23d9830c1928c44fea1d10cca1e
harness.mts https://github.com/angular/angular-cli/pull/34290/files#diff-68ee360b819cfe1d7b7c5612c62a06704fa0ecff78677c70aa381d3a9fe88414
index.mts https://github.com/angular/angular-cli/pull/34290/files#diff-0409467bb75b4e0736a1e90a75ff8990fa6725e0fd70e3135995d23a2bbf6dca
reporters.mts https://github.com/angular/angular-cli/pull/34290/files#diff-592df03fc5f544cc3649b767292087d2513c55a767ebec1a5aefd7f74af45a12
scripts/benchmark.mtshttps://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
View file https://github.com/angular/angular-cli/blob/8166f3ab6e29727c4353db246393f1fd9331e8ca/scripts/benchmark.mts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34290/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
dhergeshttps://github.com/dherges
Oct 17, 2026https://github.com/angular/angular-cli/pull/34290/files#r4302856004
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
https://github.com/angular/angular-cli/pull/34290/files#diff-fd406d0ede0b6070d7816a29fbf55c579736c49f735d66af750be9aebb302f88
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34290/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.