File: stresstest.pl

package info (click to toggle)
perlmoo 0.045
  • links: PTS
  • area: main
  • in suites: slink
  • size: 404 kB
  • ctags: 242
  • sloc: perl: 5,211; makefile: 111; sh: 77
file content (10 lines) | stat: -rw-r--r-- 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl
# Creates a lot of objects, to stress the moo.
# Feed it into the moo somehow.

for ($x=0; $x< 1000; $x++) {
	$commands.="create \$person named mr_$x\n";
	$commands.="create \$thing named some_$x\n";
	$commands.="dig exit_$x to room_$x\n";
}
print $commands;