AFAIK Perl does not give back memory to the OS. So on Linux, if you put your code to benchmark in 2 different scripts, for each of them, just before exiting, you can get the memory used by your code in /proc/$$/status.
In reply to Re: "benchmarking" memory usage
by mirod
in thread "benchmarking" memory usage
by salva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |