tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otaviojava (GitHub) <git...@apache.org>
Subject [GitHub] [tinkerpop] otaviojava commented on issue #1001: uses the directly field instead of getter method
Date Mon, 03 Dec 2018 22:29:07 GMT
Hey everyone. 
First, sorry by delay, I did a test with this code below:

@Warmup(iterations = 5, time = 1)
@Measurement(iterations = 20, time = 1)
public class ClientBenchmark {

    private final ObjectMapper mapper = GraphSONMapper.build().version(GraphSONVersion.V3_0).create().createMapper();
    private final Graph graph = TinkerFactory.createModern();
    private final Vertex vertex = graph.traversal().V().next();

    public void setup() {

    public String write() throws JsonProcessingException {
        return mapper.writeValueAsString(vertex);

As you can see I seted the **Throughput** that Measures the number of operations per second,
meaning the number of times per second your benchmark method could be executed. Thereby, higher
is better.

To set the dependency, I just changed the core version to do this test:


## The result

Changed code: 

Benchmark               Mode  Cnt    Score
ClientBenchmark.write  thrpt   60  598,397

Current code:

Benchmark               Mode  Cnt    Score
ClientBenchmark.write  thrpt   60  580,662

As you can see the changed code is faster around 10%.

[ Full content available at: https://github.com/apache/tinkerpop/pull/1001 ]
This message was relayed via gitbox.apache.org for dev@tinkerpop.apache.org

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message