Run time of same code on MATLAB online and desktop

I am running the exact same code on MATLAB online and desktop version R22b, not simultaneously and both are run without any additional tasks in the background. However, the code runs faster on MATLAB online when it should be the other way around. Does anyone have a valid explanation for this?
Thanks

6 Comments

One of the ways that could happen is if your desktop is short of memory and is swapping to disk.
What led you to the conclusion that your code should run faster on your desktop than on MATLAB Online?
bench
ans = 1×6
0.6776 0.5445 0.3313 0.3519 0.4995 1.7266
The figures for MATLAB Online when I ran a second ago were
0.4513 0.2153 0.3144 0.4371 0.6509 0.2199
which was considered faster than the iMac.
Steven Lord, I thought that MATLAB online is using the resources within my desktop but through an online chanel, I am not a huge computers expert but that made sense. Anyways, thanks everyone for the replies
MATLAB Online runs the code entirely on computers in the "cloud" and sends HTML5 graphics to your browser.
MATLAB Online does not run on systems that are all that powerful, and each user only gets two cores, but does get roughly 20 gigabytes of memory. It would be expected to be faster than average desktop computers that are about a decade old, or faster than i3 laptops, but slower than any modern desktop. The service exists as a convenience; if you need faster computations then there are commercial cloud services.
That does make sense.
My laptop is an 8th gen i7 and hence, I go back to my question. Why does it run slower on my laptop?
I have 16GB of RAM and task manager show MATLAB using only 2GB

Sign in to comment.

Answers (0)

Categories

Products

Release

R2022b

Asked:

on 7 Nov 2022

Commented:

on 7 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!