commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1141887 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
Date Fri, 01 Jul 2011 09:21:21 GMT
Author: luc
Date: Fri Jul  1 09:21:21 2011
New Revision: 1141887

URL: http://svn.apache.org/viewvc?rev=1141887&view=rev
Log:
removed spurious development benchmarking code

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java?rev=1141887&r1=1141886&r2=1141887&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java
Fri Jul  1 09:21:21 2011
@@ -214,17 +214,6 @@ public class AbstractRealVectorTest {
         Assert.assertNotSame(c[0], d[0]);
         d[0] = 1;
         Assert.assertEquals(new ArrayRealVector(d).getNorm(), new ArrayRealVector(c).getNorm(),
0);
-        long cloneTime = 0;
-        long setAndAddTime = 0;
-        for(int i=0; i<10; i++) {
-          long start = System.nanoTime();
-          double[] v = d.clone();
-          for(int j=0; j<v.length; j++) v[j] += 1234.5678;
-          if(i > 4) cloneTime += System.nanoTime() - start;
-          start = System.nanoTime();
-          v = new double[d.length];
-          for(int j=0; j<v.length; j++) v[j] = d[j] + 1234.5678;
-          if(i > 4) setAndAddTime += System.nanoTime() - start;
-        }
     }
+
 }



Mime
View raw message