@@ -0,0 +1,1958 @@
+package com.tinkerpop.gremlin.elastic;%0A%0A%0Aimport com.tinkerpop.gremlin.elastic.structure.ElasticGraph;%0Aimport com.tinkerpop.gremlin.structure.Edge;%0Aimport com.tinkerpop.gremlin.structure.Graph;%0Aimport com.tinkerpop.gremlin.structure.Vertex;%0Aimport org.apache.commons.configuration.BaseConfiguration;%0Aimport org.apache.commons.lang3.time.StopWatch;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0Aimport java.util.Iterator;%0A%0Apublic class GeneralElasticTests %7B%0A%0A    StopWatch sw = new StopWatch();%0A%0A    @Test%0A    public void profile() throws IOException %7B%0A        BaseConfiguration config = new BaseConfiguration();%0A        config.addProperty(Graph.GRAPH, ElasticGraph.class.getName());%0A        config.addProperty(%22elasticsearch.cluster.name%22, %22test%22);%0A        String indexName = %22graph%22;%0A        config.addProperty(%22elasticsearch.index.name%22, indexName.toLowerCase());%0A        config.addProperty(%22elasticsearch.local%22, true);%0A        config.addProperty(%22elasticsearch.refresh%22, true);%0A        config.addProperty(%22elasticsearch.client%22, false);%0A%0A        startWatch();%0A        ElasticGraph graph = new ElasticGraph(config);%0A        stopWatch(%22graph initalization%22);%0A%0A        startWatch();%0A        int count = 1000;%0A        for(int i = 0; i %3C count; i++)%0A            graph.addVertex();%0A        stopWatch(%22add vertices%22);%0A%0A        startWatch();%0A        Iterator%3CVertex%3E vertexIterator = graph.iterators().vertexIterator();%0A        stopWatch(%22vertex iterator%22);%0A%0A        startWatch();%0A        vertexIterator.forEachRemaining(v -%3E v.addEdge(%22bla%22, v));%0A        stopWatch(%22add edges%22);%0A%0A        startWatch();%0A        Iterator%3CEdge%3E edgeIterator = graph.iterators().edgeIterator();%0A        stopWatch(%22edge iterator%22);%0A    %7D%0A%0A    private void stopWatch(String s) %7B%0A        sw.stop();%0A        System.out.println(s + %22: %22 + sw.getNanoTime()/1000000000);%0A    %7D%0A%0A    private void startWatch() %7B%0A        sw.reset();%0A        sw.start();%0A    %7D%0A%7D%0A

fix performance issues - refresh before search, instead of after insert.