iTwin / presentation

Monorepo for iTwin.js Presentation Library
https://www.itwinjs.org/presentation/
MIT License
4 stars 0 forks source link

Hierarchies-react: Update README to use compiled code snippets #671

Closed jasdom closed 1 month ago

jasdom commented 1 month ago

Closes https://github.com/iTwin/presentation/issues/666.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 798d2f2f1b5da53e47a8006e4639305da4cd7c36

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 1 month ago

Unified selection benchmark

Benchmark suite Current: 798d2f2f1b5da53e47a8006e4639305da4cd7c36 Previous: f76a4f2a65d3db7fd2737a057878748a4e700f03 Deviation Status
hilite 50k elements 1194.29 ms 1238.41 ms -3.5626%
hilite 50k elements (P95 of main thread blocks) 45 ms 43 ms 4.6512% 🚨
hilite 50k group elements 228.95 ms 236.07 ms -3.0161%
hilite 50k group elements (P95 of main thread blocks) 33 ms 33 ms 0% 🟰
hilite 1k subjects 47432.85 ms 47796.35 ms -0.7605%
hilite 1k subjects (P95 of main thread blocks) 31 ms 28 ms 10.7143% 🚨
hilite 50k subcategories 276.52 ms 277.92 ms -0.5037%
hilite 50k subcategories (P95 of main thread blocks) 33 ms 34 ms -2.9412%
hilite 50k functional 3D elements 26271.22 ms 25578.8 ms 2.7070% 🚨
hilite 50k functional 3D elements (P95 of main thread blocks) 39 ms 33 ms 18.1818% 🚨
hilite 50k functional 2D elements 6069.95 ms 6096.07 ms -0.4285%
hilite 50k functional 2D elements (P95 of main thread blocks) 31 ms 34 ms -8.8235%
compute selection for 50k elements 306.66 ms 361.57 ms -15.1865%
compute selection for 50k elements (P95 of main thread blocks) 33 ms 36 ms -8.3333%
compute parent selection for 50k elements 334.07 ms 338.65 ms -1.3524%
compute parent selection for 50k elements (P95 of main thread blocks) 31 ms 32 ms -3.1250%
compute top ancestor selection for 50k elements 553.84 ms 557.87 ms -0.7224%
compute top ancestor selection for 50k elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute category selection for 50k elements 94.15 ms 95.42 ms -1.3310%
compute category selection for 50k elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute model selection for 50k elements 88.41 ms 81.93 ms 7.9092% 🚨
compute model selection for 50k elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute functional selection for 50k 3D elements 405.67 ms 408.28 ms -0.6393%
compute functional selection for 50k 3D elements (P95 of main thread blocks) 31 ms 31 ms 0% 🟰
compute parent functional selection for 50k 3D elements 430.34 ms 445.02 ms -3.2987%
compute parent functional selection for 50k 3D elements (P95 of main thread blocks) 33 ms 31 ms 6.4516% 🚨
compute top ancestor functional selection for 50k 3D elements 1187.23 ms 1174.41 ms 1.0916% 🚨
compute top ancestor functional selection for 50k 3D elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute functional selection for 50k 2D elements 2968.06 ms 3074.13 ms -3.4504%
compute functional selection for 50k 2D elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute parent functional selection for 50k 2D elements 2999.67 ms 3022.34 ms -0.7501%
compute parent functional selection for 50k 2D elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
compute top ancestor functional selection for 50k 2D elements 3060.77 ms 3099.19 ms -1.2397%
compute top ancestor functional selection for 50k 2D elements (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨

This comment was automatically generated by workflow using github-action-benchmark.

github-actions[bot] commented 1 month ago

Hierarchies benchmark

Benchmark suite Current: 798d2f2f1b5da53e47a8006e4639305da4cd7c36 Previous: f76a4f2a65d3db7fd2737a057878748a4e700f03 Deviation Status
flat 50k elements list 4096.65 ms 4105.6 ms -0.2180%
flat 50k elements list (P95 of main thread blocks) 72 ms 72 ms 0% 🟰
grouping by label 9955.65 ms 9903.46 ms 0.5270% 🚨
grouping by label (P95 of main thread blocks) 59 ms 63 ms -6.3492%
grouping by class 10015.04 ms 10031.2 ms -0.1611%
grouping by class (P95 of main thread blocks) 43 ms 42 ms 2.3810% 🚨
grouping by property 10797.29 ms 10426.77 ms 3.5535% 🚨
grouping by property (P95 of main thread blocks) 45 ms 83 ms -45.7831%
grouping by base class (10 classes) 7319.24 ms 7314.39 ms 0.0663% 🚨
grouping by base class (10 classes) (P95 of main thread blocks) 74 ms 72 ms 2.7778% 🚨
grouping by multiple attributes 26797.37 ms 26908.87 ms -0.4144%
grouping by multiple attributes (P95 of main thread blocks) 42 ms 67 ms -37.3134%
hide if no children required to finalize root, w/o children 45328.77 ms 45783.08 ms -0.9923%
hide if no children required to finalize root, w/o children (P95 of main thread blocks) 37 ms 38 ms -2.6316%
hide if no children required to finalize root, w/ children 152.2 ms 160.84 ms -5.3718%
hide if no children required to finalize root, w/ children (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
models tree initial (Baytown) 41.27 ms 38.8 ms 6.3660% 🚨
models tree initial (Baytown) (P95 of main thread blocks) 0 ms 0 ms NaN% 🚨
models tree full (Baytown) 7640.3 ms 7659.77 ms -0.2542%
models tree full (Baytown) (P95 of main thread blocks) 88 ms 88 ms 0% 🟰

This comment was automatically generated by workflow using github-action-benchmark.