brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [2/3] incubator-brooklyn git commit: Delete duplicate testFilePermissionsPerformance
Date Fri, 13 Nov 2015 17:13:04 GMT
Delete duplicate testFilePermissionsPerformance
    
This is already covered by
FilePersistencePerformanceTest.testFileBasedStoreObjectPuts


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/30d22d10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/30d22d10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/30d22d10

Branch: refs/heads/master
Commit: 30d22d100b431c2eb5acf01a7722ec92e089ba18
Parents: 3384c7e
Author: Aled Sage <aled.sage@gmail.com>
Authored: Fri Nov 13 00:00:04 2015 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Fri Nov 13 14:55:15 2015 +0000

----------------------------------------------------------------------
 .../FileBasedStoreObjectAccessorWriterTest.java   | 18 ------------------
 1 file changed, 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/30d22d10/core/src/test/java/org/apache/brooklyn/core/mgmt/persist/FileBasedStoreObjectAccessorWriterTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/brooklyn/core/mgmt/persist/FileBasedStoreObjectAccessorWriterTest.java
b/core/src/test/java/org/apache/brooklyn/core/mgmt/persist/FileBasedStoreObjectAccessorWriterTest.java
index f6db2df..d131128 100644
--- a/core/src/test/java/org/apache/brooklyn/core/mgmt/persist/FileBasedStoreObjectAccessorWriterTest.java
+++ b/core/src/test/java/org/apache/brooklyn/core/mgmt/persist/FileBasedStoreObjectAccessorWriterTest.java
@@ -22,7 +22,6 @@ import static org.testng.Assert.assertEquals;
 
 import java.io.File;
 import java.io.IOException;
-import java.util.concurrent.TimeUnit;
 
 import org.apache.brooklyn.core.mgmt.persist.PersistenceObjectStore.StoreObjectAccessorWithLock;
 import org.apache.brooklyn.util.os.Os;
@@ -30,7 +29,6 @@ import org.apache.brooklyn.util.time.Duration;
 import org.testng.annotations.Test;
 
 import com.google.common.base.Charsets;
-import com.google.common.base.Stopwatch;
 import com.google.common.collect.ImmutableList;
 import com.google.common.io.Files;
 
@@ -89,20 +87,4 @@ public class FileBasedStoreObjectAccessorWriterTest extends PersistenceStoreObje
             accessor.delete();
         }
     }
-
-    @Test(groups={"Integration", "Acceptance"})
-    public void testFilePermissionsPerformance() throws Exception {
-        long interval = 10 * 1000; // millis
-        long start = System.currentTimeMillis();
-
-        int count = 0;
-        Stopwatch stopwatch = Stopwatch.createStarted();
-        while (System.currentTimeMillis() < start + interval) {
-            accessor.put("abc" + count);
-            count++;
-        }
-        stopwatch.stop();
-        double writesPerSec = ((double)count) / stopwatch.elapsed(TimeUnit.MILLISECONDS)
* 1000;
-        System.out.println("writes per second: " + writesPerSec);
-    }
 }


Mime
View raw message