Skip to content

SRE-750: Upgrade Yarn to 4.16.0#8811

Merged
indietyp merged 2 commits into
mainfrom
bm/sre-750-update-yarn-to-416
Jun 3, 2026
Merged

SRE-750: Upgrade Yarn to 4.16.0#8811
indietyp merged 2 commits into
mainfrom
bm/sre-750-update-yarn-to-416

Conversation

@indietyp
Copy link
Copy Markdown
Member

@indietyp indietyp commented Jun 3, 2026

🌟 What is the purpose of this PR?

Upgrades Yarn from 4.12.0 to 4.16.0 and cleans up the .yarnrc.yml config.

🔗 Related links

🔍 What does this change?

  • Bumps packageManager from yarn@4.12.0 to yarn@4.16.0
  • Lockfile version bumped from 8 to 10 (automatic)
  • .yarnrc.yml reformatted by the migration (settings alphabetized, spacing normalized)

Notable changes in Yarn 4.12 → 4.16

4.13.0: upgrade-interactive improvements (--mode option, c/r/l bulk selection shortcuts). Fixed foreach ordering when --topological isn't set. Enhanced environment variable expansion in config.

4.14.0: enableScripts: false is now the default (we already set this). exec: protocol now respects enableScripts. approvedGitRepositories introduced (removed in this PR since we have no git deps). PnP watch mode fix. Node 25.7+ ZipFS EBADF fix.

4.15.0: node-modules linker performance improvement: install state is now cached across workspaces, reducing redundant directory scans in monorepos. npmMinimalAgeGate defaults to 1d (we set 5d).

4.16.0: yarn npm stage and staged publishing. Editor SDK support for oxc tooling (PnP only). More Node version EBADF workaround coverage.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

⚠️ Known issues

None.

🐾 Next steps

  • PnP may be worth re-evaluating: Zed now has official PnP support, and the ZipFS allocation bug has had several fixes since 4.9.0. Needs testing to confirm.
  • The .yarnrc.yml comment about PnP/Zed/ZipFS could be updated once PnP is retested.

🛡 What tests cover this?

  • CI will validate that the lockfile and installs work correctly with the new version.

❓ How to test this?

  1. rm -rf node_modules && yarn install
  2. Confirm install completes without errors
  3. Run yarn lint:tsc to verify nothing broke
Detailed version-by-version changelog

4.12.0

  • npm web login support
  • Git clone argument fix (-c core.autocrlf=false split into separate args)
  • JSON Schema fix

4.13.0

  • upgrade-interactive improvements: --mode option and c/r/l bulk selection shortcuts
  • Fixed foreach ordering when --topological isn't set
  • Enhanced environment variable expansion in configuration
  • npm audit now also runs on patched packages
  • Registry URL displayed when publishing
  • Better error when all semver-matching versions are quarantined
  • Fix for float timestamps in convertToBigIntStats (fslib)

4.14.0

  • enableScripts: false is now the default (we already set this, no impact)
  • exec: protocol now respects enableScripts
  • approvedGitRepositories setting added (removed in this PR, no git deps)
  • PnP: fix watch mode for files required under PnP
  • Node 25.7+ EBADF fix by reading CJS source of zip files
  • yarn why can now specify a version or range
  • OIDC auth support for CircleCI npm publishing

4.14.1

  • Widened EBADF fstat version gate to include Node 24.15+

4.15.0

  • perf: cache install state across workspaces for node-modules linker
  • npmMinimalAgeGate defaults to 1d (we set 5d, no impact)
  • Ignore legacy YARN_IGNORE_SCRIPTS env var
  • Reject dependency names with leading/trailing whitespace (fixes duplicate installs)
  • pnpm linker: configurable install concurrency
  • Fix for Unicode paths in patch protocol
  • PnP: stop using EBADF workaround for Node 26.1.0+

4.16.0

  • yarn npm stage and staged publishing
  • Editor SDK support for oxc (oxfmt and oxlint), PnP only
  • PnP: include Node 22.22.3 in fstat workaround
  • Stop using EBADF workaround for Node 24.16.0+ (fixed upstream in Node)

Copilot AI review requested due to automatic review settings June 3, 2026 08:21
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Jun 3, 2026 8:33am
hashdotdesign-tokens Ready Ready Preview, Comment Jun 3, 2026 8:33am
petrinaut Ready Ready Preview Jun 3, 2026 8:33am

