Your application includes a module responsible for a computationally intensive task. The development team aims to optimize this module by testing different algorithms. How can you assist them in evaluating the performance of each algorithm in both the staging and production environments to obtain comprehensive performance data?