Performance testing - perl vs. c++