mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robina...@apache.org
Subject svn commit: r1470212 - /mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java
Date Sat, 20 Apr 2013 18:06:00 GMT
Author: robinanil
Date: Sat Apr 20 18:05:59 2013
New Revision: 1470212

URL: http://svn.apache.org/r1470212
Log:
MAHOUT Adding a bounds checks for empty benchmarks

Modified:
    mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java

Modified: mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java
URL: http://svn.apache.org/viewvc/mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java?rev=1470212&r1=1470211&r2=1470212&view=diff
==============================================================================
--- mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java
(original)
+++ mahout/trunk/integration/src/main/java/org/apache/mahout/benchmark/VectorBenchmarks.java
Sat Apr 20 18:05:59 2013
@@ -423,6 +423,9 @@ public class VectorBenchmarks {
     for (String benchmarkName : keys) {
       int i = 0;
       for (String[] stats : statsMap.get(benchmarkName)) {
+        if (stats.length < 8) {
+          continue;
+        }
         sb.append(benchmarkName + ",");
         sb.append(implMap.get(i++) + ",");
         sb.append(stats[7].trim().split("=|/")[1].trim());



Mime
View raw message