Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / performance-tests / POA / Create_Reference / run_test.pl
blob307b14cd47bc266f338e2436941a2cd6eab9fda6
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 $iterations = 10000;
12 print STDERR "================ Reference Creation Test\n";
14 print STDERR "\nTesting with hints (default configuration)\n";
16 my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
18 $SV = $server->CreateProcess ("create_reference", " -i $iterations");
20 $status = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval() + 100);
22 if ($status != 0) {
23 print STDERR "ERROR: create_reference returned $status\n";
24 exit $status;
27 print STDERR "\nTesting without hints (optimized configuration)\n";
29 $no_active_hint_directive = "-ORBsvcconfdirective \"static Server_Strategy_Factory '-ORBActiveHintInIds 0'\"";
31 $SV->Arguments ("-i $iterations $no_active_hint_directive");
33 $status = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval() + 100);
35 if ($status != 0) {
36 print STDERR "ERROR: create_reference returned $status\n";
37 exit $status;
40 exit $status;