Skip to content

Update napi Rust crates to v3 (major)#7647

Open
hash-worker[bot] wants to merge 1 commit intomainfrom
deps/rs/major-napi-rust-crates
Open

Update napi Rust crates to v3 (major)#7647
hash-worker[bot] wants to merge 1 commit intomainfrom
deps/rs/major-napi-rust-crates

Conversation

@hash-worker
Copy link
Copy Markdown
Contributor

@hash-worker hash-worker bot commented Jul 19, 2025

This PR contains the following updates:

Package Type Update Change Pending
napi workspace.dependencies major 2.16.17 -> 3.0.0 3.8.4
napi-derive workspace.dependencies major 2.16.13 -> 3.0.0 3.5.3

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

napi-rs/napi-rs (napi)

v3.8.3

Compare Source

Fixed
  • (napi) prevent async iterator use-after-free during GC (#​3120)
Other
  • replace BufferRef mention with BufferSlice (#​3112)

v3.8.2

Compare Source

Fixed
  • (napi) memory leak in async fn (#​3089)
  • (napi) implement TypeName for ArrayBuffer (#​3087)

v3.8.1

Compare Source

Fixed
  • (napi) wasi debug compile error (#​3081)

v3.8.0

Compare Source

Added
  • (napi) support any object types in Stream(#​2854)
  • (napi-derive) add #[napi(async_iterator)] macro attribute (#​3072)
Fixed
  • (napi) validate status before copying data in env arraybuffer fallback (#​3077)
  • (napi) validate status before copying in remaining TypedArray fallback paths (#​3076)
  • (napi) validate status before copying in TypedArray owned ToNapiValue fallback (#​3080)
  • (napi) validate status before copying in ArrayBuffer ToNapiValue fallback (#​3079)
  • (napi) skip debug buffer tracking on wasm targets (#​3078)

v3.7.1

Compare Source

Other

v3.7.0

Compare Source

Added
  • (napi) provide unsafe as_mut on ArrayBuffer (#​3055)
  • (napi) support Promise.resolve/reject (#​3053)

v3.6.1

Compare Source

Other
  • updated the following local packages: napi-sys

v3.6.0

Compare Source

Added
  • (napi-derive) add tracing feature for debug logging NAPI function calls (#​3041)
  • (napi) add node_api_create_object_with_properties support for enum creation (#​2990)
Fixed
  • (napi) bigInt comparison (#​3039)
  • (napi) shutdown runtime at env cleanup on windows (#​3026)
Other
  • (napi) add back pub NODE_VERSION_* (#​3046)
  • (sys) add back non dyn-symbols behavior (#​3045)
  • (napi) add Eq and PartialEq trait to BigInt (#​3033)
  • update MSRV in README.md (#​3023)

v3.5.2

Compare Source

Fixed
  • (deps) update rust crate convert_case to 0.11 (#​3114)

v3.5.1

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.5.0

Compare Source

Added
  • (napi-derive) add #[napi(async_iterator)] macro attribute (#​3072)

v3.4.0

Compare Source

Added
  • (napi-derive) add tracing feature for debug logging NAPI function calls (#​3041)
Fixed
  • (deps) update rust crate convert_case to 0.10 (#​3031)

v3.3.0

Compare Source

Added
  • (napi-derive) add discriminant_case to allow changing case of discriminant (#​2960)
Fixed
  • (deps) update rust crate ctor to v0.6.0 (#​2951)
Other

v3.2.4

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.2.3

Compare Source

Fixed
  • (napi) link issue on cargo test --features noop (#​2872)
  • (deps) update rust crate ctor to v0.5.0 (#​2865)

v3.2.2

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.2.1

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.2.0

Compare Source

Added
  • (napi) add ScopeGenerator trait (#​2831)
  • make generator an iterator (#​2784)

v3.1.6

Compare Source

Fixed
  • (napi) async task finally is not called (#​2824) This was introduced in #​2786, released in 3.1.0

v3.1.5

Compare Source

Fixed
  • (napi) relax the lifetime restriction in PromiseRaw callbacks (#​2819)

v3.1.4

Compare Source

Fixed
  • (napi) the generic trait rectiction of Env::spawn should be ScopedTask (#​2817)

v3.1.3

Compare Source

Other
  • (napi) optimize HashMap allocation in FromNapiValue implementation for HashMap (#​2796)

v3.1.2

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.1.1

Compare Source

Other
  • updated the following local packages: napi-derive-backend

v3.1.0

Compare Source

Added
  • (napi) provide ScopedTask to resolve JsValue with lifetime (#​2786)
Other
  • pin release-plz action

v3.0.0

Compare Source


Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - "before 4am every weekday,every weekend" (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@hash-worker hash-worker bot enabled auto-merge July 19, 2025 08:20
hashdotai
hashdotai previously approved these changes Jul 19, 2025
@github-actions github-actions bot added the area/deps Relates to third-party dependencies (area) label Jul 19, 2025
@hash-worker hash-worker bot requested a review from a team July 19, 2025 09:06
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.50%. Comparing base (d4832af) to head (cf5208e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7647      +/-   ##
==========================================
- Coverage   62.50%   62.50%   -0.01%     
==========================================
  Files        1318     1318              
  Lines      134222   134222              
  Branches     5517     5517              
==========================================
- Hits        83895    83893       -2     
- Misses      49412    49414       +2     
  Partials      915      915              
Flag Coverage Δ
apps.hash-ai-worker-ts 1.40% <ø> (ø)
apps.hash-api 0.00% <ø> (ø)
blockprotocol.type-system 40.84% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.24% <ø> (ø)
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.18% <ø> (-0.04%) ⬇️
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.39% <ø> (ø)
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 29.69% <ø> (ø)
rust.hashql-core 82.29% <ø> (ø)
rust.hashql-diagnostics 72.43% <ø> (ø)
rust.hashql-eval 69.13% <ø> (ø)
rust.hashql-hir 89.06% <ø> (ø)
rust.hashql-mir 92.64% <ø> (ø)
rust.hashql-syntax-jexpr 94.05% <ø> (ø)

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.

@github-actions github-actions bot added area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Jul 20, 2025
@TimDiekmann TimDiekmann assigned indietyp and unassigned TimDiekmann Jul 20, 2025
@hash-worker hash-worker bot force-pushed the deps/rs/major-napi-rust-crates branch from ee4ebe9 to 047e69d Compare September 2, 2025 08:19
@github-actions github-actions bot removed area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Sep 2, 2025
hashdotai
hashdotai previously approved these changes Sep 2, 2025
hashdotai
hashdotai previously approved these changes Sep 8, 2025
hashdotai
hashdotai previously approved these changes Sep 11, 2025
hashdotai
hashdotai previously approved these changes Sep 19, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Nov 29, 2025

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

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Mar 31, 2026 2:58pm
hashdotdesign Ready Ready Preview, Comment Mar 31, 2026 2:58pm
hashdotdesign-tokens Ready Ready Preview, Comment Mar 31, 2026 2:58pm
petrinaut Ready Ready Preview Mar 31, 2026 2:58pm

@hash-worker hash-worker bot force-pushed the deps/rs/major-napi-rust-crates branch from ca8420d to 72c619d Compare December 2, 2025 09:49
@hash-worker hash-worker bot force-pushed the deps/rs/major-napi-rust-crates branch from 72c619d to dd93ec2 Compare December 2, 2025 15:16
@hash-worker hash-worker bot force-pushed the deps/rs/major-napi-rust-crates branch from dd93ec2 to ff7d766 Compare December 7, 2025 09:43
@hash-worker hash-worker bot force-pushed the deps/rs/major-napi-rust-crates branch from ff7d766 to ed75f88 Compare December 9, 2025 09:16
@cursor
Copy link
Copy Markdown

cursor bot commented Dec 19, 2025

PR Summary

Medium Risk
Major-version upgrade of the Node-API binding crates may introduce compile-time or runtime behavior changes for any Rust-to-Node modules that depend on napi macros/types.

Overview
Updates workspace dependency versions for Node-API bindings by upgrading napi and napi-derive from 2.16.x to 3.0.0 in Cargo.toml (no other code changes in this diff).

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

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 14, 2026

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing deps/rs/major-napi-rust-crates (cf5208e) with main (d4832af)

Open in CodSpeed

@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 $$26.4 \mathrm{ms} \pm 185 \mathrm{μs}\left({\color{lightgreen}-8.468 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.30 \mathrm{ms} \pm 12.5 \mathrm{μs}\left({\color{gray}-2.504 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$11.8 \mathrm{ms} \pm 73.5 \mathrm{μs}\left({\color{lightgreen}-10.398 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$41.7 \mathrm{ms} \pm 331 \mathrm{μs}\left({\color{gray}-1.878 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$13.8 \mathrm{ms} \pm 136 \mathrm{μs}\left({\color{gray}-4.754 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$22.9 \mathrm{ms} \pm 197 \mathrm{μs}\left({\color{lightgreen}-6.886 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$27.5 \mathrm{ms} \pm 223 \mathrm{μs}\left({\color{lightgreen}-6.730 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.57 \mathrm{ms} \pm 20.4 \mathrm{μs}\left({\color{gray}-2.653 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$12.8 \mathrm{ms} \pm 95.9 \mathrm{μs}\left({\color{lightgreen}-9.473 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.69 \mathrm{ms} \pm 22.5 \mathrm{μs}\left({\color{gray}-2.566 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.88 \mathrm{ms} \pm 16.4 \mathrm{μs}\left({\color{gray}-2.105 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.26 \mathrm{ms} \pm 20.7 \mathrm{μs}\left({\color{gray}-1.399 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.07 \mathrm{ms} \pm 31.8 \mathrm{μs}\left({\color{gray}-2.229 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.50 \mathrm{ms} \pm 15.7 \mathrm{μs}\left({\color{gray}-1.787 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$4.03 \mathrm{ms} \pm 21.4 \mathrm{μs}\left({\color{gray}-2.277 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.32 \mathrm{ms} \pm 24.3 \mathrm{μs}\left({\color{gray}-4.050 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.32 \mathrm{ms} \pm 22.9 \mathrm{μs}\left({\color{gray}-2.496 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$3.96 \mathrm{ms} \pm 22.6 \mathrm{μs}\left({\color{gray}-3.629 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.62 \mathrm{ms} \pm 14.1 \mathrm{μs}\left({\color{gray}-2.367 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.57 \mathrm{ms} \pm 15.3 \mathrm{μs}\left({\color{gray}-2.128 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.68 \mathrm{ms} \pm 14.3 \mathrm{μs}\left({\color{gray}-1.958 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.96 \mathrm{ms} \pm 20.7 \mathrm{μs}\left({\color{gray}-1.359 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.73 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}-2.395 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.05 \mathrm{ms} \pm 17.9 \mathrm{μs}\left({\color{gray}-1.033 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.01 \mathrm{ms} \pm 15.6 \mathrm{μs}\left({\color{gray}-1.097 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.72 \mathrm{ms} \pm 17.7 \mathrm{μs}\left({\color{gray}1.07 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$2.86 \mathrm{ms} \pm 15.9 \mathrm{μs}\left({\color{gray}-0.319 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.42 \mathrm{ms} \pm 18.1 \mathrm{μs}\left({\color{gray}-1.159 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.96 \mathrm{ms} \pm 17.7 \mathrm{μs}\left({\color{gray}-1.125 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.21 \mathrm{ms} \pm 22.0 \mathrm{μs}\left({\color{gray}-1.120 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.37 \mathrm{ms} \pm 21.0 \mathrm{μs}\left({\color{gray}-0.840 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.94 \mathrm{ms} \pm 16.0 \mathrm{μs}\left({\color{gray}-1.845 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.25 \mathrm{ms} \pm 17.0 \mathrm{μs}\left({\color{gray}-0.968 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$44.3 \mathrm{ms} \pm 236 \mathrm{μs}\left({\color{gray}-1.601 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$80.6 \mathrm{ms} \pm 431 \mathrm{μs}\left({\color{red}26.2 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$48.5 \mathrm{ms} \pm 194 \mathrm{μs}\left({\color{gray}-2.616 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$51.8 \mathrm{ms} \pm 404 \mathrm{μs}\left({\color{gray}-2.607 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$59.8 \mathrm{ms} \pm 268 \mathrm{μs}\left({\color{gray}-1.226 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$45.3 \mathrm{ms} \pm 255 \mathrm{μs}\left({\color{gray}-3.536 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$419 \mathrm{ms} \pm 906 \mathrm{μs}\left({\color{red}65.7 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$94.6 \mathrm{ms} \pm 541 \mathrm{μs}\left({\color{lightgreen}-6.321 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$89.6 \mathrm{ms} \pm 361 \mathrm{μs}\left({\color{lightgreen}-8.515 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$287 \mathrm{ms} \pm 900 \mathrm{μs}\left({\color{gray}-0.369 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$18.9 \mathrm{ms} \pm 113 \mathrm{μs}\left({\color{gray}-1.993 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$19.5 \mathrm{ms} \pm 112 \mathrm{μs}\left({\color{gray}-1.599 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$19.6 \mathrm{ms} \pm 124 \mathrm{μs}\left({\color{gray}-0.760 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$19.5 \mathrm{ms} \pm 90.8 \mathrm{μs}\left({\color{gray}-3.810 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$23.6 \mathrm{ms} \pm 112 \mathrm{μs}\left({\color{gray}-1.608 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$19.0 \mathrm{ms} \pm 153 \mathrm{μs}\left({\color{gray}-2.320 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$18.7 \mathrm{ms} \pm 90.4 \mathrm{μs}\left({\color{gray}-3.884 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$18.9 \mathrm{ms} \pm 112 \mathrm{μs}\left({\color{gray}-2.655 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$19.4 \mathrm{ms} \pm 103 \mathrm{μs}\left({\color{gray}-3.094 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$25.1 \mathrm{ms} \pm 158 \mathrm{μs}\left({\color{gray}-2.823 \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 $$33.2 \mathrm{ms} \pm 288 \mathrm{μs}\left({\color{gray}0.517 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$33.3 \mathrm{ms} \pm 271 \mathrm{μs}\left({\color{gray}-0.616 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$32.1 \mathrm{ms} \pm 246 \mathrm{μs}\left({\color{gray}-2.111 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$33.3 \mathrm{ms} \pm 301 \mathrm{μs}\left({\color{gray}-0.346 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$33.1 \mathrm{ms} \pm 309 \mathrm{μs}\left({\color{gray}0.736 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$33.7 \mathrm{ms} \pm 269 \mathrm{μs}\left({\color{gray}0.409 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$33.4 \mathrm{ms} \pm 319 \mathrm{μs}\left({\color{gray}-0.313 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$32.7 \mathrm{ms} \pm 251 \mathrm{μs}\left({\color{gray}-1.749 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$34.0 \mathrm{ms} \pm 338 \mathrm{μs}\left({\color{gray}0.146 \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.10 \mathrm{ms} \pm 42.4 \mathrm{μs}\left({\color{gray}0.200 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$89.3 \mathrm{ms} \pm 512 \mathrm{μs}\left({\color{gray}-1.614 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$138 \mathrm{ms} \pm 500 \mathrm{μs}\left({\color{gray}-3.530 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$95.8 \mathrm{ms} \pm 470 \mathrm{μs}\left({\color{gray}-1.698 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$103 \mathrm{ms} \pm 513 \mathrm{μs}\left({\color{lightgreen}-5.485 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$112 \mathrm{ms} \pm 492 \mathrm{μs}\left({\color{gray}-4.455 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$118 \mathrm{ms} \pm 466 \mathrm{μs}\left({\color{gray}-1.710 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$97.2 \mathrm{ms} \pm 394 \mathrm{μs}\left({\color{gray}-3.051 \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 $$124 \mathrm{ms} \pm 496 \mathrm{μs}\left({\color{gray}-0.628 \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 $$105 \mathrm{ms} \pm 429 \mathrm{μs}\left({\color{gray}-1.264 \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 $$114 \mathrm{ms} \pm 500 \mathrm{μs}\left({\color{gray}-0.528 \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 $$115 \mathrm{ms} \pm 586 \mathrm{μs}\left({\color{gray}-0.063 \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 $$115 \mathrm{ms} \pm 461 \mathrm{μs}\left({\color{gray}-0.128 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$136 \mathrm{ms} \pm 475 \mathrm{μs}\left({\color{gray}1.40 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$146 \mathrm{ms} \pm 513 \mathrm{μs}\left({\color{gray}1.12 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$104 \mathrm{ms} \pm 545 \mathrm{μs}\left({\color{gray}-0.439 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$579 \mathrm{ms} \pm 3.19 \mathrm{ms}\left({\color{red}7.41 \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