Stress Test
The sandboxes below show how many operations per second each library is capable of.
How the test is conducted:
- While
performance.now() - startTimeis less than 1 second, keep running. - After loop has completed calculate,
performance.now() - startTimeagain. This is because it is not guaranteed that loops will stop immediately after one second. - Operations per second = total operations recorded ÷ total run time × 1000 milliseconds
Upon clicking "Start", the sandbox will try to invoke as many set-state calls as possible for 1 second.