Skip to content

H-6324: Migrate petrinaut to oxlint and verify React Compiler#8539

Merged
kube merged 20 commits intomainfrom
cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler
Mar 15, 2026
Merged

H-6324: Migrate petrinaut to oxlint and verify React Compiler#8539
kube merged 20 commits intomainfrom
cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler

Conversation

@kube
Copy link
Collaborator

@kube kube commented Mar 13, 2026

What is the purpose of this PR?

Migrate @hashintel/petrinaut and @apps/petrinaut-website from ESLint to oxlint with type-aware linting, upgrade dev tooling, verify React Compiler, and clean up dependencies.

Lint performance

Before After
yarn lint:eslint 37.9s 1.6s (type-aware)

What does this change?

Oxlint migration

  • Replace ESLint with oxlint, add .oxlintrc.json config for both packages
  • Enable --type-aware linting via oxlint-tsgolint for TypeScript-informed rules (no-implied-eval, no-misused-promises, no-unnecessary-condition, no-unsafe-assignment, no-unsafe-call)
  • Promote all warn-level rules to error — warnings don't fail CI and create noise without enforcement
  • Add --report-unused-disable-directives-severity=error to catch stale disable comments
  • Clean up unused eslint-disable directives, remove id-length disables
  • Add no-console, new-cap, no-new-func, label-has-associated-control rules
  • Use tsgo for type checking

React Compiler

  • Configure React Compiler with panicThreshold: "critical_errors" via @rolldown/plugin-babel + reactCompilerPreset
  • Add "use no memo" directives for hooks that intentionally write refs during render
  • Break dependency cycles by extracting SubView registries into ui-subviews.ts

Dependency cleanup

  • Remove 10 unused dependencies: @babel/core, @babel/plugin-transform-typescript, @dnd-kit/{core,sortable,utilities}, @mantine/hooks, d3-array, web-worker, @types/d3-array, vite-plugin-dts

Dev tooling upgrades

  • vite 8.0.0-beta.18 → 8.0.0 (stable)
  • @vitejs/plugin-react 5.1.4 → 6.0.1 (Oxc-based, babel dropped)
  • vitest 4.0.18 → 4.1.0
  • storybook 10.2.13 → 10.2.19
  • rolldown 1.0.0-rc.8 → 1.0.0-rc.9
  • rolldown-plugin-dts 0.22.4 → 0.22.5
  • @typescript/native-preview → 7.0.0-dev.20260315.1

plugin-react v6 migration

  • v6 dropped built-in Babel — JSX/refresh now handled by Oxc
  • Migrate React Compiler setup from inline babel option (silently ignored in v6) to @rolldown/plugin-babel with reactCompilerPreset
  • Add @rolldown/plugin-babel to both packages

Pre-Merge Checklist

Has this modified a publishable library?

  • modifies an npm-publishable library and I have added a changeset file(s)

Does this require a change to the docs?

  • are internal and do not require a docs change

Does this require a change to the Turbo Graph?

  • affected the execution graph, and the turbo.json's have been updated to reflect this

@vercel
Copy link

vercel bot commented Mar 13, 2026

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

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Mar 15, 2026 6:45pm
hashdotdesign-tokens Building Building Preview, Comment Mar 15, 2026 6:45pm
petrinaut Ready Ready Preview Mar 15, 2026 6:45pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
hashdotdesign Ignored Ignored Preview Mar 15, 2026 6:45pm

@github-actions github-actions bot added 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 labels Mar 13, 2026
Copy link
Collaborator Author

kube commented Mar 13, 2026

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

@cursor
Copy link

cursor bot commented Mar 13, 2026

PR Summary

Medium Risk
Moderate risk due to build/lint toolchain changes (Vite/plugin-react v6, Babel/React Compiler wiring) that can affect CI and production bundling; small runtime changes (menu group keys, label rendering) are low impact but user-visible.

Overview
Migrates linting from ESLint to oxlint (type-aware) for @hashintel/petrinaut and @apps/petrinaut-website. Adds .oxlintrc.json, swaps lint:eslint/fix:eslint scripts to oxlint --type-aware, removes eslint.config.js, and updates Turbo tasks so linting doesn’t inherit upstream dependencies.

Updates the build toolchain and React Compiler integration. Upgrades Vite/Storybook/Vitest/Rolldown/tooling, and changes React Compiler setup to use @rolldown/plugin-babel + reactCompilerPreset (since @vitejs/plugin-react v6 no longer honors inline Babel config), with additional `

Written by Cursor Bugbot for commit 6cecb10. This will update automatically on new commits. Configure here.

@augmentcode
Copy link

augmentcode bot commented Mar 13, 2026

🤖 Augment PR Summary

Summary: Migrates @hashintel/petrinaut from ESLint to OXLint for dramatically faster lint runs, while validating/guarding React Compiler behavior.

Changes:

  • Added .oxlintrc.json and switched lint:eslint to oxlint .; removed the local ESLint config/deps.
  • Added a Turbo pipeline entry for lint:eslint to avoid unnecessary dependencies.
  • Moved SubView registries into src/constants/ui-subviews.ts to break import cycles; updated panel imports.
  • Added "use no memo" directives to specific hooks/components that are incompatible with React Compiler optimizations.
  • Updated Vite React Compiler plugin configuration to enforce stricter compiler error handling.
  • Minor UI updates: improved keying logic in Menu groups and SDCPN label segmentation.

Technical Notes: OXLint is configured via .oxlintrc.json (with TS/script overrides) and should respect inline disable directives used for special-case UI interactions.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@github-actions github-actions bot added the area/infra Relates to version control, CI, CD or IaC (area) label Mar 13, 2026
@kube kube force-pushed the cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler branch from 1645d3a to b06d6fd Compare March 13, 2026 19:35
- Add no-console, new-cap, no-new-func rules to oxlint config
- Remove unused eslint-disable comments for rules that oxlint cannot
  enforce without type-aware linting (no-implied-eval, no-unsafe-call,
  no-unsafe-assignment, no-unnecessary-condition, no-misused-promises,
  label-has-associated-control)
- Remove id-length disable comments (rule not needed)
- Remove no-restricted-globals disables in workers (not triggered)
- Simplify compile-user-code.ts and compile-visualizer.ts disables to
  only the functional no-new-func rule

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot dismissed CiaranMn’s stale review March 15, 2026 16:21

Your organization requires reapproval when changes are made, so Graphite has dismissed approvals. See the output of git range-diff at https://github.com/hashintel/hash/actions/runs/23114310688

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 15, 2026

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler (6cecb10) with main (637b75b)1

Open in CodSpeed

Footnotes

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

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.65%. Comparing base (637b75b) to head (6cecb10).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8539   +/-   ##
=======================================
  Coverage   62.65%   62.65%           
=======================================
  Files        1314     1314           
  Lines      133870   133870           
  Branches     5517     5517           
=======================================
  Hits        83877    83877           
  Misses      49078    49078           
  Partials      915      915           
Flag Coverage Δ
rust.hash-graph-postgres-store 26.65% <ø> (ø)
rust.hash-graph-temporal-versioning 47.95% <ø> (ø)
rust.hash-graph-validation 83.45% <ø> (ø)

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.

Add --type-aware flag and oxlint-tsgolint package to enable TypeScript
type-informed lint rules. Add type-aware rules: no-implied-eval,
no-misused-promises, no-unnecessary-condition, no-unsafe-assignment,
no-unsafe-call, and label-has-associated-control.

Restore eslint-disable comments for code that intentionally violates
these rules (Function constructor usage, async requestAnimationFrame
callbacks, etc).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kube kube force-pushed the cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler branch from 5fc7ba9 to ccc9e08 Compare March 15, 2026 18:06
@github-actions github-actions bot added the area/apps > hash* Affects HASH (a `hash-*` app) label Mar 15, 2026
elkjs/lib/main.js calls require.resolve('web-worker') inside a
try/catch, but Webpack statically analyzes it and fails if the package
is not resolvable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kube kube force-pushed the cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler branch from ccc9e08 to 6cecb10 Compare March 15, 2026 18:33
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@kube kube added this pull request to the merge queue Mar 15, 2026
Merged via the queue into main with commit 46e4caf Mar 15, 2026
177 checks passed
@kube kube deleted the cf/h-6324-migrate-petrinaut-to-oxlint-and-verify-react-compiler branch March 15, 2026 19:38
@github-actions
Copy link
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.6 \mathrm{ms} \pm 164 \mathrm{μs}\left({\color{gray}-2.250 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.64 \mathrm{ms} \pm 33.9 \mathrm{μs}\left({\color{gray}1.19 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$13.8 \mathrm{ms} \pm 91.6 \mathrm{μs}\left({\color{gray}4.78 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$45.3 \mathrm{ms} \pm 314 \mathrm{μs}\left({\color{gray}-1.124 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$16.3 \mathrm{ms} \pm 182 \mathrm{μs}\left({\color{red}5.25 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$25.9 \mathrm{ms} \pm 171 \mathrm{μs}\left({\color{gray}-0.669 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$29.8 \mathrm{ms} \pm 190 \mathrm{μs}\left({\color{gray}-0.706 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.90 \mathrm{ms} \pm 19.3 \mathrm{μs}\left({\color{gray}-0.699 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$14.8 \mathrm{ms} \pm 104 \mathrm{μs}\left({\color{gray}4.56 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.91 \mathrm{ms} \pm 19.7 \mathrm{μs}\left({\color{gray}-3.210 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.14 \mathrm{ms} \pm 20.0 \mathrm{μs}\left({\color{gray}-2.116 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.54 \mathrm{ms} \pm 25.7 \mathrm{μs}\left({\color{gray}-0.367 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.44 \mathrm{ms} \pm 43.9 \mathrm{μs}\left({\color{gray}-1.528 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.69 \mathrm{ms} \pm 18.5 \mathrm{μs}\left({\color{gray}-4.635 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$4.26 \mathrm{ms} \pm 24.8 \mathrm{μs}\left({\color{gray}-3.703 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.62 \mathrm{ms} \pm 22.2 \mathrm{μs}\left({\color{gray}-2.713 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.54 \mathrm{ms} \pm 17.7 \mathrm{μs}\left({\color{gray}-2.978 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.25 \mathrm{ms} \pm 22.4 \mathrm{μs}\left({\color{gray}-3.998 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.83 \mathrm{ms} \pm 14.9 \mathrm{μs}\left({\color{gray}-4.111 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.83 \mathrm{ms} \pm 16.0 \mathrm{μs}\left({\color{gray}-1.256 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.89 \mathrm{ms} \pm 15.3 \mathrm{μs}\left({\color{gray}-3.181 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.21 \mathrm{ms} \pm 18.6 \mathrm{μs}\left({\color{gray}-1.661 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.98 \mathrm{ms} \pm 15.2 \mathrm{μs}\left({\color{gray}-3.762 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.29 \mathrm{ms} \pm 23.4 \mathrm{μs}\left({\color{gray}-2.686 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.22 \mathrm{ms} \pm 15.9 \mathrm{μs}\left({\color{gray}-3.892 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.92 \mathrm{ms} \pm 17.3 \mathrm{μs}\left({\color{gray}-2.275 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$3.08 \mathrm{ms} \pm 17.7 \mathrm{μs}\left({\color{gray}-1.264 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.66 \mathrm{ms} \pm 20.3 \mathrm{μs}\left({\color{gray}-2.653 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.24 \mathrm{ms} \pm 18.3 \mathrm{μs}\left({\color{gray}0.250 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.48 \mathrm{ms} \pm 20.9 \mathrm{μs}\left({\color{gray}-0.089 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.60 \mathrm{ms} \pm 19.8 \mathrm{μs}\left({\color{gray}-1.920 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.27 \mathrm{ms} \pm 25.6 \mathrm{μs}\left({\color{gray}0.324 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.51 \mathrm{ms} \pm 22.1 \mathrm{μs}\left({\color{gray}-1.116 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$46.8 \mathrm{ms} \pm 181 \mathrm{μs}\left({\color{gray}0.204 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$84.3 \mathrm{ms} \pm 356 \mathrm{μs}\left({\color{gray}0.338 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$50.8 \mathrm{ms} \pm 303 \mathrm{μs}\left({\color{gray}0.216 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$55.2 \mathrm{ms} \pm 429 \mathrm{μs}\left({\color{gray}3.89 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$63.8 \mathrm{ms} \pm 410 \mathrm{μs}\left({\color{gray}1.38 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$48.4 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{gray}0.356 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$425 \mathrm{ms} \pm 934 \mathrm{μs}\left({\color{gray}0.790 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$98.6 \mathrm{ms} \pm 487 \mathrm{μs}\left({\color{gray}-4.607 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$92.8 \mathrm{ms} \pm 415 \mathrm{μs}\left({\color{gray}-0.101 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$321 \mathrm{ms} \pm 748 \mathrm{μs}\left({\color{red}8.00 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$20.4 \mathrm{ms} \pm 103 \mathrm{μs}\left({\color{gray}1.96 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$20.7 \mathrm{ms} \pm 129 \mathrm{μs}\left({\color{gray}1.30 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$21.4 \mathrm{ms} \pm 170 \mathrm{μs}\left({\color{gray}3.47 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$20.6 \mathrm{ms} \pm 100 \mathrm{μs}\left({\color{gray}0.498 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$25.0 \mathrm{ms} \pm 183 \mathrm{μs}\left({\color{gray}-3.086 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$20.5 \mathrm{ms} \pm 146 \mathrm{μs}\left({\color{gray}1.32 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$20.3 \mathrm{ms} \pm 134 \mathrm{μs}\left({\color{gray}0.215 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$20.1 \mathrm{ms} \pm 133 \mathrm{μs}\left({\color{gray}-2.364 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$21.1 \mathrm{ms} \pm 159 \mathrm{μs}\left({\color{gray}0.229 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$27.7 \mathrm{ms} \pm 280 \mathrm{μs}\left({\color{gray}-2.436 \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 $$34.4 \mathrm{ms} \pm 310 \mathrm{μs}\left({\color{gray}-0.216 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$35.2 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{gray}3.32 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$36.0 \mathrm{ms} \pm 295 \mathrm{μs}\left({\color{gray}2.55 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$35.3 \mathrm{ms} \pm 274 \mathrm{μs}\left({\color{gray}-3.493 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$35.2 \mathrm{ms} \pm 315 \mathrm{μs}\left({\color{gray}2.50 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$35.0 \mathrm{ms} \pm 289 \mathrm{μs}\left({\color{gray}1.03 \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 348 \mathrm{μs}\left({\color{gray}-2.437 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$34.6 \mathrm{ms} \pm 279 \mathrm{μs}\left({\color{gray}-0.968 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$35.7 \mathrm{ms} \pm 289 \mathrm{μs}\left({\color{gray}-4.330 \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.85 \mathrm{ms} \pm 43.9 \mathrm{μs}\left({\color{gray}-0.492 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$93.1 \mathrm{ms} \pm 459 \mathrm{μs}\left({\color{gray}-3.282 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$150 \mathrm{ms} \pm 696 \mathrm{μs}\left({\color{gray}2.26 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$104 \mathrm{ms} \pm 583 \mathrm{μs}\left({\color{gray}2.62 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$112 \mathrm{ms} \pm 594 \mathrm{μs}\left({\color{gray}1.65 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$121 \mathrm{ms} \pm 526 \mathrm{μs}\left({\color{gray}0.560 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$128 \mathrm{ms} \pm 483 \mathrm{μs}\left({\color{gray}0.734 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$104 \mathrm{ms} \pm 671 \mathrm{μs}\left({\color{gray}1.09 \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 $$135 \mathrm{ms} \pm 658 \mathrm{μs}\left({\color{gray}1.83 \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 $$110 \mathrm{ms} \pm 461 \mathrm{μs}\left({\color{gray}-0.817 \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 $$118 \mathrm{ms} \pm 471 \mathrm{μs}\left({\color{gray}-0.244 \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 $$120 \mathrm{ms} \pm 514 \mathrm{μs}\left({\color{gray}-0.988 \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 $$120 \mathrm{ms} \pm 517 \mathrm{μs}\left({\color{gray}-1.275 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$134 \mathrm{ms} \pm 535 \mathrm{μs}\left({\color{gray}-1.799 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$144 \mathrm{ms} \pm 674 \mathrm{μs}\left({\color{gray}-3.200 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$107 \mathrm{ms} \pm 729 \mathrm{μs}\left({\color{red}40.9 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$576 \mathrm{ms} \pm 3.14 \mathrm{ms}\left({\color{red}5.57 \mathrm{\%}}\right) $$ Flame Graph

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

Labels

area/apps > hash* Affects HASH (a `hash-*` app) area/apps 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

Development

Successfully merging this pull request may close these issues.

2 participants