You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This branch fixes global search pagination bugs caused by the cursor state not correctly being reset when some input parameters change. For example, when removing a filter, the cursor was not being reset. This could cause the next result set to be fetched using a cursor for the previously active set of filters.
This isn't currently a problem, because global search results aren't paginated. However, we will begin using pagination when we soon introduce the new GROQ search strategy.
What to review
Global search input parameters and predicated builder (e.g. filters).
Testing
Added unit tests to the reducer to ensure cursor state is reset when input parameters change.
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)
45ms
47ms
53ms
201ms
192ms
11.5s
article (body)
19ms
21ms
38ms
184ms
277ms
6.1s
article (string inside object)
41ms
42ms
48ms
288ms
295ms
7.4s
article (string inside array)
46ms
48ms
50ms
100ms
142ms
7.5s
recipe (name)
24ms
26ms
33ms
56ms
0ms
8.3s
recipe (description)
20ms
22ms
26ms
52ms
0ms
5.1s
recipe (instructions)
7ms
9ms
10ms
21ms
0ms
3.4s
synthetic (title)
58ms
61ms
62ms
160ms
462ms
13.1s
synthetic (string inside object)
53ms
57ms
68ms
487ms
946ms
8.5s
🧪 Experiment result
The performance result of this branch
Benchmark
latency
p75
p90
p99
blocking time
test duration
article (title)
46ms
51ms
66ms
185ms
273ms
12.2s
article (body)
17ms
20ms
25ms
188ms
240ms
5.9s
article (string inside object)
44ms
47ms
52ms
108ms
286ms
7.4s
article (string inside array)
49ms
51ms
63ms
180ms
309ms
8.1s
recipe (name)
22ms
24ms
28ms
62ms
0ms
8.2s
recipe (description)
20ms
22ms
25ms
38ms
0ms
4.9s
recipe (instructions)
7ms
9ms
10ms
25ms
0ms
3.4s
synthetic (title)
57ms
60ms
69ms
314ms
740ms
13.8s
synthetic (string inside object)
54ms
62ms
70ms
523ms
1086ms
8.6s
📚 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.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This branch fixes global search pagination bugs caused by the cursor state not correctly being reset when some input parameters change. For example, when removing a filter, the cursor was not being reset. This could cause the next result set to be fetched using a cursor for the previously active set of filters.
This isn't currently a problem, because global search results aren't paginated. However, we will begin using pagination when we soon introduce the new GROQ search strategy.
What to review
Testing