You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/04/15 19:47:37 UTC
[15/50] incubator-tinkerpop git commit: Use Graph.io() to generate
the GraphWriter implementations in performance tests.
Use Graph.io() to generate the GraphWriter implementations in performance tests.
This fixes a problem where vendors who implement this test would see failures due to their custom classes not being registered.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/982780e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/982780e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/982780e8
Branch: refs/heads/variables
Commit: 982780e80b2e866af6f73682d125ba2b40090e3f
Parents: b427960
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Apr 14 07:57:06 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Apr 14 07:57:06 2015 -0400
----------------------------------------------------------------------
.../tinkerpop/gremlin/structure/GraphWritePerformanceTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/982780e8/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphWritePerformanceTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphWritePerformanceTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphWritePerformanceTest.java
index 1a9e4b0..28171be 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphWritePerformanceTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphWritePerformanceTest.java
@@ -95,7 +95,7 @@ public class GraphWritePerformanceTest {
@LoadGraphWith(LoadGraphWith.GraphData.GRATEFUL)
@BenchmarkOptions(benchmarkRounds = 10, warmupRounds = 0, concurrency = BenchmarkOptions.CONCURRENCY_SEQUENTIAL)
public void writeGryo() throws Exception {
- final GraphWriter writer = GryoWriter.build().create();
+ final GraphWriter writer = graph.io().gryoWriter().create();
final OutputStream os = new ByteArrayOutputStream();
writer.writeGraph(os, graph);
}
@@ -104,7 +104,7 @@ public class GraphWritePerformanceTest {
@LoadGraphWith(LoadGraphWith.GraphData.GRATEFUL)
@BenchmarkOptions(benchmarkRounds = 10, warmupRounds = 0, concurrency = BenchmarkOptions.CONCURRENCY_SEQUENTIAL)
public void writeGraphML() throws Exception {
- final GraphWriter writer = GraphMLWriter.build().create();
+ final GraphWriter writer = graph.io().graphMLWriter().create();
final OutputStream os = new ByteArrayOutputStream();
writer.writeGraph(os, graph);
}
@@ -113,7 +113,7 @@ public class GraphWritePerformanceTest {
@LoadGraphWith(LoadGraphWith.GraphData.GRATEFUL)
@BenchmarkOptions(benchmarkRounds = 10, warmupRounds = 0, concurrency = BenchmarkOptions.CONCURRENCY_SEQUENTIAL)
public void writeGraphSON() throws Exception {
- final GraphWriter writer = GraphSONWriter.build().create();
+ final GraphWriter writer = graph.io().graphSONWriter().create();
final OutputStream os = new ByteArrayOutputStream();
writer.writeGraph(os, graph);
}