@cursor
Copy link
Copy Markdown

cursor Bot commented Jun 3, 2026

PR Summary

Low Risk
Tooling-only change with no application code; main risk is install/CI breakage if the new Yarn or lockfile format misbehaves, which CI is meant to catch.

Overview
Upgrades the monorepo toolchain to Yarn 4.16.0 by pinning packageManager in package.json (with Corepack integrity hash) and refreshing yarn.lock so lockfile metadata moves from version 8 to 10.

.yarnrc.yml is normalized during the bump: the same install settings are kept (node-modules linker, enableScripts: false, npmMinimalAgeGate: 5d, etc.) but ordering/spacing is cleaned up and npmMinimalAgeGate is written as 5d instead of "5d". CI Corepack install already reads packageManager from package.json, so no separate workflow change is required.

Reviewed by Cursor Bugbot for commit 0c66ec7. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions github-actions Bot added the area/deps Relates to third-party dependencies (area) label Jun 3, 2026
Copy link
Copy Markdown
Member Author

indietyp commented Jun 3, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the repository’s Yarn toolchain from 4.12.0 to 4.16.0 and applies the corresponding config/lockfile migrations to keep installs reproducible and consistent across environments.

Changes:

  • Bumped packageManager in package.json to Yarn 4.16.0 (Corepack-pinned with integrity hash).
  • Updated yarn.lock metadata to the newer lockfile format version (810).
  • Reformatted and normalized .yarnrc.yml (ordering/spacing) while preserving existing settings (e.g., node-modules linker, enableScripts: false, npmMinimalAgeGate).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
