jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1523691 - in /jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark: BenchmarkRunner.java MessedUpCharacterCaseGetNodeTest.java getNodeTest.java
Date Mon, 16 Sep 2013 15:02:19 GMT
Author: mduerig
Date: Mon Sep 16 15:02:18 2013
New Revision: 1523691

URL: http://svn.apache.org/r1523691
Log:
OAK-663: oak-jcr performance optimization
Messed up character case

Added:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/MessedUpCharacterCaseGetNodeTest.java
      - copied, changed from r1523686, jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/getNodeTest.java
Removed:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/getNodeTest.java
Modified:
    jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/BenchmarkRunner.java

Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/BenchmarkRunner.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/BenchmarkRunner.java?rev=1523691&r1=1523690&r2=1523691&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/BenchmarkRunner.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/BenchmarkRunner.java
Mon Sep 16 15:02:18 2013
@@ -75,8 +75,8 @@ public class BenchmarkRunner {
             new LoginLogoutTest(),
             new NamespaceTest(),
             new ReadPropertyTest(),
-            GetNodeTest.withAdmin(),
-            GetNodeTest.withAnonymous(),
+            MessedUpCharacterCaseGetNodeTest.withAdmin(),
+            MessedUpCharacterCaseGetNodeTest.withAnonymous(),
             new SetPropertyTest(),
             new SmallFileReadTest(),
             new SmallFileWriteTest(),

Copied: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/MessedUpCharacterCaseGetNodeTest.java
(from r1523686, jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/getNodeTest.java)
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/MessedUpCharacterCaseGetNodeTest.java?p2=jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/MessedUpCharacterCaseGetNodeTest.java&p1=jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/getNodeTest.java&r1=1523686&r2=1523691&rev=1523691&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/getNodeTest.java
(original)
+++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/MessedUpCharacterCaseGetNodeTest.java
Mon Sep 16 15:02:18 2013
@@ -27,17 +27,17 @@ import javax.jcr.Session;
 import org.apache.jackrabbit.core.security.principal.EveryonePrincipal;
 
 /**
- * {@code GetNodeTest} implements a performance test, which reads
+ * {@code MessedUpCharacterCaseGetNodeTest} implements a performance test, which reads
  * nodes from the repository. To determine the effect of access control
  * evaluation the test can either run with anonymous or with admin.
  */
-public abstract class GetNodeTest extends AbstractTest {
+public abstract class MessedUpCharacterCaseGetNodeTest extends AbstractTest {
     private final String name;
 
     private Node testRoot;
 
     public static Benchmark withAdmin() {
-        return new GetNodeTest("GetNodeWithAdmin") {
+        return new MessedUpCharacterCaseGetNodeTest("GetNodeWithAdmin") {
             @Override
             protected Session login() {
                 return loginWriter();
@@ -46,7 +46,7 @@ public abstract class GetNodeTest extend
     }
 
     public static Benchmark withAnonymous() {
-        return new GetNodeTest("GetNodeWithAnonymous") {
+        return new MessedUpCharacterCaseGetNodeTest("GetNodeWithAnonymous") {
             @Override
             protected Session login() {
                 return loginAnonymous();
@@ -54,7 +54,7 @@ public abstract class GetNodeTest extend
         };
     }
 
-    protected GetNodeTest(String name) {
+    protected MessedUpCharacterCaseGetNodeTest(String name) {
         this.name = name;
     }
 
@@ -68,7 +68,7 @@ public abstract class GetNodeTest extend
     @Override
     protected void beforeSuite() throws Exception {
         Session session = loginWriter();
-        testRoot = session.getRootNode().addNode(GetNodeTest.class.getSimpleName(), "nt:unstructured");
+        testRoot = session.getRootNode().addNode(MessedUpCharacterCaseGetNodeTest.class.getSimpleName(),
"nt:unstructured");
         testRoot.addNode("node1").addNode("node2");
 
         addAccessControlEntry(session, testRoot.getPath(), EveryonePrincipal.getInstance(),



Mime
View raw message