r/AskComputerScience • u/silvers_puppet • Aug 07 '26
Does empirical complexity analysis in a container on a server pose any problems?
I haven't worked with servers or containers that much and so I wanted to ask if I try to measure the complexity of an algorithm, by repeatedly running the script with larger n, how likely is it that my measurements will be falsified?
If I do the same approach on a desktop the differences in time measurements depending on, memory and other processes running on the computer are negligible. Is there any difference when I am trying to measure on a server while that same server is also handling requests and do you think this is going to cause me problems with assessing the complexity correctly?
View all comments
Show parent comment
2
u/silvers_puppet Aug 07 '26
Thank you for the comment, I already figured measuring would have it's problems. I am also trying to implement a static analysis module similar to time-complexity-mcp and then to quantify the divergence of both, but I am also not delusional enough to think the static one will be entirely accurate. If I wanted to get a bullet proof/scientific estimate I would do it by hand, but I think for a rough guess on the complexity this should be fine, no?