source: CIVL/mods/dev.civl.com/scripts/scale/runBench.pl@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100755
File size: 891 bytes
RevLine 
[948e320]1#!/usr/bin/perl
2use Path::Class;
3use File::Basename;
4use autodie;
5use strict;
6use warnings;
7
8
9my $civlDir=".";
10
11my $numArgs = scalar(@ARGV);
12
13if($numArgs > 1){
14 warn "At most ONE argument is needed for this script. Additional arguments will be ignored.\n";
15}
16
17if($numArgs > 0){
18 $civlDir=$ARGV[0];
19}else{
20 warn "No civl directory is provided, the current directory will be used as the civl directory.\n"
21}
22
23my $benchPrefix="edu.udel.cis.vsl.civl.bench.";
24my $benchSuffix="Benchmark";
25my @benchmarks=($benchPrefix."Adder".$benchSuffix,
26 $benchPrefix."Barrier".$benchSuffix,
27 $benchPrefix."BlockAdder".$benchSuffix,
28 $benchPrefix."DiningPhilosopher".$benchSuffix,
29 $benchPrefix."MessagePassing".$benchSuffix);
30my $cmdStart="java -classpath $civlDir/civl.jar:$civlDir/bin ";
31
32foreach my $benchmark (@benchmarks){
33 my $result = `$cmdStart $benchmark $civlDir`;
34 print $result;
35}
36
Note: See TracBrowser for help on using the repository browser.