yarn.lock Lockfile metadata version updated to match Yarn 4.16.x format.
package.json packageManager updated to Yarn 4.16.0 (integrity-pinned).
.yarnrc.yml Config normalized/alphabetized; settings preserved with equivalent values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.08%. Comparing base (91e50f0) to head (0c66ec7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8811   +/-   ##
=======================================
  Coverage   59.08%   59.08%           
=======================================
  Files        1343     1343           
  Lines      129731   129731           
  Branches     5866     5866           
=======================================
+ Hits        76651    76652    +1     
+ Misses      52177    52176    -1     
  Partials      903      903           
Flag Coverage Δ
apps.hash-ai-worker-ts 1.41% <ø> (ø)
apps.hash-api 0.00% <ø> (ø)
blockprotocol.type-system 40.84% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.24% <ø> (ø)
local.hash-backend-utils 2.81% <ø> (ø)
local.hash-graph-sdk 9.63% <ø> (ø)
local.hash-isomorphic-utils 0.00% <ø> (ø)
rust.antsi 0.00% <ø> (ø)
rust.error-stack 90.87% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.19% <ø> (+0.01%) ⬆️
rust.harpc-tower 67.03% <ø> (ø)
rust.harpc-types 0.00% <ø> (ø)
rust.harpc-wire-protocol 92.23% <ø> (ø)
rust.hash-codec 72.76% <ø> (ø)
rust.hash-graph-api 2.52% <ø> (ø)
rust.hash-graph-authorization 62.34% <ø> (ø)
rust.hash-graph-postgres-store 26.74% <ø> (ø)
rust.hash-graph-store 37.76% <ø> (ø)
rust.hash-graph-temporal-versioning 47.95% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hash-graph-validation 83.45% <ø> (ø)
rust.hashql-ast 87.23% <ø> (ø)
rust.hashql-compiletest 28.26% <ø> (ø)
rust.hashql-core 79.28% <ø> (ø)
rust.hashql-diagnostics 72.53% <ø> (ø)
rust.hashql-eval 75.69% <ø> (ø)
rust.hashql-hir 89.06% <ø> (ø)
rust.hashql-mir 86.94% <ø> (ø)
rust.hashql-syntax-jexpr 94.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jun 3, 2026

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing bm/sre-750-update-yarn-to-416 (0c66ec7) with main (91e50f0)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (6e5d8e6) during the generation of this report, so 91e50f0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Copy Markdown
Contributor

@alex-e-leon alex-e-leon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me.

@indietyp indietyp added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit 1726d73 Jun 3, 2026
179 checks passed
@indietyp indietyp deleted the bm/sre-750-update-yarn-to-416 branch June 3, 2026 09:41
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Benchmark results

@rust/hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$27.6 \mathrm{ms} \pm 196 \mathrm{μs}\left({\color{gray}-1.117 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.57 \mathrm{ms} \pm 21.4 \mathrm{μs}\left({\color{gray}2.02 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$12.6 \mathrm{ms} \pm 114 \mathrm{μs}\left({\color{gray}-3.418 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$43.6 \mathrm{ms} \pm 342 \mathrm{μs}\left({\color{gray}-0.160 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$15.1 \mathrm{ms} \pm 122 \mathrm{μs}\left({\color{red}6.96 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$24.0 \mathrm{ms} \pm 192 \mathrm{μs}\left({\color{gray}-0.348 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$28.3 \mathrm{ms} \pm 234 \mathrm{μs}\left({\color{gray}-2.886 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.91 \mathrm{ms} \pm 24.9 \mathrm{μs}\left({\color{gray}2.37 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.6 \mathrm{ms} \pm 124 \mathrm{μs}\left({\color{gray}-2.311 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.89 \mathrm{ms} \pm 23.9 \mathrm{μs}\left({\color{gray}1.25 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.03 \mathrm{ms} \pm 17.8 \mathrm{μs}\left({\color{gray}-0.228 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.40 \mathrm{ms} \pm 20.2 \mathrm{μs}\left({\color{gray}-0.085 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.25 \mathrm{ms} \pm 29.1 \mathrm{μs}\left({\color{gray}-0.909 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.60 \mathrm{ms} \pm 25.9 \mathrm{μs}\left({\color{gray}1.13 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$4.19 \mathrm{ms} \pm 27.8 \mathrm{μs}\left({\color{gray}1.31 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.49 \mathrm{ms} \pm 30.0 \mathrm{μs}\left({\color{gray}1.09 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.52 \mathrm{ms} \pm 24.5 \mathrm{μs}\left({\color{gray}-0.795 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.18 \mathrm{ms} \pm 38.5 \mathrm{μs}\left({\color{gray}0.879 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.77 \mathrm{ms} \pm 18.4 \mathrm{μs}\left({\color{gray}4.30 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.55 \mathrm{ms} \pm 15.5 \mathrm{μs}\left({\color{gray}-0.248 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.71 \mathrm{ms} \pm 18.3 \mathrm{μs}\left({\color{gray}4.59 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.02 \mathrm{ms} \pm 22.1 \mathrm{μs}\left({\color{gray}4.63 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.80 \mathrm{ms} \pm 15.0 \mathrm{μs}\left({\color{gray}3.10 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.02 \mathrm{ms} \pm 18.1 \mathrm{μs}\left({\color{gray}4.38 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.09 \mathrm{ms} \pm 21.9 \mathrm{μs}\left({\color{gray}-0.442 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.76 \mathrm{ms} \pm 18.4 \mathrm{μs}\left({\color{gray}0.069 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$3.05 \mathrm{ms} \pm 26.3 \mathrm{μs}\left({\color{gray}-0.568 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.49 \mathrm{ms} \pm 23.0 \mathrm{μs}\left({\color{gray}0.987 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.97 \mathrm{ms} \pm 15.5 \mathrm{μs}\left({\color{gray}0.128 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.31 \mathrm{ms} \pm 19.4 \mathrm{μs}\left({\color{gray}-0.044 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.40 \mathrm{ms} \pm 19.6 \mathrm{μs}\left({\color{gray}0.109 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.00 \mathrm{ms} \pm 21.4 \mathrm{μs}\left({\color{gray}0.774 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.39 \mathrm{ms} \pm 19.2 \mathrm{μs}\left({\color{gray}-0.130 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$55.0 \mathrm{ms} \pm 385 \mathrm{μs}\left({\color{gray}1.12 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$46.3 \mathrm{ms} \pm 227 \mathrm{μs}\left({\color{gray}-0.810 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$50.5 \mathrm{ms} \pm 309 \mathrm{μs}\left({\color{gray}-0.305 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$44.9 \mathrm{ms} \pm 219 \mathrm{μs}\left({\color{gray}0.914 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$63.3 \mathrm{ms} \pm 416 \mathrm{μs}\left({\color{gray}-1.213 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$62.2 \mathrm{ms} \pm 440 \mathrm{μs}\left({\color{gray}-0.584 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$55.8 \mathrm{ms} \pm 283 \mathrm{μs}\left({\color{gray}-3.394 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$104 \mathrm{ms} \pm 513 \mathrm{μs}\left({\color{gray}-0.712 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$47.2 \mathrm{ms} \pm 258 \mathrm{μs}\left({\color{gray}-1.026 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$323 \mathrm{ms} \pm 1.46 \mathrm{ms}\left({\color{red}8.98 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$19.7 \mathrm{ms} \pm 125 \mathrm{μs}\left({\color{gray}0.484 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$20.0 \mathrm{ms} \pm 123 \mathrm{μs}\left({\color{gray}-1.926 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$20.9 \mathrm{ms} \pm 149 \mathrm{μs}\left({\color{gray}2.87 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$19.5 \mathrm{ms} \pm 127 \mathrm{μs}\left({\color{gray}0.314 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$24.6 \mathrm{ms} \pm 183 \mathrm{μs}\left({\color{gray}0.491 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$19.9 \mathrm{ms} \pm 154 \mathrm{μs}\left({\color{gray}0.532 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$19.8 \mathrm{ms} \pm 143 \mathrm{μs}\left({\color{gray}0.221 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$19.7 \mathrm{ms} \pm 155 \mathrm{μs}\left({\color{gray}-1.767 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$20.4 \mathrm{ms} \pm 131 \mathrm{μs}\left({\color{gray}-1.806 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$28.0 \mathrm{ms} \pm 262 \mathrm{μs}\left({\color{gray}3.28 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$37.1 \mathrm{ms} \pm 292 \mathrm{μs}\left({\color{gray}2.73 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$34.9 \mathrm{ms} \pm 309 \mathrm{μs}\left({\color{gray}3.01 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$34.8 \mathrm{ms} \pm 300 \mathrm{μs}\left({\color{lightgreen}-5.738 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$36.0 \mathrm{ms} \pm 335 \mathrm{μs}\left({\color{gray}2.09 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$36.7 \mathrm{ms} \pm 328 \mathrm{μs}\left({\color{gray}2.08 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$36.4 \mathrm{ms} \pm 340 \mathrm{μs}\left({\color{gray}2.80 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$35.9 \mathrm{ms} \pm 316 \mathrm{μs}\left({\color{gray}2.48 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$35.6 \mathrm{ms} \pm 388 \mathrm{μs}\left({\color{gray}1.21 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$35.4 \mathrm{ms} \pm 321 \mathrm{μs}\left({\color{gray}2.26 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$8.95 \mathrm{ms} \pm 55.4 \mathrm{μs}\left({\color{gray}2.17 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$99.5 \mathrm{ms} \pm 596 \mathrm{μs}\left({\color{gray}3.38 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$151 \mathrm{ms} \pm 846 \mathrm{μs}\left({\color{gray}-2.632 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$103 \mathrm{ms} \pm 805 \mathrm{μs}\left({\color{gray}1.03 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$114 \mathrm{ms} \pm 743 \mathrm{μs}\left({\color{gray}-1.860 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$120 \mathrm{ms} \pm 723 \mathrm{μs}\left({\color{gray}-0.585 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$130 \mathrm{ms} \pm 675 \mathrm{μs}\left({\color{gray}-2.295 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$105 \mathrm{ms} \pm 582 \mathrm{μs}\left({\color{gray}-1.181 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$136 \mathrm{ms} \pm 853 \mathrm{μs}\left({\color{gray}-1.092 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$112 \mathrm{ms} \pm 572 \mathrm{μs}\left({\color{gray}-3.265 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$122 \mathrm{ms} \pm 753 \mathrm{μs}\left({\color{gray}-0.493 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$123 \mathrm{ms} \pm 591 \mathrm{μs}\left({\color{gray}-2.899 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$123 \mathrm{ms} \pm 764 \mathrm{μs}\left({\color{gray}-2.338 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$128 \mathrm{ms} \pm 688 \mathrm{μs}\left({\color{lightgreen}-32.298 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$140 \mathrm{ms} \pm 940 \mathrm{μs}\left({\color{lightgreen}-7.486 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$40.4 \mathrm{ms} \pm 220 \mathrm{μs}\left({\color{gray}-0.702 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$548 \mathrm{ms} \pm 1.30 \mathrm{ms}\left({\color{gray}-0.004 \mathrm{\%}}\right) $$ Flame Graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deps Relates to third-party dependencies (area)

Development

Successfully merging this pull request may close these issues.

3 participants