Using the same loops as before , just adding a call to
/bin/ps -ef | grep 'Contents/MacOS/Indigo 2023.2' | grep -v grep"
and
/bin/ps -ef | grep 'IndigoServer' | grep -v grep
before and after loop
that returns something like:
...... 29:53.49 Applications/Indigo', '2023.2.app/Contents/MacOS/Indigo', '2023.2']
...... 30:11.51 Applications/Indigo', '2023.2.app/Contents/MacOS/Indigo', '2023.2']
and the delta 30:11.51 - 29:53.49 should be the consumed CPU time
gives:
- Code: Select all
indigo.devices[] vs refreshFromServer
indigo client: 18.02 vs 21.54 secs
indigo server: 6.87 vs 10.59 secs
loop with
- Code: Select all
indigo.devices[] --> ~24 secs consumed CPU by indigo server and indigo client
refreshFromServer --> ~31 secs consumed CPU by indigo server and indigo client
in Summaryif this is correct the loop with 20,000 calls
w dev=indigo.devices[] uses 7 secs LESS CPU that the loop with dev.refreshFromServer()
Karl