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/10 15:35:05 UTC

[9/9] incubator-tinkerpop git commit: In this branch, g.V() doesn't accept a Traverser so correct syntax of performance test.

In this branch, g.V() doesn't accept a Traverser so correct syntax of performance test.

Not sure if g.V() should accept Traverser.  Unclear how this was working in master.  It does show that more tests are necessary in standard process tests.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/78d27103
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/78d27103
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/78d27103

Branch: refs/heads/TINKERPOP3-581
Commit: 78d27103f0671ea2f3ecaa03366e5f9626971e2a
Parents: ef5f8f0
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Apr 10 09:29:06 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Apr 10 09:29:06 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/process/TraversalPerformanceTest.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/78d27103/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalPerformanceTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalPerformanceTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalPerformanceTest.java
index 2953464..0606409 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalPerformanceTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalPerformanceTest.java
@@ -101,7 +101,8 @@ public class TraversalPerformanceTest extends AbstractGremlinTest {
     @LoadGraphWith(LoadGraphWith.GraphData.GRATEFUL)
     @Test
     public void g_V_out_mapXout_out_valuesXnameX_toListX() throws Exception {
-        g.V().out().map(v -> g.V(v).out().out().values("name").toList()).iterate();
+        // todo: this used to be g.V().out().map(v -> g.V(v).out().out().values("name").toList()).iterate(); - should g.V() accept Traverser??
+        g.V().out().map(v -> g.V(v.get()).out().out().values("name").toList()).iterate();
     }
 
     @BenchmarkOptions(benchmarkRounds = DEFAULT_BENCHMARK_ROUNDS, warmupRounds = DEFAULT_WARMUP_ROUNDS, concurrency = BenchmarkOptions.CONCURRENCY_SEQUENTIAL)