Skip to content

FE-1565: Upgrade Petrinaut's Rolldown DTS toolchain - #9449

Open
kube wants to merge 4 commits into
mainfrom
codex/upgrade-rolldown-dts
Open

FE-1565: Upgrade Petrinaut's Rolldown DTS toolchain#9449
kube wants to merge 4 commits into
mainfrom
codex/upgrade-rolldown-dts

Conversation

@kube

@kube kube commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

🌟 What is the purpose of this PR?

Upgrade every library using rolldown-plugin-dts to the latest compatible stack, simplify its configuration, and preserve valid public declarations.

🔗 Related links

🚫 Blocked by

Nothing.

🔍 What does this change?

  • Upgrades Petrinaut, Petrinaut Core, and Refractive to rolldown-plugin-dts 0.28.3, Rolldown 1.2.6, and Vite 8.2.2.
  • Uses generator: "tsgo" and Vite's OXC declaration exclusions, removing plugin-order rewrites and unused ES-build configuration.
  • Normalizes declaration filenames and package type exports; all public entry-point export sets remain unchanged.
  • Externalizes ai only from Petrinaut's declaration graph, while keeping its runtime JavaScript bundled.

Warm direct-Vite medians, baseline → updated toolchain with externalized ai declarations:

Package Wall time Peak RSS
Petrinaut 5.50 → 5.61s (+2.00%) 1503.84 → 1503.13 MiB (-0.05%)
Petrinaut Core 2.19 → 2.23s (+1.83%) 1027.61 → 899.59 MiB (-12.46%)
Refractive 0.23 → 0.22s (-4.35%) 139.86 → 128.06 MiB (-8.44%)
Sequential total 7.92 → 8.06s (+1.77%)

Paired Petrinaut builds on the updated toolchain, inline → externalized ai declarations:

Metric Inline Externalized Change
Wall time 6.36s 6.20s -2.52%
Peak RSS 1541.55 MiB 1470.52 MiB -4.61%
Raw declarations 476,252 B 51,538 B -89.18%
Gzip declarations 94,018 B 15,322 B -83.70%
CommonJS-DTS warnings 53 0 -100%

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

🐾 Next steps

None.

🛡 What tests cover this?

  • Builds and payload checks for all three packages.
  • yarn install --immutable, yarn constraints, yarn dedupe --strategy highest --check, and package-level TypeScript/ESLint checks.
  • 1,074 Petrinaut Core tests and 267 Petrinaut tests.
  • All 16 manifest type targets exist; all 31 declarations parse and public export sets match the baseline.

❓ How to test this?

  1. Run each package's build script.
  2. Run each package's prepack payload check.

📹 Demo

Not applicable.

@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview Aug 31, 2026 12:27pm
hashdotdesign-tokens Ready Ready Preview Aug 31, 2026 12:27pm
petrinaut Ready Ready Preview Aug 31, 2026 12:27pm
petrinaut-docs Ready Ready Preview Aug 31, 2026 12:27pm

Request Review

@cursor

cursor Bot commented Aug 30, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Touches published package type entrypoints and the declaration bundling pipeline for three libraries; runtime behavior should be unchanged but consumers depend on correct .d.ts paths and export graphs.

Overview
Upgrades Petrinaut, Petrinaut Core, and Refractive to rolldown-plugin-dts 0.28.3, Rolldown 1.2.6, and Vite 8.2.2, with matching yarn.lock updates.

Declaration output and package metadata: Published types / exports paths are corrected from *.d.d.ts to *.d.ts. DTS generation switches to dts({ generator: "tsgo" }) and drops the old fake-js plugin ordering workaround. Vite oxc.exclude is set so emitted .d.ts (and .js where needed) are not run through OXC as JavaScript.

Build config tweaks: Rolldown output.globals is removed where unused. Petrinaut Core keeps optional peer typescript external only via esmExternalRequirePlugin, not Rolldown’s JS external list. Petrinaut adds a Rolldown external hook that externalizes the ai package only when resolving from declaration files, shrinking bundled .d.ts without dropping ai from the runtime bundle.

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

