jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1495371 - /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java
Date Fri, 21 Jun 2013 10:31:15 GMT
Author: mduerig
Date: Fri Jun 21 10:31:15 2013
New Revision: 1495371

URL: http://svn.apache.org/r1495371
Log:
OAK-144 Implement Observation
Include total execution time in observation throughput benchmark

Modified:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java?rev=1495371&r1=1495370&r2=1495371&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/ObservationTest.java
Fri Jun 21 10:31:15 2013
@@ -72,9 +72,11 @@ public class ObservationTest extends Ben
 
     private void run(Repository repository) throws RepositoryException, ExecutionException,
InterruptedException {
         Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
+        long t0 = System.currentTimeMillis();
         try {
             observationThroughput(repository, session.getWorkspace().getObservationManager());
         } finally {
+            System.out.println("Time elapsed: " + (System.currentTimeMillis() - t0) + " ms");
             session.logout();
         }
     }



Mime
View raw message