Measure CPU performance via JS

Posted by Nicholas Kyriakides on Stack Overflow See other posts from Stack Overflow or by Nicholas Kyriakides
Published on 2013-11-03T15:50:36Z Indexed on 2013/11/03 15:53 UTC
Read the original article Hit count: 200

Filed under:

A webapp has as a central component a relatively heavy algorithm that handles geometric operations.

There are 2 solutions to make the whole thing accessible from both high-end machines and relatively slower mobile devices.

I will use RPC's if i detect that the user machine is ''slow'' or else if i detect that the user machine can handle it OK, then i provide to the webapp the script to handle it client side.

Now what would be a reliable way to detect the speed of the user machine?

I was thinking of providing a sample script as a test when the page loads and detect the time it took to execute that.

Any ideas?

© Stack Overflow or respective owner

Related posts about JavaScript