Actually, it is just any module. I made one with 3 simple functions that do some basic math calculations. It still took as long as a more complicated module.
I then tested my .pl file by writing those functions in the script itself, without using the module, and the page came up more or less instantly.