Almost-minimal filesystem based blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
383 B

  1. #!/usr/bin/perl
  2. use Benchmark;
  3. $script = $ARGV[0];
  4. # declare array
  5. my @data;
  6. # start timer
  7. $start = new Benchmark;
  8. for ($x = 0; $x <= 100; $x++) {
  9. $output = `perl ./$script`;
  10. }
  11. # end timer
  12. $end = new Benchmark;
  13. # calculate difference
  14. $diff = timediff($end, $start);
  15. # report
  16. print "Content-type: text/plain\n\n";
  17. print "Time taken was ", timestr($diff, 'all'), " seconds";