If you want real results that you can show to your boss (God forbid), you should fire up multiple instances of your CGI (perhaps with
FastCGI. yes i realize i link to this site alot nowadays!). Then bombard your test server with CGI POSTs to the script. If you're expecting heavy usage of your CGI script, then you should really be using
mod_perl or FastCGI, anyway. You should test more than one process when you're testing a program since other factors can compromise your results. Testing the program at maximum load could possibly reveal a weak spot or breaking point, especially if their are databases, file ~locking, or IPC invloved. The best way to test, is to put it under heavy fire. You could use
Benchmark to test specific regions or algorithms in your code for possible improvement. Give it a whorl and post what you get in the
Code section. Have a nice day!