Skip to content

Commit

Permalink
first push of incubated projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
okram committed Apr 12, 2011
1 parent 8670318 commit b77ace2
Show file tree
Hide file tree
Showing 421 changed files with 73,523 additions and 0 deletions.
20 changes: 20 additions & 0 deletions graphdb-bench/.gitignore
@@ -0,0 +1,20 @@
*.log
*.edgelist
#*.graphml
*.pyc
*~
target/
bin/
wiki/
blog/
doc/old wiki entries/
#data/datasets/
#!data/datasets/barabasi.graphml
#data/results/
.settings/
.project
.pydevproject
.classpath
.idea/
graphdb-bench.iml

12 changes: 12 additions & 0 deletions graphdb-bench/README.textile
@@ -0,0 +1,12 @@
!https://github.com/tinkerpop/graphdb-bench/raw/master/doc/images/graphdb-bench-logo.png!

GraphDB-Bench is a collection of benchmarks for analyzing the performance of various graph frameworks. In order to use GraphDB-Bench, please ensure that the following are installed on the testing system:

* "Java 1.6+":http://java.sun.com/: All benchmarks are currently evaluated from the perspective of using Java as the primary graph accessing language
* Statistical Framework
** "R:Statistics":http://www.r-project.org/: Used to generate graphs and plot analyses
*** "iGraph":http://igraph.sourceforge.net/: Used to generate artificial graphs
** "Python":http://python.org/: Used to generate graphs and plot analyses
*** "iGraph":http://igraph.sourceforge.net/: Used to generate artificial graphs

The documentation for GraphDB-Bench can be found at this "location":http://graphdb-bench.tinkerpop.com. Questions can be asked on the "Gremlin mailing list":http://groups.google.com/group/gremlin-users/topics. Finally, please visit "TinkerPop":http://tinkerpop.com for other software products.
8 changes: 8 additions & 0 deletions graphdb-bench/cloud1_specs.txt
@@ -0,0 +1,8 @@
Linux version 2.6.35-23-server
CPU 2 x Six-Core AMD Opteron(tm) Processor 2435 (2.6 GHz)
RAM 32 GB
FS ext2 or ext4
JVM HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
JRE JRE 1.6.0_22-b04


2 changes: 2 additions & 0 deletions graphdb-bench/data/datasets/README.textile
@@ -0,0 +1,2 @@
This directory is the primary location whereby graph datasets are saved and loaded.
Please refer to bench.properties in order to change this location.
2 changes: 2 additions & 0 deletions graphdb-bench/data/results/README.textile
@@ -0,0 +1,2 @@
This directory is the primary location whereby graph analyses results are saved.
Please refer to bench.properties in order to change this location.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphdb-bench/doc/images/graphdb-bench-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 148 additions & 0 deletions graphdb-bench/pom.xml
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>

<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>
<groupId>com.tinkerpop</groupId>
<artifactId>graphdb-bench</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<url>http://graphdb-bench.tinkerpop.com</url>
<name>GraphDB-Bench: A Benchmark Suite for GraphDBs</name>
<description>GraphDB-Bench is an extensible benchmarking framework for graph databases
Benchmarks are composed of a sequence of operations that can be evaluated over any Blueprints-enabled graph database.
Statistics and visualization tools are provided to support the analysis and representation of benchmark results.
</description>
<developers>
<developer>
<name>Marko A. Rodriguez</name>
<email>marko@markorodriguez.com</email>
<url>http://markorodriguez.com</url>
</developer>
<developer>
<name>Alex Averbuch</name>
<email>alex.averbuch@gmail.com</email>
<url>http://se.linkedin.com/in/alexaverbuch</url>
</developer>
</developers>
<inceptionYear>2010</inceptionYear>
<dependencies>
<!-- TINKERPOP GENERAL -->
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>blueprints</artifactId>
<version>0.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>pipes</artifactId>
<version>0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>gremlin</artifactId>
<version>0.8-SNAPSHOT</version>
</dependency>

