I'm working on a project in PHP which is an improved model of an old PHP script. I claimed that new model will be more efficient in CPU and RAM usage. Now for evaluation, I want to estimate the ram & cpu usage during those processes. However the code is to small (a regular expression) but i believe in high load of input can show it self.
Is there any way to calculate an estimate or cpu & ram usage while the script is running?