From 9833f5c1862a21079d674ec3353b215f956f7685 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Fri, 1 Jul 2011 09:21:21 +0000 Subject: [PATCH] removed spurious development benchmarking code git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1141887 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math/linear/AbstractRealVectorTest.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java b/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java index 7f375ba25..838f9f200 100644 --- a/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java +++ b/src/test/java/org/apache/commons/math/linear/AbstractRealVectorTest.java @@ -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 4) cloneTime += System.nanoTime() - start; - start = System.nanoTime(); - v = new double[d.length]; - for(int j=0; j 4) setAndAddTime += System.nanoTime() - start; - } } + }