<!-- TINKERPOP - NEO4J SUPPORT -->
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>graphdb-deps-neo4j</artifactId>
<version>0.5-SNAPSHOT</version>
<type>pom</type>
</dependency>

<!-- TINKERPOP - ORIENTDB SUPPORT -->
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>graphdb-deps-orientdb</artifactId>
<version>0.5-SNAPSHOT</version>
<type>pom</type>
</dependency>

<!-- TESTING -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<!--<scope>test</scope>-->
</dependency>

<!-- LOGGING -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven repository</id>
<url>http://mvnrepository.com</url>
</repository>
<repository>
<id>tinkerpop-repository</id>
<name>TinkerPop Maven2 Repository</name>
<url>http://tinkerpop.com/maven2</url>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<directory>${basedir}/target</directory>
<finalName>${artifactId}-${version}
</finalName>
<sourceDirectory>${basedir}/src/main/java
</sourceDirectory>
<testSourceDirectory>${basedir}/src/test/java
</testSourceDirectory>
<outputDirectory>${basedir}/target/classes
</outputDirectory>
<testOutputDirectory>${basedir}/target/test-classes
</testOutputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/resources
</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>${basedir}/src/test/resources
</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/assembly/standalone.xml</descriptor>
<descriptor>src/assembly/distribution.xml</descriptor>
</descriptors>
<finalName>graphdb-bench-${project.version}</finalName>
<outputDirectory>target</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
<tarLongFileMode>warn</tarLongFileMode>
</configuration>
</plugin>
</plugins>
</build>
</project>
2 changes: 2 additions & 0 deletions graphdb-bench/runBenchmarkSuite.sh
@@ -0,0 +1,2 @@
export MAVEN_OPTS="-server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xms15G -Xmx15G"
mvn -e exec:java -Dexec.mainClass="com.tinkerpop.bench.BenchmarkSuite" -Dexec.args=""
27 changes: 27 additions & 0 deletions graphdb-bench/src/assembly/distribution.xml
@@ -0,0 +1,27 @@
<assembly>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<includes>
<include>pom.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>src</directory>
</fileSet>
<fileSet>
<directory>target/apidocs</directory>
</fileSet>
<fileSet>
<directory>target/site</directory>
</fileSet>
<fileSet>
<directory>target</directory>
<includes>
<include>graphdb-bench-*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>
23 changes: 23 additions & 0 deletions graphdb-bench/src/assembly/standalone.xml
@@ -0,0 +1,23 @@
<assembly>
<id>standalone</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>

<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>

</assembly>
47 changes: 47 additions & 0 deletions graphdb-bench/src/main/java/com/tinkerpop/bench/Bench.java
@@ -0,0 +1,47 @@
package com.tinkerpop.bench;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import java.io.IOException;
import java.util.Properties;

/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class Bench {

public static Logger logger = Logger.getLogger(Bench.class);
public static Properties benchProperties = new Properties();

// DATASETS - GraphML & Databases
public static final String DATASETS_DIRECTORY = "bench.datasets.directory";

// LOGS - Operation Logs
public static final String LOGS_DELIMITER = "bench.logs.delimiter";

// RESULTS - Logs, Summaries, Plots
public static final String RESULTS_DIRECTORY = "bench.results.directory";

// GRAPH GENERAL
public static final String GRAPH_PROPERTY_ID = "bench.graph.property.id";
public static final String GRAPH_LABEL = "bench.graph.label";
public static final String GRAPH_LABEL_FAMILY = "bench.graph.label.family";
public static final String GRAPH_LABEL_FRIEND = "bench.graph.label.friend";

// GRAPH FILES
public static final String GRAPHML_BARABASI = "bench.graph.barabasi.file";

static {
try {
benchProperties.load(Bench.class
.getResourceAsStream("bench.properties"));
System.out.println(benchProperties);
} catch (IOException e) {
e.printStackTrace();
}
PropertyConfigurator.configure(Bench.class
.getResource("log4j.properties"));
}

}

0 comments on commit b77ace2

Please sign in to comment.