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
{{ message }}
Repository navigation
[HOLD for payment 2025-01-15] [HOLD for payment 2024-12-25] Benchmark performance bottlenecks when opening chats #50652
Lack of solid performance benchmarks across the core app workflows, baselines for proposing performance improvements.
Solution
Focus on 1 scenario of opening a chat
Benchmark it in detail to get the granular results (also for each phase) so we have solid numbers for whom specifically it's slow and why. There are also analytics we can use for this to have more datapoints.
Pinpoint the areas for improvement we see
Map how the proposal from initial thread/nitro modules/anything other can fit to improve it
Update
Our bottom line is to get super solid on what precisely is slow (have granular measurements) and for whom specifically.
Who
To be able to say how many people something affects (in different percentiles), we need to have something to segment by. We'll extend our performance analytics' metadata (in all envs, including e2e tests) to include the below fields. These will help us group measurements by the types of accounts. (PR: #50881)
number of reports ✅
number of reportActions 🔄
number of personalDetails ✅
number of policies 🔄
number of transactions 🔄
number of transactionViolations 🔄
What
To be able to pinpoint what exactly is slow, we'll implement granular metrics in code, across both App & Onyx. Here's a breakdown of all the phases we decided to focus on.
APPLYING_UPDATES (coming over https, until we schedule notifying subscribers)
DATABASE_WRITE (actual save operations like multiset and multimerge)
NOTIFYING_SUBSCRIBERS (multiple key(s)Changed triggered by scheduleNotifyCollectionSubscribers)
DATABASE_READ
REACT_PROVIDER - (useOnyx/withOnyx)
ONYX_DATA_POSTPROCESSING (from receiving a new update (subscriber got called) until we have the final data)
cc @mountiny we'd like to ask you for any feedback about this 1st batch (please invite others!). Is there an area we're missing? I want to make sure we focus on the right parts when profiling this, the exact tools (like e2e suites) will come next once we fully agree on the who&what.
Activity
adhorodyski commentedon Oct 11, 2024
@mountiny could you please assign this one to me & @hannojg? Thanks!
hannojg commentedon Oct 11, 2024
Thanks! 👋
adhorodyski commentedon Oct 16, 2024
Update
Our bottom line is to get super solid on what precisely is slow (have granular measurements) and for whom specifically.
Who
To be able to say how many people something affects (in different percentiles), we need to have something to segment by. We'll extend our performance analytics' metadata (in all envs, including e2e tests) to include the below fields. These will help us group measurements by the types of accounts. (PR: #50881)
What
To be able to pinpoint what exactly is slow, we'll implement granular metrics in code, across both App & Onyx. Here's a breakdown of all the phases we decided to focus on.
How
TBC
adhorodyski commentedon Oct 16, 2024
cc @mountiny we'd like to ask you for any feedback about this 1st batch (please invite others!). Is there an area we're missing? I want to make sure we focus on the right parts when profiling this, the exact tools (like e2e suites) will come next once we fully agree on the who&what.
108 remaining items
mountiny commentedon Jan 22, 2025
@adhorodyski if you mean this #50652 (comment) yes lets try to follow up
laurenreidexpensify commentedon Jan 23, 2025
@rayane-djouah are you onboarded yet for payment?
rayane-d commentedon Jan 23, 2025
@laurenreidexpensify Not yet. Could you please check the status with the team?
laurenreidexpensify commentedon Jan 27, 2025
@rayane-djouah have done, am bumping the team to get it resolved today 👍
rayane-d commentedon Jan 29, 2025
@laurenreidexpensify Resolved! Could you kindly provide a payment summary?
garrettmknight commentedon Jan 29, 2025
@laurenreidexpensify got the payment request in ND, just need the payment summary when you get a chance. 😄
laurenreidexpensify commentedon Feb 3, 2025
payment summary
@rayane-d $250 C+ please request in ND
garrettmknight commentedon Feb 3, 2025
$250 approved for @rayane-d