incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmuer <reto.bachm...@trialox.org>
Subject millions requests challenge
Date Thu, 28 Oct 2010 17:58:10 GMT
Still investigating on the situation where Clerezza doesn'tswllo stress
test. Today it passed the following 10 millions triples challenge:

Setting:
- 100 concurrent threads
- 1000 * 10000 requests
- requested media-type: application/rdf+xml

generating resource method:
    @GET
    public GraphNode list() {
        TripleCollection resultGraph = new SimpleMGraph();
        GraphNode result = new GraphNode(new BNode(), resultGraph);
        RdfList list = new RdfList(result);
        LockableMGraph contentGraph = cgProvider.getContentGraph();
        Lock l = contentGraph.getLock().readLock();
        l.lock();
        try {
            Iterator<Triple> greetings = contentGraph.filter(null, RDF.type,
GREETINGS.Greeting);
            while (greetings.hasNext()) {
                list.add(greetings.next().getSubject());
            }
        } finally {
            l.unlock();
        }
        return result;
    }

Data:
- 2 resources of type GREETINGS.Greeting

Result:
For every block of 10000 requests the following is true:
- 90% of the requests where answered in less than 161 ms
- 50% of all requests where answered in less than 58 ms
- the longest request took between 15687 and 3105 ms
- mean time between 109 and 221 ms
- No requests failed

No rocket science statistics, but it gives an idea.

A next step is to add an ssp.

Reto

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