cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Test processing power

The Connection function can detect whether a device is on a metered connection or if it is connected/disconnected. I have used Connection.Metered in a condition to determine how much data to store locally: mobile phones on cell data would store less data while laptops on wifi would pull down more. It helps it run better.

 

But not all user laptops benefit from holding more data locally. Fast laptops greatly benefit since they don't have to wait to pull down data all the time, but slow laptops can't handle it.

 

Does anyone have a way to test the processing power of a device?

Microsoft Employee
@8bitclassroom
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Test processing power

Ok, I think I may have thought of a solution

 

Big idea: set a variable at the start and a new variable at the end of all the loading.

Set(startLoad,Now())

and Set(endLoad,Now())

 

Load and reload the app on different devices and measure the average load time. Consider having your app record the time it takes to load to a datasource.

 

Create a toggle bound to whether the time loaded was below or above the average.

 

Toggle.Default:

DateDiff(startLoad,endLoad,Seconds)>averageLoad

If the time it took to load is above average, then implement lighter actions in the app.

 

When writing formulas that are tied to intensive operations, use the Toggle's value as a condition.

 

I tested it and it works because Now() is not delayed by lag like a timer control is.

Microsoft Employee
@8bitclassroom

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Test processing power

Hi @mr-dang,

 

Based on what I know, there is no proper methods to deal with that. I think the processing power is a little hard to define, as the workload of the device is mostly depends on the user operations.

@AndyPennell may have some insights on this topic.

 

Besides, please consider submit this as an idea.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Champion
Community Champion

Re: Test processing power

@AndyPennell

Any new thoughts on this?

 

@Meneghino posted an idea for signals which I think could also help checking for speed.

I previously tried measuring speed using a timer, but when a slow computer lags, so does the timer.

Microsoft Employee
@8bitclassroom
Highlighted
Community Champion
Community Champion

Re: Test processing power

Ok, I think I may have thought of a solution

 

Big idea: set a variable at the start and a new variable at the end of all the loading.

Set(startLoad,Now())

and Set(endLoad,Now())

 

Load and reload the app on different devices and measure the average load time. Consider having your app record the time it takes to load to a datasource.

 

Create a toggle bound to whether the time loaded was below or above the average.

 

Toggle.Default:

DateDiff(startLoad,endLoad,Seconds)>averageLoad

If the time it took to load is above average, then implement lighter actions in the app.

 

When writing formulas that are tied to intensive operations, use the Toggle's value as a condition.

 

I tested it and it works because Now() is not delayed by lag like a timer control is.

Microsoft Employee
@8bitclassroom

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,415)