Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] test(core): use context selector for DocumentPaneProvider #7644

Closed
wants to merge 1 commit into from

Conversation

binoy14
Copy link
Contributor

@binoy14 binoy14 commented Oct 21, 2024

Description

Testing context-selector pattern

What to review

Testing

Notes for release

Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 5:12pm
performance-studio 🛑 Canceled (Inspect) 💬 Add feedback Oct 21, 2024 5:12pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 5:12pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 5:12pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 5:12pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Oct 21, 2024 5:12pm

Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] environment +1 142 kB daishi

View full report↗︎

Copy link
Contributor

No changes to documentation

Copy link
Contributor

Component Testing Report Updated Oct 21, 2024 5:09 PM (UTC)

✅ All Tests Passed -- expand for details
File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 45s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 30s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 39s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 11s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 2m 33s 1 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 46s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 42s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 18s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 9s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 27s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 18s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 36s 12 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 0s 0 3 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 0s 0 3 0

Copy link
Contributor

⚡️ Editor Performance Report

Updated Mon, 21 Oct 2024 17:11:06 GMT

Benchmark reference
latency of sanity@latest
experiment
latency of this branch
Δ (%)
latency difference
article (title) 16.9 efps (59ms) 18.2 efps (55ms) -4ms (-6.8%)
article (body) 67.3 efps (15ms) 63.3 efps (16ms) +1ms (-/-%)
article (string inside object) 17.9 efps (56ms) 19.6 efps (51ms) -5ms (-8.9%)
article (string inside array) 14.3 efps (70ms) 15.4 efps (65ms) -5ms (-7.1%)
recipe (name) 30.3 efps (33ms) 29.9 efps (34ms) +1ms (+1.5%)
recipe (description) 33.3 efps (30ms) 33.3 efps (30ms) +0ms (-/-%)
recipe (instructions) 99.9+ efps (7ms) 99.9+ efps (6ms) -1ms (-/-%)
synthetic (title) 15.7 efps (64ms) 15.4 efps (65ms) +2ms (+2.4%)
synthetic (string inside object) 15.5 efps (65ms) 15.6 efps (64ms) -1ms (-0.8%)

efps — editor "frames per second". The number of updates assumed to be possible within a second.

Derived from input latency. efps = 1000 / input_latency

Detailed information

🏠 Reference result

The performance result of sanity@latest

Benchmark latency p75 p90 p99 blocking time test duration
article (title) 59ms 62ms 75ms 294ms 586ms 13.5s
article (body) 15ms 17ms 18ms 64ms 104ms 5.5s
article (string inside object) 56ms 62ms 68ms 122ms 349ms 8.7s
article (string inside array) 70ms 76ms 86ms 204ms 1047ms 9.8s
recipe (name) 33ms 35ms 48ms 93ms 9ms 9.6s
recipe (description) 30ms 31ms 34ms 80ms 0ms 6.1s
recipe (instructions) 7ms 8ms 9ms 12ms 0ms 3.3s
synthetic (title) 64ms 66ms 74ms 295ms 1335ms 14.6s
synthetic (string inside object) 65ms 68ms 80ms 447ms 1519ms 9.7s

🧪 Experiment result

The performance result of this branch

Benchmark latency p75 p90 p99 blocking time test duration
article (title) 55ms 59ms 63ms 246ms 345ms 12.0s
article (body) 16ms 17ms 19ms 201ms 259ms 5.3s
article (string inside object) 51ms 55ms 67ms 285ms 310ms 8.1s
article (string inside array) 65ms 72ms 80ms 223ms 958ms 9.5s
recipe (name) 34ms 36ms 43ms 86ms 16ms 9.4s
recipe (description) 30ms 31ms 36ms 58ms 0ms 5.9s
recipe (instructions) 6ms 8ms 9ms 12ms 0ms 3.4s
synthetic (title) 65ms 69ms 76ms 234ms 1302ms 14.0s
synthetic (string inside object) 64ms 66ms 89ms 257ms 1117ms 9.2s

📚 Glossary

column definitions

  • benchmark — the name of the test, e.g. "article", followed by the label of the field being measured, e.g. "(title)".
  • latency — the time between when a key was pressed and when it was rendered. derived from a set of samples. the median (p50) is shown to show the most common latency.
  • p75 — the 75th percentile of the input latency in the test run. 75% of the sampled inputs in this benchmark were processed faster than this value. this provides insight into the upper range of typical performance.
  • p90 — the 90th percentile of the input latency in the test run. 90% of the sampled inputs were faster than this. this metric helps identify slower interactions that occurred less frequently during the benchmark.
  • p99 — the 99th percentile of the input latency in the test run. only 1% of sampled inputs were slower than this. this represents the worst-case scenarios encountered during the benchmark, useful for identifying potential performance outliers.
  • blocking time — the total time during which the main thread was blocked, preventing user input and UI updates. this metric helps identify performance bottlenecks that may cause the interface to feel unresponsive.
  • test duration — how long the test run took to complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant