| OLD | NEW |
| 1 #!/usr/local/bin/perl | 1 #!/usr/local/bin/perl |
| 2 # *********************************************************************** | 2 # *********************************************************************** |
| 3 # * COPYRIGHT: | 3 # * COPYRIGHT: |
| 4 # * Copyright (c) 2002-2013, International Business Machines Corporation | 4 # * Copyright (c) 2002-2013, International Business Machines Corporation |
| 5 # * and others. All Rights Reserved. | 5 # * and others. All Rights Reserved. |
| 6 # *********************************************************************** | 6 # *********************************************************************** |
| 7 | 7 |
| 8 use strict; | 8 use strict; |
| 9 | 9 |
| 10 #use Dataset; | 10 #use Dataset; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 sub compareLoop { | 92 sub compareLoop { |
| 93 my $tests = shift; | 93 my $tests = shift; |
| 94 #my @tests = @{$tests}; | 94 #my @tests = @{$tests}; |
| 95 my %tests = %{$tests}; | 95 my %tests = %{$tests}; |
| 96 my $locale = shift; | 96 my $locale = shift; |
| 97 my $datafile = shift; | 97 my $datafile = shift; |
| 98 my $locAndData = ""; | 98 my $locAndData = ""; |
| 99 if($locale) { | 99 if($locale) { |
| 100 $locAndData .= " -L $locale"; | 100 $locAndData .= " -L \"$locale\""; |
| 101 } | 101 } |
| 102 if($datafile) { | 102 if($datafile) { |
| 103 $locAndData .= " -f $datafile"; | 103 $locAndData .= " -f $datafile"; |
| 104 } | 104 } |
| 105 | 105 |
| 106 my $args; | 106 my $args; |
| 107 my ($i, $j, $aref); | 107 my ($i, $j, $aref); |
| 108 foreach $i ( sort keys %tests ) { | 108 foreach $i ( sort keys %tests ) { |
| 109 debug("Test: $i\n"); | 109 debug("Test: $i\n"); |
| 110 $aref = $tests{$i}; | 110 $aref = $tests{$i}; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 $ms_str[0] .= " (discarded)" if (@ms_str > 1); | 381 $ms_str[0] .= " (discarded)" if (@ms_str > 1); |
| 382 out("Raw times (ms/pass): ", join(", ", @ms_str), "<BR>\n"); | 382 out("Raw times (ms/pass): ", join(", ", @ms_str), "<BR>\n"); |
| 383 | 383 |
| 384 ($iterCount, $eventsPerIter, @ms); | 384 ($iterCount, $eventsPerIter, @ms); |
| 385 } | 385 } |
| 386 | 386 |
| 387 | 387 |
| 388 1; | 388 1; |
| 389 | 389 |
| 390 #eof | 390 #eof |
| OLD | NEW |