@github-actions github-actions Bot added area/deps Relates to third-party dependencies (area) area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team labels Aug 30, 2026
@github-actions github-actions Bot removed the area/infra Relates to version control, CI, CD or IaC (area) label Aug 30, 2026
@kube
kube requested a review from CiaranMn August 30, 2026 02:11
@codspeed-hq

codspeed-hq Bot commented Aug 31, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 98 untouched benchmarks


Comparing codex/upgrade-rolldown-dts (44f5ba2) with main (aa913dd)1

Open in CodSpeed

Footnotes

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

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.02%. Comparing base (900d9cd) to head (44f5ba2).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9449   +/-   ##
=======================================
  Coverage   61.02%   61.02%           
=======================================
  Files        1449     1449           
  Lines      144641   144641           
  Branches     6692     6692           
=======================================
+ Hits        88263    88264    +1     
+ Misses      55274    55273    -1     
  Partials     1104     1104           
Flag Coverage Δ
apps.hash-ai-worker-ts 1.99% <ø> (ø)
apps.hash-api 14.68% <ø> (ø)
blockprotocol.type-system 38.15% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.49% <ø> (ø)
local.hash-backend-utils 3.27% <ø> (ø)
local.hash-graph-sdk 10.02% <ø> (ø)
local.hash-isomorphic-utils 12.22% <ø> (ø)
rust.antsi 2.36% <ø> (ø)
rust.error-stack 90.81% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.23% <ø> (+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-config 74.74% <ø> (ø)
rust.hash-graph-api 19.84% <ø> (ø)
rust.hash-graph-authentication 97.00% <ø> (ø)
rust.hash-graph-authorization 63.14% <ø> (ø)
rust.hash-graph-embeddings 91.88% <ø> (ø)
rust.hash-graph-postgres-store 32.02% <ø> (ø)
rust.hash-graph-store 48.41% <ø> (ø)
rust.hash-graph-temporal-versioning 50.18% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hash-graph-validation 84.71% <ø> (ø)
rust.hash-middleware 92.19% <ø> (ø)
rust.hashql-ast 89.63% <ø> (ø)
rust.hashql-compiletest 28.39% <ø> (ø)
rust.hashql-core 78.95% <ø> (ø)
rust.hashql-diagnostics 72.51% <ø> (ø)
rust.hashql-eval 79.82% <ø> (ø)
rust.hashql-hir 89.09% <ø> (ø)
rust.hashql-mir 87.92% <ø> (ø)
rust.hashql-syntax-jexpr 94.04% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@kube kube changed the title Upgrade Petrinaut's Rolldown DTS toolchain FE-1565: Upgrade Petrinaut's Rolldown DTS toolchain Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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 $$28.5 \mathrm{ms} \pm 279 \mathrm{μs}\left({\color{gray}-0.934 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.62 \mathrm{ms} \pm 20.3 \mathrm{μs}\left({\color{gray}2.27 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$13.8 \mathrm{ms} \pm 108 \mathrm{μs}\left({\color{gray}-0.221 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$44.7 \mathrm{ms} \pm 494 \mathrm{μs}\left({\color{gray}-1.206 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$15.2 \mathrm{ms} \pm 176 \mathrm{μs}\left({\color{gray}-0.366 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$25.4 \mathrm{ms} \pm 253 \mathrm{μs}\left({\color{gray}-1.812 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$29.1 \mathrm{ms} \pm 226 \mathrm{μs}\left({\color{gray}-1.037 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.95 \mathrm{ms} \pm 30.5 \mathrm{μs}\left({\color{gray}2.47 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.8 \mathrm{ms} \pm 127 \mathrm{μs}\left({\color{lightgreen}-8.133 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.92 \mathrm{ms} \pm 31.7 \mathrm{μs}\left({\color{gray}1.40 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.10 \mathrm{ms} \pm 21.3 \mathrm{μs}\left({\color{gray}1.14 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$3.49 \mathrm{ms} \pm 29.9 \mathrm{μs}\left({\color{gray}0.943 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.33 \mathrm{ms} \pm 39.0 \mathrm{μs}\left({\color{gray}0.790 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.65 \mathrm{ms} \pm 29.3 \mathrm{μs}\left({\color{gray}0.180 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$4.23 \mathrm{ms} \pm 29.4 \mathrm{μs}\left({\color{gray}0.258 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.51 \mathrm{ms} \pm 32.9 \mathrm{μs}\left({\color{gray}1.05 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.58 \mathrm{ms} \pm 28.7 \mathrm{μs}\left({\color{gray}1.57 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.26 \mathrm{ms} \pm 30.4 \mathrm{μs}\left({\color{gray}0.952 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.71 \mathrm{ms} \pm 23.8 \mathrm{μs}\left({\color{gray}0.622 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.55 \mathrm{ms} \pm 17.4 \mathrm{μs}\left({\color{gray}-1.069 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.73 \mathrm{ms} \pm 22.3 \mathrm{μs}\left({\color{gray}1.26 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.00 \mathrm{ms} \pm 21.0 \mathrm{μs}\left({\color{gray}-0.559 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.79 \mathrm{ms} \pm 17.9 \mathrm{μs}\left({\color{gray}-0.462 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.97 \mathrm{ms} \pm 22.4 \mathrm{μs}\left({\color{gray}-0.649 \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 20.2 \mathrm{μs}\left({\color{gray}-1.269 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.77 \mathrm{ms} \pm 14.0 \mathrm{μs}\left({\color{gray}-2.850 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$3.03 \mathrm{ms} \pm 22.1 \mathrm{μs}\left({\color{gray}0.139 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.50 \mathrm{ms} \pm 21.9 \mathrm{μs}\left({\color{gray}-1.438 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.07 \mathrm{ms} \pm 20.8 \mathrm{μs}\left({\color{gray}1.39 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$3.36 \mathrm{ms} \pm 23.9 \mathrm{μs}\left({\color{gray}0.861 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.44 \mathrm{ms} \pm 22.9 \mathrm{μs}\left({\color{gray}-1.543 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.00 \mathrm{ms} \pm 20.1 \mathrm{μs}\left({\color{gray}-1.527 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.44 \mathrm{ms} \pm 26.5 \mathrm{μs}\left({\color{gray}3.18 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$43.3 \mathrm{ms} \pm 290 \mathrm{μs}\left({\color{gray}-1.431 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$33.0 \mathrm{ms} \pm 226 \mathrm{μs}\left({\color{gray}-1.090 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$36.4 \mathrm{ms} \pm 289 \mathrm{μs}\left({\color{gray}-0.942 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$37.5 \mathrm{ms} \pm 1.18 \mathrm{ms}\left({\color{red}14.6 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$43.6 \mathrm{ms} \pm 304 \mathrm{μs}\left({\color{gray}1.40 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$50.7 \mathrm{ms} \pm 385 \mathrm{μs}\left({\color{gray}-1.637 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$42.4 \mathrm{ms} \pm 252 \mathrm{μs}\left({\color{gray}2.98 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$92.9 \mathrm{ms} \pm 726 \mathrm{μs}\left({\color{gray}0.874 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$34.4 \mathrm{ms} \pm 274 \mathrm{μs}\left({\color{gray}-1.362 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$308 \mathrm{ms} \pm 1.35 \mathrm{ms}\left({\color{red}18.3 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$10.8 \mathrm{ms} \pm 84.6 \mathrm{μs}\left({\color{gray}0.416 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$10.6 \mathrm{ms} \pm 71.3 \mathrm{μs}\left({\color{gray}-2.966 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$10.8 \mathrm{ms} \pm 72.2 \mathrm{μs}\left({\color{gray}-0.263 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$10.5 \mathrm{ms} \pm 56.2 \mathrm{μs}\left({\color{gray}-1.230 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$10.7 \mathrm{ms} \pm 73.1 \mathrm{μs}\left({\color{gray}-1.405 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$10.7 \mathrm{ms} \pm 84.8 \mathrm{μs}\left({\color{gray}0.767 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$10.6 \mathrm{ms} \pm 65.0 \mathrm{μs}\left({\color{gray}1.56 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$10.9 \mathrm{ms} \pm 70.2 \mathrm{μs}\left({\color{gray}2.35 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$10.7 \mathrm{ms} \pm 83.7 \mathrm{μs}\left({\color{gray}-3.592 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$10.9 \mathrm{ms} \pm 98.6 \mathrm{μs}\left({\color{gray}-2.454 \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 $$10.9 \mathrm{ms} \pm 71.8 \mathrm{μs}\left({\color{lightgreen}-5.128 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$11.1 \mathrm{ms} \pm 83.5 \mathrm{μs}\left({\color{gray}-2.073 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$10.9 \mathrm{ms} \pm 64.4 \mathrm{μs}\left({\color{gray}-2.597 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$10.9 \mathrm{ms} \pm 61.1 \mathrm{μs}\left({\color{gray}-4.372 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$11.3 \mathrm{ms} \pm 118 \mathrm{μs}\left({\color{gray}-0.093 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$11.0 \mathrm{ms} \pm 81.6 \mathrm{μs}\left({\color{gray}-3.568 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$11.1 \mathrm{ms} \pm 79.9 \mathrm{μs}\left({\color{gray}-2.340 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$10.9 \mathrm{ms} \pm 75.3 \mathrm{μs}\left({\color{gray}-3.944 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$10.9 \mathrm{ms} \pm 65.6 \mathrm{μs}\left({\color{gray}-2.467 \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.23 \mathrm{ms} \pm 52.3 \mathrm{μs}\left({\color{gray}-1.058 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$58.5 \mathrm{ms} \pm 395 \mathrm{μs}\left({\color{gray}0.581 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$112 \mathrm{ms} \pm 640 \mathrm{μs}\left({\color{gray}-2.174 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$67.1 \mathrm{ms} \pm 558 \mathrm{μs}\left({\color{gray}0.793 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$78.0 \mathrm{ms} \pm 626 \mathrm{μs}\left({\color{gray}3.02 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$84.8 \mathrm{ms} \pm 618 \mathrm{μs}\left({\color{gray}-0.840 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$90.7 \mathrm{ms} \pm 591 \mathrm{μs}\left({\color{gray}0.191 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$43.7 \mathrm{ms} \pm 334 \mathrm{μs}\left({\color{gray}-4.106 \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 $$73.9 \mathrm{ms} \pm 538 \mathrm{μs}\left({\color{gray}0.077 \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 $$50.3 \mathrm{ms} \pm 424 \mathrm{μs}\left({\color{gray}-1.986 \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 $$60.5 \mathrm{ms} \pm 453 \mathrm{μs}\left({\color{gray}-2.112 \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 $$62.7 \mathrm{ms} \pm 395 \mathrm{μs}\left({\color{gray}-2.332 \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 $$63.3 \mathrm{ms} \pm 434 \mathrm{μs}\left({\color{gray}0.075 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$123 \mathrm{ms} \pm 745 \mathrm{μs}\left({\color{gray}0.089 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$134 \mathrm{ms} \pm 825 \mathrm{μs}\left({\color{gray}-0.980 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$19.6 \mathrm{ms} \pm 191 \mathrm{μs}\left({\color{lightgreen}-17.448 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$539 \mathrm{ms} \pm 1.80 \mathrm{ms}\left({\color{gray}0.600 \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) area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team

Development

Successfully merging this pull request may close these issues.

1 participant