removed spurious development benchmarking code

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2011-07-01 09:21:21 +00:00
parent 3cd15839ef
commit 9833f5c186
1 changed files with 1 additions and 12 deletions

View File

@ -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;
}
}
}