-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add performance test for jackrabbit24
git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1182300 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
6 changed files
with
442 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
test/performance/jackrabbit24/jackrabbit-perf-jackrabbit24.iml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module" module-name="jackrabbit-perf-base" scope="TEST" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: javax.jcr:jcr:2.0" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.commons:commons-math:2.0" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: commons-io:commons-io:1.4" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.slf4j:slf4j-api:1.5.8" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.slf4j:slf4j-nop:1.5.8" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.testng:testng:jdk15:5.8" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:3.8.1" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.jackrabbit:jackrabbit-core:2.4-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: concurrent:concurrent:1.3.4" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: commons-collections:commons-collections:3.2.1" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: commons-dbcp:commons-dbcp:1.2.2" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: commons-pool:commons-pool:1.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.jackrabbit:jackrabbit-api:2.4-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.jackrabbit:jackrabbit-jcr-commons:2.4-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.jackrabbit:jackrabbit-spi-commons:2.4-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.jackrabbit:jackrabbit-spi:2.4-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.tika:tika-core:0.9" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.lucene:lucene-core:3.0.3" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.apache.derby:derby:10.5.3.0_1" level="project" /> | ||
<orderEntry type="library" scope="TEST" name="Maven: org.slf4j:jcl-over-slf4j:1.6.1" level="project" /> | ||
</component> | ||
</module> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | ||
http://maven.apache.org/maven-v4_0_0.xsd "> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.apache.jackrabbit</groupId> | ||
<artifactId>jackrabbit-perf-parent</artifactId> | ||
<version>SNAPSHOT</version> | ||
<relativePath>../parent/pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>jackrabbit-perf-jackrabbit24</artifactId> | ||
<name>Jackrabbit 2.4 Performance Test</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.jackrabbit</groupId> | ||
<artifactId>jackrabbit-perf-base</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.jcr</groupId> | ||
<artifactId>jcr</artifactId> | ||
<version>2.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.jackrabbit</groupId> | ||
<artifactId>jackrabbit-core</artifactId> | ||
<version>2.4-SNAPSHOT</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> | ||
|
32 changes: 32 additions & 0 deletions
32
...ormance/jackrabbit24/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.jackrabbit.performance; | ||
|
||
import org.apache.jackrabbit.core.query.lucene.join.QueryEngine; | ||
import org.testng.annotations.Test; | ||
|
||
public class PerformanceTest extends AbstractPerformanceTest { | ||
|
||
@Test | ||
public void testPerformance() throws Exception { | ||
testPerformance("2.4"); | ||
|
||
System.setProperty(QueryEngine.NATIVE_SORT_SYSTEM_PROPERTY, "true"); | ||
testPerformance("2.4-expSort", getDefaultConfig()); | ||
System.setProperty(QueryEngine.NATIVE_SORT_SYSTEM_PROPERTY, "false"); | ||
} | ||
} |
159 changes: 159 additions & 0 deletions
159
test/performance/jackrabbit24/src/test/resources/btree-usermanager-repository.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.6//EN" | ||
"http://jackrabbit.apache.org/dtd/repository-1.6.dtd"> | ||
<!-- Example Repository Configuration File --> | ||
<Repository> | ||
<!-- | ||
virtual file system where the repository stores global state | ||
(e.g. registered namespaces, custom node types, etc.) | ||
--> | ||
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> | ||
<param name="path" value="${rep.home}/repository"/> | ||
</FileSystem> | ||
|
||
<!-- | ||
data store configuration | ||
--> | ||
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/> | ||
<!-- | ||
sample database data store configuration | ||
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore"> | ||
<param name="url" value="jdbc:h2:~/test"/> | ||
<param name="user" value="sa"/> | ||
<param name="password" value="sa"/> | ||
</DataStore> | ||
--> | ||
|
||
<!-- | ||
repository lock mechanism configuration | ||
<RepositoryLockMechanism class="org.apache.jackrabbit.core.util.CooperativeFileLock"/> | ||
--> | ||
|
||
<!-- | ||
security configuration | ||
--> | ||
<Security appName="Jackrabbit"> | ||
<!-- | ||
security manager: | ||
class: FQN of class implementing the JackrabbitSecurityManager interface | ||
--> | ||
<SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security"> | ||
<!-- <param name="config" value="${rep.home}/security.xml"/> --> | ||
<UserManager class="org.apache.jackrabbit.core.security.user.UserManagerImpl"> | ||
<param name="groupMembershipSplitSize" value="25" /> | ||
</UserManager> | ||
</SecurityManager> | ||
|
||
<!-- | ||
access manager: | ||
class: FQN of class implementing the AccessManager interface | ||
--> | ||
<AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager"> | ||
<!-- <param name="config" value="${rep.home}/access.xml"/> --> | ||
</AccessManager> | ||
|
||
<LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule"> | ||
<!-- | ||
anonymous user name ('anonymous' is the default value) | ||
--> | ||
<param name="anonymousId" value="anonymous"/> | ||
<!-- | ||
administrator user id (default value if param is missing is 'admin') | ||
--> | ||
<param name="adminId" value="admin"/> | ||
<!-- | ||
optional parameter 'principalProvider'. | ||
the value refers to the class name of the PrincipalProvider implementation. | ||
--> | ||
<!-- <param name="principalProvider" value="..."/> --> | ||
</LoginModule> | ||
</Security> | ||
|
||
<!-- | ||
location of workspaces root directory and name of default workspace | ||
--> | ||
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" maxIdleTime="2"/> | ||
<!-- | ||
workspace configuration template: | ||
used to create the initial workspace if there's no workspace yet | ||
--> | ||
<Workspace name="${wsp.name}"> | ||
<!-- | ||
virtual file system of the workspace: | ||
class: FQN of class implementing the FileSystem interface | ||
--> | ||
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> | ||
<param name="path" value="${wsp.home}"/> | ||
</FileSystem> | ||
<!-- | ||
persistence manager of the workspace: | ||
class: FQN of class implementing the PersistenceManager interface | ||
--> | ||
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager"> | ||
<param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/> | ||
<param name="schemaObjectPrefix" value="${wsp.name}_"/> | ||
</PersistenceManager> | ||
<!-- | ||
Search index and the file system it uses. | ||
class: FQN of class implementing the QueryHandler interface | ||
--> | ||
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> | ||
<param name="path" value="${wsp.home}/index"/> | ||
</SearchIndex> | ||
</Workspace> | ||
|
||
<!-- | ||
Configures the versioning | ||
--> | ||
<Versioning rootPath="${rep.home}/version"> | ||
<!-- | ||
Configures the filesystem to use for versioning for the respective | ||
persistence manager | ||
--> | ||
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> | ||
<param name="path" value="${rep.home}/version" /> | ||
</FileSystem> | ||
|
||
<!-- | ||
Configures the persistence manager to be used for persisting version state. | ||
Please note that the current versioning implementation is based on | ||
a 'normal' persistence manager, but this could change in future | ||
implementations. | ||
--> | ||
<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager"> | ||
<param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/> | ||
<param name="schemaObjectPrefix" value="version_"/> | ||
</PersistenceManager> | ||
</Versioning> | ||
|
||
<!-- | ||
Search index for content that is shared repository wide | ||
(/jcr:system tree, contains mainly versions) | ||
--> | ||
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> | ||
<param name="path" value="${rep.home}/repository/index"/> | ||
</SearchIndex> | ||
|
||
<!-- | ||
Run with a cluster journal | ||
--> | ||
<Cluster id="node1"> | ||
<Journal class="org.apache.jackrabbit.core.journal.MemoryJournal"/> | ||
</Cluster> | ||
</Repository> |
Oops, something went wrong.